UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 6.38 kB
{"openapi":"3.0.0","servers":[{"url":"https://mybusinessnotifications.googleapis.com/"}],"info":{"contact":{"name":"Google","url":"https://google.com","x-twitter":"youtube"},"description":"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.","license":{"name":"Creative Commons Attribution 3.0","url":"http://creativecommons.org/licenses/by/3.0/"},"termsOfService":"https://developers.google.com/terms/","title":"My Business Notifications API","version":"v1","x-apisguru-categories":["analytics","media"],"x-logo":{"url":"https://upload.wikimedia.org/wikipedia/commons/e/e1/YouTube_play_buttom_icon_%282013-2017%29.svg"},"x-origin":[{"format":"google","url":"https://mybusinessnotifications.googleapis.com/$discovery/rest?version=v1","version":"v1"}],"x-providerName":"googleapis.com","x-serviceName":"mybusinessnotifications"},"externalDocs":{"url":"https://developers.google.com/my-business/"},"tags":[{"name":"accounts"}],"paths":{"/v1/{name}":{"get":{"description":"Returns the pubsub notification settings for the account.","operationId":"mybusinessnotifications.accounts.getNotificationSetting","parameters":[{"description":"Required. The resource name of the notification setting we are trying to fetch.","in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSetting"}}},"description":"Successful response"}},"tags":["accounts"]},"parameters":[{"$ref":"#/components/parameters/_.xgafv"},{"$ref":"#/components/parameters/access_token"},{"$ref":"#/components/parameters/alt"},{"$ref":"#/components/parameters/callback"},{"$ref":"#/components/parameters/fields"},{"$ref":"#/components/parameters/key"},{"$ref":"#/components/parameters/oauth_token"},{"$ref":"#/components/parameters/prettyPrint"},{"$ref":"#/components/parameters/quotaUser"},{"$ref":"#/components/parameters/upload_protocol"},{"$ref":"#/components/parameters/uploadType"}],"patch":{"description":"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","operationId":"mybusinessnotifications.accounts.updateNotificationSetting","parameters":[{"description":"Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.","in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"Required. The specific fields that should be updated. The only editable field is notification_setting.","in":"query","name":"updateMask","schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSetting"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSetting"}}},"description":"Successful response"}},"tags":["accounts"]}}},"components":{"parameters":{"_.xgafv":{"description":"V1 error format.","in":"query","name":"$.xgafv","schema":{"enum":["1","2"],"type":"string"}},"access_token":{"description":"OAuth access token.","in":"query","name":"access_token","schema":{"type":"string"}},"alt":{"description":"Data format for response.","in":"query","name":"alt","schema":{"enum":["json","media","proto"],"type":"string"}},"callback":{"description":"JSONP","in":"query","name":"callback","schema":{"type":"string"}},"fields":{"description":"Selector specifying which fields to include in a partial response.","in":"query","name":"fields","schema":{"type":"string"}},"key":{"description":"API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.","in":"query","name":"key","schema":{"type":"string"}},"oauth_token":{"description":"OAuth 2.0 token for the current user.","in":"query","name":"oauth_token","schema":{"type":"string"}},"prettyPrint":{"description":"Returns response with indentations and line breaks.","in":"query","name":"prettyPrint","schema":{"type":"boolean"}},"quotaUser":{"description":"Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.","in":"query","name":"quotaUser","schema":{"type":"string"}},"uploadType":{"description":"Legacy upload protocol for media (e.g. \"media\", \"multipart\").","in":"query","name":"uploadType","schema":{"type":"string"}},"upload_protocol":{"description":"Upload protocol for media (e.g. \"raw\", \"multipart\").","in":"query","name":"upload_protocol","schema":{"type":"string"}}},"schemas":{"NotificationSetting":{"description":"A Google Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification setting resource per-account.","properties":{"name":{"description":"Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.","type":"string"},"notificationTypes":{"description":"The types of notifications that will be sent to the Pub/Sub topic. To stop receiving notifications entirely, use NotificationSettings.UpdateNotificationSetting with an empty notification_types or set the pubsub_topic to an empty string.","items":{"enum":["NOTIFICATION_TYPE_UNSPECIFIED","GOOGLE_UPDATE","NEW_REVIEW","UPDATED_REVIEW","NEW_CUSTOMER_MEDIA","NEW_QUESTION","UPDATED_QUESTION","NEW_ANSWER","UPDATED_ANSWER","DUPLICATE_LOCATION","LOSS_OF_VOICE_OF_MERCHANT","VOICE_OF_MERCHANT_UPDATED"],"type":"string","x-enumDeprecated":[false,false,false,false,false,false,false,false,false,false,true,false]},"type":"array"},"pubsubTopic":{"description":"Optional. The Google Pub/Sub topic that will receive notifications when locations managed by this account are updated. If unset, no notifications will be posted. The account mybusiness-api-pubsub@system.gserviceaccount.com must have at least Publish permissions on the Pub/Sub topic.","type":"string"}},"type":"object"}}}}