posting to Ubidots from nodemcu syntax?
Posted: Thu Jun 11, 2015 8:23 am
Hello, I am trying to post data to ubidots from the ESP on LUA. I do not know how to pass the data, apparently it has to be in a form-data format. I am using postman to test and was able to get it to successfully work the format is: the value I am passing here is "3"
the FAQ is here http://ubidots.com/docs/api/v1_6/data/post_variables_id_values.html
can anybody give some inputs?
Code: Select all
POST /api/v1.6/variables/5579297d7624326b3560cd2e/values HTTP/1.1
Host: things.ubidots.com
X-Auth-Token: qGd3CE08Gny9YtIzsdwfdu6kyTepwHHDW6DjUde6EeUyjJdonsVepTQ3EvOB
Cache-Control: no-cache
----WebKitFormBoundaryE19zNvXGzXaLvS5C
Content-Disposition: form-data; name="value"
3
----WebKitFormBoundaryE19zNvXGzXaLvS5C
the FAQ is here http://ubidots.com/docs/api/v1_6/data/post_variables_id_values.html
can anybody give some inputs?