[twitter-dev] OAuth problem: can authenticate, but cant fetch timelines.

2010-05-21 Thread Miguel de Icaza
Hello folks, I have my client speaking OAuth to twitter for the entire initial dance up to getting my access token. But once I try using the access token to call: http://api.twitter.com/1/statuses/mentions.json?count=200 All I get from twitter is a 401 with the following body:

Re: [twitter-dev] OAuth problem: can authenticate, but cant fetch timelines.

2010-05-21 Thread Taylor Singletary
Hi Miguel, Your signature base string is off by just a little bit here -- you're globbing the query parameter count on to the original URL when it should be separated out.. the query string part of the URL should be represented only as key/value pairs, sorted with the other OAuth parameters. Your

Re: [twitter-dev] OAuth problem: can authenticate, but cant fetch timelines.

2010-05-21 Thread Dana Contreras
When you're constructing your signature base string, don't include the query parameters in the URL. The query parameters do need to be included in the next part of the signature base string though. Here's what the base string in your example should look like:

Re: [twitter-dev] OAuth problem: can authenticate, but cant fetch timelines.

2010-05-21 Thread Dana Contreras
...and I see Taylor beat me to it. ;) On Fri, May 21, 2010 at 10:34 AM, Dana Contreras d...@twitter.com wrote: When you're constructing your signature base string, don't include the query parameters in the URL. The query parameters do need to be included in the next part of the signature base