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