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.
As API use continues to broaden, it’s conceivable that APIs will soon evolve into a conduit for sharing information that will expand far beyond application software. Speaking at the APIcon 2014 conference today, author and freelance developer Keith Axline expounded on a theory that he initially explored in an article that first appeared in Wired, titled “The Universe Is Programmable. We Need an API for Everything.”