source: vendor/google/apiclient-services/src/Merchant.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: 6.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 Merchant (reviews_v1beta).
24 *
25 * <p>
26 * Programmatically manage your Merchant Center Accounts.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.devsite.corp.google.com/merchant/api" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Merchant extends \Google\Service
36{
37 /** Manage your product listings and accounts for Google Shopping. */
38 const CONTENT =
39 "https://www.googleapis.com/auth/content";
40
41 public $accounts_merchantReviews;
42 public $accounts_productReviews;
43 public $rootUrlTemplate;
44
45 /**
46 * Constructs the internal representation of the Merchant service.
47 *
48 * @param Client|array $clientOrConfig The client used to deliver requests, or a
49 * config array to pass to a new Client instance.
50 * @param string $rootUrl The root URL used for requests to the service.
51 */
52 public function __construct($clientOrConfig = [], $rootUrl = null)
53 {
54 parent::__construct($clientOrConfig);
55 $this->rootUrl = $rootUrl ?: 'https://merchantapi.googleapis.com/';
56 $this->rootUrlTemplate = $rootUrl ?: 'https://merchantapi.UNIVERSE_DOMAIN/';
57 $this->servicePath = '';
58 $this->batchPath = 'batch';
59 $this->version = 'reviews_v1beta';
60 $this->serviceName = 'merchantapi';
61
62 $this->accounts_merchantReviews = new Merchant\Resource\AccountsMerchantReviews(
63 $this,
64 $this->serviceName,
65 'merchantReviews',
66 [
67 'methods' => [
68 'delete' => [
69 'path' => 'reviews/v1beta/{+name}',
70 'httpMethod' => 'DELETE',
71 'parameters' => [
72 'name' => [
73 'location' => 'path',
74 'type' => 'string',
75 'required' => true,
76 ],
77 ],
78 ],'get' => [
79 'path' => 'reviews/v1beta/{+name}',
80 'httpMethod' => 'GET',
81 'parameters' => [
82 'name' => [
83 'location' => 'path',
84 'type' => 'string',
85 'required' => true,
86 ],
87 ],
88 ],'insert' => [
89 'path' => 'reviews/v1beta/{+parent}/merchantReviews:insert',
90 'httpMethod' => 'POST',
91 'parameters' => [
92 'parent' => [
93 'location' => 'path',
94 'type' => 'string',
95 'required' => true,
96 ],
97 'dataSource' => [
98 'location' => 'query',
99 'type' => 'string',
100 ],
101 ],
102 ],'list' => [
103 'path' => 'reviews/v1beta/{+parent}/merchantReviews',
104 'httpMethod' => 'GET',
105 'parameters' => [
106 'parent' => [
107 'location' => 'path',
108 'type' => 'string',
109 'required' => true,
110 ],
111 'pageSize' => [
112 'location' => 'query',
113 'type' => 'integer',
114 ],
115 'pageToken' => [
116 'location' => 'query',
117 'type' => 'string',
118 ],
119 ],
120 ],
121 ]
122 ]
123 );
124 $this->accounts_productReviews = new Merchant\Resource\AccountsProductReviews(
125 $this,
126 $this->serviceName,
127 'productReviews',
128 [
129 'methods' => [
130 'delete' => [
131 'path' => 'reviews/v1beta/{+name}',
132 'httpMethod' => 'DELETE',
133 'parameters' => [
134 'name' => [
135 'location' => 'path',
136 'type' => 'string',
137 'required' => true,
138 ],
139 ],
140 ],'get' => [
141 'path' => 'reviews/v1beta/{+name}',
142 'httpMethod' => 'GET',
143 'parameters' => [
144 'name' => [
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ],
149 ],
150 ],'insert' => [
151 'path' => 'reviews/v1beta/{+parent}/productReviews:insert',
152 'httpMethod' => 'POST',
153 'parameters' => [
154 'parent' => [
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
158 ],
159 'dataSource' => [
160 'location' => 'query',
161 'type' => 'string',
162 ],
163 ],
164 ],'list' => [
165 'path' => 'reviews/v1beta/{+parent}/productReviews',
166 'httpMethod' => 'GET',
167 'parameters' => [
168 'parent' => [
169 'location' => 'path',
170 'type' => 'string',
171 'required' => true,
172 ],
173 'pageSize' => [
174 'location' => 'query',
175 'type' => 'integer',
176 ],
177 'pageToken' => [
178 'location' => 'query',
179 'type' => 'string',
180 ],
181 ],
182 ],
183 ]
184 ]
185 );
186 }
187}
188
189// Adding a class alias for backwards compatibility with the previous class name.
190class_alias(Merchant::class, 'Google_Service_Merchant');
Note: See TracBrowser for help on using the repository browser.