New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nest-cloud-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nest-cloud-api

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

node-nest-cloud-api

npm package

A simple way to interface with Nest devices using official Rest API.

Installation

Install and add it to your package.json with:

$ npm install nest-cloud-api --save

Usage

var Nest = require('nest-cloud-api');

var apiAccessToken = 'foobar'; // this is the Nest API access_token. To get it you can use https://github.com/denouche/node-nest-oauth2
var myNest = new Nest(apiAccessToken);

myNest.request()
    .then(function(data) {
   		console.info(data);
    });

myNest.request({ method: 'PUT', uri: '/devices/thermostats/<thermostatId>', body: { target_temperature_c: 21.5 }})
    .then(function(data) {
   		console.info('success!');
    });

Keywords

nest

FAQs

Package last updated on 13 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts