Class Google_Service_Gmail_UsersLabels_Resource
The "labels" collection of methods. Typical usage is:
$gmailService = new Google_Service_Gmail(...);
$labels = $gmailService->labels;
-
Google_Service_Resource
-
Google_Service_Gmail_UsersLabels_Resource
Located at Gmail.php
Methods summary
public
Google_Service_Gmail_Label
|
#
create( string $userId, Google_Service_Gmail_Label $postBody, array $optParams = array() )
Creates a new label. (labels.create)
Creates a new label. (labels.create)
Parameters
- $userId
- The user's email address. The special value me can be used to indicate the
authenticated user.
- $postBody
- $optParams
- Optional parameters.
Returns
|
public
|
#
delete( string $userId, string $id, array $optParams = array() )
Immediately and permanently deletes the specified label and removes it from
any messages and threads that it is applied to. (labels.delete)
Immediately and permanently deletes the specified label and removes it from
any messages and threads that it is applied to. (labels.delete)
Parameters
- $userId
- The user's email address. The special value me can be used to indicate the
authenticated user.
- $id
- The ID of the label to delete.
- $optParams
- Optional parameters.
|
public
Google_Service_Gmail_Label
|
#
get( string $userId, string $id, array $optParams = array() )
Gets the specified label. (labels.get)
Gets the specified label. (labels.get)
Parameters
- $userId
- The user's email address. The special value me can be used to indicate the
authenticated user.
- $id
- The ID of the label to retrieve.
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Gmail_ListLabelsResponse
|
#
listUsersLabels( string $userId, array $optParams = array() )
Lists all labels in the user's mailbox. (labels.listUsersLabels)
Lists all labels in the user's mailbox. (labels.listUsersLabels)
Parameters
- $userId
- The user's email address. The special value me can be used to indicate the
authenticated user.
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Gmail_Label
|
#
patch( string $userId, string $id, Google_Service_Gmail_Label $postBody, array $optParams = array() )
Patch the specified label. (labels.patch)
Patch the specified label. (labels.patch)
Parameters
- $userId
- The user's email address. The special value me can be used to indicate the
authenticated user.
- $id
- The ID of the label to update.
- $postBody
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Gmail_Label
|
#
update( string $userId, string $id, Google_Service_Gmail_Label $postBody, array $optParams = array() )
Updates the specified label. (labels.update)
Updates the specified label. (labels.update)
Parameters
- $userId
- The user's email address. The special value me can be used to indicate the
authenticated user.
- $id
- The ID of the label to update.
- $postBody
- $optParams
- Optional parameters.
Returns
|