We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Response from running php quickstart.php
php quickstart.php
Labels: - CHAT - SENT - INBOX - IMPORTANT - TRASH - DRAFT - SPAM - CATEGORY_FORUMS - CATEGORY_UPDATES - CATEGORY_PERSONAL - CATEGORY_PROMOTIONS - CATEGORY_SOCIAL - STARRED - UNREAD - NWCR - TechConnect - Unwanted
Message: { "error": { "code": 403, "message": "Request had insufficient authentication scopes.", "errors": [ { "message": "Insufficient Permission", "domain": "global", "reason": "insufficientPermissions" } ], "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", "domain": "googleapis.com", "metadata": { "method": "caribou.api.proto.MailboxService.ListLabels", "service": "gmail.googleapis.com" } } ] } }
quickstart.php
$client->setScopes('https://www.googleapis.com/auth/gmail.modify');
The text was updated successfully, but these errors were encountered:
davidharcombe
No branches or pull requests
Expected Behavior
Response from running
php quickstart.php
Actual Behavior
Steps to Reproduce the Problem
quickstart.php
exactly as given.How to fix:
quickstart.php
by setting the scopes to something usable:$client->setScopes('https://www.googleapis.com/auth/gmail.modify');
Specifications
The text was updated successfully, but these errors were encountered: