class LocationsQuestionsAnswers extends Resource (View source)

The "answers" collection of methods.

Typical usage is:

 $mybusinessqandaService = new Google\Service\MyBusinessQA(...);
 $answers = $mybusinessqandaService->locations_questions_answers;

Methods

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

Deletes the answer written by the current user to a question.

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

Returns the paginated list of answers for a specified question.

upsert(string $parent, UpsertAnswerRequest $postBody, array $optParams = [])

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.

Details

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

Deletes the answer written by the current user to a question.

(answers.delete)

Parameters

string $name

Required. The name of the question to delete an answer for.

array $optParams

Optional parameters.

Return Value

MybusinessqandaEmpty

Exceptions

Exception

ListAnswersResponse listLocationsQuestionsAnswers(string $parent, array $optParams = [])

Returns the paginated list of answers for a specified question.

(answers.listLocationsQuestionsAnswers)

Parameters

string $parent

Required. The name of the question to fetch answers for.

array $optParams

Optional parameters.

Return Value

ListAnswersResponse

Exceptions

Exception

Answer upsert(string $parent, UpsertAnswerRequest $postBody, array $optParams = [])

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.

(answers.upsert)

Parameters

string $parent

Required. The name of the question to write an answer for.

UpsertAnswerRequest $postBody
array $optParams

Optional parameters.

Return Value

Answer

Exceptions

Exception