Google_Service_YouTubeAnalytics

Service definition for YouTubeAnalytics (v1).

Defined (1)

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

/includes/api-libs/Google/Service/YouTubeAnalytics.php  
  1. class Google_Service_YouTubeAnalytics extends Google_Service 
  2. /** Manage your YouTube account. */ 
  3. const YOUTUBE = 
  4. "https://www.googleapis.com/auth/youtube"; 
  5. /** View your YouTube account. */ 
  6. const YOUTUBE_READONLY = 
  7. "https://www.googleapis.com/auth/youtube.readonly"; 
  8. /** View and manage your assets and associated content on YouTube. */ 
  9. const YOUTUBEPARTNER = 
  10. "https://www.googleapis.com/auth/youtubepartner"; 
  11. /** View YouTube Analytics monetary reports for your YouTube content. */ 
  12. const YT_ANALYTICS_MONETARY_READONLY = 
  13. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; 
  14. /** View YouTube Analytics reports for your YouTube content. */ 
  15. const YT_ANALYTICS_READONLY = 
  16. "https://www.googleapis.com/auth/yt-analytics.readonly"; 
  17.  
  18. public $batchReportDefinitions; 
  19. public $batchReports; 
  20. public $groupItems; 
  21. public $groups; 
  22. public $reports; 
  23.  
  24.  
  25. /** 
  26. * Constructs the internal representation of the YouTubeAnalytics service. 
  27. * @param Google_Client $client 
  28. */ 
  29. public function __construct(Google_Client $client) 
  30. parent::__construct($client); 
  31. $this->servicePath = 'youtube/analytics/v1/'; 
  32. $this->version = 'v1'; 
  33. $this->serviceName = 'youtubeAnalytics'; 
  34.  
  35. $this->batchReportDefinitions = new Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource( 
  36. $this,  
  37. $this->serviceName,  
  38. 'batchReportDefinitions',  
  39. array( 
  40. 'methods' => array( 
  41. 'list' => array( 
  42. 'path' => 'batchReportDefinitions',  
  43. 'httpMethod' => 'GET',  
  44. 'parameters' => array( 
  45. 'onBehalfOfContentOwner' => array( 
  46. 'location' => 'query',  
  47. 'type' => 'string',  
  48. 'required' => true,  
  49. ),  
  50. ),  
  51. ),  
  52. ); 
  53. $this->batchReports = new Google_Service_YouTubeAnalytics_BatchReports_Resource( 
  54. $this,  
  55. $this->serviceName,  
  56. 'batchReports',  
  57. array( 
  58. 'methods' => array( 
  59. 'list' => array( 
  60. 'path' => 'batchReports',  
  61. 'httpMethod' => 'GET',  
  62. 'parameters' => array( 
  63. 'batchReportDefinitionId' => array( 
  64. 'location' => 'query',  
  65. 'type' => 'string',  
  66. 'required' => true,  
  67. ),  
  68. 'onBehalfOfContentOwner' => array( 
  69. 'location' => 'query',  
  70. 'type' => 'string',  
  71. 'required' => true,  
  72. ),  
  73. ),  
  74. ),  
  75. ); 
  76. $this->groupItems = new Google_Service_YouTubeAnalytics_GroupItems_Resource( 
  77. $this,  
  78. $this->serviceName,  
  79. 'groupItems',  
  80. array( 
  81. 'methods' => array( 
  82. 'delete' => array( 
  83. 'path' => 'groupItems',  
  84. 'httpMethod' => 'DELETE',  
  85. 'parameters' => array( 
  86. 'id' => array( 
  87. 'location' => 'query',  
  88. 'type' => 'string',  
  89. 'required' => true,  
  90. ),  
  91. 'onBehalfOfContentOwner' => array( 
  92. 'location' => 'query',  
  93. 'type' => 'string',  
  94. ),  
  95. ),  
  96. ), 'insert' => array( 
  97. 'path' => 'groupItems',  
  98. 'httpMethod' => 'POST',  
  99. 'parameters' => array( 
  100. 'onBehalfOfContentOwner' => array( 
  101. 'location' => 'query',  
  102. 'type' => 'string',  
  103. ),  
  104. ),  
  105. ), 'list' => array( 
  106. 'path' => 'groupItems',  
  107. 'httpMethod' => 'GET',  
  108. 'parameters' => array( 
  109. 'groupId' => array( 
  110. 'location' => 'query',  
  111. 'type' => 'string',  
  112. 'required' => true,  
  113. ),  
  114. 'onBehalfOfContentOwner' => array( 
  115. 'location' => 'query',  
  116. 'type' => 'string',  
  117. ),  
  118. ),  
  119. ),  
  120. ); 
  121. $this->groups = new Google_Service_YouTubeAnalytics_Groups_Resource( 
  122. $this,  
  123. $this->serviceName,  
  124. 'groups',  
  125. array( 
  126. 'methods' => array( 
  127. 'delete' => array( 
  128. 'path' => 'groups',  
  129. 'httpMethod' => 'DELETE',  
  130. 'parameters' => array( 
  131. 'id' => array( 
  132. 'location' => 'query',  
  133. 'type' => 'string',  
  134. 'required' => true,  
  135. ),  
  136. 'onBehalfOfContentOwner' => array( 
  137. 'location' => 'query',  
  138. 'type' => 'string',  
  139. ),  
  140. ),  
  141. ), 'insert' => array( 
  142. 'path' => 'groups',  
  143. 'httpMethod' => 'POST',  
  144. 'parameters' => array( 
  145. 'onBehalfOfContentOwner' => array( 
  146. 'location' => 'query',  
  147. 'type' => 'string',  
  148. ),  
  149. ),  
  150. ), 'list' => array( 
  151. 'path' => 'groups',  
  152. 'httpMethod' => 'GET',  
  153. 'parameters' => array( 
  154. 'onBehalfOfContentOwner' => array( 
  155. 'location' => 'query',  
  156. 'type' => 'string',  
  157. ),  
  158. 'id' => array( 
  159. 'location' => 'query',  
  160. 'type' => 'string',  
  161. ),  
  162. 'mine' => array( 
  163. 'location' => 'query',  
  164. 'type' => 'boolean',  
  165. ),  
  166. ),  
  167. ), 'update' => array( 
  168. 'path' => 'groups',  
  169. 'httpMethod' => 'PUT',  
  170. 'parameters' => array( 
  171. 'onBehalfOfContentOwner' => array( 
  172. 'location' => 'query',  
  173. 'type' => 'string',  
  174. ),  
  175. ),  
  176. ),  
  177. ); 
  178. $this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource( 
  179. $this,  
  180. $this->serviceName,  
  181. 'reports',  
  182. array( 
  183. 'methods' => array( 
  184. 'query' => array( 
  185. 'path' => 'reports',  
  186. 'httpMethod' => 'GET',  
  187. 'parameters' => array( 
  188. 'ids' => array( 
  189. 'location' => 'query',  
  190. 'type' => 'string',  
  191. 'required' => true,  
  192. ),  
  193. 'start-date' => array( 
  194. 'location' => 'query',  
  195. 'type' => 'string',  
  196. 'required' => true,  
  197. ),  
  198. 'end-date' => array( 
  199. 'location' => 'query',  
  200. 'type' => 'string',  
  201. 'required' => true,  
  202. ),  
  203. 'metrics' => array( 
  204. 'location' => 'query',  
  205. 'type' => 'string',  
  206. 'required' => true,  
  207. ),  
  208. 'max-results' => array( 
  209. 'location' => 'query',  
  210. 'type' => 'integer',  
  211. ),  
  212. 'sort' => array( 
  213. 'location' => 'query',  
  214. 'type' => 'string',  
  215. ),  
  216. 'dimensions' => array( 
  217. 'location' => 'query',  
  218. 'type' => 'string',  
  219. ),  
  220. 'start-index' => array( 
  221. 'location' => 'query',  
  222. 'type' => 'integer',  
  223. ),  
  224. 'filters' => array( 
  225. 'location' => 'query',  
  226. 'type' => 'string',  
  227. ),  
  228. ),  
  229. ),  
  230. );