Skip to content

Instantly share code, notes, and snippets.

@sunnyy02
Created May 1, 2018 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunnyy02/7da0dd6cc0c2994d1f65b54a4fb0a312 to your computer and use it in GitHub Desktop.
Save sunnyy02/7da0dd6cc0c2994d1f65b54a4fb0a312 to your computer and use it in GitHub Desktop.
Create web hook event filter
public class WebhooksFilterProvider : IWebHookFilterProvider
{
private readonly Collection<WebHookFilter> filters = new Collection<WebHookFilter>
{
new WebHookFilter
{
Name = "NewInquiry",
Description = "new inquiry is raised."
},
new WebHookFilter
{
Name = "UpdateSalesInquiry",
Description = "existing inquiry is updated."
},
};
public Task<Collection<WebHookFilter>> GetFiltersAsync()
{
return Task.FromResult(this.filters);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment