Comments (15)
Hey guys I have an example of my gmail-json.json
{
"access_token": "ACCESS",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "REFRESH",
"created": 1522885414,
"email": "EMAIL"
}
My .env
GOOGLE_PROJECT_ID=PROJECT_ID
GOOGLE_CLIENT_ID=ID.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=SECRET
GOOGLE_REDIRECT_URI=/oauth/gmail/callback
Hope it helps.
from laravel-gmail.
After that I go to index page where I inserted:
{{ LaravelGmail::user() }}
@if(LaravelGmail::check()) logout @else login @endifand get "Invalid token format" until I delete this check
from laravel-gmail.
did you found any solution?
from laravel-gmail.
no, please help me!
from laravel-gmail.
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.
from laravel-gmail.
@Artanty, @fajarainul, any news? I'm stuck here too.
from laravel-gmail.
No, i tried another library and wrapper for connect to gmail via api, but nothing.
Although gCalendar api and socialite with Google auth work fine.
from laravel-gmail.
Hope it helps.
Yes, it helped!
I realized that my mistake was not in gmail-json.json
I simply wrote "GOOGLE_APP_SECRET" instead of "GOOGLE_CLIENT_SECRET" in .env file.
Thank you!
from laravel-gmail.
I'm really glad to hear that @Artanty
from laravel-gmail.
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.
We don't need to download .json file and put it into storage/app/gmail/tokens.
This file is creating automatically on callback function "LaravelGmail::makeToken();"
delete it if you put it into storage/app/gmail/tokens.
from laravel-gmail.
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?
from laravel-gmail.
@pqrs what kind of error are you getting?
from laravel-gmail.
No credentials found.
from laravel-gmail.
Solved! It works now... nothing like restart from the beginning! :)
from laravel-gmail.
Hey guys I have an example of my gmail-json.json
{ "access_token": "ACCESS", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "REFRESH", "created": 1522885414, "email": "EMAIL" }
My
.env
GOOGLE_PROJECT_ID=PROJECT_ID GOOGLE_CLIENT_ID=ID.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=SECRET GOOGLE_REDIRECT_URI=/oauth/gmail/callback
Hope it helps.
hey Danial access_token same of GOOGLE_CLIENT_ID?
from laravel-gmail.
Related Issues (20)
- production.ERROR: refresh token must be passed in or set as part of setAccessToken {"userId":1,"exception":"[object] (LogicException(code: 0): refresh token must be passed in or set as part of setAccessToken at /home/forge/website/vendor/google/apiclient/src/Client.php:332) HOT 2
- Getting error while replying to email HOT 4
- Send Email BCC not working
- Get signature of the user
- Enable function for application wide access
- I have got issue in php version 8.1 Is it available for PHP version 8.1 or laravel10? HOT 2
- Error 400: redirect_uri_mismatch
- refresh token must be passed in or set as part of setaccesstoken HOT 2
- An address can be an instance of Address or a string ("array" given).
- Not supported for Laravel 10 HOT 3
- Multiple user login not working HOT 3
- Hello HOT 1
- Google\\Service\\Exception 401 Request had invalid authentication credentials.
- Can you provide a method for forwarding the email
- Dacastro4\LaravelGmail\Services\Message\Mail::__construct(): Argument #1 ($message) must be of type ?Google_Service_Gmail_Message, Google\Service\Exception given HOT 6
- bootstrap-3.3.7.min.js: 6 vulnerabilities (highest severity is: 6.1)
- jquery-3.1.1.min.js: 4 vulnerabilities (highest severity is: 6.1) - autoclosed HOT 1
- google/apiclient-v2.2.3: 9 vulnerabilities (highest severity is: 9.1)
- orchestra/testbench-v3.5.5: 8 vulnerabilities (highest severity is: 9.8)
- Error when replying an email HOT 1
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 laravel-gmail.