enable .net sdk and generate for 1.3.x

This commit is contained in:
Damodar Lohani
2023-07-04 08:21:13 +00:00
parent 7844094b58
commit bdf695da69
160 changed files with 2069 additions and 2 deletions
+2 -2
View File
@@ -360,14 +360,14 @@ return [
'version' => '2.0.0',
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => false,
'enabled' => true,
'beta' => true,
'dev' => true,
'hidden' => false,
'family' => APP_PLATFORM_SERVER,
'prism' => 'csharp',
'source' => \realpath(__DIR__ . '/../sdks/server-dotnet'),
'gitUrl' => 'git@github.com:appwrite/sdk-for-dotnet.git',
'gitUrl' => 'https://github.com/appwrite/sdk-for-dotnet.git',
'gitRepoName' => 'sdk-for-dotnet',
'gitUserName' => 'appwrite',
'gitBranch' => 'dev',
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.CreatePhoneVerification();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.CreateRecovery("email@example.com", "https://example.com");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.CreateVerification("https://example.com");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.DeleteSession("[SESSION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.DeleteSessions();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.GetPrefs();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.GetSession("[SESSION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.Get();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.ListLogs();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.ListSessions();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdateEmail("email@example.com", "password");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdateName("[NAME]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdatePassword("");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdatePhoneVerification("[USER_ID]", "[SECRET]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdatePhone("+12065550100", "password");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdatePrefs([object]);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdateRecovery("[USER_ID]", "[SECRET]", "password", "password");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdateSession("[SESSION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdateStatus();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
;
Account account = new Account(client);
HttpResponseMessage result = await account.UpdateVerification("[USER_ID]", "[SECRET]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Avatars avatars = new Avatars(client);
string result = await avatars.GetBrowser("aa");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Avatars avatars = new Avatars(client);
string result = await avatars.GetCreditCard("amex");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Avatars avatars = new Avatars(client);
string result = await avatars.GetFavicon("https://example.com");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Avatars avatars = new Avatars(client);
string result = await avatars.GetFlag("af");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Avatars avatars = new Avatars(client);
string result = await avatars.GetImage("https://example.com");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Avatars avatars = new Avatars(client);
string result = await avatars.GetInitials();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Avatars avatars = new Avatars(client);
string result = await avatars.GetQR("[TEXT]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateBooleanAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateCollection("[DATABASE_ID]", "[COLLECTION_ID]", "[NAME]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateDatetimeAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateDocument("[DATABASE_ID]", "[COLLECTION_ID]", "[DOCUMENT_ID]", [object]);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateEmailAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateEnumAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", [List<object>], false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateFloatAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateIndex("[DATABASE_ID]", "[COLLECTION_ID]", "", "key", [List<object>]);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateIntegerAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateIpAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateRelationshipAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "[RELATED_COLLECTION_ID]", "oneToOne");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateStringAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", 1, false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.CreateUrlAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.Create("[DATABASE_ID]", "[NAME]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.DeleteAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.DeleteCollection("[DATABASE_ID]", "[COLLECTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.DeleteDocument("[DATABASE_ID]", "[COLLECTION_ID]", "[DOCUMENT_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.DeleteIndex("[DATABASE_ID]", "[COLLECTION_ID]", "");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.Delete("[DATABASE_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.GetAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.GetCollection("[DATABASE_ID]", "[COLLECTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.GetDocument("[DATABASE_ID]", "[COLLECTION_ID]", "[DOCUMENT_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.GetIndex("[DATABASE_ID]", "[COLLECTION_ID]", "");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.Get("[DATABASE_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.ListAttributes("[DATABASE_ID]", "[COLLECTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.ListCollections("[DATABASE_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.ListDocuments("[DATABASE_ID]", "[COLLECTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.ListIndexes("[DATABASE_ID]", "[COLLECTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.List();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateBooleanAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false, false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateCollection("[DATABASE_ID]", "[COLLECTION_ID]", "[NAME]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateDatetimeAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false, "");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateDocument("[DATABASE_ID]", "[COLLECTION_ID]", "[DOCUMENT_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateEmailAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false, "email@example.com");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateEnumAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", [List<object>], false, "[DEFAULT]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateFloatAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false, 0, 0, 0);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateIntegerAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false, 0, 0, 0);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateIpAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false, "");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateRelationshipAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateStringAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false, "[DEFAULT]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.UpdateUrlAttribute("[DATABASE_ID]", "[COLLECTION_ID]", "", false, "https://example.com");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Databases databases = new Databases(client);
HttpResponseMessage result = await databases.Update("[DATABASE_ID]", "[NAME]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.CreateBuild("[FUNCTION_ID]", "[DEPLOYMENT_ID]", "[BUILD_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.CreateDeployment("[FUNCTION_ID]", "[ENTRYPOINT]", new File("./path-to-files/image.jpg"), false);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.CreateExecution("[FUNCTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.CreateVariable("[FUNCTION_ID]", "[KEY]", "[VALUE]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.Create("[FUNCTION_ID]", "[NAME]", "node-14.5");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.DeleteDeployment("[FUNCTION_ID]", "[DEPLOYMENT_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.DeleteVariable("[FUNCTION_ID]", "[VARIABLE_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.Delete("[FUNCTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.GetDeployment("[FUNCTION_ID]", "[DEPLOYMENT_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.GetExecution("[FUNCTION_ID]", "[EXECUTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.GetVariable("[FUNCTION_ID]", "[VARIABLE_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.Get("[FUNCTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.ListDeployments("[FUNCTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.ListExecutions("[FUNCTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.ListRuntimes();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.ListVariables("[FUNCTION_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.List();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.UpdateDeployment("[FUNCTION_ID]", "[DEPLOYMENT_ID]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.UpdateVariable("[FUNCTION_ID]", "[VARIABLE_ID]", "[KEY]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Functions functions = new Functions(client);
HttpResponseMessage result = await functions.Update("[FUNCTION_ID]", "[NAME]");
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Graphql graphql = new Graphql(client);
HttpResponseMessage result = await graphql.Mutation([object]);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Graphql graphql = new Graphql(client);
HttpResponseMessage result = await graphql.Query([object]);
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Health health = new Health(client);
HttpResponseMessage result = await health.GetAntivirus();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Health health = new Health(client);
HttpResponseMessage result = await health.GetCache();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Health health = new Health(client);
HttpResponseMessage result = await health.GetDB();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Health health = new Health(client);
HttpResponseMessage result = await health.GetQueueCertificates();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Health health = new Health(client);
HttpResponseMessage result = await health.GetQueueFunctions();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Health health = new Health(client);
HttpResponseMessage result = await health.GetQueueLogs();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Health health = new Health(client);
HttpResponseMessage result = await health.GetQueueWebhooks();
@@ -0,0 +1,13 @@
using Appwrite;
Client client = new Client();
client
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
;
Health health = new Health(client);
HttpResponseMessage result = await health.GetStorageLocal();

Some files were not shown because too many files have changed in this diff Show More