source: vendor/google/apiclient-services/src/YouTube/Resource/YoutubeV3LiveChatMessages.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload new project files

  • Property mode set to 100644
File size: 2.5 KB
Line 
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
18namespace Google\Service\YouTube\Resource;
19
20use Google\Service\YouTube\LiveChatMessageListResponse;
21
22/**
23 * The "messages" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $youtubeService = new Google\Service\YouTube(...);
27 * $messages = $youtubeService->youtube_v3_liveChat_messages;
28 * </code>
29 */
30class YoutubeV3LiveChatMessages extends \Google\Service\Resource
31{
32 /**
33 * Allows a user to load live chat through a server-streamed RPC.
34 * (messages.stream)
35 *
36 * @param array $optParams Optional parameters.
37 *
38 * @opt_param string hl Specifies the localization language in which the system
39 * messages should be returned.
40 * @opt_param string liveChatId The id of the live chat for which comments
41 * should be returned.
42 * @opt_param string maxResults The *maxResults* parameter specifies the maximum
43 * number of items that should be returned in the result set. Not used in the
44 * streaming RPC.
45 * @opt_param string pageToken The *pageToken* parameter identifies a specific
46 * page in the result set that should be returned. In an API response, the
47 * nextPageToken property identify other pages that could be retrieved.
48 * @opt_param string part The *part* parameter specifies the liveChatComment
49 * resource parts that the API response will include. Supported values are id,
50 * snippet, and authorDetails.
51 * @opt_param string profileImageSize Specifies the size of the profile image
52 * that should be returned for each user.
53 * @return LiveChatMessageListResponse
54 * @throws \Google\Service\Exception
55 */
56 public function stream($optParams = [])
57 {
58 $params = [];
59 $params = array_merge($params, $optParams);
60 return $this->call('stream', [$params], LiveChatMessageListResponse::class);
61 }
62}
63
64// Adding a class alias for backwards compatibility with the previous class name.
65class_alias(YoutubeV3LiveChatMessages::class, 'Google_Service_YouTube_Resource_YoutubeV3LiveChatMessages');
Note: See TracBrowser for help on using the repository browser.