-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidArgumentException in Client.php line 433: Invalid token format #39
Comments
did you found any solution? |
no, please help me! |
I am stuck too. I already did exactly what you did. Set values in .env, download json file provided by Google console and also put it into storage/app/gmail/tokens. One thing I know is we must provide access_token, refresh_token, and expires_in inside credentials.json, but I dont know the proper way to afford this. |
@Artanty, @fajarainul, any news? I'm stuck here too. |
No, i tried another library and wrapper for connect to gmail via api, but nothing. |
Hey guys I have an example of my gmail-json.json
My
Hope it helps. |
Yes, it helped! Thank you! |
I'm really glad to hear that @Artanty |
We don't need to download .json file and put it into storage/app/gmail/tokens. |
Thanks @dacastro4 but I must be doing something wrong. I don't know if it is in the config or in the Google console. Is there any step by step tutorial or any working example somewhere I can look at? |
@pqrs what kind of error are you getting? |
No credentials found. |
Solved! It works now... nothing like restart from the beginning! :) |
hey Danial access_token same of GOOGLE_CLIENT_ID? |
Hello! Help me pls!
Can't understand how to modify the config file config/gmail.php.
What to do inside of it?
project id,client id,client secret and redirect I set in .env file.
Is it necessary to do something with this string ↓ ?
'credentials_file_name' => env( 'GOOGLE_CREDENTIALS_NAME', 'gmail-json' ),
I downloaded .json credentials file from google console, pasted it to:
"[my project]/storage/app/gmail/tokens"
then I renamed it to: 'gmail-json.json'
Is it right?
The text was updated successfully, but these errors were encountered: