Comments (11)
Almost 2 day and 2 night to figured it out :( the example on the quickstart is not good example.. because as google developer, the dev should test before put at the website as example.. now many newbie cannot start with quickstart hehe...
from php-samples.
No problem.. hope u can test the eric way, if any problem u can roger here, eric will fix the bug...
from php-samples.
This error is being thrown because the saved tokens in token.json
doesn't contain a refresh_token
, which is needed to refresh the access token after it's expired. At the moment the code isn't checking that a refresh token exists before it attempts to refresh the access token, nor handling the case when one doesn't exist. I'll put together a PR to fix this.
from php-samples.
The code from the developer contain a bug to handle the refreshtoken as today 9 September 2018.
i already fix the solution for this... you must save 2 location for token
- handlerefeshtoken.json
- token.json
hope this help...
from php-samples.
How long can you solve this problem?
from php-samples.
from php-samples.
I pushed out some new code that handles this case better. Please try that new code and let me know if you still have a problem.
from php-samples.
is it auto refresh-token for my apps or I have to copy the authenication from the warn on the CMD?
from php-samples.
if I wanna auto the refresh-token, do I need some file to get that?
from php-samples.
Hyperaktiv, do u already test the code? Suppose the code from eric now it will auto refresh the new token when reach after 3600 second..
from php-samples.
ah, my fault, I've not read carefully.. Sorry
Thank you very much. Hope that I can keep in touch with you
from php-samples.
Related Issues (20)
- The scope for this snippet is wrong
- quickstart.php sample for gmail has bad scope
- PHP 8.0, Linux OS quickstart.php (via https://developers.google.com/calendar/api/quickstart/php) doesn't work HOT 4
- getBody is undefined when using package
- [SyncRepoSettings bot] - Invalid config file
- Bring Back PHP Samples (Support?!) Please HOT 2
- Throughout PHP samples incorrect argmentes array([]) HOT 1
- Gmail QuickStart uses deleted OOB OAuth flow
- Whats with the formatting of PHP samples??
- PHP Sample for Docs does not work with Google Forms ID HOT 1
- Upload Image in Google Drive Using Google Drive API with PHP Code Run on Web Server
- Redirect URI/domain for plugin
- Is it possible to move created file inside folder by folder id? Or Can we create spreadsheet directly inside folder by folder ID? HOT 1
- get all rows in one sheet
- how can i reach token.json and credentials.json ?
- credentials.json fatal error HOT 1
- google form sample HOT 1
- Please give us ideal how to resolve this issue ?
- Example is missing a state variable
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-samples.