Taylor,

This is great! Thanks for helping me out - nice to see Twitter
employees helping the developers! Great work.

- Greg

On Jun 15, 10:39 am, Taylor Singletary <taylorsinglet...@twitter.com>
wrote:
> Hi Greg,
>
> Went over your code a bit more and got it to work with TwitPic -- here's the
> new version:http://pastie.org/1005387
>
> Taylor Singletary
> Developer Advocate, Twitterhttp://twitter.com/episod
>
> On Tue, Jun 15, 2010 at 6:31 AM, Taylor Singletary <
>
> taylorsinglet...@twitter.com> wrote:
> > One thing to watch out for with OAuth Echo is that you don't actually
> > execute the verify_credentials call yourself when you're building the
> > authorization header for the request -- by doing so, you will have marked
> > the oauth_nonce you used as already processed. Looking at your code, I don't
> > think that's your issue.
>
> > Your code shows you tacking on the oauth_token to the authorization header,
> > but it needs to be part of your entire signed request. You should be using
> > your oauth_token while building your signature base string, and then use
> > your oauth_token_secret as part of the composite signing key you use to sign
> > the request -- then generate your HTTP header and attach it to the OAuth
> > Echo request to twitpic.
>
> > Taylor Singletary
> > Developer Advocate, Twitter
> >http://twitter.com/episod
>
> > On Tue, Jun 15, 2010 at 4:30 AM, Greg <gregory.av...@gmail.com> wrote:
>
> >> Hello all,
>
> >> I've trying to get this to work for the past couple of days - but
> >> every request to TwitPic returns a 401. I'm signing the requests with
> >> my ConsumerKey and consumerSecret to Twitter using the verify_account
> >> API call. Then I'm adding in the Oauth Realm and the OAuth Token as
> >> part of the header. Can anyone point out what I am doing wrong?
>
> >> Code Here:http://pastie.org/1005179
>
> >> Thanks again,
> >> Greg
>
>

Reply via email to