appwrite/docs/examples/1.2.x/client-web/examples/functions/get-execution.md

18 lines
460 B
Markdown
Raw Normal View History

2022-12-26 12:17:28 +00:00
import { Client, Functions } from "appwrite";
const client = new Client();
const functions = new Functions(client);
client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
2022-12-26 12:17:28 +00:00
.setProject('5df5acd0d48c2') // Your project ID
;
const promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]');
promise.then(function (response) {
console.log(response); // Success
}, function (error) {
console.log(error); // Failure
});