Hi Dewald,

Agree that we could have more explicit documentation here.

- Yes you must use an access token.
- Streaming privileges and roles are given to accounts at this time, not API
keys.
- As such, the account represented by the access token determines what level
of access is available to the streaming API
- In most cases, you need only use an access token generated from the "my
access token" feature available on dev.twitter.com for an app belonging to
an account with the access you need

Here's an example of connecting to the filter endpoint, tracking the terms
twitter and apple:

== signature_base_string
POST&http%3A%2F%2Fstream.twitter.com
%2F1%2Fstatuses%2Ffilter.json&oauth_consumer_key%3Dri8JxYK2ddwSV5xIUfNNvQ%26oauth_nonce%3DIb3Z5EQtPAMBC4h98xYxzCUyKa18oE1VOu94qoIW4No%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1289319159%26oauth_token%3D819797-torCkTs0XK7H2Y2i1ee5iofqkMC4p7aayeEXRTmlw%26oauth_version%3D1.0%26track%3Dtwitter%252Capple

== authorization_header
OAuth oauth_nonce="Ib3Z5EQtPAMBC4h98xYxzCUyKa18oE1VOu94qoIW4No",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1289319159",
oauth_consumer_key="ri8JxYK2ddwSV5xIUfNNvQ",
oauth_token="819797-torCkTs0XK7H2Y2i1ee5iofqkMC4p7aayeEXRTmlw",
oauth_signature="pVYJDfAeCrQhrv8aTksV6PsKdA8%3D", oauth_version="1.0"

== POST Body
track=twitter%2capple

Taylor

On Tue, Nov 9, 2010 at 7:43 AM, Dewald Pretorius <dpr...@gmail.com> wrote:

> Does that mean the application can use any active token that was
> granted via the normal OAuth connections process to authenticate on
> the Streaming API?
>
> If that is so, then even just that information in the documentation
> will be a help.
>
> From reading the documentation one cannot figure out whether you can
> use any access token, or must request a token from an endpoint
> specific to the Streaming API.
>
> On Nov 8, 7:46 pm, Tom van der Woerdt <i...@tvdw.eu> wrote:
> > Streaming API doesn't differ from the REST API with it's authentication.
> > Both use OAuth 1.0.
> >
> > Tom
> >
> > On 11/8/10 11:55 PM, Dewald Pretorius wrote:
> >
> > > Please update your documentation [1] for more detail information on
> > > authenticating on the Streaming API with OAuth.
> >
> > > We need to know the same type of information that you currently
> > > provide [2] for REST OAuth.
> >
> > > [1]
> http://developer.twitter.com/pages/stre0aming_api_concepts#authentica...
> > > [2]http://developer.twitter.com/pages/auth
>
> --
> 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
>

-- 
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

Reply via email to