Get all data of a d...
 
Notifications
Clear all

Get all data of a device (Rest API tutorial)

2 Posts
2 Users
0 Reactions
2,046 Views
(@dyssyahir)
Posts: 1
New Member
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
 Gops
(@gopish)
Posts: 31
Member
 

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
Share:

Copyright © 2024 All rights reserved