Get all data of a d...
 

Get all data of a device (Rest API tutorial)  

  RSS
Dyssyahir
(@dyssyahir)
New Member Registered

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);
});

 

Quote
Posted : 08/04/2019 10:49 am
Gops
 Gops
(@gopish)
Active Member Moderator

You can use the given code in your existing javascript code. Just replace the API key with your API key.

ReplyQuote
Posted : 11/04/2019 7:43 am
Share:

Copyright © 2019 All rights reserved

  
Working

Please Login or Register