mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Updated code examples
This commit is contained in:
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = avatars.getBrowser("aa");
|
||||
string result = await avatars.GetBrowser("aa");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = avatars.getCreditCard("amex");
|
||||
string result = await avatars.GetCreditCard("amex");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = avatars.getFavicon("https://example.com");
|
||||
string result = await avatars.GetFavicon("https://example.com");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = avatars.getFlag("af");
|
||||
string result = await avatars.GetFlag("af");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = avatars.getImage("https://example.com");
|
||||
string result = await avatars.GetImage("https://example.com");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = avatars.getInitials();
|
||||
string result = await avatars.GetInitials();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = avatars.getQR("[TEXT]");
|
||||
string result = await avatars.GetQR("[TEXT]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.createCollection("[NAME]", {}, {}, {});
|
||||
HttpResponseMessage result = await database.CreateCollection("[NAME]", {}, {}, {});
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.createDocument("[COLLECTION_ID]", {}, {}, {});
|
||||
HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", {}, {}, {});
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.deleteCollection("[COLLECTION_ID]");
|
||||
HttpResponseMessage result = await database.DeleteCollection("[COLLECTION_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.deleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
|
||||
HttpResponseMessage result = await database.DeleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.getCollection("[COLLECTION_ID]");
|
||||
HttpResponseMessage result = await database.GetCollection("[COLLECTION_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.getDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
|
||||
HttpResponseMessage result = await database.GetDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.listCollections();
|
||||
HttpResponseMessage result = await database.ListCollections();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.listDocuments("[COLLECTION_ID]");
|
||||
HttpResponseMessage result = await database.ListDocuments("[COLLECTION_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.updateCollection("[COLLECTION_ID]", "[NAME]", {}, {});
|
||||
HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]", {}, {});
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
result = database.updateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {}, {}, {});
|
||||
HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {}, {}, {});
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getAntiVirus();
|
||||
HttpResponseMessage result = await health.GetAntiVirus();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getCache();
|
||||
HttpResponseMessage result = await health.GetCache();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getDB();
|
||||
HttpResponseMessage result = await health.GetDB();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getQueueCertificates();
|
||||
HttpResponseMessage result = await health.GetQueueCertificates();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getQueueFunctions();
|
||||
HttpResponseMessage result = await health.GetQueueFunctions();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getQueueLogs();
|
||||
HttpResponseMessage result = await health.GetQueueLogs();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getQueueTasks();
|
||||
HttpResponseMessage result = await health.GetQueueTasks();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getQueueUsage();
|
||||
HttpResponseMessage result = await health.GetQueueUsage();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getQueueWebhooks();
|
||||
HttpResponseMessage result = await health.GetQueueWebhooks();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getStorageLocal();
|
||||
HttpResponseMessage result = await health.GetStorageLocal();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.getTime();
|
||||
HttpResponseMessage result = await health.GetTime();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.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);
|
||||
|
||||
result = health.get();
|
||||
HttpResponseMessage result = await health.Get();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
result = locale.getContinents();
|
||||
HttpResponseMessage result = await locale.GetContinents();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
result = locale.getCountriesEU();
|
||||
HttpResponseMessage result = await locale.GetCountriesEU();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
result = locale.getCountriesPhones();
|
||||
HttpResponseMessage result = await locale.GetCountriesPhones();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
result = locale.getCountries();
|
||||
HttpResponseMessage result = await locale.GetCountries();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
result = locale.getCurrencies();
|
||||
HttpResponseMessage result = await locale.GetCurrencies();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
result = locale.getLanguages();
|
||||
HttpResponseMessage result = await locale.GetLanguages();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
result = locale.get();
|
||||
HttpResponseMessage result = await locale.Get();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
result = storage.createFile(new File("./path-to-files/image.jpg"), {}, {});
|
||||
HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg"), {}, {});
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
result = storage.deleteFile("[FILE_ID]");
|
||||
HttpResponseMessage result = await storage.DeleteFile("[FILE_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
result = storage.getFileDownload("[FILE_ID]");
|
||||
string result = await storage.GetFileDownload("[FILE_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
result = storage.getFilePreview("[FILE_ID]");
|
||||
string result = await storage.GetFilePreview("[FILE_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
result = storage.getFileView("[FILE_ID]");
|
||||
string result = await storage.GetFileView("[FILE_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
result = storage.getFile("[FILE_ID]");
|
||||
HttpResponseMessage result = await storage.GetFile("[FILE_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
result = storage.listFiles();
|
||||
HttpResponseMessage result = await storage.ListFiles();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
result = storage.updateFile("[FILE_ID]", {}, {});
|
||||
HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", {}, {});
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
result = teams.createMembership("[TEAM_ID]", "email@example.com", {}, "https://example.com");
|
||||
HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", {}, "https://example.com");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
result = teams.create("[NAME]");
|
||||
HttpResponseMessage result = await teams.Create("[NAME]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
result = teams.deleteMembership("[TEAM_ID]", "[INVITE_ID]");
|
||||
HttpResponseMessage result = await teams.DeleteMembership("[TEAM_ID]", "[INVITE_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
result = teams.delete("[TEAM_ID]");
|
||||
HttpResponseMessage result = await teams.Delete("[TEAM_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
result = teams.getMemberships("[TEAM_ID]");
|
||||
HttpResponseMessage result = await teams.GetMemberships("[TEAM_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
result = teams.get("[TEAM_ID]");
|
||||
HttpResponseMessage result = await teams.Get("[TEAM_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
result = teams.list();
|
||||
HttpResponseMessage result = await teams.List();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
result = teams.update("[TEAM_ID]", "[NAME]");
|
||||
HttpResponseMessage result = await teams.Update("[TEAM_ID]", "[NAME]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.create("email@example.com", "password");
|
||||
HttpResponseMessage result = await users.Create("email@example.com", "password");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.deleteSession("[USER_ID]", "[SESSION_ID]");
|
||||
HttpResponseMessage result = await users.DeleteSession("[USER_ID]", "[SESSION_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.deleteSessions("[USER_ID]");
|
||||
HttpResponseMessage result = await users.DeleteSessions("[USER_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.getLogs("[USER_ID]");
|
||||
HttpResponseMessage result = await users.GetLogs("[USER_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.getPrefs("[USER_ID]");
|
||||
HttpResponseMessage result = await users.GetPrefs("[USER_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.getSessions("[USER_ID]");
|
||||
HttpResponseMessage result = await users.GetSessions("[USER_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.get("[USER_ID]");
|
||||
HttpResponseMessage result = await users.Get("[USER_ID]");
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.list();
|
||||
HttpResponseMessage result = await users.List();
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.updatePrefs("[USER_ID]", {});
|
||||
HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", {});
|
||||
|
||||
@@ -3,11 +3,11 @@ use 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
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
result = users.updateStatus("[USER_ID]", "1");
|
||||
HttpResponseMessage result = await users.UpdateStatus("[USER_ID]", "1");
|
||||
|
||||
Reference in New Issue
Block a user