Notifications
Clear all
Topic starter
Hi All,
Does anyone know the example for full complete coding using this tutorial code?
Javascript - https://platform.favoriot.com/tutorial/#get-all-data-of-a-device
var request = require("request");
var options = { method: 'GET',
url: 'https://api.favoriot.com/v1/streams',
headers:
{ 'cache-control': 'no-cache',
'content-type': 'application/json',
'apikey': 'YOUR API KEY HERE' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Posted : 08/04/2019 10:49 am
You can use the given code in your existing javascript code. Just replace the API key with your API key.
Posted : 11/04/2019 7:43 am