The Nest Thermostat is a smart thermostat that learns the homeowners' habits and then automatically adjusts the house's temperature. Nest Protect is a smoke and carbon monoxide alarm that warns users before it sounds and can be deactivated easily by waving an arm at it. Both devices can be controlled from the user's mobile phone. The Nest API allows users to control the Nest Thermostat and Nest Protect as well as display their current configurations. By using the API, developers can integrate Nest Thermostat and Nest Protect with their own products, applications, or services.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
The Nest Scala Sample Code by Nest demonstrates 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, and update Twitter status based on Nest data.
The Nest Objective-C Sample Code by Nest demonstrates how to authorize with Nest client using OAuth 2.0. Developers can read Nest Thermostat devices using REST and update Nest Thermostat devices using REST.
Nest provides sample code showing a server side integration between Nest and Twitter. With the code, developers can pair a Twitter account to their own Nest account. To start developers will need a Twitter API key and access tokens for both Twitter and Nest accounts. Developers can also learn how to handle authorization and erros, implement listeners to respond to changes in Nest data, use Scala to interact with Nest, read and write thermostat, away, ETA, smoke alarm batter, smoke and CO states and update their Twitter status based on data from the Nest service.