Closed GoogleCodeExporter closed 8 years ago
There was a known issue with OAuth PECL 1.1, which is fixed in trunk. Perhaps
the 1.2 version was affected as well. Can you please try checking out trunk
and see if the problem remains?
Original comment by ekoleda+devrel@googlers.com
on 28 Jun 2011 at 6:12
Hi eric,
Thanks for your prompt reply.
i have also tried trunk example
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/Oth
er/UseOAuth.php ,but no change in expected output.
Can you please suggest me way so that i can use oauth for my adwords example.
Thanks
Original comment by chirag.e...@gmail.com
on 29 Jun 2011 at 6:15
My apologies, I had meant for you to check out the entire library from trunk,
as the OAuth changes were not made in the example.
Original comment by ekoleda+devrel@googlers.com
on 29 Jun 2011 at 1:43
Hi,
I also take entire library from
http://google-api-adwords-php.googlecode.com/svn/trunk/
But no change in result still had a same output.
Original comment by chirag.e...@gmail.com
on 29 Jun 2011 at 4:24
[deleted comment]
Hi,
When i have uninstall oauth(pecl uninstall oauth). and than try to run example
useOAuth.php(using AndySmithOAuthHandler.php), it is giving me "The token is
invalid."
Thanks.
Original comment by chirag.e...@gmail.com
on 30 Jun 2011 at 9:35
Have you been able to use the OAuth playground correctly?
http://googlecodesamples.com/oauth_playground/
Original comment by ekoleda+devrel@googlers.com
on 30 Jun 2011 at 1:36
Hi,
Yes, i am able to use OAuth playground.
Thanks,
Original comment by chirag.e...@gmail.com
on 30 Jun 2011 at 4:06
[deleted comment]
Hi,
When i calling callbackurl under RequestOAuthToken(), useOAuth.php is redirecting to callbackurl.on callbackurl i am also getting oauth_verifier. but when i calling UpgradeOAuthToken($verifier) under that i am not getting any of the values for oauthinfo. i think that is the problem for getting error message "The token is invalid.", as there i am not getting oauth_token_secret. Please help me how i can prevent values for oauthinfo.
Thanks
Original comment by chirag.e...@gmail.com
on 4 Jul 2011 at 4:44
Hi Eric,
Can you help me out what i am doing wrong?
Thanks
Original comment by chirag.e...@gmail.com
on 5 Jul 2011 at 6:12
Hi,
The UseOAuth.php example doesn't utilize a callback URL. Have you modified the
example?
- Eric
Original comment by ekoleda+devrel@googlers.com
on 6 Jul 2011 at 2:57
Hi Eric,
Yes, i have modified the example.
$user->RequestOAuthToken("http://localhost/adwords/examples/Other/testOAuth.php"
);
// Get the authorization URL for the OAuth token.
$authorizationUrl = $user->GetOAuthAuthorizationUrl();
header("Location:$authorizationUrl");
And under testOAuth.php i have get the value for oauth_verifier.
$user = new AdWordsUser();
$user->LogDefaults();
$verifier = $_GET['oauth_verifier'];
$user->UpgradeOAuthToken($verifier);
Please Note that i have also included all required file.
Thanks,
chirag
Original comment by chirag.e...@gmail.com
on 6 Jul 2011 at 3:42
Hi Chirag,
You need to persist the OAuth token and token secret between requests, for
instance in the PHP session. The sample web application stores the entire
AdWordsUser in session:
http://code.google.com/p/google-api-adwords-php/source/browse/apps/sample-webapp
/public/login.php
I'm closing this issue since it is not a problem with the library.
- Eric
Original comment by ekoleda+devrel@googlers.com
on 6 Jul 2011 at 3:50
Original issue reported on code.google.com by
chirag.e...@gmail.com
on 28 Jun 2011 at 5:44