Gmail API . users

Instance Methods

drafts()

Returns the drafts Resource.

history()

Returns the history Resource.

labels()

Returns the labels Resource.

messages()

Returns the messages Resource.

threads()

Returns the threads Resource.

getProfile(userId)

Gets the current user's Gmail profile.

Method Details

getProfile(userId)
Gets the current user's Gmail profile.

Args:
  userId: string, The user's email address. The special value me can be used to indicate the authenticated user. (required)

Returns:
  An object of the form:

    { # Profile for a Gmail user.
    "threadsTotal": 42, # The total number of threads in the mailbox.
    "emailAddress": "A String", # The user's email address.
    "historyId": "A String", # The ID of the mailbox's current history record.
    "messagesTotal": 42, # The total number of messages in the mailbox.
  }