1.1 KiB
using Appwrite; using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services;
Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key
Functions functions = new Functions(client);
Function result = await functions.Create( functionId: "<FUNCTION_ID>", name: "", runtime: .Node145, execute: ["any"], // optional events: new List(), // optional schedule: "", // optional timeout: 1, // optional enabled: false, // optional logging: false, // optional entrypoint: "", // optional commands: "", // optional scopes: new List(), // optional installationId: "<INSTALLATION_ID>", // optional providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional providerBranch: "<PROVIDER_BRANCH>", // optional providerSilentMode: false, // optional providerRootDirectory: "<PROVIDER_ROOT_DIRECTORY>", // optional specification: "" // optional );