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