1
Vote

Need to be able to add additional header with POST and need to be able to PUT

description

In order to send data to ThingSpeak the API documentation says you need to send an "X-THINGSPEAKAPIKEY" header. In order to send data to SmartEnergyGroups you need to send and HTTP PUT (a POST does not work).

Since the difference between POST and PUT is just the verb used in the first header, I added a new method to do this. I also added an optional Header parameter to allow the addition of a single header to the POST or PUT, which works for me.

comments

Garrcomm wrote Jun 21, 2014 at 4:17 PM

Hi Frogmore,

These additions sounds lovely! Would you like to share the code? I could embed it in the toolbox.