/src/Google/Service/YouTube.php
PHP | 9342 lines | 6755 code | 1247 blank | 1340 comment | 0 complexity | 941d89213233bddad91815aef593d343 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- <?php
- /*
- * Copyright 2010 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- /**
- * Service definition for YouTube (v3).
- *
- * <p>
- * Programmatic access to YouTube features.
- * </p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/youtube/v3" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_YouTube extends Google_Service
- {
- /** Manage your YouTube account. */
- const YOUTUBE = "https://www.googleapis.com/auth/youtube";
- /** View your YouTube account. */
- const YOUTUBE_READONLY = "https://www.googleapis.com/auth/youtube.readonly";
- /** Manage your YouTube videos. */
- const YOUTUBE_UPLOAD = "https://www.googleapis.com/auth/youtube.upload";
- /** View and manage your assets and associated content on YouTube. */
- const YOUTUBEPARTNER = "https://www.googleapis.com/auth/youtubepartner";
- /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */
- const YOUTUBEPARTNER_CHANNEL_AUDIT = "https://www.googleapis.com/auth/youtubepartner-channel-audit";
- public $activities;
- public $channelBanners;
- public $channels;
- public $guideCategories;
- public $liveBroadcasts;
- public $liveStreams;
- public $playlistItems;
- public $playlists;
- public $search;
- public $subscriptions;
- public $thumbnails;
- public $videoCategories;
- public $videos;
- public $watermarks;
-
- /**
- * Constructs the internal representation of the YouTube service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->servicePath = 'youtube/v3/';
- $this->version = 'v3';
- $this->serviceName = 'youtube';
- $this->activities = new Google_Service_YouTube_Activities_Resource(
- $this,
- $this->serviceName,
- 'activities',
- array(
- 'methods' => array(
- 'insert' => array(
- 'path' => 'activities',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'activities',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'regionCode' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'publishedBefore' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'channelId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'mine' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'home' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'publishedAfter' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource(
- $this,
- $this->serviceName,
- 'channelBanners',
- array(
- 'methods' => array(
- 'insert' => array(
- 'path' => 'channelBanners/insert',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->channels = new Google_Service_YouTube_Channels_Resource(
- $this,
- $this->serviceName,
- 'channels',
- array(
- 'methods' => array(
- 'list' => array(
- 'path' => 'channels',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'managedByMe' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'forUsername' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'mine' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'mySubscribers' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'categoryId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'channels',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource(
- $this,
- $this->serviceName,
- 'guideCategories',
- array(
- 'methods' => array(
- 'list' => array(
- 'path' => 'guideCategories',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'regionCode' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'hl' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource(
- $this,
- $this->serviceName,
- 'liveBroadcasts',
- array(
- 'methods' => array(
- 'bind' => array(
- 'path' => 'liveBroadcasts/bind',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'streamId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'control' => array(
- 'path' => 'liveBroadcasts/control',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'displaySlate' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'offsetTimeMs' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'walltime' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'delete' => array(
- 'path' => 'liveBroadcasts',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'insert' => array(
- 'path' => 'liveBroadcasts',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'liveBroadcasts',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'broadcastStatus' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'mine' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'transition' => array(
- 'path' => 'liveBroadcasts/transition',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'broadcastStatus' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'liveBroadcasts',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource(
- $this,
- $this->serviceName,
- 'liveStreams',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'liveStreams',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'liveStreams',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'liveStreams',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'mine' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'update' => array(
- 'path' => 'liveStreams',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource(
- $this,
- $this->serviceName,
- 'playlistItems',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'playlistItems',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'playlistItems',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'playlistItems',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'playlistId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'playlistItems',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->playlists = new Google_Service_YouTube_Playlists_Resource(
- $this,
- $this->serviceName,
- 'playlists',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'playlists',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'insert' => array(
- 'path' => 'playlists',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwnerChannel' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'playlists',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'onBehalfOfContentOwnerChannel' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'channelId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'mine' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'playlists',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->search = new Google_Service_YouTube_Search_Resource(
- $this,
- $this->serviceName,
- 'search',
- array(
- 'methods' => array(
- 'list' => array(
- 'path' => 'search',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'eventType' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'channelId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoSyndicated' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'channelType' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoCaption' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'publishedAfter' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'forContentOwner' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'regionCode' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoType' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'type' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'topicId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'publishedBefore' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoDimension' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoLicense' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'relatedToVideoId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoDefinition' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoDuration' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'forMine' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'q' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'safeSearch' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoEmbeddable' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoCategoryId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'order' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource(
- $this,
- $this->serviceName,
- 'subscriptions',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'subscriptions',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'subscriptions',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'subscriptions',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'onBehalfOfContentOwnerChannel' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'channelId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'mine' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'forChannelId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'mySubscribers' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'order' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource(
- $this,
- $this->serviceName,
- 'thumbnails',
- array(
- 'methods' => array(
- 'set' => array(
- 'path' => 'thumbnails/set',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'videoId' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource(
- $this,
- $this->serviceName,
- 'videoCategories',
- array(
- 'methods' => array(
- 'list' => array(
- 'path' => 'videoCategories',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'regionCode' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'hl' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->videos = new Google_Service_YouTube_Videos_Resource(
- $this,
- $this->serviceName,
- 'videos',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'videos',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'getRating' => array(
- 'path' => 'videos/getRating',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'insert' => array(
- 'path' => 'videos',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'stabilize' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'onBehalfOfContentOwnerChannel' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'notifySubscribers' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'autoLevels' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'list' => array(
- 'path' => 'videos',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'regionCode' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'locale' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'videoCategoryId' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'chart' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'myRating' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'rate' => array(
- 'path' => 'videos/rate',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'id' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'rating' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'videos',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'part' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->watermarks = new Google_Service_YouTube_Watermarks_Resource(
- $this,
- $this->serviceName,
- 'watermarks',
- array(
- 'methods' => array(
- 'set' => array(
- 'path' => 'watermarks/set',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'channelId' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'unset' => array(
- 'path' => 'watermarks/unset',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'channelId' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'onBehalfOfContentOwner' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- }
- }
- /**
- * The "activities" collection of methods.
- * Typical usage is:
- * <code>
- * $youtubeService = new Google_Service_YouTube(...);
- * $activities = $youtubeService->activities;
- * </code>
- */
- class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource
- {
- /**
- * Posts a bulletin for a specific channel. (The user submitting the request
- * must be authorized to act on the channel's behalf.)
- *
- * Note: Even though an activity resource can contain information about actions
- * like a user rating a video or marking a video as a favorite, you need to use
- * other API methods to generate those activity resources. For example, you
- * would use the API's videos.rate() method to rate a video and the
- * playlistItems.insert() method to mark a video as a favorite.
- * (activities.insert)
- *
- * @param string $part
- * The part parameter serves two purposes in this operation. It identifies the properties that the
- * write operation will set as well as the properties that the API response will include.
- The part
- * names that you can include in the parameter value are snippet and contentDetails.
- * @param Google_Activity $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_YouTube_Activity
- */
- public function insert($part, Google_Service_YouTube_Activity $postBody, $optParams = array())
- {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_YouTube_Activity");
- }
- /**
- * Returns a list of channel activity events that match the request criteria.
- * For example, you can retrieve events associated with a particular channel,
- * events associated with the user's subscriptions and Google+ friends, or the
- * YouTube home page feed, which is customized for each user.
- * (activities.listActivities)
- *
- * @param string $part
- * The part parameter specifies a comma-separated list of one or more activity resource properties
- * that the API response will include. The part names that you can include in the parameter value
- * are id, snippet, and contentDetails.
- If the parameter identifies a property that contains child
- * properties, the child properties will be included in the response. For example, in a activity
- * resource, the snippet property contains other properties that identify the type of activity, a
- * display title for the activity, and so forth. If you set part=snippet, the API response will
- * also contain all of those nested properties.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string regionCode
- * The regionCode parameter instructs the API to return results for the specified country. The
- * parameter value is an ISO 3166-1 alpha-2 country code. YouTube uses this value when the
- * authorized user's previous activity on YouTube does not provide enough information to generate
- * the activity feed.
- * @opt_param string publishedBefore
- * The publishedBefore parameter specifies the date and time before which an activity must have
- * occurred for that activity to be included in the API response. If the parameter value specifies
- * a day, but not a time, then any activities that occurred that day will be excluded from the
- * result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- * @opt_param string channelId
- * The channelId parameter specifies a unique YouTube channel ID. The API will then return a list
- * of that channel's activities.
- * @opt_param bool mine
- * Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
- * @opt_param string maxResults
- * The maxResults parameter specifies the maximum number of items that should be returned in the
- * result set.
- * @opt_param string pageToken
- * The pageToken parameter identifies a specific page in the result set that should be returned. In
- * an API response, the nextPageToken and prevPageToken properties identify other pages that could
- * be retrieved.
- * @opt_param bool home
- * Set this parameter's value to true to retrieve the activity feed that displays on the YouTube
- * home page for the currently authenticated user.
- * @opt_param string publishedAfter
- * The publishedAfter parameter specifies the earliest date and time that an activity could have
- * occurred for that activity to be included in the API response. If the parameter value specifies
- * a day, but not a time, then any activities that occurred that day will be included in the result
- * set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- * @return Google_Service_YouTube_ActivityListResponse
- */
- public function listActivities($part, $optParams = array())
- {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_YouTube_ActivityListResponse");
- }
- }
- /**
- * The "channelBanners" collection of methods.
- * Typical usage is:
- * <code>
- * $youtubeService = new Google_Service_YouTube(...);
- * $channelBanners = $youtubeService->channelBanners;
- * </code>
- */
- class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource
- {
- /**
- * Uploads a channel banner image to YouTube. This method represents the first
- * two steps in a three-step process to update the banner image for a channel:
- *
- * - Call the channelBanners.insert method to upload the binary image data to
- * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192
- * pixels. - Extract the url property's value from the response that the API
- * returns for step 1. - Call the channels.update method to update the channel's
- * branding settings. Set the brandingSettings.image.bannerExternalUrl
- * property's value to the URL obtained in step 2. (channelBanners.insert)
- *
- * @param Google_ChannelBannerResource $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string onBehalfOfContentOwner
- * Note: This parameter is intended exclusively for YouTube content partners.
- The
- * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
- * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
- * value. This parameter is intended for YouTube content partners that own and manage many
- * different YouTube channels. It allows content owners to authenticate once and get access to all
- * their video and channel data, without having to provide authentication credentials for each
- * individual channel. The CMS account that the user authenticates with must be linked to the
- * specified YouTube content owner.
- * @return Google_Service_YouTube_ChannelBannerResource
- */
- public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource");
- }
- }
- /**
- * The "channels" collection of methods.
- * Typical usage is:
- * <code>
- * $youtubeService = new Google_Service_YouTube(...);
- * $channels = $youtubeService->channels;
- * </code>
- */
- class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource
- {
- /**
- * Returns a collection of zero or more channel resources that match the request
- * criteria. (channels.listChannels)
- *
- * @param string $part
- * The part parameter specifies a comma-separated list of one or more channel resource properties
- * that the API response will include. The part names that you can include in the parameter value
- * are id, snippet, contentDetails, statistics, topicDetails, and invideoPromotion.
- If the
- * parameter identifies a property that contains child properties, the child properties will be
- * included in the response. For example, in a channel resource, the contentDetails property
- * contains other properties, such as the uploads properties. As such, if you set
- * part=contentDetails, the API response will also contain all of those nested properties.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool managedByMe
- * Set this parameter's value to true to instruct the API to only return channels managed by the
- * content owner that the onBehalfOfContentOwner parameter specifies. The user must be
- * authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner
- * must be provided.
- * @opt_param string onBehalfOfContentOwner
- * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf
- * of the content owner specified in the parameter value. This parameter is intended for YouTube
- * content partners that own and manage many different YouTube channels. It allows content owners
- * to authenticate once and get access to all their video and channel data, without having to
- * provide authentication credentials for each individual channel. The actual CMS account that the
- * user authenticates with needs to be linked to the specified YouTube content owner.
- * @opt_param string forUsername
- * The forUsername parameter specifies a YouTube username, thereby requesting the channel
- * associated with that username.
- * @opt_param bool mine
- * Set this parameter's value to true to instruct the API to only return channels owned by the
- * authenticated user.
- * @opt_param string maxResults
- * The maxResults parameter specifies the maximum number of items that should be returned in the
- * result set.
- * @opt_param string id
- * The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the
- * resource(s) that are being retrieved. In a channel resource, the id property specifies the
- * channel's YouTube channel ID.
- * @opt_param string pageToken
- * The pageToken parameter identifies a specific page in the result set that should be returned. In
- * an API response, the nextPageToken and prevPageToken properties identify other pages that could
- * be retrieved.
- * @opt_param bool mySubscribers
- * Set this parameter's value to true to retrieve a list of channels that subscribed to the
- * authenticated user's channel.
- * @opt_param string categoryId
- * The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels
- * associated with that category.
- * @return Google_Service_YouTube_ChannelListResponse
- */
- public function listChannels($part, $optParams = array())
- {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_YouTube_ChannelListResponse");
- }
- /**
- * Updates a channel's metadata. (channels.update)
- *
- * @param string $part
- * The part parameter serves two purposes in this operation. It identifies the properties that the
- * write operation will set as well as the properties that the API response will include.
- The part
- * names that you can include in the parameter value are id and invideoPromotion.
- Note that this
- * method will override the existing values for all of the mutable properties that are contained in
- * any parts that the parameter value specifies.
- * @param Google_Channel $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string onBehalfOfContentOwner
- * The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf
- * of the content owner specified in the parameter value. This parameter is intended for YouTube
- * content partners that own and manage many different YouTube channels. It allows content owners
- * to authenticate once and get access to all their video and channel data, without having to
- * provide authentication credentials for each individual channel. The actual CMS account that the
- * user authenticates with needs to be linked to the specified YouTube content owner.
- * @return Google_Service_YouTube_Channel
- */
- public function update($part, Google_Service_YouTube_Channel $postBody, $optParams = array())
- {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_YouTube_Channel");
- }
- }
- /**
- * The "guideCategories" collection of methods.
- * Typical usage is:
- * <code>
- * $youtubeService = new Google_Service_YouTube(...);
- * $guideCategories = $youtubeService->guideCategories;
- * </code>
- */
- class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource
- {
- /**
- * Returns a list of categories that can be associated with YouTube channels.
- * (guideCategories.listGuideCategories)
- *
- * @param string $part
- * The part parameter specifies a comma-separated list of one or more guideCategory resource
- * properties that the API response will include. The part names that you can include in the
- * parameter value are id and snippet.
- If the parameter identifies a property that contains child
- * properties, the child properties will be included in the response. For example, in a
- * guideCategory resource, the snippet property contains other properties, such as the category's
- * title. If you set part=snippet, the API response will also contain all of those nested
- * properties.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string regionCode
- * The regionCode parameter instructs the API to return the list of guide categories available in
- * the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
- * @opt_param string id
- * The id parameter specifies a comma-separated list of the YouTube channel category ID(s) for the
- * resource(s) that are being retrieved. In a guideCategory resource, the id property specifies the
- * You…
Large files files are truncated, but you can click here to view the full file