Google_Service_YouTube_Thumbnails_Resource

The "thumbnails" collection of methods.

Defined (1)

The class is defined in the following location(s).

/src/Google/Service/YouTube.php  
  1. class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Uploads a custom video thumbnail to YouTube and sets it for a video. 
  5. * (thumbnails.set) 
  6. * @param string $videoId The videoId parameter specifies a YouTube video ID for 
  7. * which the custom video thumbnail is being provided. 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter 
  10. * indicates that the authenticated user is acting on behalf of the content 
  11. * owner specified in the parameter value. This parameter is intended for 
  12. * YouTube content partners that own and manage many different YouTube channels. 
  13. * It allows content owners to authenticate once and get access to all their 
  14. * video and channel data, without having to provide authentication credentials 
  15. * for each individual channel. The actual CMS account that the user 
  16. * authenticates with needs to be linked to the specified YouTube content owner. 
  17. * @return Google_Service_YouTube_ThumbnailSetResponse 
  18. */ 
  19. public function set($videoId, $optParams = array()) 
  20. $params = array('videoId' => $videoId); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('set', array($params), "Google_Service_YouTube_ThumbnailSetResponse");