How can I get a notification with webhook?

  • 1
  • Question
  • Updated 6 months ago
I am studying webhook with this API https://api.sharefile.com/rest/webhooks/overview.aspx.
Now I registered to subscribe. I got a JSON file like below:

{
  'url': 'my.company.url',
  'WebhookUrl': 'https://webhook.com',
  'odata.metadata': 'some.meta.data.~~',
  'Events': [{
    'ResourceType': 'File',
    'OperationName': 'Upload',
    'odata.type': 'ShareFile.Api.Models.SubscribedResourceEvent'
  }, {
    'ResourceType': 'File',
    'OperationName': 'Update',
    'odata.type': 'ShareFile.Api.Models.SubscribedResourceEvent'
  }, {
    'ResourceType': 'File',
    'OperationName': 'Download',
    'odata.type': 'ShareFile.Api.Models.SubscribedResourceEvent'
  }, {
    'ResourceType': 'File',
    'OperationName': 'Delete',
    'odata.type': 'ShareFile.Api.Models.SubscribedResourceEvent'
  }],
  'odata.type': 'ShareFile.Api.Models.WebhookSubscription',
  'SubscriptionContext': {
    'ResourceType': 'Folder',
    'ResourceId': 'my-folder-resource-id',
    'odata.type': 'ShareFile.Api.Models.SubscriptionContext'
  },
  'Id': 'I-got-some-id'
}


How can I get the notification with this registered id?
Photo of Minsung Kim

Minsung Kim

  • 9 Posts
  • 0 Reply Likes

Posted 6 months ago

  • 1

Be the first to post a reply!