The document discusses using Twitter as a platform for the Internet of Things (IoT). It describes how objects like plants, ferries, houses, and sensors can tweet data from the physical world. It outlines Twitter's streaming and REST APIs, which allow applications to ingest real-time tweet data through streaming or access past data. The APIs can be used to build IoT applications that analyze sensor data tweets and respond accordingly.
26. Streaming APIs allow you to
ingest what’s happening right now
POST https://stream.twitter.com/1.1/statuses/filter.json
follow: 3946301
track: #WorldCup
locations: 2.1632,48.7429,2.5051,48.9679
Data:
@romainhuet
27. GET https://stream.twitter.com/1.1/statuses/sample.json
Returns ~1% of all firehose data, statistically relevant.
Streaming APIs allow you to
ingest what’s happening right now
GET https://stream.twitter.com/1.1/statuses/firehose.json
Returns all firehose data, requires business deal.
@romainhuet
29. REST APIs let you perform actions
and look at what happened
@romainhuet
30. Tweets GET statuses/show/:id
Timelines GET statuses/home_timeline
GET statuses/user_timeline
GET statuses/mentions_timeline
POST statuses/update
Search GET search/tweets
…
Users, Favorites, Direct Messages, Followings & Followers,
Lists, Saved Searches, Trends, Geo, Spam Reporting
REST APIs let you perform actions
and look at what happened
@romainhuet