[twitter-dev] Twitter Mentions since_id

2011-05-23 Thread Paul
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=1oauth_consumer_key={key}oauth_nonce={key}oauth_signature_method=HMAC-SHA1oauth_signature={key}oauth_timestamp=1306132513oauth_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=1 and
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


Re: [twitter-dev] Twitter Mentions since_id

2011-05-23 Thread Arnaud Meunier
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=1oauth_consumer_key={key}oauth_nonce={key}oauth_signature_method=HMAC-SHA1oauth_signature={key}oauth_timestamp=1306132513oauth_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=1 and
 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