source: vendor/google/apiclient-services/src/AnalyticsData.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 7.0 KB
RevLine 
[e3d4e0a]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 AnalyticsData (v1beta).
24 *
25 * <p>
26 * Accesses report data in Google Analytics. Warning: Creating multiple Customer
27 * Applications, Accounts, or Projects to simulate or act as a single Customer
28 * Application, Account, or Project (respectively) or to circumvent Service-
29 * specific usage limits or quotas is a direct violation of Google Cloud
30 * Platform Terms of Service as well as Google APIs Terms of Service. These
31 * actions can result in immediate termination of your GCP project(s) without
32 * any warning.</p>
33 *
34 * <p>
35 * For more information about this service, see the API
36 * <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/" target="_blank">Documentation</a>
37 * </p>
38 *
39 * @author Google, Inc.
40 */
41class AnalyticsData extends \Google\Service
42{
43 /** View and manage your Google Analytics data. */
44 const ANALYTICS =
45 "https://www.googleapis.com/auth/analytics";
46 /** See and download your Google Analytics data. */
47 const ANALYTICS_READONLY =
48 "https://www.googleapis.com/auth/analytics.readonly";
49
50 public $properties;
51 public $properties_audienceExports;
52 public $rootUrlTemplate;
53
54 /**
55 * Constructs the internal representation of the AnalyticsData service.
56 *
57 * @param Client|array $clientOrConfig The client used to deliver requests, or a
58 * config array to pass to a new Client instance.
59 * @param string $rootUrl The root URL used for requests to the service.
60 */
61 public function __construct($clientOrConfig = [], $rootUrl = null)
62 {
63 parent::__construct($clientOrConfig);
64 $this->rootUrl = $rootUrl ?: 'https://analyticsdata.googleapis.com/';
65 $this->rootUrlTemplate = $rootUrl ?: 'https://analyticsdata.UNIVERSE_DOMAIN/';
66 $this->servicePath = '';
67 $this->batchPath = 'batch';
68 $this->version = 'v1beta';
69 $this->serviceName = 'analyticsdata';
70
71 $this->properties = new AnalyticsData\Resource\Properties(
72 $this,
73 $this->serviceName,
74 'properties',
75 [
76 'methods' => [
77 'batchRunPivotReports' => [
78 'path' => 'v1beta/{+property}:batchRunPivotReports',
79 'httpMethod' => 'POST',
80 'parameters' => [
81 'property' => [
82 'location' => 'path',
83 'type' => 'string',
84 'required' => true,
85 ],
86 ],
87 ],'batchRunReports' => [
88 'path' => 'v1beta/{+property}:batchRunReports',
89 'httpMethod' => 'POST',
90 'parameters' => [
91 'property' => [
92 'location' => 'path',
93 'type' => 'string',
94 'required' => true,
95 ],
96 ],
97 ],'checkCompatibility' => [
98 'path' => 'v1beta/{+property}:checkCompatibility',
99 'httpMethod' => 'POST',
100 'parameters' => [
101 'property' => [
102 'location' => 'path',
103 'type' => 'string',
104 'required' => true,
105 ],
106 ],
107 ],'getMetadata' => [
108 'path' => 'v1beta/{+name}',
109 'httpMethod' => 'GET',
110 'parameters' => [
111 'name' => [
112 'location' => 'path',
113 'type' => 'string',
114 'required' => true,
115 ],
116 ],
117 ],'runPivotReport' => [
118 'path' => 'v1beta/{+property}:runPivotReport',
119 'httpMethod' => 'POST',
120 'parameters' => [
121 'property' => [
122 'location' => 'path',
123 'type' => 'string',
124 'required' => true,
125 ],
126 ],
127 ],'runRealtimeReport' => [
128 'path' => 'v1beta/{+property}:runRealtimeReport',
129 'httpMethod' => 'POST',
130 'parameters' => [
131 'property' => [
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ],
136 ],
137 ],'runReport' => [
138 'path' => 'v1beta/{+property}:runReport',
139 'httpMethod' => 'POST',
140 'parameters' => [
141 'property' => [
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ],
146 ],
147 ],
148 ]
149 ]
150 );
151 $this->properties_audienceExports = new AnalyticsData\Resource\PropertiesAudienceExports(
152 $this,
153 $this->serviceName,
154 'audienceExports',
155 [
156 'methods' => [
157 'create' => [
158 'path' => 'v1beta/{+parent}/audienceExports',
159 'httpMethod' => 'POST',
160 'parameters' => [
161 'parent' => [
162 'location' => 'path',
163 'type' => 'string',
164 'required' => true,
165 ],
166 ],
167 ],'get' => [
168 'path' => 'v1beta/{+name}',
169 'httpMethod' => 'GET',
170 'parameters' => [
171 'name' => [
172 'location' => 'path',
173 'type' => 'string',
174 'required' => true,
175 ],
176 ],
177 ],'list' => [
178 'path' => 'v1beta/{+parent}/audienceExports',
179 'httpMethod' => 'GET',
180 'parameters' => [
181 'parent' => [
182 'location' => 'path',
183 'type' => 'string',
184 'required' => true,
185 ],
186 'pageSize' => [
187 'location' => 'query',
188 'type' => 'integer',
189 ],
190 'pageToken' => [
191 'location' => 'query',
192 'type' => 'string',
193 ],
194 ],
195 ],'query' => [
196 'path' => 'v1beta/{+name}:query',
197 'httpMethod' => 'POST',
198 'parameters' => [
199 'name' => [
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ],
204 ],
205 ],
206 ]
207 ]
208 );
209 }
210}
211
212// Adding a class alias for backwards compatibility with the previous class name.
213class_alias(AnalyticsData::class, 'Google_Service_AnalyticsData');
Note: See TracBrowser for help on using the repository browser.