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

MyBusinessNotifications

import { MyBusinessNotifications } from "https://googleapis.deno.dev/v1/mybusinessnotifications:v1.ts";

The My Business Notification Settings API enables managing notification settings for business accounts. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.

class MyBusinessNotifications {
constructor(client?: CredentialsClient, baseUrl?: string);
async accountsGetNotificationSetting(name: string): Promise<NotificationSetting>;
async accountsUpdateNotificationSetting(
name: string,
): Promise<NotificationSetting>;
}

§Constructors

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

§Methods

§
accountsGetNotificationSetting(name: string): Promise<NotificationSetting>
[src]

Returns the pubsub notification settings for the account.

@param name

Required. The resource name of the notification setting we are trying to fetch.

§
accountsUpdateNotificationSetting(name: string, req: NotificationSetting, opts?: AccountsUpdateNotificationSettingOptions): Promise<NotificationSetting>
[src]

Sets the pubsub notification setting for the account informing Google which topic to send pubsub notifications for. Use the notification_types field within notification_setting to manipulate the events an account wants to subscribe to. An account will only have one notification setting resource, and only one pubsub topic can be set. To delete the setting, update with an empty notification_types

@param name

Required. The resource name this setting is for. This is of the form accounts/{account_id}/notificationSetting.