class Media extends Resource (View source)

The "media" collection of methods.

Typical usage is:

 $keepService = new Google\Service\Keep(...);
 $media = $keepService->media;

Methods

download(string $name, array $optParams = [])

Gets an attachment. To download attachment media via REST requires the alt=media query parameter. Returns a 400 bad request error if attachment media is not available in the requested MIME type. (media.download)

Details

Attachment download(string $name, array $optParams = [])

Gets an attachment. To download attachment media via REST requires the alt=media query parameter. Returns a 400 bad request error if attachment media is not available in the requested MIME type. (media.download)

Parameters

string $name

Required. The name of the attachment.

array $optParams

Optional parameters.

Return Value

Attachment

Exceptions

Exception