You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to delete a message using
gmail.users().messages().delete("me", msgId).execute();
But it gives exception. However sending the message works.
GoogleJsonResponseException: Request had insufficient authentication scopes.
Summary
I am trying to delete a message using
gmail.users().messages().delete("me", msgId).execute();
But it gives exception. However sending the message works.
GoogleJsonResponseException: Request had insufficient authentication scopes.
private Credential authorize(final NetHttpTransport HTTP_TRANSPORT)
throws IOException {
Gmail Quickstart - Delete message
Message should get deleted
Generates exception
Specifications
The text was updated successfully, but these errors were encountered: