-5

How do I stream Tweets from a user's timeline?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
user2918201
  • 52
  • 1
  • 7

1 Answers1

2

You'll need to use Twitter's API. The endpoint you're looking for is statuses/home_timeline:

Returns a collection of the most recent Tweets and retweets posted by the authenticating user and the users they follow. The home timeline is central to how most users interact with the Twitter service.

If you're looking to get up-and-running quickly, you'll want to setup STTwitter (pod 'STTwitter' in your Cocoapods file). STTwitter's Github page has a variety of tools for installation, authentication, configuration, etc. You can use your own oauth token and secret (although you'd ideally want to avoid storing this in your app), or the authentication through iOS, although this does have a few limits.

Aaron Brager
  • 65,323
  • 19
  • 161
  • 287
  • Thank you very much, however, I have used STTwitter before and it seems like their rate limits are very small. – user2918201 Feb 28 '14 at 04:20
  • 1
    STTwitter doesn't have rate limits; Twitter's API does. You can read about them here so you can code to avoid hitting them: https://dev.twitter.com/docs/rate-limiting/1.1 – Aaron Brager Feb 28 '14 at 04:21
  • Ok then! Great! I was wrong, thanks for helpin me out, do you know of a place with a nice tutorial on STTwitter? If you do not, no problem. You have been very helpful thanks – user2918201 Feb 28 '14 at 04:35
  • Googling "STTwitter Tutorial" produced this: http://tutorials.veasoftware.com/2013/12/23/twitter-api-version-1-1-app-authentication/ – Aaron Brager Feb 28 '14 at 04:38