>
> twitterouath.php
> 100: function getAccessToken($token = NULL) {/*{{{*/
> 101: $r = $this->oAuthRequest($this->accessTokenURL());
> 102: $token = $this->oAuthParseResponse($r);
> 103: $this->token = new OAuthConsumer($token['oauth_token'],
> $token['oauth_token_secret']);
> 104: return $token;
> 105: }/*}}}*/
>
It could be that you are not getting an expected response from Twitter.
This is the code that leads up to that request:
index.php
> 62: $to = new TwitterOAuth($consumer_key, $consumer_secret,
> $_SESSION['oauth_request_token'], $_SESSION['oauth_request_token_secret']);
> 63: /* Request access tokens from twitter */
> 64: $tok = $to->getAccessToken();
>
Make sure line 62 is getting the request tokens and if that does not work
debug http() and oAuthRequest().
On Tue, Feb 17, 2009 at 07:39, Rahul Waghmare <[email protected]>wrote:
> i am using http://twitter.abrah.am/ code example for twitter oauth ...
>
> i am facing on error as *Notice*: Undefined index: oauth_token in
> twitterOAuth.php online 103
>
>
> what might be missing ?
>
>
> On Mon, Feb 16, 2009 at 4:33 AM, Paul Kinlan <[email protected]>wrote:
>
>> Ok, I find it hard to think it is just a .Net thing...... in fact I am
>> right it is not a .Net thing... It was me, wrong url, didn't include the
>> "account" on the request.
>>
>> All works now.
>>
>> Sorry guys :)
>>
>>
>> Paul.
>>
>> 2009/2/15 Chad Etzel <[email protected]>
>>
>>>
>>> I am not familiar with the .NET library (or coding in .net for that
>>> matter), but I know several people have been able to get
>>> verify_credentials with a GET using the PHP OAuth lib and Abraham's
>>> great twitter OAuth wrapper lib.
>>>
>>> From his email:
>>> Live example: http://twitter.abrah.am
>>>
>>> This will "OAuth you in" and display the results of verifiy_credentials.
>>>
>>> Hopefully someone else with .NET experience on this list will be able
>>> to help more..
>>> -Chad
>>>
>>> On Sun, Feb 15, 2009 at 3:42 PM, Paul Kinlan <[email protected]>
>>> wrote:
>>> > Hi Chad,
>>> >
>>> > I definatly can't get anything other than a 401's on GET requests to
>>> > verify_credentials when using oAuth. But I can successfully get the
>>> direct
>>> > messages for the user that is oAuthed in.
>>> >
>>> > Paul.
>>> >
>>> > 2009/2/15 Paul Kinlan <[email protected]>
>>> >>
>>> >> Hmm,
>>> >>
>>> >> Getting Direct Messages work, but if I try verify_credentials it
>>> 401's,
>>> >> which is why I was thinking verify_credentials is not working. Using
>>> .Net
>>> >> and using http://code.google.com/p/oauth-dot-net/ (OAuth dot net)
>>> >>
>>> >> Paul.
>>> >>
>>> >> 2009/2/15 Chad Etzel <[email protected]>
>>> >>>
>>> >>> verify_credentials *does* work with OAuth. Which language/lib are
>>> you
>>> >>> using? Maybe someone using that same lang could chime in...
>>> >>>
>>> >>> -Chad
>>> >>>
>>> >>> On Sun, Feb 15, 2009 at 2:53 PM, Paul Kinlan <[email protected]>
>>> >>> wrote:
>>> >>> > Hi,
>>> >>> >
>>> >>> > Is it me of does verify_credentials method not work with oAuth? I
>>> >>> > understand why people might think it shouldn't work, but there
>>> seems to
>>> >>> > be
>>> >>> > no reasonable way to determine the authenticated user's profile
>>> >>> > information.
>>> >>> > I can't reliably use the user_timeline or direct_messages or
>>> replies
>>> >>> > because
>>> >>> > there might be none present.
>>> >>> >
>>> >>> > Kind Regards,
>>> >>> > Paul Kinlan
>>> >>> >
>>> >>> > Twe2 Ltd
>>> >>> >
>>> >>
>>> >
>>> >
>>>
>>
>>
>
--
Abraham Williams | http://the.hackerconundrum.com
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from: Madison Wi United States.