【问题标题】:Twitter API Getting recent tweets by screen nameTwitter API 通过屏幕名称获取最近的推文
【发布时间】:2013-06-03 12:32:24
【问题描述】:

我正在使用下面的 api url 按用户的屏幕名称获取最新的推文。但不是拉最近的。有没有拉一样的网址?

https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=virendersehwag&count=10

【问题讨论】:

    标签: twitter


    【解决方案1】:

    您使用的是 1.0 版 API,该 API 已被弃用,并且将在四天内不再工作

    有关上述内容的更多信息,请阅读 this postthis post 和最后/最重要的是 this post,了解您将来需要如何向 twitter 发出经过身份验证的请求。

    对于 statuses,您需要使用 twitter 1.1 API 中的 GET statuses/user_timeline 方法。同样,如果没有身份验证,版本 1(它在 url 中有 /1/)API 请求将在 4 天后完全停止工作

    您可以在the 1.1 API docs 中阅读有关 1.1 API 的更多信息。

    【讨论】:

    • @SSS 很高兴我能帮上忙。我从您的个人资料中看到您使用 C#,所以我建议您的语言使用 this post - google 上应该有大量信息 :)
    猜你喜欢
    • 2016-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-28
    • 2014-02-13
    • 2015-07-15
    • 2013-12-25
    • 1970-01-01
    相关资源
    最近更新 更多