appwrite/docs/examples/1.5.x/server-kotlin/kotlin/functions/create-execution.md

20 lines
607 B
Markdown
Raw Normal View History

2024-02-05 12:40:51 +00:00
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
val client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setSession("") // The user session to authenticate with
val functions = Functions(client)
val response = functions.createExecution(
2024-02-24 11:34:42 +00:00
functionId = "<FUNCTION_ID>",
body = "<BODY>", // optional
2024-02-21 11:31:50 +00:00
async = false, // optional
2024-02-24 11:34:42 +00:00
path = "<PATH>", // optional
2024-02-21 11:31:50 +00:00
method = "GET", // optional
headers = mapOf( "a" to "b" ) // optional
2024-02-05 12:40:51 +00:00
)