SDK binary support for executions

This commit is contained in:
root
2024-09-18 15:52:13 +00:00
parent a1e71b4977
commit f4fb8d2dfd
209 changed files with 1356 additions and 981 deletions
@@ -4,17 +4,18 @@ import io.appwrite.services.Functions;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2"); // Your project ID
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
Functions functions = new Functions(client);
functions.createExecution(
"<FUNCTION_ID>", // functionId
"<BODY>", // body (optional)
"{$example}", // functionId
Payload.fromJson(mapOf("x" to "y" as Any)), // body (optional)
false, // async (optional)
"<PATH>", // path (optional)
"{$example}", // path (optional)
ExecutionMethod.GET, // method (optional)
mapOf( "a" to "b" ), // headers (optional)
"", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();