doubi1818 2013-04-21 15:10
浏览 38

让Twitter用户获得家庭饲料的简单方法

Does anyone know a good way to, using oAuth, retrieve a users home feed (using PHP or JavaScript)? I've been searching the web (Google, YouTube and the Twitter website), but have not yet found a simple tutorial like developers.facebook.com has.

If you know of a good tutorial, or you have written some code that works, I'd be glad to see it. I would prefer the entire process, from authorizing a user to displaying their feed, but anything is better than what I have now.

Hoping for answers!

  • 写回答

1条回答 默认 最新

  • dongweihuai5601 2013-04-21 15:13
    关注

    OAuth is method for authentication, you should use REST API provided by Twitter.

    Please check this: https://dev.twitter.com/docs/api/1.1 (statuses/user_timeline)

    Edit:

    https://github.com/abraham/twitteroauth

    Please check "Extended flow using example code" section, there's everything you want to know.

    Just one note, if you have long-live access token (from your app dashboard, see oauth tab), you just pass token and token secret as third and fourth parameter when you create new instance of TwitterOAuth class, like this:

    $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN,
    OAUTH_SECRET);
    
    评论

报告相同问题?

悬赏问题

  • ¥15 求TYPCE母转母转接头24PIN线路板图
  • ¥100 国外网络搭建,有偿交流
  • ¥15 高价求中通快递查询接口
  • ¥15 解决一个加好友限制问题 或者有好的方案
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型