Use .NET to retrieve token and make 1 POST call to to a Restfull API.

Job ID: 33762222

Budget: $10 – $30 USD

Reequipments for the project:
1. Provide VB.NET which calls Tuya API and retrieve security token as String for given credentials (I will provide them to you privately) from the API. HTTPWebRequest and HTTPWebResponse classes must be used to achieve that.
2. Use above token to write code VB.NET which calls "Send Commands Method" of the same API. The command must be called for a device ID 40818031e09806c97df0 which is a parameter placed in this URL: https://openapi.tuyaus.com/v1.0/iot-03/devices/40818031e09806c97df0/commands.
Another parameter of the Message body to be supplied is swithc_1 = true. The device is physicals IOT wall socket which you can turn of and on by calling this function.
HTTPWebRequest and HTTPWebResponse classes must be used to achieve that.

Notes:

1. I will provide my credentials so you are able to use the API.
2. You will need to provide your IP address which I have to whitelist on my account so that you can have access to the API.
You can request me for both even if you just want to try the service.
3. API documentation: https://developer.tuya.com/en/docs/iot/api-reference?id=Ka7qb7vhber64 https://openapi.tuyaus.com/v1.0/iot-03/devices/40818031e09806c97df0/commands
Related categories: .NET C# Programming Cryptography VB.NET RESTful API