java-samples
java-samples copied to clipboard
401 Unauthorized
Sample Name
Gmail Quickstart
Expected Behavior
Connection OK
Actual Behavior
401 Unauthorized
Specifications
- Java version 8
- OS (Mac)
Tried the Quickstart Gmail api and used the code posted in the documentation but I kept having Exception in thread "main" com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized
check if you have any token saved. If you're using Quickstart, it should be under tokens folder.