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

MyBusinessPlaceActions

import { MyBusinessPlaceActions } from "https://googleapis.deno.dev/v1/mybusinessplaceactions:v1.ts";

The My Business Place Actions API provides an interface for managing place action links of a location on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.

class MyBusinessPlaceActions {
constructor(client?: CredentialsClient, baseUrl?: string);
async locationsPlaceActionLinksCreate(parent: string, req: PlaceActionLink): Promise<PlaceActionLink>;
async locationsPlaceActionLinksDelete(name: string): Promise<Empty>;
async locationsPlaceActionLinksGet(name: string): Promise<PlaceActionLink>;
async locationsPlaceActionLinksList(parent: string, opts?: LocationsPlaceActionLinksListOptions): Promise<ListPlaceActionLinksResponse>;
async locationsPlaceActionLinksPatch(
name: string,
): Promise<PlaceActionLink>;
async placeActionTypeMetadataList(opts?: PlaceActionTypeMetadataListOptions): Promise<ListPlaceActionTypeMetadataResponse>;
}

§Constructors

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

§Methods

§
locationsPlaceActionLinksCreate(parent: string, req: PlaceActionLink): Promise<PlaceActionLink>
[src]

Creates a place action link associated with the specified location, and returns it. The request is considered duplicate if the parent, place_action_link.uri and place_action_link.place_action_type are the same as a previous request.

@param parent

Required. The resource name of the location where to create this place action link. locations/{location_id}.

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

Deletes a place action link from the specified location.

@param name

Required. The resource name of the place action link to remove from the location.

§
locationsPlaceActionLinksGet(name: string): Promise<PlaceActionLink>
[src]

Gets the specified place action link.

@param name

Required. The name of the place action link to fetch.

§
locationsPlaceActionLinksPatch(name: string, req: PlaceActionLink, opts?: LocationsPlaceActionLinksPatchOptions): Promise<PlaceActionLink>
[src]

Updates the specified place action link and returns it.

@param name

Optional. The resource name, in the format locations/{location_id}/placeActionLinks/{place_action_link_id}. The name field will only be considered in UpdatePlaceActionLink and DeletePlaceActionLink requests for updating and deleting links respectively. However, it will be ignored in CreatePlaceActionLink request, where place_action_link_id will be assigned by the server on successful creation of a new link and returned as part of the response.

§

Returns the list of available place action types for a location or country.