Sample Code

Client-side integration

iOS sample app

iOS-NestDK is a sample iPhone application that shows you how to:

  • Authorize a Works with Nest client using OAuth 2.0
  • Subscribe to Nest Thermostat devices using Firebase
  • Update Nest Thermostat devices using Firebase

This app features the following Thermostat integration functionality:

Details
LanguagesObjective-C
LibrariesFirebase
DevicesNest Learning Thermostat
Required Client PermissionsThermostat read/write / v1-v6
Source Codegithub.com/nestlabs/ios-NestDK

Android-SDK

Android-SDK is an Android-based Java library that shows you how to:

  • Authorize a Works with Nest client using OAuth 2.0
  • Subscribe to structures and devices using Firebase
  • Update Nest structures and devices using Firebase
Details
LanguagesJava
LibrariesFirebase
DevicesNest Learning Thermostat, Nest Protect, Nest Cam
Source Codegithub.com/nestlabs/android-sdk

Android sample app

A sample Android application based on Android-SDK that features the following Thermostat integration functionality:

Details
LanguagesJava
LibrariesFirebase
DevicesNest Learning Thermostat
Required Client PermissionsThermostat read/write / v1-v6
Away read/write / v1-v2
Source Codegithub.com/nestlabs/android-sdk-sample

Nest streaming dashboard

A web app that uses REST Streaming to get real-time updates of Nest devices and display them in a browser using Node.js. The streaming dashboard shows you how to:

  • Authorize a Works with Nest client using OAuth 2.0
  • Get real-time updates of all Nest products
  • Display updates in a web browser using Node.js
Details
LanguagesJavaScript
LibrariesNode.js, jQuery, Passport, JsRender
DevicesNest Learning Thermostat, Nest Protect, Nest Cam
Required Client PermissionsThermostat read / v1-v6
Smoke+CO read / v1-v5
Camera read + images / v1-v4
Away read / v1-v2
Source Codegithub.com/nestlabs/rest-streaming

Server-side integration

Nest-Twitter

Nest-Twitter is a server-based client created in Scala. Nest-Twitter shows you how to:

  • Create a Nest server-based integration using Scala and Java libraries
  • Authorize a Works with Nest client using OAuth 2.0
  • Handle errors
  • Implement listeners to respond to Nest data changes
  • Interact with the Nest API using Scala
  • Update Twitter status based on Nest data
Details
LanguagesJava, Scala
LibrariesFirebase, Java, Twitter
DevicesNest Learning Thermostat, Nest Protect
Required Client PermissionsThermostat read/write / v1-v6
Smoke+CO read / v1-v5
Away read/write / v1-v2
ETA write / v1-v2
Source Codegithub.com/nestlabs/nest-twitter

Send feedback about...

Nest Developers
Nest Developers