/var/www/flurhymez/vendor/google/apiclient-services/src/YouTubeReporting/Resource
Edit: /var/www/flurhymez/vendor/google/apiclient-services/src/YouTubeReporting/Resource/Media.php (1636B)
* $youtubereportingService = new Google\Service\YouTubeReporting(...);
* $media = $youtubereportingService->media;
*
*/
class Media extends \Google\Service\Resource
{
/**
* Method for media download. Download is supported on the URI
* `/v1/media/{+name}?alt=media`. (media.download)
*
* @param string $resourceName Name of the media that is being downloaded.
* @param array $optParams Optional parameters.
* @return GdataMedia
*/
public function download($resourceName, $optParams = [])
{
$params = ['resourceName' => $resourceName];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], GdataMedia::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_YouTubeReporting_Resource_Media');