Skip to content

Commit 8b1c193

Browse files
committed
feat(webhooks): add new arguments to create and update
1 parent 68cc9a5 commit 8b1c193

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/webhooks.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Webhooks {
3535
}
3636
}
3737

38-
const createOrUpdateWebhook = (http, { uid, tag, url, enable = false } = {}) => {
38+
const createOrUpdateWebhook = (http, { uid, tag, url, enable = false, secret, verifySSL } = {}) => {
3939
if (!url) {
4040
throw new Error(`Please provide an url for ${tag}`)
4141
}
@@ -49,7 +49,9 @@ const createOrUpdateWebhook = (http, { uid, tag, url, enable = false } = {}) =>
4949
url: `/forms/${uid}/webhooks/${tag}`,
5050
data: {
5151
url,
52-
enable
52+
enable,
53+
secret,
54+
verify_ssl: verifySSL ? true : undefined
5355
}
5456
})
5557
}

0 commit comments

Comments
 (0)