Google_Service_YouTube

Service definition for YouTube (v3).

Defined (1)

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

/includes/api-libs/Google/Service/YouTube.php  
  1. class Google_Service_YouTube extends Google_Service 
  2. /** Manage your YouTube account. */ 
  3. const YOUTUBE = 
  4. "https://www.googleapis.com/auth/youtube"; 
  5. /** View your YouTube account. */ 
  6. const YOUTUBE_READONLY = 
  7. "https://www.googleapis.com/auth/youtube.readonly"; 
  8. /** Manage your YouTube videos. */ 
  9. const YOUTUBE_UPLOAD = 
  10. "https://www.googleapis.com/auth/youtube.upload"; 
  11. /** View and manage your assets and associated content on YouTube. */ 
  12. const YOUTUBEPARTNER = 
  13. "https://www.googleapis.com/auth/youtubepartner"; 
  14. /** View private information of your YouTube channel relevant during the audit process with a YouTube partner. */ 
  15. const YOUTUBEPARTNER_CHANNEL_AUDIT = 
  16. "https://www.googleapis.com/auth/youtubepartner-channel-audit"; 
  17.  
  18. public $activities; 
  19. public $channelBanners; 
  20. public $channelSections; 
  21. public $channels; 
  22. public $guideCategories; 
  23. public $i18nLanguages; 
  24. public $i18nRegions; 
  25. public $liveBroadcasts; 
  26. public $liveStreams; 
  27. public $playlistItems; 
  28. public $playlists; 
  29. public $search; 
  30. public $subscriptions; 
  31. public $thumbnails; 
  32. public $videoCategories; 
  33. public $videos; 
  34. public $watermarks; 
  35.  
  36.  
  37. /** 
  38. * Constructs the internal representation of the YouTube service. 
  39. * @param Google_Client $client 
  40. */ 
  41. public function __construct(Google_Client $client) 
  42. parent::__construct($client); 
  43. $this->servicePath = 'youtube/v3/'; 
  44. $this->version = 'v3'; 
  45. $this->serviceName = 'youtube'; 
  46.  
  47. $this->activities = new Google_Service_YouTube_Activities_Resource( 
  48. $this,  
  49. $this->serviceName,  
  50. 'activities',  
  51. array( 
  52. 'methods' => array( 
  53. 'insert' => array( 
  54. 'path' => 'activities',  
  55. 'httpMethod' => 'POST',  
  56. 'parameters' => array( 
  57. 'part' => array( 
  58. 'location' => 'query',  
  59. 'type' => 'string',  
  60. 'required' => true,  
  61. ),  
  62. ),  
  63. ), 'list' => array( 
  64. 'path' => 'activities',  
  65. 'httpMethod' => 'GET',  
  66. 'parameters' => array( 
  67. 'part' => array( 
  68. 'location' => 'query',  
  69. 'type' => 'string',  
  70. 'required' => true,  
  71. ),  
  72. 'regionCode' => array( 
  73. 'location' => 'query',  
  74. 'type' => 'string',  
  75. ),  
  76. 'publishedBefore' => array( 
  77. 'location' => 'query',  
  78. 'type' => 'string',  
  79. ),  
  80. 'channelId' => array( 
  81. 'location' => 'query',  
  82. 'type' => 'string',  
  83. ),  
  84. 'mine' => array( 
  85. 'location' => 'query',  
  86. 'type' => 'boolean',  
  87. ),  
  88. 'maxResults' => array( 
  89. 'location' => 'query',  
  90. 'type' => 'integer',  
  91. ),  
  92. 'pageToken' => array( 
  93. 'location' => 'query',  
  94. 'type' => 'string',  
  95. ),  
  96. 'home' => array( 
  97. 'location' => 'query',  
  98. 'type' => 'boolean',  
  99. ),  
  100. 'publishedAfter' => array( 
  101. 'location' => 'query',  
  102. 'type' => 'string',  
  103. ),  
  104. ),  
  105. ),  
  106. ); 
  107. $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( 
  108. $this,  
  109. $this->serviceName,  
  110. 'channelBanners',  
  111. array( 
  112. 'methods' => array( 
  113. 'insert' => array( 
  114. 'path' => 'channelBanners/insert',  
  115. 'httpMethod' => 'POST',  
  116. 'parameters' => array( 
  117. 'onBehalfOfContentOwner' => array( 
  118. 'location' => 'query',  
  119. 'type' => 'string',  
  120. ),  
  121. ),  
  122. ),  
  123. ); 
  124. $this->channelSections = new Google_Service_YouTube_ChannelSections_Resource( 
  125. $this,  
  126. $this->serviceName,  
  127. 'channelSections',  
  128. array( 
  129. 'methods' => array( 
  130. 'delete' => array( 
  131. 'path' => 'channelSections',  
  132. 'httpMethod' => 'DELETE',  
  133. 'parameters' => array( 
  134. 'id' => array( 
  135. 'location' => 'query',  
  136. 'type' => 'string',  
  137. 'required' => true,  
  138. ),  
  139. 'onBehalfOfContentOwner' => array( 
  140. 'location' => 'query',  
  141. 'type' => 'string',  
  142. ),  
  143. ),  
  144. ), 'insert' => array( 
  145. 'path' => 'channelSections',  
  146. 'httpMethod' => 'POST',  
  147. 'parameters' => array( 
  148. 'part' => array( 
  149. 'location' => 'query',  
  150. 'type' => 'string',  
  151. 'required' => true,  
  152. ),  
  153. 'onBehalfOfContentOwnerChannel' => array( 
  154. 'location' => 'query',  
  155. 'type' => 'string',  
  156. ),  
  157. 'onBehalfOfContentOwner' => array( 
  158. 'location' => 'query',  
  159. 'type' => 'string',  
  160. ),  
  161. ),  
  162. ), 'list' => array( 
  163. 'path' => 'channelSections',  
  164. 'httpMethod' => 'GET',  
  165. 'parameters' => array( 
  166. 'part' => array( 
  167. 'location' => 'query',  
  168. 'type' => 'string',  
  169. 'required' => true,  
  170. ),  
  171. 'onBehalfOfContentOwner' => array( 
  172. 'location' => 'query',  
  173. 'type' => 'string',  
  174. ),  
  175. 'channelId' => array( 
  176. 'location' => 'query',  
  177. 'type' => 'string',  
  178. ),  
  179. 'id' => array( 
  180. 'location' => 'query',  
  181. 'type' => 'string',  
  182. ),  
  183. 'mine' => array( 
  184. 'location' => 'query',  
  185. 'type' => 'boolean',  
  186. ),  
  187. ),  
  188. ), 'update' => array( 
  189. 'path' => 'channelSections',  
  190. 'httpMethod' => 'PUT',  
  191. 'parameters' => array( 
  192. 'part' => array( 
  193. 'location' => 'query',  
  194. 'type' => 'string',  
  195. 'required' => true,  
  196. ),  
  197. 'onBehalfOfContentOwner' => array( 
  198. 'location' => 'query',  
  199. 'type' => 'string',  
  200. ),  
  201. ),  
  202. ),  
  203. ); 
  204. $this->channels = new Google_Service_YouTube_Channels_Resource( 
  205. $this,  
  206. $this->serviceName,  
  207. 'channels',  
  208. array( 
  209. 'methods' => array( 
  210. 'list' => array( 
  211. 'path' => 'channels',  
  212. 'httpMethod' => 'GET',  
  213. 'parameters' => array( 
  214. 'part' => array( 
  215. 'location' => 'query',  
  216. 'type' => 'string',  
  217. 'required' => true,  
  218. ),  
  219. 'managedByMe' => array( 
  220. 'location' => 'query',  
  221. 'type' => 'boolean',  
  222. ),  
  223. 'onBehalfOfContentOwner' => array( 
  224. 'location' => 'query',  
  225. 'type' => 'string',  
  226. ),  
  227. 'forUsername' => array( 
  228. 'location' => 'query',  
  229. 'type' => 'string',  
  230. ),  
  231. 'mine' => array( 
  232. 'location' => 'query',  
  233. 'type' => 'boolean',  
  234. ),  
  235. 'maxResults' => array( 
  236. 'location' => 'query',  
  237. 'type' => 'integer',  
  238. ),  
  239. 'id' => array( 
  240. 'location' => 'query',  
  241. 'type' => 'string',  
  242. ),  
  243. 'pageToken' => array( 
  244. 'location' => 'query',  
  245. 'type' => 'string',  
  246. ),  
  247. 'mySubscribers' => array( 
  248. 'location' => 'query',  
  249. 'type' => 'boolean',  
  250. ),  
  251. 'categoryId' => array( 
  252. 'location' => 'query',  
  253. 'type' => 'string',  
  254. ),  
  255. ),  
  256. ), 'update' => array( 
  257. 'path' => 'channels',  
  258. 'httpMethod' => 'PUT',  
  259. 'parameters' => array( 
  260. 'part' => array( 
  261. 'location' => 'query',  
  262. 'type' => 'string',  
  263. 'required' => true,  
  264. ),  
  265. 'onBehalfOfContentOwner' => array( 
  266. 'location' => 'query',  
  267. 'type' => 'string',  
  268. ),  
  269. ),  
  270. ),  
  271. ); 
  272. $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( 
  273. $this,  
  274. $this->serviceName,  
  275. 'guideCategories',  
  276. array( 
  277. 'methods' => array( 
  278. 'list' => array( 
  279. 'path' => 'guideCategories',  
  280. 'httpMethod' => 'GET',  
  281. 'parameters' => array( 
  282. 'part' => array( 
  283. 'location' => 'query',  
  284. 'type' => 'string',  
  285. 'required' => true,  
  286. ),  
  287. 'regionCode' => array( 
  288. 'location' => 'query',  
  289. 'type' => 'string',  
  290. ),  
  291. 'id' => array( 
  292. 'location' => 'query',  
  293. 'type' => 'string',  
  294. ),  
  295. 'hl' => array( 
  296. 'location' => 'query',  
  297. 'type' => 'string',  
  298. ),  
  299. ),  
  300. ),  
  301. ); 
  302. $this->i18nLanguages = new Google_Service_YouTube_I18nLanguages_Resource( 
  303. $this,  
  304. $this->serviceName,  
  305. 'i18nLanguages',  
  306. array( 
  307. 'methods' => array( 
  308. 'list' => array( 
  309. 'path' => 'i18nLanguages',  
  310. 'httpMethod' => 'GET',  
  311. 'parameters' => array( 
  312. 'part' => array( 
  313. 'location' => 'query',  
  314. 'type' => 'string',  
  315. 'required' => true,  
  316. ),  
  317. 'hl' => array( 
  318. 'location' => 'query',  
  319. 'type' => 'string',  
  320. ),  
  321. ),  
  322. ),  
  323. ); 
  324. $this->i18nRegions = new Google_Service_YouTube_I18nRegions_Resource( 
  325. $this,  
  326. $this->serviceName,  
  327. 'i18nRegions',  
  328. array( 
  329. 'methods' => array( 
  330. 'list' => array( 
  331. 'path' => 'i18nRegions',  
  332. 'httpMethod' => 'GET',  
  333. 'parameters' => array( 
  334. 'part' => array( 
  335. 'location' => 'query',  
  336. 'type' => 'string',  
  337. 'required' => true,  
  338. ),  
  339. 'hl' => array( 
  340. 'location' => 'query',  
  341. 'type' => 'string',  
  342. ),  
  343. ),  
  344. ),  
  345. ); 
  346. $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource( 
  347. $this,  
  348. $this->serviceName,  
  349. 'liveBroadcasts',  
  350. array( 
  351. 'methods' => array( 
  352. 'bind' => array( 
  353. 'path' => 'liveBroadcasts/bind',  
  354. 'httpMethod' => 'POST',  
  355. 'parameters' => array( 
  356. 'id' => array( 
  357. 'location' => 'query',  
  358. 'type' => 'string',  
  359. 'required' => true,  
  360. ),  
  361. 'part' => array( 
  362. 'location' => 'query',  
  363. 'type' => 'string',  
  364. 'required' => true,  
  365. ),  
  366. 'onBehalfOfContentOwnerChannel' => array( 
  367. 'location' => 'query',  
  368. 'type' => 'string',  
  369. ),  
  370. 'onBehalfOfContentOwner' => array( 
  371. 'location' => 'query',  
  372. 'type' => 'string',  
  373. ),  
  374. 'streamId' => array( 
  375. 'location' => 'query',  
  376. 'type' => 'string',  
  377. ),  
  378. ),  
  379. ), 'control' => array( 
  380. 'path' => 'liveBroadcasts/control',  
  381. 'httpMethod' => 'POST',  
  382. 'parameters' => array( 
  383. 'id' => array( 
  384. 'location' => 'query',  
  385. 'type' => 'string',  
  386. 'required' => true,  
  387. ),  
  388. 'part' => array( 
  389. 'location' => 'query',  
  390. 'type' => 'string',  
  391. 'required' => true,  
  392. ),  
  393. 'onBehalfOfContentOwner' => array( 
  394. 'location' => 'query',  
  395. 'type' => 'string',  
  396. ),  
  397. 'displaySlate' => array( 
  398. 'location' => 'query',  
  399. 'type' => 'boolean',  
  400. ),  
  401. 'onBehalfOfContentOwnerChannel' => array( 
  402. 'location' => 'query',  
  403. 'type' => 'string',  
  404. ),  
  405. 'offsetTimeMs' => array( 
  406. 'location' => 'query',  
  407. 'type' => 'string',  
  408. ),  
  409. 'walltime' => array( 
  410. 'location' => 'query',  
  411. 'type' => 'string',  
  412. ),  
  413. ),  
  414. ), 'delete' => array( 
  415. 'path' => 'liveBroadcasts',  
  416. 'httpMethod' => 'DELETE',  
  417. 'parameters' => array( 
  418. 'id' => array( 
  419. 'location' => 'query',  
  420. 'type' => 'string',  
  421. 'required' => true,  
  422. ),  
  423. 'onBehalfOfContentOwnerChannel' => array( 
  424. 'location' => 'query',  
  425. 'type' => 'string',  
  426. ),  
  427. 'onBehalfOfContentOwner' => array( 
  428. 'location' => 'query',  
  429. 'type' => 'string',  
  430. ),  
  431. ),  
  432. ), 'insert' => array( 
  433. 'path' => 'liveBroadcasts',  
  434. 'httpMethod' => 'POST',  
  435. 'parameters' => array( 
  436. 'part' => array( 
  437. 'location' => 'query',  
  438. 'type' => 'string',  
  439. 'required' => true,  
  440. ),  
  441. 'onBehalfOfContentOwnerChannel' => array( 
  442. 'location' => 'query',  
  443. 'type' => 'string',  
  444. ),  
  445. 'onBehalfOfContentOwner' => array( 
  446. 'location' => 'query',  
  447. 'type' => 'string',  
  448. ),  
  449. ),  
  450. ), 'list' => array( 
  451. 'path' => 'liveBroadcasts',  
  452. 'httpMethod' => 'GET',  
  453. 'parameters' => array( 
  454. 'part' => array( 
  455. 'location' => 'query',  
  456. 'type' => 'string',  
  457. 'required' => true,  
  458. ),  
  459. 'broadcastStatus' => array( 
  460. 'location' => 'query',  
  461. 'type' => 'string',  
  462. ),  
  463. 'onBehalfOfContentOwner' => array( 
  464. 'location' => 'query',  
  465. 'type' => 'string',  
  466. ),  
  467. 'onBehalfOfContentOwnerChannel' => array( 
  468. 'location' => 'query',  
  469. 'type' => 'string',  
  470. ),  
  471. 'mine' => array( 
  472. 'location' => 'query',  
  473. 'type' => 'boolean',  
  474. ),  
  475. 'maxResults' => array( 
  476. 'location' => 'query',  
  477. 'type' => 'integer',  
  478. ),  
  479. 'pageToken' => array( 
  480. 'location' => 'query',  
  481. 'type' => 'string',  
  482. ),  
  483. 'id' => array( 
  484. 'location' => 'query',  
  485. 'type' => 'string',  
  486. ),  
  487. ),  
  488. ), 'transition' => array( 
  489. 'path' => 'liveBroadcasts/transition',  
  490. 'httpMethod' => 'POST',  
  491. 'parameters' => array( 
  492. 'broadcastStatus' => array( 
  493. 'location' => 'query',  
  494. 'type' => 'string',  
  495. 'required' => true,  
  496. ),  
  497. 'id' => array( 
  498. 'location' => 'query',  
  499. 'type' => 'string',  
  500. 'required' => true,  
  501. ),  
  502. 'part' => array( 
  503. 'location' => 'query',  
  504. 'type' => 'string',  
  505. 'required' => true,  
  506. ),  
  507. 'onBehalfOfContentOwnerChannel' => array( 
  508. 'location' => 'query',  
  509. 'type' => 'string',  
  510. ),  
  511. 'onBehalfOfContentOwner' => array( 
  512. 'location' => 'query',  
  513. 'type' => 'string',  
  514. ),  
  515. ),  
  516. ), 'update' => array( 
  517. 'path' => 'liveBroadcasts',  
  518. 'httpMethod' => 'PUT',  
  519. 'parameters' => array( 
  520. 'part' => array( 
  521. 'location' => 'query',  
  522. 'type' => 'string',  
  523. 'required' => true,  
  524. ),  
  525. 'onBehalfOfContentOwnerChannel' => array( 
  526. 'location' => 'query',  
  527. 'type' => 'string',  
  528. ),  
  529. 'onBehalfOfContentOwner' => array( 
  530. 'location' => 'query',  
  531. 'type' => 'string',  
  532. ),  
  533. ),  
  534. ),  
  535. ); 
  536. $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource( 
  537. $this,  
  538. $this->serviceName,  
  539. 'liveStreams',  
  540. array( 
  541. 'methods' => array( 
  542. 'delete' => array( 
  543. 'path' => 'liveStreams',  
  544. 'httpMethod' => 'DELETE',  
  545. 'parameters' => array( 
  546. 'id' => array( 
  547. 'location' => 'query',  
  548. 'type' => 'string',  
  549. 'required' => true,  
  550. ),  
  551. 'onBehalfOfContentOwnerChannel' => array( 
  552. 'location' => 'query',  
  553. 'type' => 'string',  
  554. ),  
  555. 'onBehalfOfContentOwner' => array( 
  556. 'location' => 'query',  
  557. 'type' => 'string',  
  558. ),  
  559. ),  
  560. ), 'insert' => array( 
  561. 'path' => 'liveStreams',  
  562. 'httpMethod' => 'POST',  
  563. 'parameters' => array( 
  564. 'part' => array( 
  565. 'location' => 'query',  
  566. 'type' => 'string',  
  567. 'required' => true,  
  568. ),  
  569. 'onBehalfOfContentOwnerChannel' => array( 
  570. 'location' => 'query',  
  571. 'type' => 'string',  
  572. ),  
  573. 'onBehalfOfContentOwner' => array( 
  574. 'location' => 'query',  
  575. 'type' => 'string',  
  576. ),  
  577. ),  
  578. ), 'list' => array( 
  579. 'path' => 'liveStreams',  
  580. 'httpMethod' => 'GET',  
  581. 'parameters' => array( 
  582. 'part' => array( 
  583. 'location' => 'query',  
  584. 'type' => 'string',  
  585. 'required' => true,  
  586. ),  
  587. 'onBehalfOfContentOwner' => array( 
  588. 'location' => 'query',  
  589. 'type' => 'string',  
  590. ),  
  591. 'onBehalfOfContentOwnerChannel' => array( 
  592. 'location' => 'query',  
  593. 'type' => 'string',  
  594. ),  
  595. 'mine' => array( 
  596. 'location' => 'query',  
  597. 'type' => 'boolean',  
  598. ),  
  599. 'maxResults' => array( 
  600. 'location' => 'query',  
  601. 'type' => 'integer',  
  602. ),  
  603. 'pageToken' => array( 
  604. 'location' => 'query',  
  605. 'type' => 'string',  
  606. ),  
  607. 'id' => array( 
  608. 'location' => 'query',  
  609. 'type' => 'string',  
  610. ),  
  611. ),  
  612. ), 'update' => array( 
  613. 'path' => 'liveStreams',  
  614. 'httpMethod' => 'PUT',  
  615. 'parameters' => array( 
  616. 'part' => array( 
  617. 'location' => 'query',  
  618. 'type' => 'string',  
  619. 'required' => true,  
  620. ),  
  621. 'onBehalfOfContentOwnerChannel' => array( 
  622. 'location' => 'query',  
  623. 'type' => 'string',  
  624. ),  
  625. 'onBehalfOfContentOwner' => array( 
  626. 'location' => 'query',  
  627. 'type' => 'string',  
  628. ),  
  629. ),  
  630. ),  
  631. ); 
  632. $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource( 
  633. $this,  
  634. $this->serviceName,  
  635. 'playlistItems',  
  636. array( 
  637. 'methods' => array( 
  638. 'delete' => array( 
  639. 'path' => 'playlistItems',  
  640. 'httpMethod' => 'DELETE',  
  641. 'parameters' => array( 
  642. 'id' => array( 
  643. 'location' => 'query',  
  644. 'type' => 'string',  
  645. 'required' => true,  
  646. ),  
  647. ),  
  648. ), 'insert' => array( 
  649. 'path' => 'playlistItems',  
  650. 'httpMethod' => 'POST',  
  651. 'parameters' => array( 
  652. 'part' => array( 
  653. 'location' => 'query',  
  654. 'type' => 'string',  
  655. 'required' => true,  
  656. ),  
  657. 'onBehalfOfContentOwner' => array( 
  658. 'location' => 'query',  
  659. 'type' => 'string',  
  660. ),  
  661. ),  
  662. ), 'list' => array( 
  663. 'path' => 'playlistItems',  
  664. 'httpMethod' => 'GET',  
  665. 'parameters' => array( 
  666. 'part' => array( 
  667. 'location' => 'query',  
  668. 'type' => 'string',  
  669. 'required' => true,  
  670. ),  
  671. 'onBehalfOfContentOwner' => array( 
  672. 'location' => 'query',  
  673. 'type' => 'string',  
  674. ),  
  675. 'playlistId' => array( 
  676. 'location' => 'query',  
  677. 'type' => 'string',  
  678. ),  
  679. 'videoId' => array( 
  680. 'location' => 'query',  
  681. 'type' => 'string',  
  682. ),  
  683. 'maxResults' => array( 
  684. 'location' => 'query',  
  685. 'type' => 'integer',  
  686. ),  
  687. 'pageToken' => array( 
  688. 'location' => 'query',  
  689. 'type' => 'string',  
  690. ),  
  691. 'id' => array( 
  692. 'location' => 'query',  
  693. 'type' => 'string',  
  694. ),  
  695. ),  
  696. ), 'update' => array( 
  697. 'path' => 'playlistItems',  
  698. 'httpMethod' => 'PUT',  
  699. 'parameters' => array( 
  700. 'part' => array( 
  701. 'location' => 'query',  
  702. 'type' => 'string',  
  703. 'required' => true,  
  704. ),  
  705. ),  
  706. ),  
  707. ); 
  708. $this->playlists = new Google_Service_YouTube_Playlists_Resource( 
  709. $this,  
  710. $this->serviceName,  
  711. 'playlists',  
  712. array( 
  713. 'methods' => array( 
  714. 'delete' => array( 
  715. 'path' => 'playlists',  
  716. 'httpMethod' => 'DELETE',  
  717. 'parameters' => array( 
  718. 'id' => array( 
  719. 'location' => 'query',  
  720. 'type' => 'string',  
  721. 'required' => true,  
  722. ),  
  723. 'onBehalfOfContentOwner' => array( 
  724. 'location' => 'query',  
  725. 'type' => 'string',  
  726. ),  
  727. ),  
  728. ), 'insert' => array( 
  729. 'path' => 'playlists',  
  730. 'httpMethod' => 'POST',  
  731. 'parameters' => array( 
  732. 'part' => array( 
  733. 'location' => 'query',  
  734. 'type' => 'string',  
  735. 'required' => true,  
  736. ),  
  737. 'onBehalfOfContentOwnerChannel' => array( 
  738. 'location' => 'query',  
  739. 'type' => 'string',  
  740. ),  
  741. 'onBehalfOfContentOwner' => array( 
  742. 'location' => 'query',  
  743. 'type' => 'string',  
  744. ),  
  745. ),  
  746. ), 'list' => array( 
  747. 'path' => 'playlists',  
  748. 'httpMethod' => 'GET',  
  749. 'parameters' => array( 
  750. 'part' => array( 
  751. 'location' => 'query',  
  752. 'type' => 'string',  
  753. 'required' => true,  
  754. ),  
  755. 'onBehalfOfContentOwner' => array( 
  756. 'location' => 'query',  
  757. 'type' => 'string',  
  758. ),  
  759. 'onBehalfOfContentOwnerChannel' => array( 
  760. 'location' => 'query',  
  761. 'type' => 'string',  
  762. ),  
  763. 'channelId' => array( 
  764. 'location' => 'query',  
  765. 'type' => 'string',  
  766. ),  
  767. 'mine' => array( 
  768. 'location' => 'query',  
  769. 'type' => 'boolean',  
  770. ),  
  771. 'maxResults' => array( 
  772. 'location' => 'query',  
  773. 'type' => 'integer',  
  774. ),  
  775. 'pageToken' => array( 
  776. 'location' => 'query',  
  777. 'type' => 'string',  
  778. ),  
  779. 'id' => array( 
  780. 'location' => 'query',  
  781. 'type' => 'string',  
  782. ),  
  783. ),  
  784. ), 'update' => array( 
  785. 'path' => 'playlists',  
  786. 'httpMethod' => 'PUT',  
  787. 'parameters' => array( 
  788. 'part' => array( 
  789. 'location' => 'query',  
  790. 'type' => 'string',  
  791. 'required' => true,  
  792. ),  
  793. 'onBehalfOfContentOwner' => array( 
  794. 'location' => 'query',  
  795. 'type' => 'string',  
  796. ),  
  797. ),  
  798. ),  
  799. ); 
  800. $this->search = new Google_Service_YouTube_Search_Resource( 
  801. $this,  
  802. $this->serviceName,  
  803. 'search',  
  804. array( 
  805. 'methods' => array( 
  806. 'list' => array( 
  807. 'path' => 'search',  
  808. 'httpMethod' => 'GET',  
  809. 'parameters' => array( 
  810. 'part' => array( 
  811. 'location' => 'query',  
  812. 'type' => 'string',  
  813. 'required' => true,  
  814. ),  
  815. 'eventType' => array( 
  816. 'location' => 'query',  
  817. 'type' => 'string',  
  818. ),  
  819. 'channelId' => array( 
  820. 'location' => 'query',  
  821. 'type' => 'string',  
  822. ),  
  823. 'videoSyndicated' => array( 
  824. 'location' => 'query',  
  825. 'type' => 'string',  
  826. ),  
  827. 'channelType' => array( 
  828. 'location' => 'query',  
  829. 'type' => 'string',  
  830. ),  
  831. 'videoCaption' => array( 
  832. 'location' => 'query',  
  833. 'type' => 'string',  
  834. ),  
  835. 'publishedAfter' => array( 
  836. 'location' => 'query',  
  837. 'type' => 'string',  
  838. ),  
  839. 'onBehalfOfContentOwner' => array( 
  840. 'location' => 'query',  
  841. 'type' => 'string',  
  842. ),  
  843. 'pageToken' => array( 
  844. 'location' => 'query',  
  845. 'type' => 'string',  
  846. ),  
  847. 'forContentOwner' => array( 
  848. 'location' => 'query',  
  849. 'type' => 'boolean',  
  850. ),  
  851. 'regionCode' => array( 
  852. 'location' => 'query',  
  853. 'type' => 'string',  
  854. ),  
  855. 'location' => array( 
  856. 'location' => 'query',  
  857. 'type' => 'string',  
  858. ),  
  859. 'locationRadius' => array( 
  860. 'location' => 'query',  
  861. 'type' => 'string',  
  862. ),  
  863. 'videoType' => array( 
  864. 'location' => 'query',  
  865. 'type' => 'string',  
  866. ),  
  867. 'type' => array( 
  868. 'location' => 'query',  
  869. 'type' => 'string',  
  870. ),  
  871. 'topicId' => array( 
  872. 'location' => 'query',  
  873. 'type' => 'string',  
  874. ),  
  875. 'publishedBefore' => array( 
  876. 'location' => 'query',  
  877. 'type' => 'string',  
  878. ),  
  879. 'videoDimension' => array( 
  880. 'location' => 'query',  
  881. 'type' => 'string',  
  882. ),  
  883. 'videoLicense' => array( 
  884. 'location' => 'query',  
  885. 'type' => 'string',  
  886. ),  
  887. 'maxResults' => array( 
  888. 'location' => 'query',  
  889. 'type' => 'integer',  
  890. ),  
  891. 'relatedToVideoId' => array( 
  892. 'location' => 'query',  
  893. 'type' => 'string',  
  894. ),  
  895. 'videoDefinition' => array( 
  896. 'location' => 'query',  
  897. 'type' => 'string',  
  898. ),  
  899. 'videoDuration' => array( 
  900. 'location' => 'query',  
  901. 'type' => 'string',  
  902. ),  
  903. 'forMine' => array( 
  904. 'location' => 'query',  
  905. 'type' => 'boolean',  
  906. ),  
  907. 'q' => array( 
  908. 'location' => 'query',  
  909. 'type' => 'string',  
  910. ),  
  911. 'safeSearch' => array( 
  912. 'location' => 'query',  
  913. 'type' => 'string',  
  914. ),  
  915. 'videoEmbeddable' => array( 
  916. 'location' => 'query',  
  917. 'type' => 'string',  
  918. ),  
  919. 'videoCategoryId' => array( 
  920. 'location' => 'query',  
  921. 'type' => 'string',  
  922. ),  
  923. 'order' => array( 
  924. 'location' => 'query',  
  925. 'type' => 'string',  
  926. ),  
  927. ),  
  928. ),  
  929. ); 
  930. $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource( 
  931. $this,  
  932. $this->serviceName,  
  933. 'subscriptions',  
  934. array( 
  935. 'methods' => array( 
  936. 'delete' => array( 
  937. 'path' => 'subscriptions',  
  938. 'httpMethod' => 'DELETE',  
  939. 'parameters' => array( 
  940. 'id' => array( 
  941. 'location' => 'query',  
  942. 'type' => 'string',  
  943. 'required' => true,  
  944. ),  
  945. ),  
  946. ), 'insert' => array( 
  947. 'path' => 'subscriptions',  
  948. 'httpMethod' => 'POST',  
  949. 'parameters' => array( 
  950. 'part' => array( 
  951. 'location' => 'query',  
  952. 'type' => 'string',  
  953. 'required' => true,  
  954. ),  
  955. ),  
  956. ), 'list' => array( 
  957. 'path' => 'subscriptions',  
  958. 'httpMethod' => 'GET',  
  959. 'parameters' => array( 
  960. 'part' => array( 
  961. 'location' => 'query',  
  962. 'type' => 'string',  
  963. 'required' => true,  
  964. ),  
  965. 'onBehalfOfContentOwner' => array( 
  966. 'location' => 'query',  
  967. 'type' => 'string',  
  968. ),  
  969. 'onBehalfOfContentOwnerChannel' => array( 
  970. 'location' => 'query',  
  971. 'type' => 'string',  
  972. ),  
  973. 'channelId' => array( 
  974. 'location' => 'query',  
  975. 'type' => 'string',  
  976. ),  
  977. 'mine' => array( 
  978. 'location' => 'query',  
  979. 'type' => 'boolean',  
  980. ),  
  981. 'maxResults' => array( 
  982. 'location' => 'query',  
  983. 'type' => 'integer',  
  984. ),  
  985. 'forChannelId' => array( 
  986. 'location' => 'query',  
  987. 'type' => 'string',  
  988. ),  
  989. 'pageToken' => array( 
  990. 'location' => 'query',  
  991. 'type' => 'string',  
  992. ),  
  993. 'mySubscribers' => array( 
  994. 'location' => 'query',  
  995. 'type' => 'boolean',  
  996. ),  
  997. 'order' => array( 
  998. 'location' => 'query',  
  999. 'type' => 'string',  
  1000. ),  
  1001. 'id' => array( 
  1002. 'location' => 'query',  
  1003. 'type' => 'string',  
  1004. ),  
  1005. ),  
  1006. ),  
  1007. ); 
  1008. $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource( 
  1009. $this,  
  1010. $this->serviceName,  
  1011. 'thumbnails',  
  1012. array( 
  1013. 'methods' => array( 
  1014. 'set' => array( 
  1015. 'path' => 'thumbnails/set',  
  1016. 'httpMethod' => 'POST',  
  1017. 'parameters' => array( 
  1018. 'videoId' => array( 
  1019. 'location' => 'query',  
  1020. 'type' => 'string',  
  1021. 'required' => true,  
  1022. ),  
  1023. 'onBehalfOfContentOwner' => array( 
  1024. 'location' => 'query',  
  1025. 'type' => 'string',  
  1026. ),  
  1027. ),  
  1028. ),  
  1029. ); 
  1030. $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( 
  1031. $this,  
  1032. $this->serviceName,  
  1033. 'videoCategories',  
  1034. array( 
  1035. 'methods' => array( 
  1036. 'list' => array( 
  1037. 'path' => 'videoCategories',  
  1038. 'httpMethod' => 'GET',  
  1039. 'parameters' => array( 
  1040. 'part' => array( 
  1041. 'location' => 'query',  
  1042. 'type' => 'string',  
  1043. 'required' => true,  
  1044. ),  
  1045. 'regionCode' => array( 
  1046. 'location' => 'query',  
  1047. 'type' => 'string',  
  1048. ),  
  1049. 'id' => array( 
  1050. 'location' => 'query',  
  1051. 'type' => 'string',  
  1052. ),  
  1053. 'hl' => array( 
  1054. 'location' => 'query',  
  1055. 'type' => 'string',  
  1056. ),  
  1057. ),  
  1058. ),  
  1059. ); 
  1060. $this->videos = new Google_Service_YouTube_Videos_Resource( 
  1061. $this,  
  1062. $this->serviceName,  
  1063. 'videos',  
  1064. array( 
  1065. 'methods' => array( 
  1066. 'delete' => array( 
  1067. 'path' => 'videos',  
  1068. 'httpMethod' => 'DELETE',  
  1069. 'parameters' => array( 
  1070. 'id' => array( 
  1071. 'location' => 'query',  
  1072. 'type' => 'string',  
  1073. 'required' => true,  
  1074. ),  
  1075. 'onBehalfOfContentOwner' => array( 
  1076. 'location' => 'query',  
  1077. 'type' => 'string',  
  1078. ),  
  1079. ),  
  1080. ), 'getRating' => array( 
  1081. 'path' => 'videos/getRating',  
  1082. 'httpMethod' => 'GET',  
  1083. 'parameters' => array( 
  1084. 'id' => array( 
  1085. 'location' => 'query',  
  1086. 'type' => 'string',  
  1087. 'required' => true,  
  1088. ),  
  1089. 'onBehalfOfContentOwner' => array( 
  1090. 'location' => 'query',  
  1091. 'type' => 'string',  
  1092. ),  
  1093. ),  
  1094. ), 'insert' => array( 
  1095. 'path' => 'videos',  
  1096. 'httpMethod' => 'POST',  
  1097. 'parameters' => array( 
  1098. 'part' => array( 
  1099. 'location' => 'query',  
  1100. 'type' => 'string',  
  1101. 'required' => true,  
  1102. ),  
  1103. 'onBehalfOfContentOwner' => array( 
  1104. 'location' => 'query',  
  1105. 'type' => 'string',  
  1106. ),  
  1107. 'stabilize' => array( 
  1108. 'location' => 'query',  
  1109. 'type' => 'boolean',  
  1110. ),  
  1111. 'onBehalfOfContentOwnerChannel' => array( 
  1112. 'location' => 'query',  
  1113. 'type' => 'string',  
  1114. ),  
  1115. 'notifySubscribers' => array( 
  1116. 'location' => 'query',  
  1117. 'type' => 'boolean',  
  1118. ),  
  1119. 'autoLevels' => array( 
  1120. 'location' => 'query',  
  1121. 'type' => 'boolean',  
  1122. ),  
  1123. ),  
  1124. ), 'list' => array( 
  1125. 'path' => 'videos',  
  1126. 'httpMethod' => 'GET',  
  1127. 'parameters' => array( 
  1128. 'part' => array( 
  1129. 'location' => 'query',  
  1130. 'type' => 'string',  
  1131. 'required' => true,  
  1132. ),  
  1133. 'onBehalfOfContentOwner' => array( 
  1134. 'location' => 'query',  
  1135. 'type' => 'string',  
  1136. ),  
  1137. 'regionCode' => array( 
  1138. 'location' => 'query',  
  1139. 'type' => 'string',  
  1140. ),  
  1141. 'locale' => array( 
  1142. 'location' => 'query',  
  1143. 'type' => 'string',  
  1144. ),  
  1145. 'videoCategoryId' => array( 
  1146. 'location' => 'query',  
  1147. 'type' => 'string',  
  1148. ),  
  1149. 'chart' => array( 
  1150. 'location' => 'query',  
  1151. 'type' => 'string',  
  1152. ),  
  1153. 'maxResults' => array( 
  1154. 'location' => 'query',  
  1155. 'type' => 'integer',  
  1156. ),  
  1157. 'pageToken' => array( 
  1158. 'location' => 'query',  
  1159. 'type' => 'string',  
  1160. ),  
  1161. 'hl' => array( 
  1162. 'location' => 'query',  
  1163. 'type' => 'string',  
  1164. ),  
  1165. 'myRating' => array( 
  1166. 'location' => 'query',  
  1167. 'type' => 'string',  
  1168. ),  
  1169. 'id' => array( 
  1170. 'location' => 'query',  
  1171. 'type' => 'string',  
  1172. ),  
  1173. ),  
  1174. ), 'rate' => array( 
  1175. 'path' => 'videos/rate',  
  1176. 'httpMethod' => 'POST',  
  1177. 'parameters' => array( 
  1178. 'id' => array( 
  1179. 'location' => 'query',  
  1180. 'type' => 'string',  
  1181. 'required' => true,  
  1182. ),  
  1183. 'rating' => array( 
  1184. 'location' => 'query',  
  1185. 'type' => 'string',  
  1186. 'required' => true,  
  1187. ),  
  1188. 'onBehalfOfContentOwner' => array( 
  1189. 'location' => 'query',  
  1190. 'type' => 'string',  
  1191. ),  
  1192. ),  
  1193. ), 'update' => array( 
  1194. 'path' => 'videos',  
  1195. 'httpMethod' => 'PUT',  
  1196. 'parameters' => array( 
  1197. 'part' => array( 
  1198. 'location' => 'query',  
  1199. 'type' => 'string',  
  1200. 'required' => true,  
  1201. ),  
  1202. 'onBehalfOfContentOwner' => array( 
  1203. 'location' => 'query',  
  1204. 'type' => 'string',  
  1205. ),  
  1206. ),  
  1207. ),  
  1208. ); 
  1209. $this->watermarks = new Google_Service_YouTube_Watermarks_Resource( 
  1210. $this,  
  1211. $this->serviceName,  
  1212. 'watermarks',  
  1213. array( 
  1214. 'methods' => array( 
  1215. 'set' => array( 
  1216. 'path' => 'watermarks/set',  
  1217. 'httpMethod' => 'POST',  
  1218. 'parameters' => array( 
  1219. 'channelId' => array( 
  1220. 'location' => 'query',  
  1221. 'type' => 'string',  
  1222. 'required' => true,  
  1223. ),  
  1224. 'onBehalfOfContentOwner' => array( 
  1225. 'location' => 'query',  
  1226. 'type' => 'string',  
  1227. ),  
  1228. ),  
  1229. ), 'unset' => array( 
  1230. 'path' => 'watermarks/unset',  
  1231. 'httpMethod' => 'POST',  
  1232. 'parameters' => array( 
  1233. 'channelId' => array( 
  1234. 'location' => 'query',  
  1235. 'type' => 'string',  
  1236. 'required' => true,  
  1237. ),  
  1238. 'onBehalfOfContentOwner' => array( 
  1239. 'location' => 'query',  
  1240. 'type' => 'string',  
  1241. ),  
  1242. ),  
  1243. ),  
  1244. );