Your SlideShare is downloading. ×
Twitter
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Twitter

687
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
687
On Slideshare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Twitter APIBarri RajeshIntern @ IBM-ISL
  • 2. May 10, 2013Content API types Twitter tweets flow Rest API Search API Stream API Authentication
  • 3. May 10, 2013API Types There are actually three Twitter APIs.1)2) REST API3) Search API4) Stream API5)
  • 4. May 10, 2013API features Rest API– Covers the basic Twitter functions– You can read your timeline and direct messages,– Tweet and retweet from the REST API,– Follow and unfollow other users, send direct messages (DMs),– Manipulate your lists, and so on.
  • 5. May 10, 2013API features Search API:– Duplicates the Twitter search page .– It can do everything that the Twitter Advanced Search can do– Nearly all the Twitter monitoring tools depend on this Twitter search API. Streaming API:– The streaming API is read-only– Unlike the search API, the streaming API is not buffered through the searchdatabase.– There are more tweets available to users of the streaming API than there are tousers of the search API.
  • 6. May 10, 2013Whats happening?
  • 7. May 10, 2013Rest API Timelines• collections of Tweets, ordered with the most recent first Tweets• status updates with additional associated metadata direct messages• short, non-public messages sent between two users friends & followers• follow their interests on Twitter through both one-way and mutual followingrelationships Users• Users are at the center of everything Twitter: they follow, they favorite, andtweet & retweet. suggested users• Categorical organization of users that others may be interested to follow.
  • 8. May 10, 2013 Favoriates• Users favorite tweets to give recognition to awesome tweets Lists• Collections of tweets, culled from a curated list of Twitter users. saved search• Allows users to save references to search criteria for reuse later. places & geo• These methods allow you to attach location data to tweets and discovertweets & locations. Trends• The Trends methods allow you to explore whats trending on Twitter. spam reporting• These methods are used to report user accounts as spam accounts.
  • 9. May 10, 2013Search and Streaming APISearch API: Returns a collection of relevant Tweets matching a specified query.– Parameters: q,callback, geocode, lang, locale, page, result_type, rpp,show_user, until, since_id, max_id, include_entitiesStreaming API: Public stream– Public data flowing through Twitter User stream– Single-user streams, containing roughly all of the data corresponding with asingle users view of Twitter. Site stream– The multi-user version of user streams.
  • 10. May 10, 2013Streaming API POST statuses/filter• follow• track• locations• delimited• stall_warnings GET statuses/sample• delimited• stall_warnings GET statuses/firehose• count
  • 11. May 10, 2013Authentication Base– Username password– Its deprecated in all APIs except streaming API Oauth– Application-user authentication
  • 12. May 10, 2013References[1] dev.twitter.com[2] http://borasky-research.net/2010/01/06/the-twitter-streaming-api-how-it-works-and-why-its-a-big-deal
  • 13. May 10, 2013Thank you