source: vendor/google/apiclient-services/src/IdentityToolkit.php

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

Upload project files

  • Property mode set to 100644
File size: 5.7 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;
19
20use Google\Client;
21
22/**
23 * Service definition for IdentityToolkit (v3).
24 *
25 * <p>
26 * Help the third party sites to implement federated login.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/identity-toolkit/v3/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class IdentityToolkit extends \Google\Service
36{
37 /** View and manage your data across Google Cloud Platform services. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40 /** View and administer all your Firebase data and settings. */
41 const FIREBASE =
42 "https://www.googleapis.com/auth/firebase";
43
44 public $relyingparty;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the IdentityToolkit service.
49 *
50 * @param Client|array $clientOrConfig The client used to deliver requests, or a
51 * config array to pass to a new Client instance.
52 * @param string $rootUrl The root URL used for requests to the service.
53 */
54 public function __construct($clientOrConfig = [], $rootUrl = null)
55 {
56 parent::__construct($clientOrConfig);
57 $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://www.UNIVERSE_DOMAIN/';
59 $this->servicePath = 'identitytoolkit/v3/relyingparty/';
60 $this->batchPath = 'batch/identitytoolkit/v3';
61 $this->version = 'v3';
62 $this->serviceName = 'identitytoolkit';
63
64 $this->relyingparty = new IdentityToolkit\Resource\Relyingparty(
65 $this,
66 $this->serviceName,
67 'relyingparty',
68 [
69 'methods' => [
70 'createAuthUri' => [
71 'path' => 'createAuthUri',
72 'httpMethod' => 'POST',
73 'parameters' => [],
74 ],'deleteAccount' => [
75 'path' => 'deleteAccount',
76 'httpMethod' => 'POST',
77 'parameters' => [],
78 ],'downloadAccount' => [
79 'path' => 'downloadAccount',
80 'httpMethod' => 'POST',
81 'parameters' => [],
82 ],'emailLinkSignin' => [
83 'path' => 'emailLinkSignin',
84 'httpMethod' => 'POST',
85 'parameters' => [],
86 ],'getAccountInfo' => [
87 'path' => 'getAccountInfo',
88 'httpMethod' => 'POST',
89 'parameters' => [],
90 ],'getOobConfirmationCode' => [
91 'path' => 'getOobConfirmationCode',
92 'httpMethod' => 'POST',
93 'parameters' => [],
94 ],'getProjectConfig' => [
95 'path' => 'getProjectConfig',
96 'httpMethod' => 'GET',
97 'parameters' => [
98 'delegatedProjectNumber' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 'projectNumber' => [
103 'location' => 'query',
104 'type' => 'string',
105 ],
106 ],
107 ],'getPublicKeys' => [
108 'path' => 'publicKeys',
109 'httpMethod' => 'GET',
110 'parameters' => [],
111 ],'getRecaptchaParam' => [
112 'path' => 'getRecaptchaParam',
113 'httpMethod' => 'GET',
114 'parameters' => [],
115 ],'resetPassword' => [
116 'path' => 'resetPassword',
117 'httpMethod' => 'POST',
118 'parameters' => [],
119 ],'sendVerificationCode' => [
120 'path' => 'sendVerificationCode',
121 'httpMethod' => 'POST',
122 'parameters' => [],
123 ],'setAccountInfo' => [
124 'path' => 'setAccountInfo',
125 'httpMethod' => 'POST',
126 'parameters' => [],
127 ],'setProjectConfig' => [
128 'path' => 'setProjectConfig',
129 'httpMethod' => 'POST',
130 'parameters' => [],
131 ],'signOutUser' => [
132 'path' => 'signOutUser',
133 'httpMethod' => 'POST',
134 'parameters' => [],
135 ],'signupNewUser' => [
136 'path' => 'signupNewUser',
137 'httpMethod' => 'POST',
138 'parameters' => [],
139 ],'uploadAccount' => [
140 'path' => 'uploadAccount',
141 'httpMethod' => 'POST',
142 'parameters' => [],
143 ],'verifyAssertion' => [
144 'path' => 'verifyAssertion',
145 'httpMethod' => 'POST',
146 'parameters' => [],
147 ],'verifyCustomToken' => [
148 'path' => 'verifyCustomToken',
149 'httpMethod' => 'POST',
150 'parameters' => [],
151 ],'verifyPassword' => [
152 'path' => 'verifyPassword',
153 'httpMethod' => 'POST',
154 'parameters' => [],
155 ],'verifyPhoneNumber' => [
156 'path' => 'verifyPhoneNumber',
157 'httpMethod' => 'POST',
158 'parameters' => [],
159 ],
160 ]
161 ]
162 );
163 }
164}
165
166// Adding a class alias for backwards compatibility with the previous class name.
167class_alias(IdentityToolkit::class, 'Google_Service_IdentityToolkit');
Note: See TracBrowser for help on using the repository browser.