YouTube.php 71 KB

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