source: vendor/google/apiclient-services/src/AndroidPublisher/Resource/Reviews.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 3.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\AndroidPublisher\Resource;
19
20use Google\Service\AndroidPublisher\Review;
21use Google\Service\AndroidPublisher\ReviewsListResponse;
22use Google\Service\AndroidPublisher\ReviewsReplyRequest;
23use Google\Service\AndroidPublisher\ReviewsReplyResponse;
24
25/**
26 * The "reviews" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $androidpublisherService = new Google\Service\AndroidPublisher(...);
30 * $reviews = $androidpublisherService->reviews;
31 * </code>
32 */
33class Reviews extends \Google\Service\Resource
34{
35 /**
36 * Gets a single review. (reviews.get)
37 *
38 * @param string $packageName Package name of the app.
39 * @param string $reviewId Unique identifier for a review.
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string translationLanguage Language localization code.
43 * @return Review
44 * @throws \Google\Service\Exception
45 */
46 public function get($packageName, $reviewId, $optParams = [])
47 {
48 $params = ['packageName' => $packageName, 'reviewId' => $reviewId];
49 $params = array_merge($params, $optParams);
50 return $this->call('get', [$params], Review::class);
51 }
52 /**
53 * Lists all reviews. (reviews.listReviews)
54 *
55 * @param string $packageName Package name of the app.
56 * @param array $optParams Optional parameters.
57 *
58 * @opt_param string maxResults How many results the list operation should
59 * return.
60 * @opt_param string startIndex The index of the first element to return.
61 * @opt_param string token Pagination token. If empty, list starts at the first
62 * review.
63 * @opt_param string translationLanguage Language localization code.
64 * @return ReviewsListResponse
65 * @throws \Google\Service\Exception
66 */
67 public function listReviews($packageName, $optParams = [])
68 {
69 $params = ['packageName' => $packageName];
70 $params = array_merge($params, $optParams);
71 return $this->call('list', [$params], ReviewsListResponse::class);
72 }
73 /**
74 * Replies to a single review, or updates an existing reply. (reviews.reply)
75 *
76 * @param string $packageName Package name of the app.
77 * @param string $reviewId Unique identifier for a review.
78 * @param ReviewsReplyRequest $postBody
79 * @param array $optParams Optional parameters.
80 * @return ReviewsReplyResponse
81 * @throws \Google\Service\Exception
82 */
83 public function reply($packageName, $reviewId, ReviewsReplyRequest $postBody, $optParams = [])
84 {
85 $params = ['packageName' => $packageName, 'reviewId' => $reviewId, 'postBody' => $postBody];
86 $params = array_merge($params, $optParams);
87 return $this->call('reply', [$params], ReviewsReplyResponse::class);
88 }
89}
90
91// Adding a class alias for backwards compatibility with the previous class name.
92class_alias(Reviews::class, 'Google_Service_AndroidPublisher_Resource_Reviews');
Note: See TracBrowser for help on using the repository browser.