2019-09-13 04:20:03 +12:00
|
|
|
const sdk = require('node-appwrite');
|
2019-08-06 17:03:18 +12:00
|
|
|
|
2019-09-13 04:20:03 +12:00
|
|
|
// Init SDK
|
2019-10-04 06:58:18 +13:00
|
|
|
let client = new sdk.Client();
|
2019-09-13 04:20:03 +12:00
|
|
|
|
|
|
|
let projects = new sdk.Projects(client);
|
|
|
|
|
|
|
|
client
|
2019-10-02 07:10:33 +13:00
|
|
|
.setProject('')
|
|
|
|
.setKey('')
|
2019-08-06 17:03:18 +12:00
|
|
|
;
|
|
|
|
|
2019-10-09 23:41:25 +13:00
|
|
|
let promise = projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
|
2019-08-06 17:03:18 +12:00
|
|
|
|
|
|
|
promise.then(function (response) {
|
|
|
|
console.log(response);
|
|
|
|
}, function (error) {
|
|
|
|
console.log(error);
|
|
|
|
});
|