I'd recommend using the library rather than roll your own.
Take a look at the tutorials here: http://community.thingspeak.com/tutorials/
Take a look at the examples in the library here: https://github.com/mathworks/thingspeak-arduino/tree/master/examples