Google_Service_YouTube_VideoCategories_Resource

The "videoCategories" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/YouTube.php  
  1. class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Returns a list of categories that can be associated with YouTube videos. 
  5. * (videoCategories.listVideoCategories) 
  6. * @param string $part The part parameter specifies the videoCategory resource 
  7. * parts that the API response will include. Supported values are id and 
  8. * snippet. 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param string regionCode The regionCode parameter instructs the API to 
  11. * return the list of video categories available in the specified country. The 
  12. * parameter value is an ISO 3166-1 alpha-2 country code. 
  13. * @opt_param string id The id parameter specifies a comma-separated list of 
  14. * video category IDs for the resources that you are retrieving. 
  15. * @opt_param string hl The hl parameter specifies the language that should be 
  16. * used for text values in the API response. 
  17. * @return Google_Service_YouTube_VideoCategoryListResponse 
  18. */ 
  19. public function listVideoCategories($part, $optParams = array()) 
  20. $params = array('part' => $part); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('list', array($params), "Google_Service_YouTube_VideoCategoryListResponse");