source: vendor/google/apiclient-services/src/FirebaseDynamicLinks.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 4.0 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 FirebaseDynamicLinks (v1).
24 *
25 * <p>
26 * Programmatically creates and manages Firebase Dynamic Links.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://firebase.google.com/docs/dynamic-links/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class FirebaseDynamicLinks extends \Google\Service
36{
37 /** View and administer all your Firebase data and settings. */
38 const FIREBASE =
39 "https://www.googleapis.com/auth/firebase";
40
41 public $managedShortLinks;
42 public $shortLinks;
43 public $v1;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the FirebaseDynamicLinks service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://firebasedynamiclinks.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://firebasedynamiclinks.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'firebasedynamiclinks';
62
63 $this->managedShortLinks = new FirebaseDynamicLinks\Resource\ManagedShortLinks(
64 $this,
65 $this->serviceName,
66 'managedShortLinks',
67 [
68 'methods' => [
69 'create' => [
70 'path' => 'v1/managedShortLinks:create',
71 'httpMethod' => 'POST',
72 'parameters' => [],
73 ],
74 ]
75 ]
76 );
77 $this->shortLinks = new FirebaseDynamicLinks\Resource\ShortLinks(
78 $this,
79 $this->serviceName,
80 'shortLinks',
81 [
82 'methods' => [
83 'create' => [
84 'path' => 'v1/shortLinks',
85 'httpMethod' => 'POST',
86 'parameters' => [],
87 ],
88 ]
89 ]
90 );
91 $this->v1 = new FirebaseDynamicLinks\Resource\V1(
92 $this,
93 $this->serviceName,
94 'v1',
95 [
96 'methods' => [
97 'getLinkStats' => [
98 'path' => 'v1/{dynamicLink}/linkStats',
99 'httpMethod' => 'GET',
100 'parameters' => [
101 'dynamicLink' => [
102 'location' => 'path',
103 'type' => 'string',
104 'required' => true,
105 ],
106 'durationDays' => [
107 'location' => 'query',
108 'type' => 'string',
109 ],
110 'sdkVersion' => [
111 'location' => 'query',
112 'type' => 'string',
113 ],
114 ],
115 ],'installAttribution' => [
116 'path' => 'v1/installAttribution',
117 'httpMethod' => 'POST',
118 'parameters' => [],
119 ],'reopenAttribution' => [
120 'path' => 'v1/reopenAttribution',
121 'httpMethod' => 'POST',
122 'parameters' => [],
123 ],
124 ]
125 ]
126 );
127 }
128}
129
130// Adding a class alias for backwards compatibility with the previous class name.
131class_alias(FirebaseDynamicLinks::class, 'Google_Service_FirebaseDynamicLinks');
Note: See TracBrowser for help on using the repository browser.