如何在 Twitter 流之间切换
我可以访问 Twitter 流gardenhose。虽然我想使用它,但有时我想在测试代码时降低输入级别。
如何在花园软管和喷雾器之间切换?
我只能看到您通过 http://stream.twitter.com/1/statuses/sample.json
调用流的位置。您是否只是省略您的用户 ID 来获取流的缩小版本?
I have access to the Twitter stream gardenhose. Though I want to use it, at times I want to scale down the level of input as I'm testing my code.
How do I switch between gardenhose and spritzer?
I only see where you call the stream via http://stream.twitter.com/1/statuses/sample.json
. Do you simply omit your userid to get the scaled-down version of the stream?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为答案是“使用另一个帐户”。我知道您必须在哪里获取密钥和访问令牌。我假设这些被分配给一个帐户,并且每个帐户只有一个用于访问流。因此,如果您想缩小规模,只需使用尚未被授予访问 Gardenhose 权限的帐户即可。
可能不是最优雅的答案,但我相信这是一个答案......
I'm thinking the answer is "Use another account." I see where where you have to get a key and access tokens. I'm assuming these are given to an account and each account only has one for accessing the stream. Thus, if you wanted to scale down, simply use an account that has not been granted access to gardenhose.
Might not be the most elegant answer, but I believe it is AN answer...