* $gmailService = new Google_Service_Gmail(...); * $attachments = $gmailService->attachments; * */ class Google_Service_Gmail_Resource_UsersMessagesAttachments extends Google_Service_Resource { /** * Gets the specified message attachment. (attachments.get) * * @param string $userId The user's email address. The special value `me` can be * used to indicate the authenticated user. * @param string $messageId The ID of the message containing the attachment. * @param string $id The ID of the attachment. * @param array $optParams Optional parameters. * @return Google_Service_Gmail_MessagePartBody */ public function get($userId, $messageId, $id, $optParams = array()) { $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); } }