Google_ChannelsServiceResource

The "channels" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_YoutubeService.php  
  1. class Google_ChannelsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Browse the YouTube channel collection. Either the 'id' or 'mine' parameter must be set. 
  6. * (channels.list) 
  7. * @param string $part Parts of the channel resource to be returned. 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param string id YouTube IDs of the channels to be returned. 
  10. * @opt_param string mine Flag indicating only return the channel ids of the authenticated user. 
  11. * @return Google_ChannelListResponse 
  12. */ 
  13. public function listChannels($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_ChannelListResponse($data); 
  19. } else { 
  20. return $data;