The "guideCategories" collection of methods.

Defined (1)

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

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