So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By archer1035
#81931 Hello,

I'm a beginner to making HTTP calls on devices and I'm trying to implement the following API on the ESP8266 using C on the Arduino IDE. The device I am using is the Adafruit Huzzah board.



The code I want to implement is as follows:



curl -X POST \ https://<host>:<port>/api/v1/provision/devices/register \

-H 'Authorization: Bearer <JWT_TOKEN>' \

-H 'Content-Type: application/json' \

-H 'X-Device-ID: TEM-1235686759' \

-d '{ "type": "TEM",

"serialNumber": "234455",

"uuid":"1235686759" }'



I am used to working with C and C++ so I'm a bit unfamiliar in how I would make this work on the ESP8266. Some guidance or personal experience with similar challenges would be much appreciated!



Thank you!