Back to GMail Programming Languages Index
Java GMail REST API Examples
More GMail Examples at example-code.com.
Parse GMail REST API Error Response
Gets the current user's Gmail profile, but shows an error response and how to parse it..
Get User's GMail Profile
Gets the current user's Gmail profile.
Lists the messages in the user's mailbox.
Lists the messages in the user's mailbox.
Get a specific message (format="minimal")
Gets a specific message using format=minimal.
Get a specific message (format="full")
Gets a specific message using format=full.
Get a specific message (format="metadata")
Gets a specific message using format=metadata.
Get a specific message (format="raw")
Gets a specific message using format=raw.
Search for Messages with Subject Containing a Word
Return messages matching the specified query. See https://support.google.com/mail/answer/7190?hl=en for additional information about search operators. This example searches for all emails having the whole word "ADVChina" in the subject.
List all GMail Labels
Lists all labels in the user's mailbox.