appwrite/docs/examples/1.5.x/client-flutter/examples/functions/create-execution.md

17 lines
490 B
Markdown
Raw Normal View History

2024-02-05 12:40:51 +00:00
import 'package:appwrite/appwrite.dart';
2024-02-21 11:31:50 +00:00
Client client = Client()
2024-02-27 08:12:00 +00:00
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID
2024-02-05 12:40:51 +00:00
2024-02-21 11:31:50 +00:00
Functions functions = Functions(client);
2024-02-27 08:12:00 +00:00
Execution result = await functions.createExecution(
functionId: '<FUNCTION_ID>',
body: '<BODY>', // optional
xasync: false, // optional
path: '<PATH>', // optional
method: ExecutionMethod.gET, // optional
headers: {}, // optional
2024-02-21 11:31:50 +00:00
);