source: vendor/google/apiclient-services/src/ShoppingContent/Resource/AccountsBusinessmessageslinks.php

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

Upload project files

  • Property mode set to 100644
File size: 4.3 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\ShoppingContent\Resource;
19
20use Google\Service\ShoppingContent\BusinessMessagesLink;
21use Google\Service\ShoppingContent\ListBusinessMessagesLinksResponse;
22
23/**
24 * The "businessmessageslinks" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $contentService = new Google\Service\ShoppingContent(...);
28 * $businessmessageslinks = $contentService->accounts_businessmessageslinks;
29 * </code>
30 */
31class AccountsBusinessmessageslinks extends \Google\Service\Resource
32{
33 /**
34 * Creates a `BusinessMessagesLink` in Merchant Center account.
35 * (businessmessageslinks.create)
36 *
37 * @param string $accountId Required. The ID of the Merchant Center account.
38 * @param BusinessMessagesLink $postBody
39 * @param array $optParams Optional parameters.
40 * @return BusinessMessagesLink
41 */
42 public function create($accountId, BusinessMessagesLink $postBody, $optParams = [])
43 {
44 $params = ['accountId' => $accountId, 'postBody' => $postBody];
45 $params = array_merge($params, $optParams);
46 return $this->call('create', [$params], BusinessMessagesLink::class);
47 }
48 /**
49 * Deletes the specified `BusinessMessagesLink` resource from Merchant Center
50 * account. (businessmessageslinks.delete)
51 *
52 * @param string $accountId Required. The ID of the Merchant Center account.
53 * @param string $businessMessagesLinkId Required. The identifier for the
54 * Business Messages Link.
55 * @param array $optParams Optional parameters.
56 */
57 public function delete($accountId, $businessMessagesLinkId, $optParams = [])
58 {
59 $params = ['accountId' => $accountId, 'businessMessagesLinkId' => $businessMessagesLinkId];
60 $params = array_merge($params, $optParams);
61 return $this->call('delete', [$params]);
62 }
63 /**
64 * Retrieves `BusinessMessagesLink` in Merchant Center account.
65 * (businessmessageslinks.get)
66 *
67 * @param string $accountId Required. The ID of the Merchant Center account.
68 * @param string $businessMessagesLinkId Required. The identifier for the
69 * Business Messages Link.
70 * @param array $optParams Optional parameters.
71 * @return BusinessMessagesLink
72 */
73 public function get($accountId, $businessMessagesLinkId, $optParams = [])
74 {
75 $params = ['accountId' => $accountId, 'businessMessagesLinkId' => $businessMessagesLinkId];
76 $params = array_merge($params, $optParams);
77 return $this->call('get', [$params], BusinessMessagesLink::class);
78 }
79 /**
80 * Lists the `BusinessMessagesLink` resources for Merchant Center account.
81 * (businessmessageslinks.listAccountsBusinessmessageslinks)
82 *
83 * @param string $accountId Required. The ID of the account.
84 * @param array $optParams Optional parameters.
85 *
86 * @opt_param int pageSize Optional. The maximum number of
87 * `BusinessMessagesLink` resources for the Merchant Center account to return.
88 * Defaults to 50; values above 1000 will be coerced to 1000.
89 * @opt_param string pageToken Optional. A page token, received from a previous
90 * `ListBusinessMessagesLinks` call. Provide the page token to retrieve the
91 * subsequent page. When paginating, all other parameters provided to
92 * `ListBusinessMessagesLinks` must match the call that provided the page token.
93 * @return ListBusinessMessagesLinksResponse
94 */
95 public function listAccountsBusinessmessageslinks($accountId, $optParams = [])
96 {
97 $params = ['accountId' => $accountId];
98 $params = array_merge($params, $optParams);
99 return $this->call('list', [$params], ListBusinessMessagesLinksResponse::class);
100 }
101}
102
103// Adding a class alias for backwards compatibility with the previous class name.
104class_alias(AccountsBusinessmessageslinks::class, 'Google_Service_ShoppingContent_Resource_AccountsBusinessmessageslinks');
Note: See TracBrowser for help on using the repository browser.