Using sdk-platform-java with googleapis.com

Java integration

✓ Official SDK
Install
# Maven: see https://github.com/googleapis/sdk-platform-java
Lists the drafts in the user's mailbox.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts
Lists all labels in the user's mailbox.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/labels
Lists the history of all changes to the given mailbox. History results are re…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/history
SDK on GitHub 📄 API Docs
SDK
sdk-platform-java
Java
API
googleapis.com
googleapis.com:gmail
At a glance
Language Java
Endpoints79
Base URLhttps://gmail.googleapis.com
✓ Official