From bb0725261d0edb6fc5e28e2eedbe4acfef32aea2 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 5 Jan 2021 23:34:49 +0200 Subject: [PATCH] Updated code examples --- .../0.6.2/server-dotnet/examples/avatars/get-browser.md | 8 ++++---- .../server-dotnet/examples/avatars/get-credit-card.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-favicon.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-flag.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-image.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-initials.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-q-r.md | 8 ++++---- .../server-dotnet/examples/database/create-collection.md | 8 ++++---- .../server-dotnet/examples/database/create-document.md | 8 ++++---- .../server-dotnet/examples/database/delete-collection.md | 8 ++++---- .../server-dotnet/examples/database/delete-document.md | 8 ++++---- .../server-dotnet/examples/database/get-collection.md | 8 ++++---- .../0.6.2/server-dotnet/examples/database/get-document.md | 8 ++++---- .../server-dotnet/examples/database/list-collections.md | 8 ++++---- .../server-dotnet/examples/database/list-documents.md | 8 ++++---- .../server-dotnet/examples/database/update-collection.md | 8 ++++---- .../server-dotnet/examples/database/update-document.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-anti-virus.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-cache.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-d-b.md | 8 ++++---- .../examples/health/get-queue-certificates.md | 8 ++++---- .../server-dotnet/examples/health/get-queue-functions.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-queue-logs.md | 8 ++++---- .../server-dotnet/examples/health/get-queue-tasks.md | 8 ++++---- .../server-dotnet/examples/health/get-queue-usage.md | 8 ++++---- .../server-dotnet/examples/health/get-queue-webhooks.md | 8 ++++---- .../server-dotnet/examples/health/get-storage-local.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-time.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/health/get.md | 8 ++++---- .../0.6.2/server-dotnet/examples/locale/get-continents.md | 8 ++++---- .../server-dotnet/examples/locale/get-countries-e-u.md | 8 ++++---- .../server-dotnet/examples/locale/get-countries-phones.md | 8 ++++---- .../0.6.2/server-dotnet/examples/locale/get-countries.md | 8 ++++---- .../0.6.2/server-dotnet/examples/locale/get-currencies.md | 8 ++++---- .../0.6.2/server-dotnet/examples/locale/get-languages.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/locale/get.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/create-file.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/delete-file.md | 8 ++++---- .../server-dotnet/examples/storage/get-file-download.md | 8 ++++---- .../server-dotnet/examples/storage/get-file-preview.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/get-file-view.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/get-file.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/list-files.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/update-file.md | 8 ++++---- .../server-dotnet/examples/teams/create-membership.md | 8 ++++---- .../examples/0.6.2/server-dotnet/examples/teams/create.md | 8 ++++---- .../server-dotnet/examples/teams/delete-membership.md | 8 ++++---- .../examples/0.6.2/server-dotnet/examples/teams/delete.md | 8 ++++---- .../0.6.2/server-dotnet/examples/teams/get-memberships.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/teams/get.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/teams/list.md | 8 ++++---- .../examples/0.6.2/server-dotnet/examples/teams/update.md | 8 ++++---- .../examples/0.6.2/server-dotnet/examples/users/create.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/delete-session.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/delete-sessions.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/get-logs.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/get-prefs.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/get-sessions.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/users/get.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/users/list.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/update-prefs.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/update-status.md | 8 ++++---- 62 files changed, 248 insertions(+), 248 deletions(-) diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md index 6d6a5b7f18..d4c2d0312d 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md @@ -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"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md index 8a89c04618..d0ab8d7205 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md @@ -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"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md index d51b02a7c3..85155dbfd4 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md @@ -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"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md index 88a06d16ff..031b52af14 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md @@ -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"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md index 06d021dcf7..d8e6c98558 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md @@ -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"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md index 09e91e0120..177216034b 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md index 5f410cd4ae..e057ed6877 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md index 92a26b5559..a8c2c3f7e0 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md @@ -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]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md index 70d00bac14..1a875067a1 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md @@ -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]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md index 7a611e4778..4648a3e194 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md index 7af78fc558..80f413b468 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md index f2bc02fc97..88f046ba2e 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md index 376057e59b..1d425bac59 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md b/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md index b9af7abf1c..593438d255 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md b/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md index 355bc43476..36e31468f9 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md index 33ae0d7d91..42c67650d1 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md @@ -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]", {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md index 719d9f5e2e..5f4c173b7a 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md @@ -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]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md index 3a2b920271..a287ec4617 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md index cba191b265..66c72f77b6 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md index 27a46ffe7c..94e3556b4e 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md index 895147525a..f0dbb9086b 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md index 1e6130ddbd..c0a0b14628 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md index bf9dec6e7c..11ea9dbff1 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md index 0ca3a4b3f0..291e5ea8bd 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md index 74cedc0bca..ecd4f69180 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md index eb7f9071c1..b16a368469 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md index 0cfc305b63..793d9c8667 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md index 4887d4b20b..00431f7b2f 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get.md b/docs/examples/0.6.2/server-dotnet/examples/health/get.md index 1b7428a216..f487428928 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md index 0f85130aa3..ad5590032c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md index 8567e3ea4e..6bd92406cf 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md index a2c5e1a8ab..2952035a5a 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md index 724c019133..fa65eede63 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md index 44f4ba5924..bfe091796c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md index 8020c37230..5bb2571246 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get.md index ce9d4207b6..ba59d83b7b 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md index f0ac77f9d8..5427fceb1e 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md @@ -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"), {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md index d478052b7c..c78d0fbeb2 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md index fc209435fe..4f0f940130 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md index ba50cb911a..1c7df59c31 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md index 87226f1603..61843791d2 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md index 50553b6b0e..a23d658b10 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md b/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md index ba9bb077b8..df57620627 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md index 1aa65653c2..8effc42980 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md @@ -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]", {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md b/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md index 66832b80f1..d149cb4738 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md @@ -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"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/create.md b/docs/examples/0.6.2/server-dotnet/examples/teams/create.md index ff5ee26138..a78e517308 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/create.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/create.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md b/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md index 7c1900621c..d551dbf3aa 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md b/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md index ae0fda06ad..a08d23519c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md b/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md index 1aac54c69d..1d76616f5e 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/get.md b/docs/examples/0.6.2/server-dotnet/examples/teams/get.md index eb0bc28f73..796f600bd9 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/get.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/get.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/list.md b/docs/examples/0.6.2/server-dotnet/examples/teams/list.md index bc60aa8a35..648003524d 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/list.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/list.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/update.md b/docs/examples/0.6.2/server-dotnet/examples/teams/update.md index 3815283343..54ed78db72 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/update.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/update.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/create.md b/docs/examples/0.6.2/server-dotnet/examples/users/create.md index 536e995d0b..1f7fab70a7 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/create.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/create.md @@ -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"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md b/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md index eb455cb140..fd322868ab 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md b/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md index 5793fe5bc8..d2ed98e479 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md index 0c68cad6c2..bf9db43c23 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md index b9165807bc..b92ed4c20a 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md index b1fff05940..2431460668 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get.md b/docs/examples/0.6.2/server-dotnet/examples/users/get.md index fb5d4ceec5..93c31c599c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/get.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get.md @@ -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]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/list.md b/docs/examples/0.6.2/server-dotnet/examples/users/list.md index bbe25485a2..f85440c498 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/list.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/list.md @@ -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(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md b/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md index accdcd757f..06ffa4245a 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md @@ -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]", {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md b/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md index 51822dd10e..a2b00ff16c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md @@ -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");