Google_Service_YouTube_GuideCategories_Resource

The "guideCategories" 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_GuideCategories_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Returns a list of categories that can be associated with YouTube channels. 
  5. * (guideCategories.listGuideCategories) 
  6. * @param string $part The part parameter specifies a comma-separated list of 
  7. * one or more guideCategory resource properties that the API response will 
  8. * include. The part names that you can include in the parameter value are id 
  9. * and snippet. 
  10. * If the parameter identifies a property that contains child properties, the 
  11. * child properties will be included in the response. For example, in a 
  12. * guideCategory resource, the snippet property contains other properties, such 
  13. * as the category's title. If you set part=snippet, the API response will also 
  14. * contain all of those nested properties. 
  15. * @param array $optParams Optional parameters. 
  16. * @opt_param string regionCode The regionCode parameter instructs the API to 
  17. * return the list of guide categories available in the specified country. The 
  18. * parameter value is an ISO 3166-1 alpha-2 country code. 
  19. * @opt_param string id The id parameter specifies a comma-separated list of the 
  20. * YouTube channel category ID(s) for the resource(s) that are being retrieved. 
  21. * In a guideCategory resource, the id property specifies the YouTube channel 
  22. * category ID. 
  23. * @opt_param string hl The hl parameter specifies the language that will be 
  24. * used for text values in the API response. 
  25. * @return Google_Service_YouTube_GuideCategoryListResponse 
  26. */ 
  27. public function listGuideCategories($part, $optParams = array()) 
  28. $params = array('part' => $part); 
  29. $params = array_merge($params, $optParams); 
  30. return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse");