Google_VideoCategoriesServiceResource

The "videoCategories" collection of methods.

Defined (1)

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

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