1
0
Fork 0
mirror of synced 2024-10-02 02:07:04 +13:00
appwrite/docs/examples/1.3.x/server-dotnet/examples/functions/create-deployment.md
2023-07-11 00:15:46 +05:30

526 B

using Appwrite; using Appwrite.Services; using Appwrite.Models;

var client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key

var functions = new Functions(client);

Deployment result = await functions.CreateDeployment( functionId: "[FUNCTION_ID]", entrypoint: "[ENTRYPOINT]", code: InputFile.FromPath("./path-to-files/image.jpg"), activate: false);