let sdk = new Appwrite();

sdk
    setProject('')
;

let promise = sdk.projects.getWebhook('[PROJECT_ID]', '[WEBHOOK_ID]');

promise.then(function (response) {
    console.log(response);
}, function (error) {
    console.log(error);
});