source: vendor/google/apiclient-services/src/Games/Resource/Applications.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 3.6 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\Games\Resource;
19
20use Google\Service\Games\Application;
21use Google\Service\Games\ApplicationVerifyResponse;
22use Google\Service\Games\EndPoint;
23
24/**
25 * The "applications" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $gamesService = new Google\Service\Games(...);
29 * $applications = $gamesService->applications;
30 * </code>
31 */
32class Applications extends \Google\Service\Resource
33{
34 /**
35 * Retrieves the metadata of the application with the given ID. If the requested
36 * application is not available for the specified `platformType`, the returned
37 * response will not include any instance data. (applications.get)
38 *
39 * @param string $applicationId The application ID from the Google Play
40 * developer console.
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string language The preferred language to use for strings returned
44 * by this method.
45 * @opt_param string platformType Restrict application details returned to the
46 * specific platform.
47 * @return Application
48 * @throws \Google\Service\Exception
49 */
50 public function get($applicationId, $optParams = [])
51 {
52 $params = ['applicationId' => $applicationId];
53 $params = array_merge($params, $optParams);
54 return $this->call('get', [$params], Application::class);
55 }
56 /**
57 * Returns a URL for the requested end point type. (applications.getEndPoint)
58 *
59 * @param array $optParams Optional parameters.
60 *
61 * @opt_param string applicationId The application ID from the Google Play
62 * developer console.
63 * @opt_param string endPointType Type of endpoint being requested.
64 * @return EndPoint
65 * @throws \Google\Service\Exception
66 */
67 public function getEndPoint($optParams = [])
68 {
69 $params = [];
70 $params = array_merge($params, $optParams);
71 return $this->call('getEndPoint', [$params], EndPoint::class);
72 }
73 /**
74 * Indicate that the currently authenticated user is playing your application.
75 * (applications.played)
76 *
77 * @param array $optParams Optional parameters.
78 * @throws \Google\Service\Exception
79 */
80 public function played($optParams = [])
81 {
82 $params = [];
83 $params = array_merge($params, $optParams);
84 return $this->call('played', [$params]);
85 }
86 /**
87 * Verifies the auth token provided with this request is for the application
88 * with the specified ID, and returns the ID of the player it was granted for.
89 * (applications.verify)
90 *
91 * @param string $applicationId The application ID from the Google Play
92 * developer console.
93 * @param array $optParams Optional parameters.
94 * @return ApplicationVerifyResponse
95 * @throws \Google\Service\Exception
96 */
97 public function verify($applicationId, $optParams = [])
98 {
99 $params = ['applicationId' => $applicationId];
100 $params = array_merge($params, $optParams);
101 return $this->call('verify', [$params], ApplicationVerifyResponse::class);
102 }
103}
104
105// Adding a class alias for backwards compatibility with the previous class name.
106class_alias(Applications::class, 'Google_Service_Games_Resource_Applications');
Note: See TracBrowser for help on using the repository browser.