I have an API that has been set up on the server side and the unit side, I have the below code in python to communicate with the API. I am now writing this for the Arduino IDE.
This code succesfully communicates with the API to get the token.
How is this code sending a JSON file 'auth_info' while the header reads x-www-form-urlencoded.
Even a half explanation of the following would be really appreciated.
Thank you for moving it to the relevant category @UKHeliBob.
I posted it in the Arduino Forum because I was looking to communicate with the above API using Arduino IDE.
I read up on the httpClient library which communicate either as urlencoded and as a JSON string. But, this code is communicating a JSON string as a urlencoded and I have zero idea of what is happening here.
Hi,@vikarreddy same think for me . I get access token but if it's no idea to post the token.I'm already working python project like python post method explanation using rest api.But in this arduino api post data again in server no ideas in my mind and refered some examples it's only one post method or other's to server url are using