1<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="mybusinessqanda_v1.html">My Business Q&A API</a> . <a href="mybusinessqanda_v1.locations.html">locations</a> . <a href="mybusinessqanda_v1.locations.questions.html">questions</a> . <a href="mybusinessqanda_v1.locations.questions.answers.html">answers</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#list">list(parent, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Returns the paginated list of answers for a specified question.</p>
83<p class="toc_element">
84  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<p class="toc_element">
87  <code><a href="#upsert">upsert(parent, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Creates an answer or updates the existing answer written by the user for the specified question. A user can only create one answer per question.</p>
89<h3>Method Details</h3>
90<div class="method">
91    <code class="details" id="close">close()</code>
92  <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
96    <code class="details" id="list">list(parent, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
97  <pre>Returns the paginated list of answers for a specified question.
98
99Args:
100  parent: string, Required. The name of the question to fetch answers for. (required)
101  orderBy: string, Optional. The order to return the answers. Valid options include &#x27;update_time desc&#x27; and &#x27;upvote_count desc&#x27;, which will return the answers sorted descendingly by the requested field. The default sort order is &#x27;update_time desc&#x27;.
102  pageSize: integer, Optional. How many answers to fetch per page. The default and maximum `page_size` values are 10.
103  pageToken: string, Optional. If specified, the next page of answers is retrieved.
104  x__xgafv: string, V1 error format.
105    Allowed values
106      1 - v1 error format
107      2 - v2 error format
108
109Returns:
110  An object of the form:
111
112    { # Response message for QuestionsAndAnswers.ListAnswers
113  &quot;answers&quot;: [ # The requested answers.
114    { # Represents an answer to a question
115      &quot;author&quot;: { # Represents the author of a question or answer # Output only. The author of the answer. Will only be set during list operations.
116        &quot;displayName&quot;: &quot;A String&quot;, # The display name of the user
117        &quot;profilePhotoUri&quot;: &quot;A String&quot;, # The profile photo URI of the user.
118        &quot;type&quot;: &quot;A String&quot;, # The type of user the author is.
119      },
120      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching.
121      &quot;name&quot;: &quot;A String&quot;, # Output only. The unique name for the answer locations/*/questions/*/answers/*
122      &quot;text&quot;: &quot;A String&quot;, # Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters.
123      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the answer was last modified.
124      &quot;upvoteCount&quot;: 42, # Output only. The number of upvotes for the answer.
125    },
126  ],
127  &quot;nextPageToken&quot;: &quot;A String&quot;, # If the number of answers exceeds the requested max page size, this field is populated with a token to fetch the next page of answers on a subsequent call. If there are no more answers, this field is not present in the response.
128  &quot;totalSize&quot;: 42, # The total number of answers posted for this question across all pages.
129}</pre>
130</div>
131
132<div class="method">
133    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
134  <pre>Retrieves the next page of results.
135
136Args:
137  previous_request: The request for the previous page. (required)
138  previous_response: The response from the request for the previous page. (required)
139
140Returns:
141  A request object that you can call &#x27;execute()&#x27; on to request the next
142  page. Returns None if there are no more items in the collection.
143    </pre>
144</div>
145
146<div class="method">
147    <code class="details" id="upsert">upsert(parent, body=None, x__xgafv=None)</code>
148  <pre>Creates an answer or updates the existing answer written by the user for the specified question. A user can only create one answer per question.
149
150Args:
151  parent: string, Required. The name of the question to write an answer for. (required)
152  body: object, The request body.
153    The object takes the form of:
154
155{ # Request message for QuestionsAndAnswers.UpsertAnswer
156  &quot;answer&quot;: { # Represents an answer to a question # Required. The new answer.
157    &quot;author&quot;: { # Represents the author of a question or answer # Output only. The author of the answer. Will only be set during list operations.
158      &quot;displayName&quot;: &quot;A String&quot;, # The display name of the user
159      &quot;profilePhotoUri&quot;: &quot;A String&quot;, # The profile photo URI of the user.
160      &quot;type&quot;: &quot;A String&quot;, # The type of user the author is.
161    },
162    &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching.
163    &quot;name&quot;: &quot;A String&quot;, # Output only. The unique name for the answer locations/*/questions/*/answers/*
164    &quot;text&quot;: &quot;A String&quot;, # Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters.
165    &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the answer was last modified.
166    &quot;upvoteCount&quot;: 42, # Output only. The number of upvotes for the answer.
167  },
168}
169
170  x__xgafv: string, V1 error format.
171    Allowed values
172      1 - v1 error format
173      2 - v2 error format
174
175Returns:
176  An object of the form:
177
178    { # Represents an answer to a question
179  &quot;author&quot;: { # Represents the author of a question or answer # Output only. The author of the answer. Will only be set during list operations.
180    &quot;displayName&quot;: &quot;A String&quot;, # The display name of the user
181    &quot;profilePhotoUri&quot;: &quot;A String&quot;, # The profile photo URI of the user.
182    &quot;type&quot;: &quot;A String&quot;, # The type of user the author is.
183  },
184  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching.
185  &quot;name&quot;: &quot;A String&quot;, # Output only. The unique name for the answer locations/*/questions/*/answers/*
186  &quot;text&quot;: &quot;A String&quot;, # Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters.
187  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the answer was last modified.
188  &quot;upvoteCount&quot;: 42, # Output only. The number of upvotes for the answer.
189}</pre>
190</div>
191
192</body></html>