Open kamicut opened 2 years ago
From the latest SDK, it seems webhooks.createWebhook
and webhooks.create_webhook
are both removed and replaced by webhooks.create
. Similar things happen to other related functions like webhooks.getWebHook
. I do think the doc needs to be updated.
I was unable to create a webhook using the
webhooks.createWebhook(params)
call. I was getting aninvalid request
error, even with the shape of data according to the documentationerror:
Looking into the tests and internal code of this library, I found
webhooks.create(resource, target)
https://github.com/Asana/node-asana/blob/master/lib/resources/webhooks.js#L28. This worked for me. I'm opening this issue in case this is a missing documentation issue.