开发者

Twitter → how get user home timeline

How can i get user home timeline if I have his login & passwor开发者_高级运维d?


Using login + password is not recommended, you should let OAuth to give your webservice access.

There are several libraries for PHP + Twitter, which one are you planning to use?

Edit: you can use OAuth with crontab, just log in to twitter with the account in your browser and you'll be able to get the tokens from dev.twitter.com to use in your PHP. Check this thread for more detailed answer: Twitter Oauth login in a cron agent executing PHP file evenry 2 minutes


You could use the public feed of a user timeline from a URL like this and parse it however you want

http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=stephenfry


One way i see → write letter to api@twitter.com and use xAuth with user login and password.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜