How write code for making a cloud api link?

I read all API documentation and seen the video too but didn’t understand how it’s going.
I wrote and tried several codes but none works. Kindly help

https://cloud.boltiot.com/remote/

how to give it (above link) automatically API Key and device name in program (js or hmtl).

you should write this manner

For Example
LED turn on
https://cloud.boltiot.com/remote/your API key/digitalWrite?pin=0&state=HIGH&deviceName=your device name

LED turn off
https://cloud.boltiot.com/remote/your API key/digitalWrite?pin=0&state=LOW&deviceName=your device name

by this type you can create the URL of your device. I have just give you example for controlling LED with this URL. you can choose any third party app like twillio,IFTTT etc. and create your project

Thanks, this I already know but how to write in HTML, Javascript?

1 Like