Open dankelleher opened 5 years ago
This will be a breaking change for current api.
And also .trigger
functions is getting too much params. We should consider a better approach
I don't think it breaks the current API, does it? Unless you have colons in your URL. Then it might break alright.
How about a trigger() function that accepts (name, options) where options is an object of the form {body, headers, parameters}. This is roughly similar to how common http client libraries work, which is effectively what trigger() is anyway.
it would be better, yep.
Allows you to define webhooks like this:
and trigger like this: