I have a Photon collecting power generation data from a solar array.
A website called PVOutput.Org has some free tools for logging via API.
They give some sample code for a POST request using cURL, like this:
curl -d “d=20111201” -d “t=10:00” -d “v1=1000” -d “v2=150” -H “X-Pvoutput-Apikey: Your-API-Key” -H “X-Pvoutput-SystemId: Your-System-Id” https://pvoutput.org/service/r2/addstatus.jsp
I’ve gotten pretty good at passing variables to forms and JSON formatted strings, but the trouble is I don’t know how to create a webhook integration in the Particle console from the URL string above. Do I need to use Custom Body? Can I use webhooks or do I need the httpclient lib? I don’t have to use headers for apikey and system ID. I can have those things in the body if I want with “key=yourapikey” or “sid=yoursysid.”
Here is a partial list of parameters in a POST request.