-
Notifications
You must be signed in to change notification settings - Fork 49
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
Support for Write/Modifications methods in Gmail Service. #100
Comments
It's super easy to make your own Gmail service. Take a look at Extending a Core Service in the docs. You just create a new class (I called mine There's some extra work to load and register the service but this Facebook Importer plugin does a pretty job as an example. |
Thanks, @markbiek for the reply. |
@ashishgoyal247 The issue is that you can't perform write operations using the |
@ashishgoyal247 You shouldn't need to create a new service to modify the scope. There might be something more granular (there are all kinds of filters and actions in Keyring) but you could use the service's |
I solved this by adding it into my own plugin main php file (not the keyring) this:
|
In the Gmail service, currently, we have scopes that support read-only methods like getting and listing.
const SCOPE = 'https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/userinfo.profile';
We have to add scopes like
https://www.googleapis.com/auth/gmail.modify
that will enable Keyring to perform more operations.The text was updated successfully, but these errors were encountered: