YouTube.php 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service;
  18. use Google\Client;
  19. /**
  20. * Service definition for YouTube (v3).
  21. *
  22. * <p>
  23. * The YouTube Data API v3 is an API that provides access to YouTube data, such
  24. * as videos, playlists, and channels.</p>
  25. *
  26. * <p>
  27. * For more information about this service, see the API
  28. * <a href="https://developers.google.com/youtube/" target="_blank">Documentation</a>
  29. * </p>
  30. *
  31. * @author Google, Inc.
  32. */
  33. class YouTube extends \Google\Service
  34. {
  35. /** Manage your YouTube account. */
  36. const YOUTUBE =
  37. "https://www.googleapis.com/auth/youtube";
  38. /** See a list of your current active channel members, their current level, and when they became a member. */
  39. const YOUTUBE_CHANNEL_MEMBERSHIPS_CREATOR =
  40. "https://www.googleapis.com/auth/youtube.channel-memberships.creator";
  41. /** See, edit, and permanently delete your YouTube videos, ratings, comments and captions. */
  42. const YOUTUBE_FORCE_SSL =
  43. "https://www.googleapis.com/auth/youtube.force-ssl";
  44. /** View your YouTube account. */
  45. const YOUTUBE_READONLY =
  46. "https://www.googleapis.com/auth/youtube.readonly";
  47. /** Manage your YouTube videos. */
  48. const YOUTUBE_UPLOAD =
  49. "https://www.googleapis.com/auth/youtube.upload";
  50. /** View and manage your assets and associated content on YouTube. */
  51. const YOUTUBEPARTNER =
  52. "https://www.googleapis.com/auth/youtubepartner";
  53. /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */
  54. const YOUTUBEPARTNER_CHANNEL_AUDIT =
  55. "https://www.googleapis.com/auth/youtubepartner-channel-audit";
  56. public $abuseReports;
  57. public $activities;
  58. public $captions;
  59. public $channelBanners;
  60. public $channelSections;
  61. public $channels;
  62. public $commentThreads;
  63. public $comments;
  64. public $i18nLanguages;
  65. public $i18nRegions;
  66. public $liveBroadcasts;
  67. public $liveChatBans;
  68. public $liveChatMessages;
  69. public $liveChatModerators;
  70. public $liveStreams;
  71. public $members;
  72. public $membershipsLevels;
  73. public $playlistItems;
  74. public $playlists;
  75. public $search;
  76. public $subscriptions;
  77. public $superChatEvents;
  78. public $tests;
  79. public $thirdPartyLinks;
  80. public $thumbnails;
  81. public $videoAbuseReportReasons;
  82. public $videoCategories;
  83. public $videos;
  84. public $watermarks;
  85. public $youtube_v3;
  86. public $youtube_v3_liveBroadcasts_cuepoint;
  87. /**
  88. * Constructs the internal representation of the YouTube service.
  89. *
  90. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  91. * config array to pass to a new Client instance.
  92. * @param string $rootUrl The root URL used for requests to the service.
  93. */
  94. public function __construct($clientOrConfig = [], $rootUrl = null)
  95. {
  96. parent::__construct($clientOrConfig);
  97. $this->rootUrl = $rootUrl ?: 'https://youtube.googleapis.com/';
  98. $this->servicePath = '';
  99. $this->batchPath = 'batch';
  100. $this->version = 'v3';
  101. $this->serviceName = 'youtube';
  102. $this->abuseReports = new YouTube\Resource\AbuseReports(
  103. $this,
  104. $this->serviceName,
  105. 'abuseReports',
  106. [
  107. 'methods' => [
  108. 'insert' => [
  109. 'path' => 'youtube/v3/abuseReports',
  110. 'httpMethod' => 'POST',
  111. 'parameters' => [
  112. 'part' => [
  113. 'location' => 'query',
  114. 'type' => 'string',
  115. 'repeated' => true,
  116. 'required' => true,
  117. ],
  118. ],
  119. ],
  120. ]
  121. ]
  122. );
  123. $this->activities = new YouTube\Resource\Activities(
  124. $this,
  125. $this->serviceName,
  126. 'activities',
  127. [
  128. 'methods' => [
  129. 'list' => [
  130. 'path' => 'youtube/v3/activities',
  131. 'httpMethod' => 'GET',
  132. 'parameters' => [
  133. 'part' => [
  134. 'location' => 'query',
  135. 'type' => 'string',
  136. 'repeated' => true,
  137. 'required' => true,
  138. ],
  139. 'channelId' => [
  140. 'location' => 'query',
  141. 'type' => 'string',
  142. ],
  143. 'home' => [
  144. 'location' => 'query',
  145. 'type' => 'boolean',
  146. ],
  147. 'maxResults' => [
  148. 'location' => 'query',
  149. 'type' => 'integer',
  150. ],
  151. 'mine' => [
  152. 'location' => 'query',
  153. 'type' => 'boolean',
  154. ],
  155. 'pageToken' => [
  156. 'location' => 'query',
  157. 'type' => 'string',
  158. ],
  159. 'publishedAfter' => [
  160. 'location' => 'query',
  161. 'type' => 'string',
  162. ],
  163. 'publishedBefore' => [
  164. 'location' => 'query',
  165. 'type' => 'string',
  166. ],
  167. 'regionCode' => [
  168. 'location' => 'query',
  169. 'type' => 'string',
  170. ],
  171. ],
  172. ],
  173. ]
  174. ]
  175. );
  176. $this->captions = new YouTube\Resource\Captions(
  177. $this,
  178. $this->serviceName,
  179. 'captions',
  180. [
  181. 'methods' => [
  182. 'delete' => [
  183. 'path' => 'youtube/v3/captions',
  184. 'httpMethod' => 'DELETE',
  185. 'parameters' => [
  186. 'id' => [
  187. 'location' => 'query',
  188. 'type' => 'string',
  189. 'required' => true,
  190. ],
  191. 'onBehalfOf' => [
  192. 'location' => 'query',
  193. 'type' => 'string',
  194. ],
  195. 'onBehalfOfContentOwner' => [
  196. 'location' => 'query',
  197. 'type' => 'string',
  198. ],
  199. ],
  200. ],'download' => [
  201. 'path' => 'youtube/v3/captions/{id}',
  202. 'httpMethod' => 'GET',
  203. 'parameters' => [
  204. 'id' => [
  205. 'location' => 'path',
  206. 'type' => 'string',
  207. 'required' => true,
  208. ],
  209. 'onBehalfOf' => [
  210. 'location' => 'query',
  211. 'type' => 'string',
  212. ],
  213. 'onBehalfOfContentOwner' => [
  214. 'location' => 'query',
  215. 'type' => 'string',
  216. ],
  217. 'tfmt' => [
  218. 'location' => 'query',
  219. 'type' => 'string',
  220. ],
  221. 'tlang' => [
  222. 'location' => 'query',
  223. 'type' => 'string',
  224. ],
  225. ],
  226. ],'insert' => [
  227. 'path' => 'youtube/v3/captions',
  228. 'httpMethod' => 'POST',
  229. 'parameters' => [
  230. 'part' => [
  231. 'location' => 'query',
  232. 'type' => 'string',
  233. 'repeated' => true,
  234. 'required' => true,
  235. ],
  236. 'onBehalfOf' => [
  237. 'location' => 'query',
  238. 'type' => 'string',
  239. ],
  240. 'onBehalfOfContentOwner' => [
  241. 'location' => 'query',
  242. 'type' => 'string',
  243. ],
  244. 'sync' => [
  245. 'location' => 'query',
  246. 'type' => 'boolean',
  247. ],
  248. ],
  249. ],'list' => [
  250. 'path' => 'youtube/v3/captions',
  251. 'httpMethod' => 'GET',
  252. 'parameters' => [
  253. 'part' => [
  254. 'location' => 'query',
  255. 'type' => 'string',
  256. 'repeated' => true,
  257. 'required' => true,
  258. ],
  259. 'videoId' => [
  260. 'location' => 'query',
  261. 'type' => 'string',
  262. 'required' => true,
  263. ],
  264. 'id' => [
  265. 'location' => 'query',
  266. 'type' => 'string',
  267. 'repeated' => true,
  268. ],
  269. 'onBehalfOf' => [
  270. 'location' => 'query',
  271. 'type' => 'string',
  272. ],
  273. 'onBehalfOfContentOwner' => [
  274. 'location' => 'query',
  275. 'type' => 'string',
  276. ],
  277. ],
  278. ],'update' => [
  279. 'path' => 'youtube/v3/captions',
  280. 'httpMethod' => 'PUT',
  281. 'parameters' => [
  282. 'part' => [
  283. 'location' => 'query',
  284. 'type' => 'string',
  285. 'repeated' => true,
  286. 'required' => true,
  287. ],
  288. 'onBehalfOf' => [
  289. 'location' => 'query',
  290. 'type' => 'string',
  291. ],
  292. 'onBehalfOfContentOwner' => [
  293. 'location' => 'query',
  294. 'type' => 'string',
  295. ],
  296. 'sync' => [
  297. 'location' => 'query',
  298. 'type' => 'boolean',
  299. ],
  300. ],
  301. ],
  302. ]
  303. ]
  304. );
  305. $this->channelBanners = new YouTube\Resource\ChannelBanners(
  306. $this,
  307. $this->serviceName,
  308. 'channelBanners',
  309. [
  310. 'methods' => [
  311. 'insert' => [
  312. 'path' => 'youtube/v3/channelBanners/insert',
  313. 'httpMethod' => 'POST',
  314. 'parameters' => [
  315. 'channelId' => [
  316. 'location' => 'query',
  317. 'type' => 'string',
  318. ],
  319. 'onBehalfOfContentOwner' => [
  320. 'location' => 'query',
  321. 'type' => 'string',
  322. ],
  323. 'onBehalfOfContentOwnerChannel' => [
  324. 'location' => 'query',
  325. 'type' => 'string',
  326. ],
  327. ],
  328. ],
  329. ]
  330. ]
  331. );
  332. $this->channelSections = new YouTube\Resource\ChannelSections(
  333. $this,
  334. $this->serviceName,
  335. 'channelSections',
  336. [
  337. 'methods' => [
  338. 'delete' => [
  339. 'path' => 'youtube/v3/channelSections',
  340. 'httpMethod' => 'DELETE',
  341. 'parameters' => [
  342. 'id' => [
  343. 'location' => 'query',
  344. 'type' => 'string',
  345. 'required' => true,
  346. ],
  347. 'onBehalfOfContentOwner' => [
  348. 'location' => 'query',
  349. 'type' => 'string',
  350. ],
  351. ],
  352. ],'insert' => [
  353. 'path' => 'youtube/v3/channelSections',
  354. 'httpMethod' => 'POST',
  355. 'parameters' => [
  356. 'part' => [
  357. 'location' => 'query',
  358. 'type' => 'string',
  359. 'repeated' => true,
  360. 'required' => true,
  361. ],
  362. 'onBehalfOfContentOwner' => [
  363. 'location' => 'query',
  364. 'type' => 'string',
  365. ],
  366. 'onBehalfOfContentOwnerChannel' => [
  367. 'location' => 'query',
  368. 'type' => 'string',
  369. ],
  370. ],
  371. ],'list' => [
  372. 'path' => 'youtube/v3/channelSections',
  373. 'httpMethod' => 'GET',
  374. 'parameters' => [
  375. 'part' => [
  376. 'location' => 'query',
  377. 'type' => 'string',
  378. 'repeated' => true,
  379. 'required' => true,
  380. ],
  381. 'channelId' => [
  382. 'location' => 'query',
  383. 'type' => 'string',
  384. ],
  385. 'hl' => [
  386. 'location' => 'query',
  387. 'type' => 'string',
  388. ],
  389. 'id' => [
  390. 'location' => 'query',
  391. 'type' => 'string',
  392. 'repeated' => true,
  393. ],
  394. 'mine' => [
  395. 'location' => 'query',
  396. 'type' => 'boolean',
  397. ],
  398. 'onBehalfOfContentOwner' => [
  399. 'location' => 'query',
  400. 'type' => 'string',
  401. ],
  402. ],
  403. ],'update' => [
  404. 'path' => 'youtube/v3/channelSections',
  405. 'httpMethod' => 'PUT',
  406. 'parameters' => [
  407. 'part' => [
  408. 'location' => 'query',
  409. 'type' => 'string',
  410. 'repeated' => true,
  411. 'required' => true,
  412. ],
  413. 'onBehalfOfContentOwner' => [
  414. 'location' => 'query',
  415. 'type' => 'string',
  416. ],
  417. ],
  418. ],
  419. ]
  420. ]
  421. );
  422. $this->channels = new YouTube\Resource\Channels(
  423. $this,
  424. $this->serviceName,
  425. 'channels',
  426. [
  427. 'methods' => [
  428. 'list' => [
  429. 'path' => 'youtube/v3/channels',
  430. 'httpMethod' => 'GET',
  431. 'parameters' => [
  432. 'part' => [
  433. 'location' => 'query',
  434. 'type' => 'string',
  435. 'repeated' => true,
  436. 'required' => true,
  437. ],
  438. 'categoryId' => [
  439. 'location' => 'query',
  440. 'type' => 'string',
  441. ],
  442. 'forUsername' => [
  443. 'location' => 'query',
  444. 'type' => 'string',
  445. ],
  446. 'hl' => [
  447. 'location' => 'query',
  448. 'type' => 'string',
  449. ],
  450. 'id' => [
  451. 'location' => 'query',
  452. 'type' => 'string',
  453. 'repeated' => true,
  454. ],
  455. 'managedByMe' => [
  456. 'location' => 'query',
  457. 'type' => 'boolean',
  458. ],
  459. 'maxResults' => [
  460. 'location' => 'query',
  461. 'type' => 'integer',
  462. ],
  463. 'mine' => [
  464. 'location' => 'query',
  465. 'type' => 'boolean',
  466. ],
  467. 'mySubscribers' => [
  468. 'location' => 'query',
  469. 'type' => 'boolean',
  470. ],
  471. 'onBehalfOfContentOwner' => [
  472. 'location' => 'query',
  473. 'type' => 'string',
  474. ],
  475. 'pageToken' => [
  476. 'location' => 'query',
  477. 'type' => 'string',
  478. ],
  479. ],
  480. ],'update' => [
  481. 'path' => 'youtube/v3/channels',
  482. 'httpMethod' => 'PUT',
  483. 'parameters' => [
  484. 'part' => [
  485. 'location' => 'query',
  486. 'type' => 'string',
  487. 'repeated' => true,
  488. 'required' => true,
  489. ],
  490. 'onBehalfOfContentOwner' => [
  491. 'location' => 'query',
  492. 'type' => 'string',
  493. ],
  494. ],
  495. ],
  496. ]
  497. ]
  498. );
  499. $this->commentThreads = new YouTube\Resource\CommentThreads(
  500. $this,
  501. $this->serviceName,
  502. 'commentThreads',
  503. [
  504. 'methods' => [
  505. 'insert' => [
  506. 'path' => 'youtube/v3/commentThreads',
  507. 'httpMethod' => 'POST',
  508. 'parameters' => [
  509. 'part' => [
  510. 'location' => 'query',
  511. 'type' => 'string',
  512. 'repeated' => true,
  513. 'required' => true,
  514. ],
  515. ],
  516. ],'list' => [
  517. 'path' => 'youtube/v3/commentThreads',
  518. 'httpMethod' => 'GET',
  519. 'parameters' => [
  520. 'part' => [
  521. 'location' => 'query',
  522. 'type' => 'string',
  523. 'repeated' => true,
  524. 'required' => true,
  525. ],
  526. 'allThreadsRelatedToChannelId' => [
  527. 'location' => 'query',
  528. 'type' => 'string',
  529. ],
  530. 'channelId' => [
  531. 'location' => 'query',
  532. 'type' => 'string',
  533. ],
  534. 'id' => [
  535. 'location' => 'query',
  536. 'type' => 'string',
  537. 'repeated' => true,
  538. ],
  539. 'maxResults' => [
  540. 'location' => 'query',
  541. 'type' => 'integer',
  542. ],
  543. 'moderationStatus' => [
  544. 'location' => 'query',
  545. 'type' => 'string',
  546. ],
  547. 'order' => [
  548. 'location' => 'query',
  549. 'type' => 'string',
  550. ],
  551. 'pageToken' => [
  552. 'location' => 'query',
  553. 'type' => 'string',
  554. ],
  555. 'searchTerms' => [
  556. 'location' => 'query',
  557. 'type' => 'string',
  558. ],
  559. 'textFormat' => [
  560. 'location' => 'query',
  561. 'type' => 'string',
  562. ],
  563. 'videoId' => [
  564. 'location' => 'query',
  565. 'type' => 'string',
  566. ],
  567. ],
  568. ],
  569. ]
  570. ]
  571. );
  572. $this->comments = new YouTube\Resource\Comments(
  573. $this,
  574. $this->serviceName,
  575. 'comments',
  576. [
  577. 'methods' => [
  578. 'delete' => [
  579. 'path' => 'youtube/v3/comments',
  580. 'httpMethod' => 'DELETE',
  581. 'parameters' => [
  582. 'id' => [
  583. 'location' => 'query',
  584. 'type' => 'string',
  585. 'required' => true,
  586. ],
  587. ],
  588. ],'insert' => [
  589. 'path' => 'youtube/v3/comments',
  590. 'httpMethod' => 'POST',
  591. 'parameters' => [
  592. 'part' => [
  593. 'location' => 'query',
  594. 'type' => 'string',
  595. 'repeated' => true,
  596. 'required' => true,
  597. ],
  598. ],
  599. ],'list' => [
  600. 'path' => 'youtube/v3/comments',
  601. 'httpMethod' => 'GET',
  602. 'parameters' => [
  603. 'part' => [
  604. 'location' => 'query',
  605. 'type' => 'string',
  606. 'repeated' => true,
  607. 'required' => true,
  608. ],
  609. 'id' => [
  610. 'location' => 'query',
  611. 'type' => 'string',
  612. 'repeated' => true,
  613. ],
  614. 'maxResults' => [
  615. 'location' => 'query',
  616. 'type' => 'integer',
  617. ],
  618. 'pageToken' => [
  619. 'location' => 'query',
  620. 'type' => 'string',
  621. ],
  622. 'parentId' => [
  623. 'location' => 'query',
  624. 'type' => 'string',
  625. ],
  626. 'textFormat' => [
  627. 'location' => 'query',
  628. 'type' => 'string',
  629. ],
  630. ],
  631. ],'markAsSpam' => [
  632. 'path' => 'youtube/v3/comments/markAsSpam',
  633. 'httpMethod' => 'POST',
  634. 'parameters' => [
  635. 'id' => [
  636. 'location' => 'query',
  637. 'type' => 'string',
  638. 'repeated' => true,
  639. 'required' => true,
  640. ],
  641. ],
  642. ],'setModerationStatus' => [
  643. 'path' => 'youtube/v3/comments/setModerationStatus',
  644. 'httpMethod' => 'POST',
  645. 'parameters' => [
  646. 'id' => [
  647. 'location' => 'query',
  648. 'type' => 'string',
  649. 'repeated' => true,
  650. 'required' => true,
  651. ],
  652. 'moderationStatus' => [
  653. 'location' => 'query',
  654. 'type' => 'string',
  655. 'required' => true,
  656. ],
  657. 'banAuthor' => [
  658. 'location' => 'query',
  659. 'type' => 'boolean',
  660. ],
  661. ],
  662. ],'update' => [
  663. 'path' => 'youtube/v3/comments',
  664. 'httpMethod' => 'PUT',
  665. 'parameters' => [
  666. 'part' => [
  667. 'location' => 'query',
  668. 'type' => 'string',
  669. 'repeated' => true,
  670. 'required' => true,
  671. ],
  672. ],
  673. ],
  674. ]
  675. ]
  676. );
  677. $this->i18nLanguages = new YouTube\Resource\I18nLanguages(
  678. $this,
  679. $this->serviceName,
  680. 'i18nLanguages',
  681. [
  682. 'methods' => [
  683. 'list' => [
  684. 'path' => 'youtube/v3/i18nLanguages',
  685. 'httpMethod' => 'GET',
  686. 'parameters' => [
  687. 'part' => [
  688. 'location' => 'query',
  689. 'type' => 'string',
  690. 'repeated' => true,
  691. 'required' => true,
  692. ],
  693. 'hl' => [
  694. 'location' => 'query',
  695. 'type' => 'string',
  696. ],
  697. ],
  698. ],
  699. ]
  700. ]
  701. );
  702. $this->i18nRegions = new YouTube\Resource\I18nRegions(
  703. $this,
  704. $this->serviceName,
  705. 'i18nRegions',
  706. [
  707. 'methods' => [
  708. 'list' => [
  709. 'path' => 'youtube/v3/i18nRegions',
  710. 'httpMethod' => 'GET',
  711. 'parameters' => [
  712. 'part' => [
  713. 'location' => 'query',
  714. 'type' => 'string',
  715. 'repeated' => true,
  716. 'required' => true,
  717. ],
  718. 'hl' => [
  719. 'location' => 'query',
  720. 'type' => 'string',
  721. ],
  722. ],
  723. ],
  724. ]
  725. ]
  726. );
  727. $this->liveBroadcasts = new YouTube\Resource\LiveBroadcasts(
  728. $this,
  729. $this->serviceName,
  730. 'liveBroadcasts',
  731. [
  732. 'methods' => [
  733. 'bind' => [
  734. 'path' => 'youtube/v3/liveBroadcasts/bind',
  735. 'httpMethod' => 'POST',
  736. 'parameters' => [
  737. 'id' => [
  738. 'location' => 'query',
  739. 'type' => 'string',
  740. 'required' => true,
  741. ],
  742. 'part' => [
  743. 'location' => 'query',
  744. 'type' => 'string',
  745. 'repeated' => true,
  746. 'required' => true,
  747. ],
  748. 'onBehalfOfContentOwner' => [
  749. 'location' => 'query',
  750. 'type' => 'string',
  751. ],
  752. 'onBehalfOfContentOwnerChannel' => [
  753. 'location' => 'query',
  754. 'type' => 'string',
  755. ],
  756. 'streamId' => [
  757. 'location' => 'query',
  758. 'type' => 'string',
  759. ],
  760. ],
  761. ],'delete' => [
  762. 'path' => 'youtube/v3/liveBroadcasts',
  763. 'httpMethod' => 'DELETE',
  764. 'parameters' => [
  765. 'id' => [
  766. 'location' => 'query',
  767. 'type' => 'string',
  768. 'required' => true,
  769. ],
  770. 'onBehalfOfContentOwner' => [
  771. 'location' => 'query',
  772. 'type' => 'string',
  773. ],
  774. 'onBehalfOfContentOwnerChannel' => [
  775. 'location' => 'query',
  776. 'type' => 'string',
  777. ],
  778. ],
  779. ],'insert' => [
  780. 'path' => 'youtube/v3/liveBroadcasts',
  781. 'httpMethod' => 'POST',
  782. 'parameters' => [
  783. 'part' => [
  784. 'location' => 'query',
  785. 'type' => 'string',
  786. 'repeated' => true,
  787. 'required' => true,
  788. ],
  789. 'onBehalfOfContentOwner' => [
  790. 'location' => 'query',
  791. 'type' => 'string',
  792. ],
  793. 'onBehalfOfContentOwnerChannel' => [
  794. 'location' => 'query',
  795. 'type' => 'string',
  796. ],
  797. ],
  798. ],'list' => [
  799. 'path' => 'youtube/v3/liveBroadcasts',
  800. 'httpMethod' => 'GET',
  801. 'parameters' => [
  802. 'part' => [
  803. 'location' => 'query',
  804. 'type' => 'string',
  805. 'repeated' => true,
  806. 'required' => true,
  807. ],
  808. 'broadcastStatus' => [
  809. 'location' => 'query',
  810. 'type' => 'string',
  811. ],
  812. 'broadcastType' => [
  813. 'location' => 'query',
  814. 'type' => 'string',
  815. ],
  816. 'id' => [
  817. 'location' => 'query',
  818. 'type' => 'string',
  819. 'repeated' => true,
  820. ],
  821. 'maxResults' => [
  822. 'location' => 'query',
  823. 'type' => 'integer',
  824. ],
  825. 'mine' => [
  826. 'location' => 'query',
  827. 'type' => 'boolean',
  828. ],
  829. 'onBehalfOfContentOwner' => [
  830. 'location' => 'query',
  831. 'type' => 'string',
  832. ],
  833. 'onBehalfOfContentOwnerChannel' => [
  834. 'location' => 'query',
  835. 'type' => 'string',
  836. ],
  837. 'pageToken' => [
  838. 'location' => 'query',
  839. 'type' => 'string',
  840. ],
  841. ],
  842. ],'transition' => [
  843. 'path' => 'youtube/v3/liveBroadcasts/transition',
  844. 'httpMethod' => 'POST',
  845. 'parameters' => [
  846. 'broadcastStatus' => [
  847. 'location' => 'query',
  848. 'type' => 'string',
  849. 'required' => true,
  850. ],
  851. 'id' => [
  852. 'location' => 'query',
  853. 'type' => 'string',
  854. 'required' => true,
  855. ],
  856. 'part' => [
  857. 'location' => 'query',
  858. 'type' => 'string',
  859. 'repeated' => true,
  860. 'required' => true,
  861. ],
  862. 'onBehalfOfContentOwner' => [
  863. 'location' => 'query',
  864. 'type' => 'string',
  865. ],
  866. 'onBehalfOfContentOwnerChannel' => [
  867. 'location' => 'query',
  868. 'type' => 'string',
  869. ],
  870. ],
  871. ],'update' => [
  872. 'path' => 'youtube/v3/liveBroadcasts',
  873. 'httpMethod' => 'PUT',
  874. 'parameters' => [
  875. 'part' => [
  876. 'location' => 'query',
  877. 'type' => 'string',
  878. 'repeated' => true,
  879. 'required' => true,
  880. ],
  881. 'onBehalfOfContentOwner' => [
  882. 'location' => 'query',
  883. 'type' => 'string',
  884. ],
  885. 'onBehalfOfContentOwnerChannel' => [
  886. 'location' => 'query',
  887. 'type' => 'string',
  888. ],
  889. ],
  890. ],
  891. ]
  892. ]
  893. );
  894. $this->liveChatBans = new YouTube\Resource\LiveChatBans(
  895. $this,
  896. $this->serviceName,
  897. 'liveChatBans',
  898. [
  899. 'methods' => [
  900. 'delete' => [
  901. 'path' => 'youtube/v3/liveChat/bans',
  902. 'httpMethod' => 'DELETE',
  903. 'parameters' => [
  904. 'id' => [
  905. 'location' => 'query',
  906. 'type' => 'string',
  907. 'required' => true,
  908. ],
  909. ],
  910. ],'insert' => [
  911. 'path' => 'youtube/v3/liveChat/bans',
  912. 'httpMethod' => 'POST',
  913. 'parameters' => [
  914. 'part' => [
  915. 'location' => 'query',
  916. 'type' => 'string',
  917. 'repeated' => true,
  918. 'required' => true,
  919. ],
  920. ],
  921. ],
  922. ]
  923. ]
  924. );
  925. $this->liveChatMessages = new YouTube\Resource\LiveChatMessages(
  926. $this,
  927. $this->serviceName,
  928. 'liveChatMessages',
  929. [
  930. 'methods' => [
  931. 'delete' => [
  932. 'path' => 'youtube/v3/liveChat/messages',
  933. 'httpMethod' => 'DELETE',
  934. 'parameters' => [
  935. 'id' => [
  936. 'location' => 'query',
  937. 'type' => 'string',
  938. 'required' => true,
  939. ],
  940. ],
  941. ],'insert' => [
  942. 'path' => 'youtube/v3/liveChat/messages',
  943. 'httpMethod' => 'POST',
  944. 'parameters' => [
  945. 'part' => [
  946. 'location' => 'query',
  947. 'type' => 'string',
  948. 'repeated' => true,
  949. 'required' => true,
  950. ],
  951. ],
  952. ],'list' => [
  953. 'path' => 'youtube/v3/liveChat/messages',
  954. 'httpMethod' => 'GET',
  955. 'parameters' => [
  956. 'liveChatId' => [
  957. 'location' => 'query',
  958. 'type' => 'string',
  959. 'required' => true,
  960. ],
  961. 'part' => [
  962. 'location' => 'query',
  963. 'type' => 'string',
  964. 'repeated' => true,
  965. 'required' => true,
  966. ],
  967. 'hl' => [
  968. 'location' => 'query',
  969. 'type' => 'string',
  970. ],
  971. 'maxResults' => [
  972. 'location' => 'query',
  973. 'type' => 'integer',
  974. ],
  975. 'pageToken' => [
  976. 'location' => 'query',
  977. 'type' => 'string',
  978. ],
  979. 'profileImageSize' => [
  980. 'location' => 'query',
  981. 'type' => 'integer',
  982. ],
  983. ],
  984. ],
  985. ]
  986. ]
  987. );
  988. $this->liveChatModerators = new YouTube\Resource\LiveChatModerators(
  989. $this,
  990. $this->serviceName,
  991. 'liveChatModerators',
  992. [
  993. 'methods' => [
  994. 'delete' => [
  995. 'path' => 'youtube/v3/liveChat/moderators',
  996. 'httpMethod' => 'DELETE',
  997. 'parameters' => [
  998. 'id' => [
  999. 'location' => 'query',
  1000. 'type' => 'string',
  1001. 'required' => true,
  1002. ],
  1003. ],
  1004. ],'insert' => [
  1005. 'path' => 'youtube/v3/liveChat/moderators',
  1006. 'httpMethod' => 'POST',
  1007. 'parameters' => [
  1008. 'part' => [
  1009. 'location' => 'query',
  1010. 'type' => 'string',
  1011. 'repeated' => true,
  1012. 'required' => true,
  1013. ],
  1014. ],
  1015. ],'list' => [
  1016. 'path' => 'youtube/v3/liveChat/moderators',
  1017. 'httpMethod' => 'GET',
  1018. 'parameters' => [
  1019. 'liveChatId' => [
  1020. 'location' => 'query',
  1021. 'type' => 'string',
  1022. 'required' => true,
  1023. ],
  1024. 'part' => [
  1025. 'location' => 'query',
  1026. 'type' => 'string',
  1027. 'repeated' => true,
  1028. 'required' => true,
  1029. ],
  1030. 'maxResults' => [
  1031. 'location' => 'query',
  1032. 'type' => 'integer',
  1033. ],
  1034. 'pageToken' => [
  1035. 'location' => 'query',
  1036. 'type' => 'string',
  1037. ],
  1038. ],
  1039. ],
  1040. ]
  1041. ]
  1042. );
  1043. $this->liveStreams = new YouTube\Resource\LiveStreams(
  1044. $this,
  1045. $this->serviceName,
  1046. 'liveStreams',
  1047. [
  1048. 'methods' => [
  1049. 'delete' => [
  1050. 'path' => 'youtube/v3/liveStreams',
  1051. 'httpMethod' => 'DELETE',
  1052. 'parameters' => [
  1053. 'id' => [
  1054. 'location' => 'query',
  1055. 'type' => 'string',
  1056. 'required' => true,
  1057. ],
  1058. 'onBehalfOfContentOwner' => [
  1059. 'location' => 'query',
  1060. 'type' => 'string',
  1061. ],
  1062. 'onBehalfOfContentOwnerChannel' => [
  1063. 'location' => 'query',
  1064. 'type' => 'string',
  1065. ],
  1066. ],
  1067. ],'insert' => [
  1068. 'path' => 'youtube/v3/liveStreams',
  1069. 'httpMethod' => 'POST',
  1070. 'parameters' => [
  1071. 'part' => [
  1072. 'location' => 'query',
  1073. 'type' => 'string',
  1074. 'repeated' => true,
  1075. 'required' => true,
  1076. ],
  1077. 'onBehalfOfContentOwner' => [
  1078. 'location' => 'query',
  1079. 'type' => 'string',
  1080. ],
  1081. 'onBehalfOfContentOwnerChannel' => [
  1082. 'location' => 'query',
  1083. 'type' => 'string',
  1084. ],
  1085. ],
  1086. ],'list' => [
  1087. 'path' => 'youtube/v3/liveStreams',
  1088. 'httpMethod' => 'GET',
  1089. 'parameters' => [
  1090. 'part' => [
  1091. 'location' => 'query',
  1092. 'type' => 'string',
  1093. 'repeated' => true,
  1094. 'required' => true,
  1095. ],
  1096. 'id' => [
  1097. 'location' => 'query',
  1098. 'type' => 'string',
  1099. 'repeated' => true,
  1100. ],
  1101. 'maxResults' => [
  1102. 'location' => 'query',
  1103. 'type' => 'integer',
  1104. ],
  1105. 'mine' => [
  1106. 'location' => 'query',
  1107. 'type' => 'boolean',
  1108. ],
  1109. 'onBehalfOfContentOwner' => [
  1110. 'location' => 'query',
  1111. 'type' => 'string',
  1112. ],
  1113. 'onBehalfOfContentOwnerChannel' => [
  1114. 'location' => 'query',
  1115. 'type' => 'string',
  1116. ],
  1117. 'pageToken' => [
  1118. 'location' => 'query',
  1119. 'type' => 'string',
  1120. ],
  1121. ],
  1122. ],'update' => [
  1123. 'path' => 'youtube/v3/liveStreams',
  1124. 'httpMethod' => 'PUT',
  1125. 'parameters' => [
  1126. 'part' => [
  1127. 'location' => 'query',
  1128. 'type' => 'string',
  1129. 'repeated' => true,
  1130. 'required' => true,
  1131. ],
  1132. 'onBehalfOfContentOwner' => [
  1133. 'location' => 'query',
  1134. 'type' => 'string',
  1135. ],
  1136. 'onBehalfOfContentOwnerChannel' => [
  1137. 'location' => 'query',
  1138. 'type' => 'string',
  1139. ],
  1140. ],
  1141. ],
  1142. ]
  1143. ]
  1144. );
  1145. $this->members = new YouTube\Resource\Members(
  1146. $this,
  1147. $this->serviceName,
  1148. 'members',
  1149. [
  1150. 'methods' => [
  1151. 'list' => [
  1152. 'path' => 'youtube/v3/members',
  1153. 'httpMethod' => 'GET',
  1154. 'parameters' => [
  1155. 'part' => [
  1156. 'location' => 'query',
  1157. 'type' => 'string',
  1158. 'repeated' => true,
  1159. 'required' => true,
  1160. ],
  1161. 'filterByMemberChannelId' => [
  1162. 'location' => 'query',
  1163. 'type' => 'string',
  1164. ],
  1165. 'hasAccessToLevel' => [
  1166. 'location' => 'query',
  1167. 'type' => 'string',
  1168. ],
  1169. 'maxResults' => [
  1170. 'location' => 'query',
  1171. 'type' => 'integer',
  1172. ],
  1173. 'mode' => [
  1174. 'location' => 'query',
  1175. 'type' => 'string',
  1176. ],
  1177. 'pageToken' => [
  1178. 'location' => 'query',
  1179. 'type' => 'string',
  1180. ],
  1181. ],
  1182. ],
  1183. ]
  1184. ]
  1185. );
  1186. $this->membershipsLevels = new YouTube\Resource\MembershipsLevels(
  1187. $this,
  1188. $this->serviceName,
  1189. 'membershipsLevels',
  1190. [
  1191. 'methods' => [
  1192. 'list' => [
  1193. 'path' => 'youtube/v3/membershipsLevels',
  1194. 'httpMethod' => 'GET',
  1195. 'parameters' => [
  1196. 'part' => [
  1197. 'location' => 'query',
  1198. 'type' => 'string',
  1199. 'repeated' => true,
  1200. 'required' => true,
  1201. ],
  1202. ],
  1203. ],
  1204. ]
  1205. ]
  1206. );
  1207. $this->playlistItems = new YouTube\Resource\PlaylistItems(
  1208. $this,
  1209. $this->serviceName,
  1210. 'playlistItems',
  1211. [
  1212. 'methods' => [
  1213. 'delete' => [
  1214. 'path' => 'youtube/v3/playlistItems',
  1215. 'httpMethod' => 'DELETE',
  1216. 'parameters' => [
  1217. 'id' => [
  1218. 'location' => 'query',
  1219. 'type' => 'string',
  1220. 'required' => true,
  1221. ],
  1222. 'onBehalfOfContentOwner' => [
  1223. 'location' => 'query',
  1224. 'type' => 'string',
  1225. ],
  1226. ],
  1227. ],'insert' => [
  1228. 'path' => 'youtube/v3/playlistItems',
  1229. 'httpMethod' => 'POST',
  1230. 'parameters' => [
  1231. 'part' => [
  1232. 'location' => 'query',
  1233. 'type' => 'string',
  1234. 'repeated' => true,
  1235. 'required' => true,
  1236. ],
  1237. 'onBehalfOfContentOwner' => [
  1238. 'location' => 'query',
  1239. 'type' => 'string',
  1240. ],
  1241. ],
  1242. ],'list' => [
  1243. 'path' => 'youtube/v3/playlistItems',
  1244. 'httpMethod' => 'GET',
  1245. 'parameters' => [
  1246. 'part' => [
  1247. 'location' => 'query',
  1248. 'type' => 'string',
  1249. 'repeated' => true,
  1250. 'required' => true,
  1251. ],
  1252. 'id' => [
  1253. 'location' => 'query',
  1254. 'type' => 'string',
  1255. 'repeated' => true,
  1256. ],
  1257. 'maxResults' => [
  1258. 'location' => 'query',
  1259. 'type' => 'integer',
  1260. ],
  1261. 'onBehalfOfContentOwner' => [
  1262. 'location' => 'query',
  1263. 'type' => 'string',
  1264. ],
  1265. 'pageToken' => [
  1266. 'location' => 'query',
  1267. 'type' => 'string',
  1268. ],
  1269. 'playlistId' => [
  1270. 'location' => 'query',
  1271. 'type' => 'string',
  1272. ],
  1273. 'videoId' => [
  1274. 'location' => 'query',
  1275. 'type' => 'string',
  1276. ],
  1277. ],
  1278. ],'update' => [
  1279. 'path' => 'youtube/v3/playlistItems',
  1280. 'httpMethod' => 'PUT',
  1281. 'parameters' => [
  1282. 'part' => [
  1283. 'location' => 'query',
  1284. 'type' => 'string',
  1285. 'repeated' => true,
  1286. 'required' => true,
  1287. ],
  1288. 'onBehalfOfContentOwner' => [
  1289. 'location' => 'query',
  1290. 'type' => 'string',
  1291. ],
  1292. ],
  1293. ],
  1294. ]
  1295. ]
  1296. );
  1297. $this->playlists = new YouTube\Resource\Playlists(
  1298. $this,
  1299. $this->serviceName,
  1300. 'playlists',
  1301. [
  1302. 'methods' => [
  1303. 'delete' => [
  1304. 'path' => 'youtube/v3/playlists',
  1305. 'httpMethod' => 'DELETE',
  1306. 'parameters' => [
  1307. 'id' => [
  1308. 'location' => 'query',
  1309. 'type' => 'string',
  1310. 'required' => true,
  1311. ],
  1312. 'onBehalfOfContentOwner' => [
  1313. 'location' => 'query',
  1314. 'type' => 'string',
  1315. ],
  1316. ],
  1317. ],'insert' => [
  1318. 'path' => 'youtube/v3/playlists',
  1319. 'httpMethod' => 'POST',
  1320. 'parameters' => [
  1321. 'part' => [
  1322. 'location' => 'query',
  1323. 'type' => 'string',
  1324. 'repeated' => true,
  1325. 'required' => true,
  1326. ],
  1327. 'onBehalfOfContentOwner' => [
  1328. 'location' => 'query',
  1329. 'type' => 'string',
  1330. ],
  1331. 'onBehalfOfContentOwnerChannel' => [
  1332. 'location' => 'query',
  1333. 'type' => 'string',
  1334. ],
  1335. ],
  1336. ],'list' => [
  1337. 'path' => 'youtube/v3/playlists',
  1338. 'httpMethod' => 'GET',
  1339. 'parameters' => [
  1340. 'part' => [
  1341. 'location' => 'query',
  1342. 'type' => 'string',
  1343. 'repeated' => true,
  1344. 'required' => true,
  1345. ],
  1346. 'channelId' => [
  1347. 'location' => 'query',
  1348. 'type' => 'string',
  1349. ],
  1350. 'hl' => [
  1351. 'location' => 'query',
  1352. 'type' => 'string',
  1353. ],
  1354. 'id' => [
  1355. 'location' => 'query',
  1356. 'type' => 'string',
  1357. 'repeated' => true,
  1358. ],
  1359. 'maxResults' => [
  1360. 'location' => 'query',
  1361. 'type' => 'integer',
  1362. ],
  1363. 'mine' => [
  1364. 'location' => 'query',
  1365. 'type' => 'boolean',
  1366. ],
  1367. 'onBehalfOfContentOwner' => [
  1368. 'location' => 'query',
  1369. 'type' => 'string',
  1370. ],
  1371. 'onBehalfOfContentOwnerChannel' => [
  1372. 'location' => 'query',
  1373. 'type' => 'string',
  1374. ],
  1375. 'pageToken' => [
  1376. 'location' => 'query',
  1377. 'type' => 'string',
  1378. ],
  1379. ],
  1380. ],'update' => [
  1381. 'path' => 'youtube/v3/playlists',
  1382. 'httpMethod' => 'PUT',
  1383. 'parameters' => [
  1384. 'part' => [
  1385. 'location' => 'query',
  1386. 'type' => 'string',
  1387. 'repeated' => true,
  1388. 'required' => true,
  1389. ],
  1390. 'onBehalfOfContentOwner' => [
  1391. 'location' => 'query',
  1392. 'type' => 'string',
  1393. ],
  1394. ],
  1395. ],
  1396. ]
  1397. ]
  1398. );
  1399. $this->search = new YouTube\Resource\Search(
  1400. $this,
  1401. $this->serviceName,
  1402. 'search',
  1403. [
  1404. 'methods' => [
  1405. 'list' => [
  1406. 'path' => 'youtube/v3/search',
  1407. 'httpMethod' => 'GET',
  1408. 'parameters' => [
  1409. 'part' => [
  1410. 'location' => 'query',
  1411. 'type' => 'string',
  1412. 'repeated' => true,
  1413. 'required' => true,
  1414. ],
  1415. 'channelId' => [
  1416. 'location' => 'query',
  1417. 'type' => 'string',
  1418. ],
  1419. 'channelType' => [
  1420. 'location' => 'query',
  1421. 'type' => 'string',
  1422. ],
  1423. 'eventType' => [
  1424. 'location' => 'query',
  1425. 'type' => 'string',
  1426. ],
  1427. 'forContentOwner' => [
  1428. 'location' => 'query',
  1429. 'type' => 'boolean',
  1430. ],
  1431. 'forDeveloper' => [
  1432. 'location' => 'query',
  1433. 'type' => 'boolean',
  1434. ],
  1435. 'forMine' => [
  1436. 'location' => 'query',
  1437. 'type' => 'boolean',
  1438. ],
  1439. 'location' => [
  1440. 'location' => 'query',
  1441. 'type' => 'string',
  1442. ],
  1443. 'locationRadius' => [
  1444. 'location' => 'query',
  1445. 'type' => 'string',
  1446. ],
  1447. 'maxResults' => [
  1448. 'location' => 'query',
  1449. 'type' => 'integer',
  1450. ],
  1451. 'onBehalfOfContentOwner' => [
  1452. 'location' => 'query',
  1453. 'type' => 'string',
  1454. ],
  1455. 'order' => [
  1456. 'location' => 'query',
  1457. 'type' => 'string',
  1458. ],
  1459. 'pageToken' => [
  1460. 'location' => 'query',
  1461. 'type' => 'string',
  1462. ],
  1463. 'publishedAfter' => [
  1464. 'location' => 'query',
  1465. 'type' => 'string',
  1466. ],
  1467. 'publishedBefore' => [
  1468. 'location' => 'query',
  1469. 'type' => 'string',
  1470. ],
  1471. 'q' => [
  1472. 'location' => 'query',
  1473. 'type' => 'string',
  1474. ],
  1475. 'regionCode' => [
  1476. 'location' => 'query',
  1477. 'type' => 'string',
  1478. ],
  1479. 'relatedToVideoId' => [
  1480. 'location' => 'query',
  1481. 'type' => 'string',
  1482. ],
  1483. 'relevanceLanguage' => [
  1484. 'location' => 'query',
  1485. 'type' => 'string',
  1486. ],
  1487. 'safeSearch' => [
  1488. 'location' => 'query',
  1489. 'type' => 'string',
  1490. ],
  1491. 'topicId' => [
  1492. 'location' => 'query',
  1493. 'type' => 'string',
  1494. ],
  1495. 'type' => [
  1496. 'location' => 'query',
  1497. 'type' => 'string',
  1498. 'repeated' => true,
  1499. ],
  1500. 'videoCaption' => [
  1501. 'location' => 'query',
  1502. 'type' => 'string',
  1503. ],
  1504. 'videoCategoryId' => [
  1505. 'location' => 'query',
  1506. 'type' => 'string',
  1507. ],
  1508. 'videoDefinition' => [
  1509. 'location' => 'query',
  1510. 'type' => 'string',
  1511. ],
  1512. 'videoDimension' => [
  1513. 'location' => 'query',
  1514. 'type' => 'string',
  1515. ],
  1516. 'videoDuration' => [
  1517. 'location' => 'query',
  1518. 'type' => 'string',
  1519. ],
  1520. 'videoEmbeddable' => [
  1521. 'location' => 'query',
  1522. 'type' => 'string',
  1523. ],
  1524. 'videoLicense' => [
  1525. 'location' => 'query',
  1526. 'type' => 'string',
  1527. ],
  1528. 'videoSyndicated' => [
  1529. 'location' => 'query',
  1530. 'type' => 'string',
  1531. ],
  1532. 'videoType' => [
  1533. 'location' => 'query',
  1534. 'type' => 'string',
  1535. ],
  1536. ],
  1537. ],
  1538. ]
  1539. ]
  1540. );
  1541. $this->subscriptions = new YouTube\Resource\Subscriptions(
  1542. $this,
  1543. $this->serviceName,
  1544. 'subscriptions',
  1545. [
  1546. 'methods' => [
  1547. 'delete' => [
  1548. 'path' => 'youtube/v3/subscriptions',
  1549. 'httpMethod' => 'DELETE',
  1550. 'parameters' => [
  1551. 'id' => [
  1552. 'location' => 'query',
  1553. 'type' => 'string',
  1554. 'required' => true,
  1555. ],
  1556. ],
  1557. ],'insert' => [
  1558. 'path' => 'youtube/v3/subscriptions',
  1559. 'httpMethod' => 'POST',
  1560. 'parameters' => [
  1561. 'part' => [
  1562. 'location' => 'query',
  1563. 'type' => 'string',
  1564. 'repeated' => true,
  1565. 'required' => true,
  1566. ],
  1567. ],
  1568. ],'list' => [
  1569. 'path' => 'youtube/v3/subscriptions',
  1570. 'httpMethod' => 'GET',
  1571. 'parameters' => [
  1572. 'part' => [
  1573. 'location' => 'query',
  1574. 'type' => 'string',
  1575. 'repeated' => true,
  1576. 'required' => true,
  1577. ],
  1578. 'channelId' => [
  1579. 'location' => 'query',
  1580. 'type' => 'string',
  1581. ],
  1582. 'forChannelId' => [
  1583. 'location' => 'query',
  1584. 'type' => 'string',
  1585. ],
  1586. 'id' => [
  1587. 'location' => 'query',
  1588. 'type' => 'string',
  1589. 'repeated' => true,
  1590. ],
  1591. 'maxResults' => [
  1592. 'location' => 'query',
  1593. 'type' => 'integer',
  1594. ],
  1595. 'mine' => [
  1596. 'location' => 'query',
  1597. 'type' => 'boolean',
  1598. ],
  1599. 'myRecentSubscribers' => [
  1600. 'location' => 'query',
  1601. 'type' => 'boolean',
  1602. ],
  1603. 'mySubscribers' => [
  1604. 'location' => 'query',
  1605. 'type' => 'boolean',
  1606. ],
  1607. 'onBehalfOfContentOwner' => [
  1608. 'location' => 'query',
  1609. 'type' => 'string',
  1610. ],
  1611. 'onBehalfOfContentOwnerChannel' => [
  1612. 'location' => 'query',
  1613. 'type' => 'string',
  1614. ],
  1615. 'order' => [
  1616. 'location' => 'query',
  1617. 'type' => 'string',
  1618. ],
  1619. 'pageToken' => [
  1620. 'location' => 'query',
  1621. 'type' => 'string',
  1622. ],
  1623. ],
  1624. ],
  1625. ]
  1626. ]
  1627. );
  1628. $this->superChatEvents = new YouTube\Resource\SuperChatEvents(
  1629. $this,
  1630. $this->serviceName,
  1631. 'superChatEvents',
  1632. [
  1633. 'methods' => [
  1634. 'list' => [
  1635. 'path' => 'youtube/v3/superChatEvents',
  1636. 'httpMethod' => 'GET',
  1637. 'parameters' => [
  1638. 'part' => [
  1639. 'location' => 'query',
  1640. 'type' => 'string',
  1641. 'repeated' => true,
  1642. 'required' => true,
  1643. ],
  1644. 'hl' => [
  1645. 'location' => 'query',
  1646. 'type' => 'string',
  1647. ],
  1648. 'maxResults' => [
  1649. 'location' => 'query',
  1650. 'type' => 'integer',
  1651. ],
  1652. 'pageToken' => [
  1653. 'location' => 'query',
  1654. 'type' => 'string',
  1655. ],
  1656. ],
  1657. ],
  1658. ]
  1659. ]
  1660. );
  1661. $this->tests = new YouTube\Resource\Tests(
  1662. $this,
  1663. $this->serviceName,
  1664. 'tests',
  1665. [
  1666. 'methods' => [
  1667. 'insert' => [
  1668. 'path' => 'youtube/v3/tests',
  1669. 'httpMethod' => 'POST',
  1670. 'parameters' => [
  1671. 'part' => [
  1672. 'location' => 'query',
  1673. 'type' => 'string',
  1674. 'repeated' => true,
  1675. 'required' => true,
  1676. ],
  1677. 'externalChannelId' => [
  1678. 'location' => 'query',
  1679. 'type' => 'string',
  1680. ],
  1681. ],
  1682. ],
  1683. ]
  1684. ]
  1685. );
  1686. $this->thirdPartyLinks = new YouTube\Resource\ThirdPartyLinks(
  1687. $this,
  1688. $this->serviceName,
  1689. 'thirdPartyLinks',
  1690. [
  1691. 'methods' => [
  1692. 'delete' => [
  1693. 'path' => 'youtube/v3/thirdPartyLinks',
  1694. 'httpMethod' => 'DELETE',
  1695. 'parameters' => [
  1696. 'linkingToken' => [
  1697. 'location' => 'query',
  1698. 'type' => 'string',
  1699. 'required' => true,
  1700. ],
  1701. 'type' => [
  1702. 'location' => 'query',
  1703. 'type' => 'string',
  1704. 'required' => true,
  1705. ],
  1706. 'externalChannelId' => [
  1707. 'location' => 'query',
  1708. 'type' => 'string',
  1709. ],
  1710. 'part' => [
  1711. 'location' => 'query',
  1712. 'type' => 'string',
  1713. 'repeated' => true,
  1714. ],
  1715. ],
  1716. ],'insert' => [
  1717. 'path' => 'youtube/v3/thirdPartyLinks',
  1718. 'httpMethod' => 'POST',
  1719. 'parameters' => [
  1720. 'part' => [
  1721. 'location' => 'query',
  1722. 'type' => 'string',
  1723. 'repeated' => true,
  1724. 'required' => true,
  1725. ],
  1726. 'externalChannelId' => [
  1727. 'location' => 'query',
  1728. 'type' => 'string',
  1729. ],
  1730. ],
  1731. ],'list' => [
  1732. 'path' => 'youtube/v3/thirdPartyLinks',
  1733. 'httpMethod' => 'GET',
  1734. 'parameters' => [
  1735. 'part' => [
  1736. 'location' => 'query',
  1737. 'type' => 'string',
  1738. 'repeated' => true,
  1739. 'required' => true,
  1740. ],
  1741. 'externalChannelId' => [
  1742. 'location' => 'query',
  1743. 'type' => 'string',
  1744. ],
  1745. 'linkingToken' => [
  1746. 'location' => 'query',
  1747. 'type' => 'string',
  1748. ],
  1749. 'type' => [
  1750. 'location' => 'query',
  1751. 'type' => 'string',
  1752. ],
  1753. ],
  1754. ],'update' => [
  1755. 'path' => 'youtube/v3/thirdPartyLinks',
  1756. 'httpMethod' => 'PUT',
  1757. 'parameters' => [
  1758. 'part' => [
  1759. 'location' => 'query',
  1760. 'type' => 'string',
  1761. 'repeated' => true,
  1762. 'required' => true,
  1763. ],
  1764. 'externalChannelId' => [
  1765. 'location' => 'query',
  1766. 'type' => 'string',
  1767. ],
  1768. ],
  1769. ],
  1770. ]
  1771. ]
  1772. );
  1773. $this->thumbnails = new YouTube\Resource\Thumbnails(
  1774. $this,
  1775. $this->serviceName,
  1776. 'thumbnails',
  1777. [
  1778. 'methods' => [
  1779. 'set' => [
  1780. 'path' => 'youtube/v3/thumbnails/set',
  1781. 'httpMethod' => 'POST',
  1782. 'parameters' => [
  1783. 'videoId' => [
  1784. 'location' => 'query',
  1785. 'type' => 'string',
  1786. 'required' => true,
  1787. ],
  1788. 'onBehalfOfContentOwner' => [
  1789. 'location' => 'query',
  1790. 'type' => 'string',
  1791. ],
  1792. ],
  1793. ],
  1794. ]
  1795. ]
  1796. );
  1797. $this->videoAbuseReportReasons = new YouTube\Resource\VideoAbuseReportReasons(
  1798. $this,
  1799. $this->serviceName,
  1800. 'videoAbuseReportReasons',
  1801. [
  1802. 'methods' => [
  1803. 'list' => [
  1804. 'path' => 'youtube/v3/videoAbuseReportReasons',
  1805. 'httpMethod' => 'GET',
  1806. 'parameters' => [
  1807. 'part' => [
  1808. 'location' => 'query',
  1809. 'type' => 'string',
  1810. 'repeated' => true,
  1811. 'required' => true,
  1812. ],
  1813. 'hl' => [
  1814. 'location' => 'query',
  1815. 'type' => 'string',
  1816. ],
  1817. ],
  1818. ],
  1819. ]
  1820. ]
  1821. );
  1822. $this->videoCategories = new YouTube\Resource\VideoCategories(
  1823. $this,
  1824. $this->serviceName,
  1825. 'videoCategories',
  1826. [
  1827. 'methods' => [
  1828. 'list' => [
  1829. 'path' => 'youtube/v3/videoCategories',
  1830. 'httpMethod' => 'GET',
  1831. 'parameters' => [
  1832. 'part' => [
  1833. 'location' => 'query',
  1834. 'type' => 'string',
  1835. 'repeated' => true,
  1836. 'required' => true,
  1837. ],
  1838. 'hl' => [
  1839. 'location' => 'query',
  1840. 'type' => 'string',
  1841. ],
  1842. 'id' => [
  1843. 'location' => 'query',
  1844. 'type' => 'string',
  1845. 'repeated' => true,
  1846. ],
  1847. 'regionCode' => [
  1848. 'location' => 'query',
  1849. 'type' => 'string',
  1850. ],
  1851. ],
  1852. ],
  1853. ]
  1854. ]
  1855. );
  1856. $this->videos = new YouTube\Resource\Videos(
  1857. $this,
  1858. $this->serviceName,
  1859. 'videos',
  1860. [
  1861. 'methods' => [
  1862. 'delete' => [
  1863. 'path' => 'youtube/v3/videos',
  1864. 'httpMethod' => 'DELETE',
  1865. 'parameters' => [
  1866. 'id' => [
  1867. 'location' => 'query',
  1868. 'type' => 'string',
  1869. 'required' => true,
  1870. ],
  1871. 'onBehalfOfContentOwner' => [
  1872. 'location' => 'query',
  1873. 'type' => 'string',
  1874. ],
  1875. ],
  1876. ],'getRating' => [
  1877. 'path' => 'youtube/v3/videos/getRating',
  1878. 'httpMethod' => 'GET',
  1879. 'parameters' => [
  1880. 'id' => [
  1881. 'location' => 'query',
  1882. 'type' => 'string',
  1883. 'repeated' => true,
  1884. 'required' => true,
  1885. ],
  1886. 'onBehalfOfContentOwner' => [
  1887. 'location' => 'query',
  1888. 'type' => 'string',
  1889. ],
  1890. ],
  1891. ],'insert' => [
  1892. 'path' => 'youtube/v3/videos',
  1893. 'httpMethod' => 'POST',
  1894. 'parameters' => [
  1895. 'part' => [
  1896. 'location' => 'query',
  1897. 'type' => 'string',
  1898. 'repeated' => true,
  1899. 'required' => true,
  1900. ],
  1901. 'autoLevels' => [
  1902. 'location' => 'query',
  1903. 'type' => 'boolean',
  1904. ],
  1905. 'notifySubscribers' => [
  1906. 'location' => 'query',
  1907. 'type' => 'boolean',
  1908. ],
  1909. 'onBehalfOfContentOwner' => [
  1910. 'location' => 'query',
  1911. 'type' => 'string',
  1912. ],
  1913. 'onBehalfOfContentOwnerChannel' => [
  1914. 'location' => 'query',
  1915. 'type' => 'string',
  1916. ],
  1917. 'stabilize' => [
  1918. 'location' => 'query',
  1919. 'type' => 'boolean',
  1920. ],
  1921. ],
  1922. ],'list' => [
  1923. 'path' => 'youtube/v3/videos',
  1924. 'httpMethod' => 'GET',
  1925. 'parameters' => [
  1926. 'part' => [
  1927. 'location' => 'query',
  1928. 'type' => 'string',
  1929. 'repeated' => true,
  1930. 'required' => true,
  1931. ],
  1932. 'chart' => [
  1933. 'location' => 'query',
  1934. 'type' => 'string',
  1935. ],
  1936. 'hl' => [
  1937. 'location' => 'query',
  1938. 'type' => 'string',
  1939. ],
  1940. 'id' => [
  1941. 'location' => 'query',
  1942. 'type' => 'string',
  1943. 'repeated' => true,
  1944. ],
  1945. 'locale' => [
  1946. 'location' => 'query',
  1947. 'type' => 'string',
  1948. ],
  1949. 'maxHeight' => [
  1950. 'location' => 'query',
  1951. 'type' => 'integer',
  1952. ],
  1953. 'maxResults' => [
  1954. 'location' => 'query',
  1955. 'type' => 'integer',
  1956. ],
  1957. 'maxWidth' => [
  1958. 'location' => 'query',
  1959. 'type' => 'integer',
  1960. ],
  1961. 'myRating' => [
  1962. 'location' => 'query',
  1963. 'type' => 'string',
  1964. ],
  1965. 'onBehalfOfContentOwner' => [
  1966. 'location' => 'query',
  1967. 'type' => 'string',
  1968. ],
  1969. 'pageToken' => [
  1970. 'location' => 'query',
  1971. 'type' => 'string',
  1972. ],
  1973. 'regionCode' => [
  1974. 'location' => 'query',
  1975. 'type' => 'string',
  1976. ],
  1977. 'videoCategoryId' => [
  1978. 'location' => 'query',
  1979. 'type' => 'string',
  1980. ],
  1981. ],
  1982. ],'rate' => [
  1983. 'path' => 'youtube/v3/videos/rate',
  1984. 'httpMethod' => 'POST',
  1985. 'parameters' => [
  1986. 'id' => [
  1987. 'location' => 'query',
  1988. 'type' => 'string',
  1989. 'required' => true,
  1990. ],
  1991. 'rating' => [
  1992. 'location' => 'query',
  1993. 'type' => 'string',
  1994. 'required' => true,
  1995. ],
  1996. ],
  1997. ],'reportAbuse' => [
  1998. 'path' => 'youtube/v3/videos/reportAbuse',
  1999. 'httpMethod' => 'POST',
  2000. 'parameters' => [
  2001. 'onBehalfOfContentOwner' => [
  2002. 'location' => 'query',
  2003. 'type' => 'string',
  2004. ],
  2005. ],
  2006. ],'update' => [
  2007. 'path' => 'youtube/v3/videos',
  2008. 'httpMethod' => 'PUT',
  2009. 'parameters' => [
  2010. 'part' => [
  2011. 'location' => 'query',
  2012. 'type' => 'string',
  2013. 'repeated' => true,
  2014. 'required' => true,
  2015. ],
  2016. 'onBehalfOfContentOwner' => [
  2017. 'location' => 'query',
  2018. 'type' => 'string',
  2019. ],
  2020. ],
  2021. ],
  2022. ]
  2023. ]
  2024. );
  2025. $this->watermarks = new YouTube\Resource\Watermarks(
  2026. $this,
  2027. $this->serviceName,
  2028. 'watermarks',
  2029. [
  2030. 'methods' => [
  2031. 'set' => [
  2032. 'path' => 'youtube/v3/watermarks/set',
  2033. 'httpMethod' => 'POST',
  2034. 'parameters' => [
  2035. 'channelId' => [
  2036. 'location' => 'query',
  2037. 'type' => 'string',
  2038. 'required' => true,
  2039. ],
  2040. 'onBehalfOfContentOwner' => [
  2041. 'location' => 'query',
  2042. 'type' => 'string',
  2043. ],
  2044. ],
  2045. ],'unset' => [
  2046. 'path' => 'youtube/v3/watermarks/unset',
  2047. 'httpMethod' => 'POST',
  2048. 'parameters' => [
  2049. 'channelId' => [
  2050. 'location' => 'query',
  2051. 'type' => 'string',
  2052. 'required' => true,
  2053. ],
  2054. 'onBehalfOfContentOwner' => [
  2055. 'location' => 'query',
  2056. 'type' => 'string',
  2057. ],
  2058. ],
  2059. ],
  2060. ]
  2061. ]
  2062. );
  2063. $this->youtube_v3 = new YouTube\Resource\YoutubeV3(
  2064. $this,
  2065. $this->serviceName,
  2066. 'v3',
  2067. [
  2068. 'methods' => [
  2069. 'updateCommentThreads' => [
  2070. 'path' => 'youtube/v3/commentThreads',
  2071. 'httpMethod' => 'PUT',
  2072. 'parameters' => [
  2073. 'part' => [
  2074. 'location' => 'query',
  2075. 'type' => 'string',
  2076. 'repeated' => true,
  2077. ],
  2078. ],
  2079. ],
  2080. ]
  2081. ]
  2082. );
  2083. $this->youtube_v3_liveBroadcasts_cuepoint = new YouTube\Resource\YoutubeV3LiveBroadcastsCuepoint(
  2084. $this,
  2085. $this->serviceName,
  2086. 'cuepoint',
  2087. [
  2088. 'methods' => [
  2089. 'create' => [
  2090. 'path' => 'youtube/v3/liveBroadcasts/cuepoint',
  2091. 'httpMethod' => 'POST',
  2092. 'parameters' => [
  2093. 'id' => [
  2094. 'location' => 'query',
  2095. 'type' => 'string',
  2096. ],
  2097. 'onBehalfOfContentOwner' => [
  2098. 'location' => 'query',
  2099. 'type' => 'string',
  2100. ],
  2101. 'onBehalfOfContentOwnerChannel' => [
  2102. 'location' => 'query',
  2103. 'type' => 'string',
  2104. ],
  2105. 'part' => [
  2106. 'location' => 'query',
  2107. 'type' => 'string',
  2108. 'repeated' => true,
  2109. ],
  2110. 'resource.cueType' => [
  2111. 'location' => 'query',
  2112. 'type' => 'string',
  2113. ],
  2114. 'resource.durationSecs' => [
  2115. 'location' => 'query',
  2116. 'type' => 'integer',
  2117. ],
  2118. 'resource.id' => [
  2119. 'location' => 'query',
  2120. 'type' => 'string',
  2121. ],
  2122. 'resource.insertionOffsetTimeMs' => [
  2123. 'location' => 'query',
  2124. 'type' => 'string',
  2125. ],
  2126. 'resource.walltimeMs' => [
  2127. 'location' => 'query',
  2128. 'type' => 'string',
  2129. ],
  2130. ],
  2131. ],
  2132. ]
  2133. ]
  2134. );
  2135. }
  2136. }
  2137. // Adding a class alias for backwards compatibility with the previous class name.
  2138. class_alias(YouTube::class, 'Google_Service_YouTube');