Update your Business Profile pubsub notifications
google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsettingaccounts.updateNotificationSetting — 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, updat
- Price
- freePelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- —Not verified yet
PATCHhttps://toolswitch.dev/v1/tools/google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsettingPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
name | string | Obrigatório | Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`. | |
| Parâmetros de consulta | ||||
updateMask | string | Opcional | Required. The specific fields that should be updated. The only editable field is notification_setting. | |
- Parâmetros de caminho
namestringObrigatórioRequired. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.
- Parâmetros de consulta
updateMaskstringOpcionalRequired. The specific fields that should be updated. The only editable field is notification_setting.
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X PATCH 'https://toolswitch.dev/v1/tools/google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsetting' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"PATCH",
"https://toolswitch.dev/v1/tools/google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsetting",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-business-profile.x.notifications-mybusinessnotifications-accounts-updatenotificationsetting", {
method: "PATCH",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.