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
- freeAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
- 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 | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de ruta | ||||
name | cadena | Obligatorio | Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`. | |
| Parámetros de consulta | ||||
updateMask | cadena | Opcional | Required. The specific fields that should be updated. The only editable field is notification_setting. | |
- Parámetros de ruta
namecadenaObligatorioRequired. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.
- Parámetros de consulta
updateMaskcadenaOpcionalRequired. The specific fields that should be updated. The only editable field is notification_setting.
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.