...
You’ll need to specify a base url of the listener that you wish want to receive Scope event notifications, e.g. something like https://yourapplication.com/hooks/scopear
Note |
---|
At this time, Scope does not support subscriptions for specific event types. Webhook listeners must be configured to receive all webhook events and discard those that are not of interest. |
For example, if you are only interested in handling update
events for ScenarioSession
resources, you probably want to structure your listener like to the following psuedocode:
Code Block | ||
---|---|---|
| ||
#!/usr/bin/ruby
# @payload: hash
def handleWebook(payload)
return unless payload['event'] == 'update' &&
payload['type'] == 'resource' &&
payload['data']['resource-type'] == 'ScenarioSession'
# process logic goes here...
end |
List of available webhooks
...