class Accounts extends Resource (View source)

The "accounts" collection of methods.

Typical usage is:

 $mybusinessnotificationsService = new Google\Service\MyBusinessNotificationSettings(...);
 $accounts = $mybusinessnotificationsService->accounts;

Methods

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

Returns the pubsub notification settings for the account.

updateNotificationSetting(string $name, NotificationSetting $postBody, array $optParams = [])

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 (accounts.updateNotificationSetting)

Details

NotificationSetting getNotificationSetting(string $name, array $optParams = [])

Returns the pubsub notification settings for the account.

(accounts.getNotificationSetting)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

NotificationSetting

Exceptions

Exception

NotificationSetting updateNotificationSetting(string $name, NotificationSetting $postBody, array $optParams = [])

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 (accounts.updateNotificationSetting)

Parameters

string $name

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

NotificationSetting $postBody
array $optParams

Optional parameters.

Return Value

NotificationSetting

Exceptions

Exception