"message": "Metadata scope doesn't allow format FULL", "status": "PERMISSION_DENIED"

Опубликовано: 13 Февраль 2025
на канале: mb-techs
169
like

Format
full: Returns the full email message data with body content parsed in the payload field; the raw field is not used. Format cannot be used when accessing the api using the gmail.metadata scope.
raw: Returns the full email message data with body content in the raw field as a base64url encoded string; the payload field is not used. Format cannot be used when accessing the api using the gmail.metadata scope.

The commented line in the video is below:
SCOPES = List.of("https://mail.google.com/", "https://www.googleapis.com/auth/gmail...", "https://www.googleapis.com/auth/gmail...", "https://www.googleapis.com/auth/gmail...", "https://www.googleapis.com/auth/gmail...", "https://www.googleapis.com/auth/gmail...");


Requires one of the following OAuth scopes:

https://mail.google.com/
https://www.googleapis.com/auth/gmail...
https://www.googleapis.com/auth/gmail...
https://www.googleapis.com/auth/gmail...

How to generate Credentials for Google APIs call.    • How to generate credentials for Googl...  
How to download source code from my video tutorials    • How to download source code in my web...  
Upgrade Microsoft Office in lest than 5 seconds    • Upgrade from  Microsoft office 2019 t...