public async Task <Webhook> CreateUrlWebhookAsync(Uri url, params Webhook.WebhookEventType[] eventTypes) { String encodeParams = new UrlEncoder().EncodeObject(new { url = url.AbsoluteUri, event_types = UrlEncoder.ConvertEventsArr(eventTypes) }); return(await createAsync(null, encodeParams)); }
public async Task <Webhook> CreateEmailWebhookAsync(String email, Webhook.WebhookEventType[] eventTypes) { String encodeParams = new UrlEncoder().EncodeObject(new { email = email, event_types = UrlEncoder.ConvertEventsArr(eventTypes) }); return(await createAsync(null, encodeParams)); }