About the document you are referring to: there are three types of
streams: normal streams, user streams and site streams. In most cases
when the documentation refers to Streaming, it refers to the Normal
Streams (= filter, sample, firehose, etc).
There would be one more issue which requires mentioning: JavaScript's
"Same-origin policy". You can't make a request directly to the Twitter
API via JavaScript: you *will* need a proxy on your own server.
Tom
There would be one more issue which requires mentioning: JavaScript's
"Same-origin policy". You can't make a request directly to the Twitter
API via JavaScript: you *will* need a proxy on your own server.
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: http://groups.google.com/group/twitter-development-talk
I will indeed correct you: rate limits are based on account when using oauth.
When talking about rate limits it is important to be clear about the
API being used, as each has their own.
For the REST API (requests to api.twitter.com) the limit is 150
requests per hour unauthenticated and 350 request per hour for an
authenticated user. When you make an authenticated request the users
rate limit is affected, not the IPs.
The Search API has it's own rate limit based on the IP the request
comes from. There is no authenticating for Search so all requests are
IP rate limited.
The Streaming APIs do not have rate limits in the same way. For the
Streaming API the rate limit is controlled by the predicate limits
(5,000 user ids etc) and the allowed sampling rate (1% etc).
I hope that clarifies how the rate limits apply.
Best
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris
Regarding Toms proxy comment. I think Tom was suggesting it for the
userstreams functionality. As userstreams require a long poll
connection there are various other obstacles to overcome if it were to
be run from within the browser directly. In addition, userstreams are
for single user use and not suitable for web applications where
multiple users interact. Instead the something like the Site Streams
service (currently in beta) could be better suited.
Tom
More about xAuth:
http://dev.twitter.com/pages/xauth
--
Thomas Mango
tsm...@gmail.com