Call losant api from nodejs

Hi,
I want to call the following api from nodejs
https://5ca5f7f18b62290008d0e84d.onlosant.com/devices/5cd22c6e5b1a9f000869bc0c/state.

Do you have any sample js file for the above?

Thanks
Sivasankari S

Hi @sivasankari_s,

While I do not have any specific examples for Node.js, here is a Stack Overflow question for doing an HTTP POST in Node.js. There also seems to be a library that can be implemented that is much shorter.

Thanks,
Julia