appwrite/docs/examples/0.10.x/client-web/examples/functions/create-execution.md

14 lines
353 B
Markdown
Raw Normal View History

2021-09-02 10:00:05 +00:00
const sdk = new Appwrite();
2021-09-02 07:04:48 +00:00
sdk
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
let promise = sdk.functions.createExecution('[FUNCTION_ID]');
promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});