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></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="mybusinessqanda_v1.locations.questions.answers.html">answers()</a></code> 79</p> 80<p class="firstline">Returns the answers Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="#close">close()</a></code></p> 84<p class="firstline">Close httplib2 connections.</p> 85<p class="toc_element"> 86 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> 87<p class="firstline">Adds a question for the specified location.</p> 88<p class="toc_element"> 89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 90<p class="firstline">Deletes a specific question written by the current user.</p> 91<p class="toc_element"> 92 <code><a href="#deleteAnswers">deleteAnswers(name, x__xgafv=None)</a></code></p> 93<p class="firstline">Deletes the answer written by the current user to a question.</p> 94<p class="toc_element"> 95 <code><a href="#list">list(parent, answersPerQuestion=None, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 96<p class="firstline">Returns the paginated list of questions and some of its answers for a specified location. This operation is only valid if the specified location is verified.</p> 97<p class="toc_element"> 98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 99<p class="firstline">Retrieves the next page of results.</p> 100<p class="toc_element"> 101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> 102<p class="firstline">Updates a specific question written by the current user.</p> 103<h3>Method Details</h3> 104<div class="method"> 105 <code class="details" id="close">close()</code> 106 <pre>Close httplib2 connections.</pre> 107</div> 108 109<div class="method"> 110 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> 111 <pre>Adds a question for the specified location. 112 113Args: 114 parent: string, Required. The name of the location to write a question for. (required) 115 body: object, The request body. 116 The object takes the form of: 117 118{ # Represents a single question and some of its answers. 119 "author": { # Represents the author of a question or answer # Output only. The author of the question. 120 "displayName": "A String", # The display name of the user 121 "profilePhotoUri": "A String", # The profile photo URI of the user. 122 "type": "A String", # The type of user the author is. 123 }, 124 "createTime": "A String", # Output only. The timestamp for when the question was written. 125 "name": "A String", # Immutable. The unique name for the question. locations/*/questions/* This field will be ignored if set during question creation. 126 "text": "A String", # Required. The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters. 127 "topAnswers": [ # Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answers_per_question) 128 { # Represents an answer to a question 129 "author": { # Represents the author of a question or answer # Output only. The author of the answer. Will only be set during list operations. 130 "displayName": "A String", # The display name of the user 131 "profilePhotoUri": "A String", # The profile photo URI of the user. 132 "type": "A String", # The type of user the author is. 133 }, 134 "createTime": "A String", # Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching. 135 "name": "A String", # Output only. The unique name for the answer locations/*/questions/*/answers/* 136 "text": "A String", # Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters. 137 "updateTime": "A String", # Output only. The timestamp for when the answer was last modified. 138 "upvoteCount": 42, # Output only. The number of upvotes for the answer. 139 }, 140 ], 141 "totalAnswerCount": 42, # Output only. The total number of answers posted for this question. 142 "updateTime": "A String", # Output only. The timestamp for when the question was last modified. 143 "upvoteCount": 42, # Output only. The number of upvotes for the question. 144} 145 146 x__xgafv: string, V1 error format. 147 Allowed values 148 1 - v1 error format 149 2 - v2 error format 150 151Returns: 152 An object of the form: 153 154 { # Represents a single question and some of its answers. 155 "author": { # Represents the author of a question or answer # Output only. The author of the question. 156 "displayName": "A String", # The display name of the user 157 "profilePhotoUri": "A String", # The profile photo URI of the user. 158 "type": "A String", # The type of user the author is. 159 }, 160 "createTime": "A String", # Output only. The timestamp for when the question was written. 161 "name": "A String", # Immutable. The unique name for the question. locations/*/questions/* This field will be ignored if set during question creation. 162 "text": "A String", # Required. The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters. 163 "topAnswers": [ # Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answers_per_question) 164 { # Represents an answer to a question 165 "author": { # Represents the author of a question or answer # Output only. The author of the answer. Will only be set during list operations. 166 "displayName": "A String", # The display name of the user 167 "profilePhotoUri": "A String", # The profile photo URI of the user. 168 "type": "A String", # The type of user the author is. 169 }, 170 "createTime": "A String", # Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching. 171 "name": "A String", # Output only. The unique name for the answer locations/*/questions/*/answers/* 172 "text": "A String", # Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters. 173 "updateTime": "A String", # Output only. The timestamp for when the answer was last modified. 174 "upvoteCount": 42, # Output only. The number of upvotes for the answer. 175 }, 176 ], 177 "totalAnswerCount": 42, # Output only. The total number of answers posted for this question. 178 "updateTime": "A String", # Output only. The timestamp for when the question was last modified. 179 "upvoteCount": 42, # Output only. The number of upvotes for the question. 180}</pre> 181</div> 182 183<div class="method"> 184 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 185 <pre>Deletes a specific question written by the current user. 186 187Args: 188 name: string, Required. The name of the question to delete. (required) 189 x__xgafv: string, V1 error format. 190 Allowed values 191 1 - v1 error format 192 2 - v2 error format 193 194Returns: 195 An object of the form: 196 197 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 198}</pre> 199</div> 200 201<div class="method"> 202 <code class="details" id="deleteAnswers">deleteAnswers(name, x__xgafv=None)</code> 203 <pre>Deletes the answer written by the current user to a question. 204 205Args: 206 name: string, Required. The name of the question to delete an answer for. (required) 207 x__xgafv: string, V1 error format. 208 Allowed values 209 1 - v1 error format 210 2 - v2 error format 211 212Returns: 213 An object of the form: 214 215 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 216}</pre> 217</div> 218 219<div class="method"> 220 <code class="details" id="list">list(parent, answersPerQuestion=None, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code> 221 <pre>Returns the paginated list of questions and some of its answers for a specified location. This operation is only valid if the specified location is verified. 222 223Args: 224 parent: string, Required. The name of the location to fetch questions for. (required) 225 answersPerQuestion: integer, Optional. How many answers to fetch per question. The default and maximum `answers_per_question` values are 10. 226 filter: string, Optional. A filter constraining the questions to return. The only filter currently supported is "ignore_answered=true" 227 orderBy: string, Optional. The order to return the questions. Valid options include 'update_time desc' and 'upvote_count desc', which will return the questions sorted descendingly by the requested field. The default sort order is 'update_time desc'. 228 pageSize: integer, Optional. How many questions to fetch per page. The default and maximum `page_size` values are 10. 229 pageToken: string, Optional. If specified, the next page of questions is retrieved. 230 x__xgafv: string, V1 error format. 231 Allowed values 232 1 - v1 error format 233 2 - v2 error format 234 235Returns: 236 An object of the form: 237 238 { # Response message for QuestionsAndAnswers.ListQuestions 239 "nextPageToken": "A String", # If the number of questions exceeds the requested max page size, this field is populated with a token to fetch the next page of questions on a subsequent call. If there are no more questions, this field is not present in the response. 240 "questions": [ # The requested questions, 241 { # Represents a single question and some of its answers. 242 "author": { # Represents the author of a question or answer # Output only. The author of the question. 243 "displayName": "A String", # The display name of the user 244 "profilePhotoUri": "A String", # The profile photo URI of the user. 245 "type": "A String", # The type of user the author is. 246 }, 247 "createTime": "A String", # Output only. The timestamp for when the question was written. 248 "name": "A String", # Immutable. The unique name for the question. locations/*/questions/* This field will be ignored if set during question creation. 249 "text": "A String", # Required. The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters. 250 "topAnswers": [ # Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answers_per_question) 251 { # Represents an answer to a question 252 "author": { # Represents the author of a question or answer # Output only. The author of the answer. Will only be set during list operations. 253 "displayName": "A String", # The display name of the user 254 "profilePhotoUri": "A String", # The profile photo URI of the user. 255 "type": "A String", # The type of user the author is. 256 }, 257 "createTime": "A String", # Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching. 258 "name": "A String", # Output only. The unique name for the answer locations/*/questions/*/answers/* 259 "text": "A String", # Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters. 260 "updateTime": "A String", # Output only. The timestamp for when the answer was last modified. 261 "upvoteCount": 42, # Output only. The number of upvotes for the answer. 262 }, 263 ], 264 "totalAnswerCount": 42, # Output only. The total number of answers posted for this question. 265 "updateTime": "A String", # Output only. The timestamp for when the question was last modified. 266 "upvoteCount": 42, # Output only. The number of upvotes for the question. 267 }, 268 ], 269 "totalSize": 42, # The total number of questions posted for this location across all pages. 270}</pre> 271</div> 272 273<div class="method"> 274 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 275 <pre>Retrieves the next page of results. 276 277Args: 278 previous_request: The request for the previous page. (required) 279 previous_response: The response from the request for the previous page. (required) 280 281Returns: 282 A request object that you can call 'execute()' on to request the next 283 page. Returns None if there are no more items in the collection. 284 </pre> 285</div> 286 287<div class="method"> 288 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> 289 <pre>Updates a specific question written by the current user. 290 291Args: 292 name: string, Immutable. The unique name for the question. locations/*/questions/* This field will be ignored if set during question creation. (required) 293 body: object, The request body. 294 The object takes the form of: 295 296{ # Represents a single question and some of its answers. 297 "author": { # Represents the author of a question or answer # Output only. The author of the question. 298 "displayName": "A String", # The display name of the user 299 "profilePhotoUri": "A String", # The profile photo URI of the user. 300 "type": "A String", # The type of user the author is. 301 }, 302 "createTime": "A String", # Output only. The timestamp for when the question was written. 303 "name": "A String", # Immutable. The unique name for the question. locations/*/questions/* This field will be ignored if set during question creation. 304 "text": "A String", # Required. The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters. 305 "topAnswers": [ # Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answers_per_question) 306 { # Represents an answer to a question 307 "author": { # Represents the author of a question or answer # Output only. The author of the answer. Will only be set during list operations. 308 "displayName": "A String", # The display name of the user 309 "profilePhotoUri": "A String", # The profile photo URI of the user. 310 "type": "A String", # The type of user the author is. 311 }, 312 "createTime": "A String", # Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching. 313 "name": "A String", # Output only. The unique name for the answer locations/*/questions/*/answers/* 314 "text": "A String", # Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters. 315 "updateTime": "A String", # Output only. The timestamp for when the answer was last modified. 316 "upvoteCount": 42, # Output only. The number of upvotes for the answer. 317 }, 318 ], 319 "totalAnswerCount": 42, # Output only. The total number of answers posted for this question. 320 "updateTime": "A String", # Output only. The timestamp for when the question was last modified. 321 "upvoteCount": 42, # Output only. The number of upvotes for the question. 322} 323 324 updateMask: string, Required. The specific fields to update. Only question text can be updated. 325 x__xgafv: string, V1 error format. 326 Allowed values 327 1 - v1 error format 328 2 - v2 error format 329 330Returns: 331 An object of the form: 332 333 { # Represents a single question and some of its answers. 334 "author": { # Represents the author of a question or answer # Output only. The author of the question. 335 "displayName": "A String", # The display name of the user 336 "profilePhotoUri": "A String", # The profile photo URI of the user. 337 "type": "A String", # The type of user the author is. 338 }, 339 "createTime": "A String", # Output only. The timestamp for when the question was written. 340 "name": "A String", # Immutable. The unique name for the question. locations/*/questions/* This field will be ignored if set during question creation. 341 "text": "A String", # Required. The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters. 342 "topAnswers": [ # Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answers_per_question) 343 { # Represents an answer to a question 344 "author": { # Represents the author of a question or answer # Output only. The author of the answer. Will only be set during list operations. 345 "displayName": "A String", # The display name of the user 346 "profilePhotoUri": "A String", # The profile photo URI of the user. 347 "type": "A String", # The type of user the author is. 348 }, 349 "createTime": "A String", # Output only. The timestamp for when the answer was written. Only retrieved during ListResponse fetching. 350 "name": "A String", # Output only. The unique name for the answer locations/*/questions/*/answers/* 351 "text": "A String", # Required. The text of the answer. It should contain at least one non-whitespace character. The maximum length is 4096 characters. 352 "updateTime": "A String", # Output only. The timestamp for when the answer was last modified. 353 "upvoteCount": 42, # Output only. The number of upvotes for the answer. 354 }, 355 ], 356 "totalAnswerCount": 42, # Output only. The total number of answers posted for this question. 357 "updateTime": "A String", # Output only. The timestamp for when the question was last modified. 358 "upvoteCount": 42, # Output only. The number of upvotes for the question. 359}</pre> 360</div> 361 362</body></html>