UsersDrafts
class UsersDrafts extends Resource (View source)
The "drafts" collection of methods.
Typical usage is:
$gmailService = new Google\Service\Gmail(...);
$drafts = $gmailService->users_drafts;
Methods
delete(string $userId, string $id, array $optParams = [])
Immediately and permanently deletes the specified draft. Does not simply trash it. (drafts.delete)
listUsersDrafts(string $userId, array $optParams = [])
Lists the drafts in the user's mailbox. (drafts.listUsersDrafts)
Details
Draft
create(string $userId, Draft $postBody, array $optParams = [])
Creates a new draft with the DRAFT
label. (drafts.create)
delete(string $userId, string $id, array $optParams = [])
Immediately and permanently deletes the specified draft. Does not simply trash it. (drafts.delete)
Draft
get(string $userId, string $id, array $optParams = [])
Gets the specified draft. (drafts.get)
ListDraftsResponse
listUsersDrafts(string $userId, array $optParams = [])
Lists the drafts in the user's mailbox. (drafts.listUsersDrafts)
Message
send(string $userId, Draft $postBody, array $optParams = [])
Sends the specified, existing draft to the recipients in the To
, Cc
, and
Bcc
headers. (drafts.send)