Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MyBusinessqanda

import { MyBusinessqanda } from "https://googleapis.deno.dev/v1/mybusinessqanda:v1.ts";

The My Business Q&A API allows questions and answers to be posted for specific listings. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.

class MyBusinessqanda {
constructor(client?: CredentialsClient, baseUrl?: string);
questions;
 
async locationsQuestionsAnswersDelete(name: string): Promise<Empty>;
async locationsQuestionsAnswersList(parent: string, opts?: LocationsQuestionsAnswersListOptions): Promise<ListAnswersResponse>;
async locationsQuestionsAnswersUpsert(parent: string, req: UpsertAnswerRequest): Promise<Answer>;
async locationsQuestionsCreate(parent: string, req: Question): Promise<Question>;
async locationsQuestionsDelete(name: string): Promise<Empty>;
async locationsQuestionsList(parent: string, opts?: LocationsQuestionsListOptions): Promise<ListQuestionsResponse>;
async locationsQuestionsPatch(
name: string,
req: Question,
): Promise<Question>;
}

§Constructors

§
new MyBusinessqanda(client?: CredentialsClient, baseUrl?: string)
[src]

§Properties

§
questions
[src]

Updates a specific question written by the current user.

§Methods

§
locationsQuestionsAnswersDelete(name: string): Promise<Empty>
[src]

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

@param name

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

§
locationsQuestionsAnswersList(parent: string, opts?: LocationsQuestionsAnswersListOptions): Promise<ListAnswersResponse>
[src]

Returns the paginated list of answers for a specified question.

@param parent

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

§
locationsQuestionsAnswersUpsert(parent: string, req: UpsertAnswerRequest): Promise<Answer>
[src]

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.

@param parent

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

§
locationsQuestionsCreate(parent: string, req: Question): Promise<Question>
[src]

Adds a question for the specified location.

@param parent

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

§
locationsQuestionsDelete(name: string): Promise<Empty>
[src]

Deletes a specific question written by the current user.

@param name

Required. The name of the question to delete.

§
locationsQuestionsList(parent: string, opts?: LocationsQuestionsListOptions): Promise<ListQuestionsResponse>
[src]

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.

@param parent

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

§
locationsQuestionsPatch(name: string, req: Question, opts?: LocationsQuestionsPatchOptions): Promise<Question>
[src]