Google_VideoCategoriesServiceResource

The "videoCategories" collection of methods.

Defined (1)

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

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