blob: d7e8324ab3d7ee62030ad48271ebff293bd89ec4 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="androidpublisher_v3.html">Google Play Developer API</a> . <a href="androidpublisher_v3.reviews.html">reviews</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(packageName, reviewId, translationLanguage=None)</a></code></p>
79<p class="firstline">Returns a single review.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#list">list(packageName, maxResults=None, startIndex=None, token=None, translationLanguage=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Returns a list of reviews. Only reviews from last week will be returned.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#reply">reply(packageName, reviewId, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Reply to a single review, or update an existing reply.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="get">get(packageName, reviewId, translationLanguage=None)</code>
89 <pre>Returns a single review.
90
91Args:
Bu Sun Kim65020912020-05-20 12:08:20 -070092 packageName: string, Unique identifier for the Android app for which we want reviews; for example, &quot;com.spiffygame&quot;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093 reviewId: string, A parameter (required)
94 translationLanguage: string, A parameter
95
96Returns:
97 An object of the form:
98
99 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700100 &quot;authorName&quot;: &quot;A String&quot;, # The name of the user who wrote the review.
101 &quot;comments&quot;: [ # A repeated field containing comments for the review.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 &quot;developerComment&quot;: { # A comment from a developer.
104 &quot;lastModified&quot;: { # The last time at which this comment was updated.
105 &quot;nanos&quot;: 42,
106 &quot;seconds&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700108 &quot;text&quot;: &quot;A String&quot;, # The content of the comment, i.e. reply body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 &quot;userComment&quot;: { # A comment from a user.
111 &quot;androidOsVersion&quot;: 42, # Integer Android SDK version of the user&#x27;s device at the time the review was written, e.g. 23 is Marshmallow. May be absent.
112 &quot;appVersionCode&quot;: 42, # Integer version code of the app as installed at the time the review was written. May be absent.
113 &quot;appVersionName&quot;: &quot;A String&quot;, # String version name of the app as installed at the time the review was written. May be absent.
114 &quot;device&quot;: &quot;A String&quot;, # Codename for the reviewer&#x27;s device, e.g. klte, flounder. May be absent.
115 &quot;deviceMetadata&quot;: { # Some information about the characteristics of the user&#x27;s device
116 &quot;cpuMake&quot;: &quot;A String&quot;, # Device CPU make e.g. &quot;Qualcomm&quot;
117 &quot;cpuModel&quot;: &quot;A String&quot;, # Device CPU model e.g. &quot;MSM8974&quot;
118 &quot;deviceClass&quot;: &quot;A String&quot;, # Device class (e.g. tablet)
119 &quot;glEsVersion&quot;: 42, # OpenGL version
120 &quot;manufacturer&quot;: &quot;A String&quot;, # Device manufacturer (e.g. Motorola)
121 &quot;nativePlatform&quot;: &quot;A String&quot;, # Comma separated list of native platforms (e.g. &quot;arm&quot;, &quot;arm7&quot;)
122 &quot;productName&quot;: &quot;A String&quot;, # Device model name (e.g. Droid)
123 &quot;ramMb&quot;: 42, # Device RAM in Megabytes e.g. &quot;2048&quot;
124 &quot;screenDensityDpi&quot;: 42, # Screen density in DPI
125 &quot;screenHeightPx&quot;: 42, # Screen height in pixels
126 &quot;screenWidthPx&quot;: 42, # Screen width in pixels
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;lastModified&quot;: { # The last time at which this comment was updated.
129 &quot;nanos&quot;: 42,
130 &quot;seconds&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;originalText&quot;: &quot;A String&quot;, # Untranslated text of the review, in the case where the review has been translated. If the review has not been translated this is left blank.
133 &quot;reviewerLanguage&quot;: &quot;A String&quot;, # Language code for the reviewer. This is taken from the device settings so is not guaranteed to match the language the review is written in. May be absent.
134 &quot;starRating&quot;: 42, # The star rating associated with the review, from 1 to 5.
135 &quot;text&quot;: &quot;A String&quot;, # The content of the comment, i.e. review body. In some cases users have been able to write a review with separate title and body; in those cases the title and body are concatenated and separated by a tab character.
136 &quot;thumbsDownCount&quot;: 42, # Number of users who have given this review a thumbs down
137 &quot;thumbsUpCount&quot;: 42, # Number of users who have given this review a thumbs up
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138 },
139 },
140 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;reviewId&quot;: &quot;A String&quot;, # Unique identifier for this review.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142 }</pre>
143</div>
144
145<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 <code class="details" id="list">list(packageName, maxResults=None, startIndex=None, token=None, translationLanguage=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700147 <pre>Returns a list of reviews. Only reviews from last week will be returned.
148
149Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 packageName: string, Unique identifier for the Android app for which we want reviews; for example, &quot;com.spiffygame&quot;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700151 maxResults: integer, A parameter
152 startIndex: integer, A parameter
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 token: string, A parameter
154 translationLanguage: string, A parameter
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155
156Returns:
157 An object of the form:
158
159 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 &quot;pageInfo&quot;: {
161 &quot;resultPerPage&quot;: 42,
162 &quot;startIndex&quot;: 42,
163 &quot;totalResults&quot;: 42,
164 },
165 &quot;reviews&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;authorName&quot;: &quot;A String&quot;, # The name of the user who wrote the review.
168 &quot;comments&quot;: [ # A repeated field containing comments for the review.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700169 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;developerComment&quot;: { # A comment from a developer.
171 &quot;lastModified&quot;: { # The last time at which this comment was updated.
172 &quot;nanos&quot;: 42,
173 &quot;seconds&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700174 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;text&quot;: &quot;A String&quot;, # The content of the comment, i.e. reply body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700176 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 &quot;userComment&quot;: { # A comment from a user.
178 &quot;androidOsVersion&quot;: 42, # Integer Android SDK version of the user&#x27;s device at the time the review was written, e.g. 23 is Marshmallow. May be absent.
179 &quot;appVersionCode&quot;: 42, # Integer version code of the app as installed at the time the review was written. May be absent.
180 &quot;appVersionName&quot;: &quot;A String&quot;, # String version name of the app as installed at the time the review was written. May be absent.
181 &quot;device&quot;: &quot;A String&quot;, # Codename for the reviewer&#x27;s device, e.g. klte, flounder. May be absent.
182 &quot;deviceMetadata&quot;: { # Some information about the characteristics of the user&#x27;s device
183 &quot;cpuMake&quot;: &quot;A String&quot;, # Device CPU make e.g. &quot;Qualcomm&quot;
184 &quot;cpuModel&quot;: &quot;A String&quot;, # Device CPU model e.g. &quot;MSM8974&quot;
185 &quot;deviceClass&quot;: &quot;A String&quot;, # Device class (e.g. tablet)
186 &quot;glEsVersion&quot;: 42, # OpenGL version
187 &quot;manufacturer&quot;: &quot;A String&quot;, # Device manufacturer (e.g. Motorola)
188 &quot;nativePlatform&quot;: &quot;A String&quot;, # Comma separated list of native platforms (e.g. &quot;arm&quot;, &quot;arm7&quot;)
189 &quot;productName&quot;: &quot;A String&quot;, # Device model name (e.g. Droid)
190 &quot;ramMb&quot;: 42, # Device RAM in Megabytes e.g. &quot;2048&quot;
191 &quot;screenDensityDpi&quot;: 42, # Screen density in DPI
192 &quot;screenHeightPx&quot;: 42, # Screen height in pixels
193 &quot;screenWidthPx&quot;: 42, # Screen width in pixels
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700194 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;lastModified&quot;: { # The last time at which this comment was updated.
196 &quot;nanos&quot;: 42,
197 &quot;seconds&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 &quot;originalText&quot;: &quot;A String&quot;, # Untranslated text of the review, in the case where the review has been translated. If the review has not been translated this is left blank.
200 &quot;reviewerLanguage&quot;: &quot;A String&quot;, # Language code for the reviewer. This is taken from the device settings so is not guaranteed to match the language the review is written in. May be absent.
201 &quot;starRating&quot;: 42, # The star rating associated with the review, from 1 to 5.
202 &quot;text&quot;: &quot;A String&quot;, # The content of the comment, i.e. review body. In some cases users have been able to write a review with separate title and body; in those cases the title and body are concatenated and separated by a tab character.
203 &quot;thumbsDownCount&quot;: 42, # Number of users who have given this review a thumbs down
204 &quot;thumbsUpCount&quot;: 42, # Number of users who have given this review a thumbs up
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700205 },
206 },
207 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;reviewId&quot;: &quot;A String&quot;, # Unique identifier for this review.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209 },
210 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;tokenPagination&quot;: {
212 &quot;nextPageToken&quot;: &quot;A String&quot;,
213 &quot;previousPageToken&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700214 },
215 }</pre>
216</div>
217
218<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700219 <code class="details" id="reply">reply(packageName, reviewId, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700220 <pre>Reply to a single review, or update an existing reply.
221
222Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 packageName: string, Unique identifier for the Android app for which we want reviews; for example, &quot;com.spiffygame&quot;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700224 reviewId: string, A parameter (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700225 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226 The object takes the form of:
227
228{
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;replyText&quot;: &quot;A String&quot;, # The text to set as the reply. Replies of more than approximately 350 characters will be rejected. HTML tags will be stripped.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700230 }
231
232
233Returns:
234 An object of the form:
235
236 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;result&quot;: {
238 &quot;lastEdited&quot;: { # The time at which the reply took effect.
239 &quot;nanos&quot;: 42,
240 &quot;seconds&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700241 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;replyText&quot;: &quot;A String&quot;, # The reply text that was applied.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 },
244 }</pre>
245</div>
246
247</body></html>