使用 twitter api - 控制台应用程序的步骤

发布于 2024-10-01 19:38:47 字数 237 浏览 0 评论 0原文

我正在尝试开发一个非常基本的控制台应用程序,它将检索用户的主页(用户关注的人的 Twitter 更新)并保存它(json)。我在互联网上阅读了很多内容,但仍然不确定我是否需要“注册”这样的应用程序,如果是的话,我怎么可能为控制台应用程序做到这一点。 我想获得关于如何继续开发的逐步概要。对于像我这样的这个领域的菜鸟来说,这有点复杂。我知道用于完成这项工作的现成库很多,但我对应该如何处理这个问题缺乏总体了解。

非常感谢,

阿比

I am trying to develop a very basic console application that will retrieve a user's homepage (twitter updates from people followed by the user) and save it (json). I've read a lot on the internet, but still am unsure of whether i need to 'register' such an application, and if yes, how could I possibly do it for a console app.
I'd like to get a step-by-step rundown on how I should proceed with the development. Its just a tad complex for a noob like me in this field. I'm aware that off-the-shelf libraries for doing this job are aplenty, but I lack a general understanding of how I should approach this.

Much appreciated,

Abhi

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

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

发布评论

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

评论(1

情感失落者 2024-10-08 19:38:47

答案实际上取决于几件事。

如果您的应用程序不会尝试访问有关受保护用户的信息(用户可以选择受到保护,以便他们的信息和推文保持私密),那么您的应用程序将不需要任何用户的授权,也不需要注册或交易与 OAuth。如果不使用 OAuth,每个 IP 地址每小时只能发出 150 个请求。

如果您的应用程序每小时需要发出超过 150 个请求,或者需要访问受保护的用户信息,那么您将需要注册您的应用程序并代表用户发出请求。该用户可能是您的 Twitter 帐户。这将为每个授权用户每小时提供最多 300 个请求。

我无法向您提供有关如何最好地使用 TweetSharp 编写控制台应用程序的详细信息,但我熟悉 Twitterizer(我编写了它)。

The answer really depends on a few things.

If your application is not going to try to access information about protected users (users can opt to be protected so their information and tweets are kept private) your application will not need to be authorized by any user and will not need to be registered or deal with OAuth. Without using OAuth, you will be limited to making 150 requests per hour, per IP address.

If your application needs to make more than 150 requests an hour, or needs to access protected user information, then you will need to register your application and make requests on behalf of a user. This user could be your twitter account. This will give you up to 300 requests per hour per authorized user.

I can't give you much detail as to how to best write a console application with TweetSharp., but I am familiar with Twitterizer (I wrote it).

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