/var/www/vhosts/ihelp.ro/httpdocs/vendor/google/apiclient-services/src/Keep/Resource
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/google/apiclient-services/src/Keep/Resource/Media.php (1860B)
* $keepService = new Google\Service\Keep(...);
* $media = $keepService->media;
*
*/
class Media extends \Google\Service\Resource
{
/**
* 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)
*
* @param string $name Required. The name of the attachment.
* @param array $optParams Optional parameters.
*
* @opt_param string mimeType The IANA MIME type format requested. The requested
* MIME type must be one specified in the attachment.mime_type. Required when
* downloading attachment media and ignored otherwise.
* @return Attachment
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], Attachment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_Keep_Resource_Media');