简体   繁体   English

使用Twitter搜索API V1.1在c#中搜索推文

[英]Search Tweets with Twitter Search API V1.1 in c#

I have an application that uses the twitter search API V1. 我有一个使用twitter搜索API V1的应用程序。

The main target of this application is to get tweets from a specific topic. 此应用程序的主要目标是从特定主题获取推文。 With the twitter API V1 I just use this URL to search: http://search.twitter.com/search.atom?q=Topic&rpp=100&page=1 使用twitter API V1我只需使用此URL进行搜索: http//search.twitter.com/search.atom?q = Topic&rpp = 100&page = 1

But now there is an update of the twitter API to V1.1. 但现在有一个更新的Twitter API到V1.1。

I was searching how it works and you need to add some authentication tokens and keys when you make connection with the twitter API (Consumer key, Consumer secret, Access token & Access token secret). 我正在搜索它是如何工作的,当你使用twitter API(Consumer key,Consumer secret,Access token&Access token secret)连接时,你需要添加一些身份验证令牌和密钥。

I have really no idea how to add these keys/tokens to my URL or how to make connection with the new twitter API. 我真的不知道如何将这些键/令牌添加到我的URL或如何与新的twitter API建立连接。

If someone has any experience in getting tweets in C# (console application) with the new API I would like to know more about it. 如果有人有使用新API在C#(控制台应用程序)中获取推文的经验,我想了解更多相关信息。

I know this is an old question but I have created a GitHub project that calls the twitter api and has a console project included. 我知道这是一个老问题,但我创建了一个调用twitter api并包含控制台项目的GitHub项目。

It is available here: 它可以在这里:

https://github.com/andyhutch77/oAuthTwitterTimeline https://github.com/andyhutch77/oAuthTwitterTimeline

I had to generate an oAuth consumer key and secret from Twitter at: 我不得不在Twitter上生成一个oAuth消费者密钥和秘密:

https://dev.twitter.com/apps/new https://dev.twitter.com/apps/new

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM