Google_Service_YouTubeAnalytics_GroupItems_Resource

The "groupItems" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/YouTubeAnalytics.php  
  1. class Google_Service_YouTubeAnalytics_GroupItems_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Removes an item from a group. (groupItems.delete) 
  5. * @param string $id The id parameter specifies the YouTube group item ID for 
  6. * the group that is being deleted. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended 
  9. * exclusively for YouTube content partners. 
  10. * The onBehalfOfContentOwner parameter indicates that the request's 
  11. * authorization credentials identify a YouTube CMS user who is acting on behalf 
  12. * of the content owner specified in the parameter value. This parameter is 
  13. * intended for YouTube content partners that own and manage many different 
  14. * YouTube channels. It allows content owners to authenticate once and get 
  15. * access to all their video and channel data, without having to provide 
  16. * authentication credentials for each individual channel. The CMS account that 
  17. * the user authenticates with must be linked to the specified YouTube content 
  18. * owner. 
  19. */ 
  20. public function delete($id, $optParams = array()) 
  21. $params = array('id' => $id); 
  22. $params = array_merge($params, $optParams); 
  23. return $this->call('delete', array($params)); 
  24.  
  25. /** 
  26. * Creates a group item. (groupItems.insert) 
  27. * @param Google_GroupItem $postBody 
  28. * @param array $optParams Optional parameters. 
  29. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended 
  30. * exclusively for YouTube content partners. 
  31. * The onBehalfOfContentOwner parameter indicates that the request's 
  32. * authorization credentials identify a YouTube CMS user who is acting on behalf 
  33. * of the content owner specified in the parameter value. This parameter is 
  34. * intended for YouTube content partners that own and manage many different 
  35. * YouTube channels. It allows content owners to authenticate once and get 
  36. * access to all their video and channel data, without having to provide 
  37. * authentication credentials for each individual channel. The CMS account that 
  38. * the user authenticates with must be linked to the specified YouTube content 
  39. * owner. 
  40. * @return Google_Service_YouTubeAnalytics_GroupItem 
  41. */ 
  42. public function insert(Google_Service_YouTubeAnalytics_GroupItem $postBody, $optParams = array()) 
  43. $params = array('postBody' => $postBody); 
  44. $params = array_merge($params, $optParams); 
  45. return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_GroupItem"); 
  46.  
  47. /** 
  48. * Returns a collection of group items that match the API request parameters. 
  49. * (groupItems.listGroupItems) 
  50. * @param string $groupId The id parameter specifies the unique ID of the group 
  51. * for which you want to retrieve group items. 
  52. * @param array $optParams Optional parameters. 
  53. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended 
  54. * exclusively for YouTube content partners. 
  55. * The onBehalfOfContentOwner parameter indicates that the request's 
  56. * authorization credentials identify a YouTube CMS user who is acting on behalf 
  57. * of the content owner specified in the parameter value. This parameter is 
  58. * intended for YouTube content partners that own and manage many different 
  59. * YouTube channels. It allows content owners to authenticate once and get 
  60. * access to all their video and channel data, without having to provide 
  61. * authentication credentials for each individual channel. The CMS account that 
  62. * the user authenticates with must be linked to the specified YouTube content 
  63. * owner. 
  64. * @return Google_Service_YouTubeAnalytics_GroupItemListResponse 
  65. */ 
  66. public function listGroupItems($groupId, $optParams = array()) 
  67. $params = array('groupId' => $groupId); 
  68. $params = array_merge($params, $optParams); 
  69. return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupItemListResponse");