Twitter - how to get user's timeline

蹲街弑〆低调 提交于 2019-12-10 11:51:59

问题


My app, in one of its parts, should reproduce the same behaviour as a web page, where you can find a section with a table of Twitter posts, I guess they are a user's timeline. I took a look at Twitter api's and I found a call which could return it, but, If I got it right, you are supposed to be authenticated with that user credentials. Is there a way to achieve it without being that user (thus without using that user's credentials)? If not we have to assume that web plugins have more flexibility than queries which return xml, or json? Which kind of approach fits best, considering the app needs to support iOS from 4.3 to 6.x? Does Twitter+Oauth provide more flexibility than direct Twitter api calls?


回答1:


Hm, if you are looking to just display user's feed you can do it as simple as:

https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=reMakeIn&count=200

Where you change the screen_name to the desired user that you want to show the feeds for. No need what so ever to use authentication for this.

Not sure if this is what you want to achieve, but I use this approach to show random user's tweet feed.



来源:https://stackoverflow.com/questions/13442128/twitter-how-to-get-users-timeline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!