This is my headers thats being send.

Content-Type: application/x-www-form-urlencoded
Authorization: OAuth oauth_consumer_key: "0RaXE4T4CuMFJHI1jViEQ",
 oauth_signature_method="HMAC-
SHA1",oauth_timestamp="1307733172",oauth_nonce="F0F2B456BC9606278FB345323D753CEC",oauth_version="1.0",
 oauth_token="291935165-WqP8tSDqJyTewmsabMV7fiS7Y3ahxTXh60LSzFNb",
 oauth_signature="VbTbuDqv+IZZQQoO1CUuvPXYGKo="
Host: api.twitter.com
Accept: text/html, */*
Accept-Encoding: identity
User-Agent: Mozilla/3.0 (compatible; Indy Library)

On May 23, 8:22 pm, Arnaud Meunier <arn...@twitter.com> wrote:
> Hey Paul,
>
> If you can, I recommend you use header-based OAuth (passing OAuth related
> parameters in an Authorization header, instead of the query string).
> Which signature base string are you using? Are you using a library? If yes,
> could you share the code you're using? :)
>
> Arnaud / @rno <http://twitter.com/rno>
>
>
>
>
>
>
>
> On Sun, May 22, 2011 at 11:58 PM, Paul <jpb....@gmail.com> wrote:
> > Im trying to get mentions using the since_id parameter. If I leave out
> > the since_id parameter I get all my mentions, which is correct, but as
> > soon as I add the since_id, I get 401, unauthorised. Since Im VERY new
> > to the twitter and oAuth API, it might be the way my string is made
> > up, but I need some help please.
>
> >http://api.twitter.com/1/statuses/mentions.json?since_id=1&oauth_cons...{key}&oauth_nonce={key}&oauth_signature_method=HMAC-SHA1&oauth_signature={key}&oauth_timestamp=1306132513&oauth_token={key}&oauth_version=1.0
>
> > Where {key} are the correct values. I've tried adding the since_id at
> > the back but without any luck. From the source code it seems that the
> > signature is created on the base code of :
> >http://api.twitter.com/1/statuses/mentions.json?since_id=1and
> > afterwards the rest is added to that string.
>
> > Any ideas?
>
> > Thank you
>
> > --
> > Twitter developer documentation and resources:https://dev.twitter.com/doc
> > API updates via Twitter:https://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> >https://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> >https://groups.google.com/forum/#!forum/twitter-development-talk

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk

Reply via email to