I need to make a POST request to get oauth2 token. I have it working on Python, but how can I do the same POST in Arduino?
code
I need to make a POST request to get oauth2 token. I have it working on Python, but how can I do the same POST in Arduino?
code
have you considered using MicroPython on the ESP8266 or ESP32
otherwise have a look at ESP32 HTTP GET and HTTP POST
Hi thanks for comment, I have tried the HTTP POST method for ESP32, but I always get error, I think it was 400.
I do not know how to complete the request with correct header, ID, secret and so on.
Are there any examples you know of that might help me along?
if you do a web search for Arduino HTTP POST you will get plenty of links
400 is Bad Request
could you post your code?