Twitter Api 库? +转发

发布于 2024-08-23 08:18:20 字数 1539 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

樱桃奶球 2024-08-30 08:18:20

我目前正在扩展 Twitterizer 的新重写 (http://code.google. com/p/twitterizer),一旦将正确的方法添加到新版本中,您应该能够以相当直接的方式执行此操作。

  1. 获取您要转发的用户的用户时间线。
  2. 找到推文(也称为状态)。
  3. 调用转发方法。

以下是您可能需要的原始 API 调用:

  1. https:// dev.twitter.com/docs/api/1/get/statuses/user_timeline
  2. (步骤 2 没有 API 调用)
  3. https://dev.twitter.com/docs/api/1/get/statuses/retweets/%3Aid

如果您在时间紧迫的情况下,我可能可以很快地创建这些特定的方法,因为我们库的基础已经准备就绪。请告诉我。

无论你选择什么方向,一定要使用OAuth进行用户授权。 (这就是我们刚刚重写的 Twitterizer)基本身份验证将在 6 月的某个时候停止运行。 (详细信息请参见:http://groups. google.com/group/twitter-api-announce/browse_thread/thread/c2c4963061422f28?hl=en)

I am currently in the process of expanding the new re-write of Twitterizer (http://code.google.com/p/twitterizer), once the proper methods have been added to the new version, you should be able to do this in a fairly straight forward way.

  1. Get the user timeline of the user you want to retweet.
  2. Locate the tweet (aka status).
  3. Call the retweet method.

Here are the raw API calls you'll probably need:

  1. https://dev.twitter.com/docs/api/1/get/statuses/user_timeline
  2. (step 2 doesn't have an API call)
  3. https://dev.twitter.com/docs/api/1/get/statuses/retweets/%3Aid

If you're in a time crunch, I can probably get those particular methods created quite quickly, as the underpinnings of our library is ready to go. Just let me know.

No matter what direction you choose, be absolutely sure to use OAuth for user authorization. (That's what we just re-wrote Twitterizer) Basic authentication will cease to function sometime in June. (Details here: http://groups.google.com/group/twitter-api-announce/browse_thread/thread/c2c4963061422f28?hl=en)

吃不饱 2024-08-30 08:18:20

看看我的第一个列表似乎是最全面的。然而,linq 2 Twitter 似乎在阅读方面很有前途。

Looking at the list I'd the first appears to be most comprehensive. However the linq 2 Twitter seems to be promising for the reading stuff.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文