Twitter API和运营商
我想使用JSON制作一个简单的Twitter API。这样做的目的是只获取已知公司(比如BigCorporation)发送到主公司(@BigCorporation)的帖子。这样做的目的是在大公司回答关注者的问题时(即大公司推特:@someguy我们正在回答你的问题)获取主要注释并过滤掉 所以推特来自:BigCoporation和@BigCorporation 我提出了这个API get,但我似乎得到了@BigCorporation或from:BigCorporation tweets。我只想要@BigCorp和来自:BigCorp的推文Twitter API和运营商,twitter,Twitter,我想使用JSON制作一个简单的Twitter API。这样做的目的是只获取已知公司(比如BigCorporation)发送到主公司(@BigCorporation)的帖子。这样做的目的是在大公司回答关注者的问题时(即大公司推特:@someguy我们正在回答你的问题)获取主要注释并过滤掉 所以推特来自:BigCoporation和@BigCorporation 我提出了这个API get,但我似乎得到了@BigCorporation或from:BigCorporation tweets。我只想要@
您的搜索查询格式不正确 应该是:
http://search.twitter.com/search.json?q=@edent%20from:edent&result_type=mixed
这将显示我发送的所有tweet,其中包含字符串“@edent”,您可以使用以下URL:
REST方法GEThttps://api.twitter.com/1/statuses/user_timeline.json
返回用户名(此处为BigCorporation)位于参数屏幕名称中的用户的最新推文(默认为20条)。当设置为true(或t或1)时,exclude\u repress
参数将排除您想要避免的tweet(“@someguy我们正在回答您的问题”)
您可以访问Twitter API网站了解更多详细信息。您确定BigCorp发布的推文是针对自己的,因此可以是:@BigCorp和from:BigCorp?