Returns the paginated list of answers for a specified question.
HTTP request
GET https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions/*}/answers
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The name of the question to fetch answers for. |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. How many answers to fetch per page. The default and maximum |
pageToken |
Optional. If specified, the next page of answers is retrieved. |
orderBy |
Optional. The order to return the answers. Valid options include 'updateTime desc' and 'upvoteCount desc', which will return the answers sorted descendingly by the requested field. The default sort order is 'updateTime desc'. |
Request body
The request body must be empty.
Response body
Response message for QuestionsAndAnswers.ListAnswers
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"answers": [
{
object ( |
Fields | |
---|---|
answers[] |
The requested answers. |
totalSize |
The total number of answers posted for this question across all pages. |
nextPageToken |
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. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.