class LocationsQuestions extends Resource (View source)

The "questions" collection of methods.

Typical usage is:

 $mybusinessqandaService = new Google\Service\MyBusinessQA(...);
 $questions = $mybusinessqandaService->locations_questions;

Methods

create(string $parent, Question $postBody, array $optParams = [])

Adds a question for the specified location. (questions.create)

delete(string $name, array $optParams = [])

Deletes a specific question written by the current user. (questions.delete)

listLocationsQuestions(string $parent, array $optParams = [])

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. (questions.listLocationsQuestions)

patch(string $name, Question $postBody, array $optParams = [])

Updates a specific question written by the current user. (questions.patch)

Details

Question create(string $parent, Question $postBody, array $optParams = [])

Adds a question for the specified location. (questions.create)

Parameters

string $parent

Required. The name of the location to write a question for.

Question $postBody
array $optParams

Optional parameters.

Return Value

Question

Exceptions

Exception

MybusinessqandaEmpty delete(string $name, array $optParams = [])

Deletes a specific question written by the current user. (questions.delete)

Parameters

string $name

Required. The name of the question to delete.

array $optParams

Optional parameters.

Return Value

MybusinessqandaEmpty

Exceptions

Exception

ListQuestionsResponse listLocationsQuestions(string $parent, array $optParams = [])

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. (questions.listLocationsQuestions)

Parameters

string $parent

Required. The name of the location to fetch questions for.

array $optParams

Optional parameters.

Return Value

ListQuestionsResponse

Exceptions

Exception

Question patch(string $name, Question $postBody, array $optParams = [])

Updates a specific question written by the current user. (questions.patch)

Parameters

string $name

Immutable. The unique name for the question. locations/questions This field will be ignored if set during question creation.

Question $postBody
array $optParams

Optional parameters.

Return Value

Question

Exceptions

Exception