The application won't display on
http://twitter.com/account/connectionsuntil after the application has
successfully gotten an access token from
Twitter.

If the application is listed on http://twitter.com/oauth_clients then it
should be working and there is probably an issue with your code/request.

On Thu, Mar 19, 2009 at 12:14, Pankaj Jain <pjain...@gmail.com> wrote:

>
> Josh,
> Thanks for that.  It's a little further down the line from where I am
> but I figured out the problem I was having when requesting the token.
> I was using a POST method where I should have been using a GET
> method.  That got me past the Token Request.  However, I am getting
> stuck at the authorization request stage.  I think it might have
> something to do with Twitter because I've authorized my app but it
> doesn't appear in http://twitter.com/account/connections
>
> Gonna keep trying different things until something appears to work but
> if anyone has suggestions on using Perl for Twitter OAuth, please
> chime in.
> Cheers,
> Pankaj
>
> On Mar 19, 8:40 pm, Joshua Perry <j...@6bit.com> wrote:
> > I don't know if this will help you, I'm using C# so I don't know exactly
> > how Net::OAuth is supposed to work, but here is a capture of the HTTP
> > request that I am making, perhaps you can compare with your own:
> >
> > GET /statuses/friends_timeline.xml?count=50&since_id=1 HTTP/1.1
> > Authorization: OAuth
> >
> oauth_token="10471832-XMtqq0fl5bpFI5aiJjeopon4QpL9jcwRBwspyf...",oauth_token_secret="vAwMlDtkbtkjxjtZhz8x3ngw4Vk3ZmvpHDAhVuMw",oauth_nonce="ac4cdbe3-98db-4017-a9b3-e62ceb5eaf17",oauth_consumer_key="OxuuZnHZuTr6ZxjrL3yzQ",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1237476772",oauth_version="1.0",oauth_signature="j29o0oSQhwW5yel7Vb9L7AeI8ks%3D"
> > Host: twitter.com
> > Connection: Keep-Alive
> >
> > HTTP/1.1 200 OK
> > Date: Thu, 19 Mar 2009 15:32:52 GMT
> > Server: hi
> > Last-Modified: Thu, 19 Mar 2009 15:32:52 GMT
> > Status: 200 OK
> > ETag: "610c5cec871f8349f8702a1e2750c6f7"
> > Pragma: no-cache
> > Cache-Control: no-cache, no-store, must-revalidate, pre-check=0,
> > post-check=0
> > Content-Type: application/xml; charset=utf-8
> > Content-Length: 50020
> > Expires: Tue, 31 Mar 1981 05:00:00 GMT
> > X-Revision: 0a193ab93baaf1cd730d3be3f5d9dfe9492fadb5
> > X-Transaction: 1237476772-9875-18873
> > Set-Cookie:
> >
> _twitter_sess=BAh7BzoHaWQiJWZkZjU1ODAyOTlmMGRhMDRmZWM4ZDcyMDY0N2Y4ZmE4Igpm%250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG%250AOgpAdXNlZHsA--e6dfcd9afd0900525beb255fc64b3851606331af;
> > domain=.twitter.com; path=/
> > Vary: Accept-Encoding
> > Connection: close
> >
> > Pankaj Jain wrote:
> > > Hi All,
> > > I'm working on converting a Perl Module that I wrote for Twitter to
> > > using OAuth.  I'm using the Net::OAuth module to help me and I'm
> > > falling flat on my face.  I'm an OAuth noob so forgive me.  When I
> > > submit my request, I keep getting a response back saying "Missing
> > > Authenticate Header".  Below is the snippet of code I'm using at the
> > > moment.  I'm obviously missing something but I have no idea what.  I
> > > haven't been able to find any info on the Twitter OAuth FAQ to help me
> > > figure this out.  Any and all help is greatly appeciated.
> > > Cheers,
> > > Pankaj
> >
> > > <code>
> >
> > >         my $request = Net::OAuth->request("request token")->new(
> > >             consumer_key => $args{cons_key},
> > >             consumer_secret => $args{cons_secret},
> > >             request_url => 'https://twitter.com/oauth/request_token',
> > >             request_method => 'post',
> > >             signature_method => 'HMAC-SHA1',
> > >             timestamp => '1191242090',
> > >             nonce => 'hsu94j3884jdopsl'
> > >         );
> > >         $request->sign;
> > >         $ua->default_header('Content-type' => 'application/x-www-form-
> > > urlencoded');
> > >         $ua->default_header('Authorization' => $request-
> >
> > >> to_authorization_header('twitter.com'));
> >
> > >         my $res = $ua->post($request->to_url); # Post message to the
> > > Service Provider
> >
> > > </code>
>



-- 
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.

Reply via email to