appwrite/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md
Damodar Lohani 5976295051 sdk docs
2024-04-11 05:15:10 +00:00

553 B

import { Client, Functions, ExecutionMethod } from "react-native-appwrite";

const client = new Client() .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2'); // Your project ID

const functions = new Functions(client);

const result = await functions.createExecution( '<FUNCTION_ID>', // functionId '', // body (optional) false, // async (optional) '', // path (optional) ExecutionMethod.GET, // method (optional) {} // headers (optional) );

console.log(response);