prashantgaur2000 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

refreshToken('yourrefreshcode') never works just halts php script #158

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Getting access codes including refresh code using 'offline' SUCCESS
2. storing refresh code and other required details clientID,secret etc
3. executing $newtoken = 
$client->refreshToken('XXXXXXXXLIIojggEcltSXn1P4F_rX9dJl2ROQ8lm0yNHXTk');

What is the expected output? What do you see instead?
expected to recieve a new token to authenticate everything else works correctly 
but I would like to use the refreshToken. this does work using same information 
on 0auth playground

What version of the product are you using? On what operating system?
LAtest as of JULY2012

Please provide any additional information below.
snippet of code
$client = new apiClient();
$client->setApplicationName("Google Calendar PHP Starter Application");
$cal = new apiCalendarService($client);
$client->setAccessType('offline'); echo 'trying refresh1';
$newtoken = $client->refreshToken('XXXXXXXXXXXltSXn1P4F_rX9dJl2ROQ8lm0yNHXTk');
echo 'trying refresh2';

never gets to echo 'trying refresh2';

Original issue reported on code.google.com by r...@elitegraphicsuk.com on 19 Jul 2012 at 9:36

GoogleCodeExporter commented 8 years ago
Same here :(

Original comment by seguimie...@gmail.com on 10 Aug 2012 at 8:06

GoogleCodeExporter commented 8 years ago
Same here! :(

Original comment by donbun...@gmail.com on 14 Sep 2012 at 3:19

GoogleCodeExporter commented 8 years ago
Same here! :(

Original comment by joonlee0...@gmail.com on 21 Feb 2013 at 7:09

GoogleCodeExporter commented 8 years ago
Using the refresh token requires the same client ID, and specifying the client 
secret. 

Original comment by ianbar...@google.com on 22 Mar 2013 at 2:29