diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e68affe
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+**/bin
+**/obj
+**/.DS_Store
+**/.vs
diff --git a/LICENSE b/LICENSE
index d73a6e9..47cfdfb 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
+Copyright (c) 2023 Appwrite (https://appwrite.io) and individual contributors.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -7,6 +7,6 @@ Redistribution and use in source and binary forms, with or without modification,
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- 3. Neither the name Appwrite nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
diff --git a/README.md b/README.md
index 1c08a16..9cf624e 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
# Appwrite .NET SDK

-
+
[](https://travis-ci.com/appwrite/sdk-generator)
-[](https://twitter.com/appwrite_io)
+[](https://twitter.com/appwrite)
[](https://appwrite.io/discord)
-**This SDK is compatible with Appwrite server version 0.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dotnet/releases).**
+**This SDK is compatible with Appwrite server version 1.3.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dotnet/releases).**
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the .NET SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
@@ -17,17 +17,17 @@ Appwrite is an open-source backend as a service server that abstract and simplif
Add this reference to your project's `.csproj` file:
```xml
-
+
```
You can install packages from the command line:
```powershell
# Package Manager
-Install-Package Appwrite -Version 0.3.0
+Install-Package Appwrite -Version 0.4.0
# or .NET CLI
-dotnet add package Appwrite --version 0.3.0
+dotnet add package Appwrite --version 0.4.0
```
@@ -35,51 +35,47 @@ dotnet add package Appwrite --version 0.3.0
## Getting Started
### Initialize & Make API Request
-Once you add the dependencies, its extremely easy to get started with the SDK; All you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:
+Once you have installed the package, it is extremely easy to get started with the SDK; all you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:
```csharp
using Appwrite;
-static async Task Main(string[] args)
-{
- var client = Client();
+var client = new Client()
+ .SetEndpoint("http://cloud.appwrite.io/v1") // Make sure your endpoint is accessible
+ .SetProject("5ff3379a01d25") // Your project ID
+ .SetKey("cd868db89") // Your secret API key
+ .SetSelfSigned(); // Use only on dev mode with a self-signed SSL cert
- client
- .setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
- .setProject('5ff3379a01d25') // Your project ID
- .setKey('cd868c7af8bdc893b4...93b7535db89')
- .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
- ;
+var users = new Users(client);
- var users = Users(client);
+var user = await users.Create(
+ userId: ID.Unique(),
+ email: "email@example.com",
+ password: "password",
+ name: "name");
- try {
- var request = await users.create('email@example.com', 'password', 'name');
- var response = await request.Content.ReadAsStringAsync();
- Console.WriteLine(response);
- } catch (AppwriteException e) {
- Console.WriteLine(e.Message);
- }
-}
+Console.WriteLine(user.ToMap());
```
### Error Handling
-The Appwrite .NET SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
+The Appwrite .NET SDK raises an `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
```csharp
-var users = Users(client);
+var users = new Users(client);
try {
- var request = await users.create('email@example.com', 'password', 'name');
- var response = await request.Content.ReadAsStringAsync();
- Console.WriteLine(response);
+ var user = await users.Create(
+ userId: ID.Unique(),
+ email: "email@example.com",
+ password: "password",
+ name: "name");
} catch (AppwriteException e) {
- Console.WriteLine(e.Message);
+ Console.WriteLine(e.Message);
}
```
### Learn more
-You can use following resources to learn more and get help
+You can use the following resources to learn more and get help
- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
- 📜 [Appwrite Docs](https://appwrite.io/docs)
- 💬 [Discord Community](https://appwrite.io/discord)
diff --git a/docs/examples/account/create-phone-verification.md b/docs/examples/account/create-phone-verification.md
new file mode 100644
index 0000000..32e8ea1
--- /dev/null
+++ b/docs/examples/account/create-phone-verification.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var account = new Account(client);
+
+Token result = await account.CreatePhoneVerification();
\ No newline at end of file
diff --git a/docs/examples/account/create-recovery.md b/docs/examples/account/create-recovery.md
index 7752d55..20cdd7e 100644
--- a/docs/examples/account/create-recovery.md
+++ b/docs/examples/account/create-recovery.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.CreateRecovery("email@example.com", "https://example.com");
+Token result = await account.CreateRecovery(
+ email: "email@example.com",
+ url: "https://example.com");
\ No newline at end of file
diff --git a/docs/examples/account/create-verification.md b/docs/examples/account/create-verification.md
index 39f0a97..4a103ef 100644
--- a/docs/examples/account/create-verification.md
+++ b/docs/examples/account/create-verification.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.CreateVerification("https://example.com");
+Token result = await account.CreateVerification(
+ url: "https://example.com");
\ No newline at end of file
diff --git a/docs/examples/account/delete-session.md b/docs/examples/account/delete-session.md
index be205da..fe61cef 100644
--- a/docs/examples/account/delete-session.md
+++ b/docs/examples/account/delete-session.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.DeleteSession("[SESSION_ID]");
+await account.DeleteSession(
+ sessionId: "[SESSION_ID]");
\ No newline at end of file
diff --git a/docs/examples/account/delete-sessions.md b/docs/examples/account/delete-sessions.md
index 481a358..8c37060 100644
--- a/docs/examples/account/delete-sessions.md
+++ b/docs/examples/account/delete-sessions.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.DeleteSessions();
+await account.DeleteSessions();
\ No newline at end of file
diff --git a/docs/examples/account/delete.md b/docs/examples/account/delete.md
deleted file mode 100644
index 02d2e42..0000000
--- a/docs/examples/account/delete.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
-
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.Delete();
diff --git a/docs/examples/account/get-logs.md b/docs/examples/account/get-logs.md
deleted file mode 100644
index c209904..0000000
--- a/docs/examples/account/get-logs.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
-
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.GetLogs();
diff --git a/docs/examples/account/get-prefs.md b/docs/examples/account/get-prefs.md
index 9d8bc74..6d7d9ea 100644
--- a/docs/examples/account/get-prefs.md
+++ b/docs/examples/account/get-prefs.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.GetPrefs();
+Preferences result = await account.GetPrefs();
\ No newline at end of file
diff --git a/docs/examples/account/get-session.md b/docs/examples/account/get-session.md
index ed03cb4..4d2e716 100644
--- a/docs/examples/account/get-session.md
+++ b/docs/examples/account/get-session.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.GetSession("[SESSION_ID]");
+Session result = await account.GetSession(
+ sessionId: "[SESSION_ID]");
\ No newline at end of file
diff --git a/docs/examples/account/get-sessions.md b/docs/examples/account/get-sessions.md
deleted file mode 100644
index 5de1229..0000000
--- a/docs/examples/account/get-sessions.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
-
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.GetSessions();
diff --git a/docs/examples/account/get.md b/docs/examples/account/get.md
index faa62f8..9853c6a 100644
--- a/docs/examples/account/get.md
+++ b/docs/examples/account/get.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.Get();
+User result = await account.Get();
\ No newline at end of file
diff --git a/docs/examples/account/list-logs.md b/docs/examples/account/list-logs.md
new file mode 100644
index 0000000..9f4712e
--- /dev/null
+++ b/docs/examples/account/list-logs.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var account = new Account(client);
+
+LogList result = await account.ListLogs();
\ No newline at end of file
diff --git a/docs/examples/account/list-sessions.md b/docs/examples/account/list-sessions.md
new file mode 100644
index 0000000..232319e
--- /dev/null
+++ b/docs/examples/account/list-sessions.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var account = new Account(client);
+
+SessionList result = await account.ListSessions();
\ No newline at end of file
diff --git a/docs/examples/account/update-email.md b/docs/examples/account/update-email.md
index 9860148..1208095 100644
--- a/docs/examples/account/update-email.md
+++ b/docs/examples/account/update-email.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.UpdateEmail("email@example.com", "password");
+User result = await account.UpdateEmail(
+ email: "email@example.com",
+ password: "password");
\ No newline at end of file
diff --git a/docs/examples/account/update-name.md b/docs/examples/account/update-name.md
index d0de774..f8dfbf5 100644
--- a/docs/examples/account/update-name.md
+++ b/docs/examples/account/update-name.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.UpdateName("[NAME]");
+User result = await account.UpdateName(
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/account/update-password.md b/docs/examples/account/update-password.md
index 9eba542..1a0e586 100644
--- a/docs/examples/account/update-password.md
+++ b/docs/examples/account/update-password.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.UpdatePassword("password");
+User result = await account.UpdatePassword(
+ password: "");
\ No newline at end of file
diff --git a/docs/examples/account/update-phone-verification.md b/docs/examples/account/update-phone-verification.md
new file mode 100644
index 0000000..fafcea7
--- /dev/null
+++ b/docs/examples/account/update-phone-verification.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var account = new Account(client);
+
+Token result = await account.UpdatePhoneVerification(
+ userId: "[USER_ID]",
+ secret: "[SECRET]");
\ No newline at end of file
diff --git a/docs/examples/account/update-phone.md b/docs/examples/account/update-phone.md
new file mode 100644
index 0000000..ccea754
--- /dev/null
+++ b/docs/examples/account/update-phone.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var account = new Account(client);
+
+User result = await account.UpdatePhone(
+ phone: "+12065550100",
+ password: "password");
\ No newline at end of file
diff --git a/docs/examples/account/update-prefs.md b/docs/examples/account/update-prefs.md
index c9d3f16..040815b 100644
--- a/docs/examples/account/update-prefs.md
+++ b/docs/examples/account/update-prefs.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.UpdatePrefs([object]);
+User result = await account.UpdatePrefs(
+ prefs: [object]);
\ No newline at end of file
diff --git a/docs/examples/account/update-recovery.md b/docs/examples/account/update-recovery.md
index 83c7588..07f09f7 100644
--- a/docs/examples/account/update-recovery.md
+++ b/docs/examples/account/update-recovery.md
@@ -1,13 +1,15 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.UpdateRecovery("[USER_ID]", "[SECRET]", "password", "password");
+Token result = await account.UpdateRecovery(
+ userId: "[USER_ID]",
+ secret: "[SECRET]",
+ password: "password",
+ passwordAgain: "password");
\ No newline at end of file
diff --git a/docs/examples/account/update-session.md b/docs/examples/account/update-session.md
new file mode 100644
index 0000000..7c2443a
--- /dev/null
+++ b/docs/examples/account/update-session.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var account = new Account(client);
+
+Session result = await account.UpdateSession(
+ sessionId: "[SESSION_ID]");
\ No newline at end of file
diff --git a/docs/examples/account/update-status.md b/docs/examples/account/update-status.md
new file mode 100644
index 0000000..0233b5d
--- /dev/null
+++ b/docs/examples/account/update-status.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var account = new Account(client);
+
+User result = await account.UpdateStatus();
\ No newline at end of file
diff --git a/docs/examples/account/update-verification.md b/docs/examples/account/update-verification.md
index 88ef9b0..23c3a99 100644
--- a/docs/examples/account/update-verification.md
+++ b/docs/examples/account/update-verification.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var account = new Account(client);
-Account account = new Account(client);
-
-HttpResponseMessage result = await account.UpdateVerification("[USER_ID]", "[SECRET]");
+Token result = await account.UpdateVerification(
+ userId: "[USER_ID]",
+ secret: "[SECRET]");
\ No newline at end of file
diff --git a/docs/examples/avatars/get-browser.md b/docs/examples/avatars/get-browser.md
index ebfa129..4150d3a 100644
--- a/docs/examples/avatars/get-browser.md
+++ b/docs/examples/avatars/get-browser.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var avatars = new Avatars(client);
-Avatars avatars = new Avatars(client);
-
-string result = await avatars.GetBrowser("aa");
+byte[] result = await avatars.GetBrowser(
+ code: "aa");
\ No newline at end of file
diff --git a/docs/examples/avatars/get-credit-card.md b/docs/examples/avatars/get-credit-card.md
index 5eb207c..47cd89c 100644
--- a/docs/examples/avatars/get-credit-card.md
+++ b/docs/examples/avatars/get-credit-card.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var avatars = new Avatars(client);
-Avatars avatars = new Avatars(client);
-
-string result = await avatars.GetCreditCard("amex");
+byte[] result = await avatars.GetCreditCard(
+ code: "amex");
\ No newline at end of file
diff --git a/docs/examples/avatars/get-favicon.md b/docs/examples/avatars/get-favicon.md
index 7035838..0711dd3 100644
--- a/docs/examples/avatars/get-favicon.md
+++ b/docs/examples/avatars/get-favicon.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var avatars = new Avatars(client);
-Avatars avatars = new Avatars(client);
-
-string result = await avatars.GetFavicon("https://example.com");
+byte[] result = await avatars.GetFavicon(
+ url: "https://example.com");
\ No newline at end of file
diff --git a/docs/examples/avatars/get-flag.md b/docs/examples/avatars/get-flag.md
index ec6b971..9c19d1a 100644
--- a/docs/examples/avatars/get-flag.md
+++ b/docs/examples/avatars/get-flag.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var avatars = new Avatars(client);
-Avatars avatars = new Avatars(client);
-
-string result = await avatars.GetFlag("af");
+byte[] result = await avatars.GetFlag(
+ code: "af");
\ No newline at end of file
diff --git a/docs/examples/avatars/get-image.md b/docs/examples/avatars/get-image.md
index 4217579..a5888ad 100644
--- a/docs/examples/avatars/get-image.md
+++ b/docs/examples/avatars/get-image.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var avatars = new Avatars(client);
-Avatars avatars = new Avatars(client);
-
-string result = await avatars.GetImage("https://example.com");
+byte[] result = await avatars.GetImage(
+ url: "https://example.com");
\ No newline at end of file
diff --git a/docs/examples/avatars/get-initials.md b/docs/examples/avatars/get-initials.md
index 5f47fba..c037de2 100644
--- a/docs/examples/avatars/get-initials.md
+++ b/docs/examples/avatars/get-initials.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var avatars = new Avatars(client);
-Avatars avatars = new Avatars(client);
-
-string result = await avatars.GetInitials();
+byte[] result = await avatars.GetInitials();
\ No newline at end of file
diff --git a/docs/examples/avatars/get-q-r.md b/docs/examples/avatars/get-q-r.md
index 69ae088..ff2634d 100644
--- a/docs/examples/avatars/get-q-r.md
+++ b/docs/examples/avatars/get-q-r.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var avatars = new Avatars(client);
-Avatars avatars = new Avatars(client);
-
-string result = await avatars.GetQR("[TEXT]");
+byte[] result = await avatars.GetQR(
+ text: "[TEXT]");
\ No newline at end of file
diff --git a/docs/examples/database/create-collection.md b/docs/examples/database/create-collection.md
deleted file mode 100644
index 2154074..0000000
--- a/docs/examples/database/create-collection.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.CreateCollection("[NAME]", [List], [List], [List]);
diff --git a/docs/examples/database/create-document.md b/docs/examples/database/create-document.md
deleted file mode 100644
index 561d457..0000000
--- a/docs/examples/database/create-document.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", [object]);
diff --git a/docs/examples/database/delete-collection.md b/docs/examples/database/delete-collection.md
deleted file mode 100644
index 9abdd5c..0000000
--- a/docs/examples/database/delete-collection.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.DeleteCollection("[COLLECTION_ID]");
diff --git a/docs/examples/database/delete-document.md b/docs/examples/database/delete-document.md
deleted file mode 100644
index 18389e1..0000000
--- a/docs/examples/database/delete-document.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.DeleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
diff --git a/docs/examples/database/get-collection.md b/docs/examples/database/get-collection.md
deleted file mode 100644
index 4d917a7..0000000
--- a/docs/examples/database/get-collection.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.GetCollection("[COLLECTION_ID]");
diff --git a/docs/examples/database/get-document.md b/docs/examples/database/get-document.md
deleted file mode 100644
index 5eb0a37..0000000
--- a/docs/examples/database/get-document.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.GetDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
diff --git a/docs/examples/database/list-collections.md b/docs/examples/database/list-collections.md
deleted file mode 100644
index edde1a3..0000000
--- a/docs/examples/database/list-collections.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.ListCollections();
diff --git a/docs/examples/database/list-documents.md b/docs/examples/database/list-documents.md
deleted file mode 100644
index 9ccb247..0000000
--- a/docs/examples/database/list-documents.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.ListDocuments("[COLLECTION_ID]");
diff --git a/docs/examples/database/update-collection.md b/docs/examples/database/update-collection.md
deleted file mode 100644
index d6e9c58..0000000
--- a/docs/examples/database/update-collection.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]");
diff --git a/docs/examples/database/update-document.md b/docs/examples/database/update-document.md
deleted file mode 100644
index 7689065..0000000
--- a/docs/examples/database/update-document.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Database database = new Database(client);
-
-HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", [object]);
diff --git a/docs/examples/databases/create-boolean-attribute.md b/docs/examples/databases/create-boolean-attribute.md
new file mode 100644
index 0000000..b29a7fa
--- /dev/null
+++ b/docs/examples/databases/create-boolean-attribute.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeBoolean result = await databases.CreateBooleanAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create-collection.md b/docs/examples/databases/create-collection.md
new file mode 100644
index 0000000..fa0bf3b
--- /dev/null
+++ b/docs/examples/databases/create-collection.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Collection result = await databases.CreateCollection(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/databases/create-datetime-attribute.md b/docs/examples/databases/create-datetime-attribute.md
new file mode 100644
index 0000000..c44cc40
--- /dev/null
+++ b/docs/examples/databases/create-datetime-attribute.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeDatetime result = await databases.CreateDatetimeAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create-document.md b/docs/examples/databases/create-document.md
new file mode 100644
index 0000000..01532a3
--- /dev/null
+++ b/docs/examples/databases/create-document.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Document result = await databases.CreateDocument(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ documentId: "[DOCUMENT_ID]",
+ data: [object]);
\ No newline at end of file
diff --git a/docs/examples/databases/create-email-attribute.md b/docs/examples/databases/create-email-attribute.md
new file mode 100644
index 0000000..7724160
--- /dev/null
+++ b/docs/examples/databases/create-email-attribute.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeEmail result = await databases.CreateEmailAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create-enum-attribute.md b/docs/examples/databases/create-enum-attribute.md
new file mode 100644
index 0000000..239d09d
--- /dev/null
+++ b/docs/examples/databases/create-enum-attribute.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeEnum result = await databases.CreateEnumAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ elements: new List {},
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create-float-attribute.md b/docs/examples/databases/create-float-attribute.md
new file mode 100644
index 0000000..382d4ad
--- /dev/null
+++ b/docs/examples/databases/create-float-attribute.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeFloat result = await databases.CreateFloatAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create-index.md b/docs/examples/databases/create-index.md
new file mode 100644
index 0000000..7cf5f50
--- /dev/null
+++ b/docs/examples/databases/create-index.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Index result = await databases.CreateIndex(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ type: "key",
+ attributes: new List {});
\ No newline at end of file
diff --git a/docs/examples/databases/create-integer-attribute.md b/docs/examples/databases/create-integer-attribute.md
new file mode 100644
index 0000000..d3b95a7
--- /dev/null
+++ b/docs/examples/databases/create-integer-attribute.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeInteger result = await databases.CreateIntegerAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create-ip-attribute.md b/docs/examples/databases/create-ip-attribute.md
new file mode 100644
index 0000000..4fd8de1
--- /dev/null
+++ b/docs/examples/databases/create-ip-attribute.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeIp result = await databases.CreateIpAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create-relationship-attribute.md b/docs/examples/databases/create-relationship-attribute.md
new file mode 100644
index 0000000..036211a
--- /dev/null
+++ b/docs/examples/databases/create-relationship-attribute.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeRelationship result = await databases.CreateRelationshipAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ relatedCollectionId: "[RELATED_COLLECTION_ID]",
+ type: "oneToOne");
\ No newline at end of file
diff --git a/docs/examples/databases/create-string-attribute.md b/docs/examples/databases/create-string-attribute.md
new file mode 100644
index 0000000..af1f9e4
--- /dev/null
+++ b/docs/examples/databases/create-string-attribute.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeString result = await databases.CreateStringAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ size: 1,
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create-url-attribute.md b/docs/examples/databases/create-url-attribute.md
new file mode 100644
index 0000000..d0d43e9
--- /dev/null
+++ b/docs/examples/databases/create-url-attribute.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeUrl result = await databases.CreateUrlAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false);
\ No newline at end of file
diff --git a/docs/examples/databases/create.md b/docs/examples/databases/create.md
new file mode 100644
index 0000000..c1e62ca
--- /dev/null
+++ b/docs/examples/databases/create.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Database result = await databases.Create(
+ databaseId: "[DATABASE_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/databases/delete-attribute.md b/docs/examples/databases/delete-attribute.md
new file mode 100644
index 0000000..b79abd9
--- /dev/null
+++ b/docs/examples/databases/delete-attribute.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+await databases.DeleteAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "");
\ No newline at end of file
diff --git a/docs/examples/databases/delete-collection.md b/docs/examples/databases/delete-collection.md
new file mode 100644
index 0000000..1530e33
--- /dev/null
+++ b/docs/examples/databases/delete-collection.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+await databases.DeleteCollection(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/delete-document.md b/docs/examples/databases/delete-document.md
new file mode 100644
index 0000000..d20281e
--- /dev/null
+++ b/docs/examples/databases/delete-document.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+await databases.DeleteDocument(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ documentId: "[DOCUMENT_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/delete-index.md b/docs/examples/databases/delete-index.md
new file mode 100644
index 0000000..3045ba9
--- /dev/null
+++ b/docs/examples/databases/delete-index.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+await databases.DeleteIndex(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "");
\ No newline at end of file
diff --git a/docs/examples/databases/delete.md b/docs/examples/databases/delete.md
new file mode 100644
index 0000000..c367cc4
--- /dev/null
+++ b/docs/examples/databases/delete.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+await databases.Delete(
+ databaseId: "[DATABASE_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/get-attribute.md b/docs/examples/databases/get-attribute.md
new file mode 100644
index 0000000..16671ec
--- /dev/null
+++ b/docs/examples/databases/get-attribute.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+ result = await databases.GetAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "");
\ No newline at end of file
diff --git a/docs/examples/databases/get-collection.md b/docs/examples/databases/get-collection.md
new file mode 100644
index 0000000..2b9702c
--- /dev/null
+++ b/docs/examples/databases/get-collection.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Collection result = await databases.GetCollection(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/get-document.md b/docs/examples/databases/get-document.md
new file mode 100644
index 0000000..7ceccde
--- /dev/null
+++ b/docs/examples/databases/get-document.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Document result = await databases.GetDocument(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ documentId: "[DOCUMENT_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/get-index.md b/docs/examples/databases/get-index.md
new file mode 100644
index 0000000..ed04b74
--- /dev/null
+++ b/docs/examples/databases/get-index.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Index result = await databases.GetIndex(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "");
\ No newline at end of file
diff --git a/docs/examples/databases/get.md b/docs/examples/databases/get.md
new file mode 100644
index 0000000..975b00c
--- /dev/null
+++ b/docs/examples/databases/get.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Database result = await databases.Get(
+ databaseId: "[DATABASE_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/list-attributes.md b/docs/examples/databases/list-attributes.md
new file mode 100644
index 0000000..15c1c75
--- /dev/null
+++ b/docs/examples/databases/list-attributes.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeList result = await databases.ListAttributes(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/list-collections.md b/docs/examples/databases/list-collections.md
new file mode 100644
index 0000000..1e2e545
--- /dev/null
+++ b/docs/examples/databases/list-collections.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+CollectionList result = await databases.ListCollections(
+ databaseId: "[DATABASE_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/list-documents.md b/docs/examples/databases/list-documents.md
new file mode 100644
index 0000000..0445238
--- /dev/null
+++ b/docs/examples/databases/list-documents.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+DocumentList result = await databases.ListDocuments(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/list-indexes.md b/docs/examples/databases/list-indexes.md
new file mode 100644
index 0000000..0505d19
--- /dev/null
+++ b/docs/examples/databases/list-indexes.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+IndexList result = await databases.ListIndexes(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/list.md b/docs/examples/databases/list.md
new file mode 100644
index 0000000..baee085
--- /dev/null
+++ b/docs/examples/databases/list.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+DatabaseList result = await databases.List();
\ No newline at end of file
diff --git a/docs/examples/databases/update-boolean-attribute.md b/docs/examples/databases/update-boolean-attribute.md
new file mode 100644
index 0000000..8e185d7
--- /dev/null
+++ b/docs/examples/databases/update-boolean-attribute.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeBoolean result = await databases.UpdateBooleanAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false,
+ default: false);
\ No newline at end of file
diff --git a/docs/examples/databases/update-collection.md b/docs/examples/databases/update-collection.md
new file mode 100644
index 0000000..5744767
--- /dev/null
+++ b/docs/examples/databases/update-collection.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Collection result = await databases.UpdateCollection(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/databases/update-datetime-attribute.md b/docs/examples/databases/update-datetime-attribute.md
new file mode 100644
index 0000000..6d02e2b
--- /dev/null
+++ b/docs/examples/databases/update-datetime-attribute.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeDatetime result = await databases.UpdateDatetimeAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false,
+ default: "");
\ No newline at end of file
diff --git a/docs/examples/databases/update-document.md b/docs/examples/databases/update-document.md
new file mode 100644
index 0000000..48fee0d
--- /dev/null
+++ b/docs/examples/databases/update-document.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Document result = await databases.UpdateDocument(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ documentId: "[DOCUMENT_ID]");
\ No newline at end of file
diff --git a/docs/examples/databases/update-email-attribute.md b/docs/examples/databases/update-email-attribute.md
new file mode 100644
index 0000000..0664760
--- /dev/null
+++ b/docs/examples/databases/update-email-attribute.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeEmail result = await databases.UpdateEmailAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false,
+ default: "email@example.com");
\ No newline at end of file
diff --git a/docs/examples/databases/update-enum-attribute.md b/docs/examples/databases/update-enum-attribute.md
new file mode 100644
index 0000000..65362c0
--- /dev/null
+++ b/docs/examples/databases/update-enum-attribute.md
@@ -0,0 +1,17 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeEnum result = await databases.UpdateEnumAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ elements: new List {},
+ required: false,
+ default: "[DEFAULT]");
\ No newline at end of file
diff --git a/docs/examples/databases/update-float-attribute.md b/docs/examples/databases/update-float-attribute.md
new file mode 100644
index 0000000..2950bd0
--- /dev/null
+++ b/docs/examples/databases/update-float-attribute.md
@@ -0,0 +1,18 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeFloat result = await databases.UpdateFloatAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false,
+ min: 0,
+ max: 0,
+ default: 0);
\ No newline at end of file
diff --git a/docs/examples/databases/update-integer-attribute.md b/docs/examples/databases/update-integer-attribute.md
new file mode 100644
index 0000000..880d1cc
--- /dev/null
+++ b/docs/examples/databases/update-integer-attribute.md
@@ -0,0 +1,18 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeInteger result = await databases.UpdateIntegerAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false,
+ min: 0,
+ max: 0,
+ default: 0);
\ No newline at end of file
diff --git a/docs/examples/databases/update-ip-attribute.md b/docs/examples/databases/update-ip-attribute.md
new file mode 100644
index 0000000..70fd773
--- /dev/null
+++ b/docs/examples/databases/update-ip-attribute.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeIp result = await databases.UpdateIpAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false,
+ default: "");
\ No newline at end of file
diff --git a/docs/examples/databases/update-relationship-attribute.md b/docs/examples/databases/update-relationship-attribute.md
new file mode 100644
index 0000000..e4917ef
--- /dev/null
+++ b/docs/examples/databases/update-relationship-attribute.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeRelationship result = await databases.UpdateRelationshipAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "");
\ No newline at end of file
diff --git a/docs/examples/databases/update-string-attribute.md b/docs/examples/databases/update-string-attribute.md
new file mode 100644
index 0000000..4744bf5
--- /dev/null
+++ b/docs/examples/databases/update-string-attribute.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeString result = await databases.UpdateStringAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false,
+ default: "[DEFAULT]");
\ No newline at end of file
diff --git a/docs/examples/databases/update-url-attribute.md b/docs/examples/databases/update-url-attribute.md
new file mode 100644
index 0000000..cb04a5d
--- /dev/null
+++ b/docs/examples/databases/update-url-attribute.md
@@ -0,0 +1,16 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+AttributeUrl result = await databases.UpdateUrlAttribute(
+ databaseId: "[DATABASE_ID]",
+ collectionId: "[COLLECTION_ID]",
+ key: "",
+ required: false,
+ default: "https://example.com");
\ No newline at end of file
diff --git a/docs/examples/databases/update.md b/docs/examples/databases/update.md
new file mode 100644
index 0000000..db07b7a
--- /dev/null
+++ b/docs/examples/databases/update.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var databases = new Databases(client);
+
+Database result = await databases.Update(
+ databaseId: "[DATABASE_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/functions/create-build.md b/docs/examples/functions/create-build.md
new file mode 100644
index 0000000..6d62298
--- /dev/null
+++ b/docs/examples/functions/create-build.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+ result = await functions.CreateBuild(
+ functionId: "[FUNCTION_ID]",
+ deploymentId: "[DEPLOYMENT_ID]",
+ buildId: "[BUILD_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/create-deployment.md b/docs/examples/functions/create-deployment.md
new file mode 100644
index 0000000..5463ee4
--- /dev/null
+++ b/docs/examples/functions/create-deployment.md
@@ -0,0 +1,15 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+Deployment result = await functions.CreateDeployment(
+ functionId: "[FUNCTION_ID]",
+ entrypoint: "[ENTRYPOINT]",
+ code: InputFile.FromPath("./path-to-files/image.jpg"),
+ activate: false);
\ No newline at end of file
diff --git a/docs/examples/functions/create-execution.md b/docs/examples/functions/create-execution.md
index 4844317..9c015f8 100644
--- a/docs/examples/functions/create-execution.md
+++ b/docs/examples/functions/create-execution.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var functions = new Functions(client);
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.CreateExecution("[FUNCTION_ID]");
+Execution result = await functions.CreateExecution(
+ functionId: "[FUNCTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/create-tag.md b/docs/examples/functions/create-tag.md
deleted file mode 100644
index 39e7461..0000000
--- a/docs/examples/functions/create-tag.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.CreateTag("[FUNCTION_ID]", "[COMMAND]", new File("./path-to-files/image.jpg"));
diff --git a/docs/examples/functions/create-variable.md b/docs/examples/functions/create-variable.md
new file mode 100644
index 0000000..e5df30d
--- /dev/null
+++ b/docs/examples/functions/create-variable.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+Variable result = await functions.CreateVariable(
+ functionId: "[FUNCTION_ID]",
+ key: "[KEY]",
+ value: "[VALUE]");
\ No newline at end of file
diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md
index 7c264a4..3f189b0 100644
--- a/docs/examples/functions/create.md
+++ b/docs/examples/functions/create.md
@@ -1,13 +1,14 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var functions = new Functions(client);
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.Create("[NAME]", [List], "java-11.0");
+Function result = await functions.Create(
+ functionId: "[FUNCTION_ID]",
+ name: "[NAME]",
+ runtime: "node-14.5");
\ No newline at end of file
diff --git a/docs/examples/functions/delete-deployment.md b/docs/examples/functions/delete-deployment.md
new file mode 100644
index 0000000..f52515b
--- /dev/null
+++ b/docs/examples/functions/delete-deployment.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+await functions.DeleteDeployment(
+ functionId: "[FUNCTION_ID]",
+ deploymentId: "[DEPLOYMENT_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/delete-tag.md b/docs/examples/functions/delete-tag.md
deleted file mode 100644
index 859a9e8..0000000
--- a/docs/examples/functions/delete-tag.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.DeleteTag("[FUNCTION_ID]", "[TAG_ID]");
diff --git a/docs/examples/functions/delete-variable.md b/docs/examples/functions/delete-variable.md
new file mode 100644
index 0000000..d9fb356
--- /dev/null
+++ b/docs/examples/functions/delete-variable.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+await functions.DeleteVariable(
+ functionId: "[FUNCTION_ID]",
+ variableId: "[VARIABLE_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/delete.md b/docs/examples/functions/delete.md
index e7ef51f..265ebc3 100644
--- a/docs/examples/functions/delete.md
+++ b/docs/examples/functions/delete.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var functions = new Functions(client);
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.Delete("[FUNCTION_ID]");
+await functions.Delete(
+ functionId: "[FUNCTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/get-deployment.md b/docs/examples/functions/get-deployment.md
new file mode 100644
index 0000000..65d8431
--- /dev/null
+++ b/docs/examples/functions/get-deployment.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+Deployment result = await functions.GetDeployment(
+ functionId: "[FUNCTION_ID]",
+ deploymentId: "[DEPLOYMENT_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/get-execution.md b/docs/examples/functions/get-execution.md
index f18a8fb..f46f9d5 100644
--- a/docs/examples/functions/get-execution.md
+++ b/docs/examples/functions/get-execution.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var functions = new Functions(client);
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.GetExecution("[FUNCTION_ID]", "[EXECUTION_ID]");
+Execution result = await functions.GetExecution(
+ functionId: "[FUNCTION_ID]",
+ executionId: "[EXECUTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/get-tag.md b/docs/examples/functions/get-tag.md
deleted file mode 100644
index 900864a..0000000
--- a/docs/examples/functions/get-tag.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.GetTag("[FUNCTION_ID]", "[TAG_ID]");
diff --git a/docs/examples/functions/get-variable.md b/docs/examples/functions/get-variable.md
new file mode 100644
index 0000000..a90ff4f
--- /dev/null
+++ b/docs/examples/functions/get-variable.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+Variable result = await functions.GetVariable(
+ functionId: "[FUNCTION_ID]",
+ variableId: "[VARIABLE_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/get.md b/docs/examples/functions/get.md
index a92fa25..0cbec8a 100644
--- a/docs/examples/functions/get.md
+++ b/docs/examples/functions/get.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var functions = new Functions(client);
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.Get("[FUNCTION_ID]");
+Function result = await functions.Get(
+ functionId: "[FUNCTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/list-deployments.md b/docs/examples/functions/list-deployments.md
new file mode 100644
index 0000000..d277204
--- /dev/null
+++ b/docs/examples/functions/list-deployments.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+DeploymentList result = await functions.ListDeployments(
+ functionId: "[FUNCTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/list-executions.md b/docs/examples/functions/list-executions.md
index b9a86ce..0797af5 100644
--- a/docs/examples/functions/list-executions.md
+++ b/docs/examples/functions/list-executions.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var functions = new Functions(client);
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.ListExecutions("[FUNCTION_ID]");
+ExecutionList result = await functions.ListExecutions(
+ functionId: "[FUNCTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/list-runtimes.md b/docs/examples/functions/list-runtimes.md
new file mode 100644
index 0000000..9f2edf4
--- /dev/null
+++ b/docs/examples/functions/list-runtimes.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+RuntimeList result = await functions.ListRuntimes();
\ No newline at end of file
diff --git a/docs/examples/functions/list-tags.md b/docs/examples/functions/list-tags.md
deleted file mode 100644
index ec1b872..0000000
--- a/docs/examples/functions/list-tags.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.ListTags("[FUNCTION_ID]");
diff --git a/docs/examples/functions/list-variables.md b/docs/examples/functions/list-variables.md
new file mode 100644
index 0000000..f1336f6
--- /dev/null
+++ b/docs/examples/functions/list-variables.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+VariableList result = await functions.ListVariables(
+ functionId: "[FUNCTION_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/list.md b/docs/examples/functions/list.md
index 1b76f19..ba78467 100644
--- a/docs/examples/functions/list.md
+++ b/docs/examples/functions/list.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var functions = new Functions(client);
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.List();
+FunctionList result = await functions.List();
\ No newline at end of file
diff --git a/docs/examples/functions/update-deployment.md b/docs/examples/functions/update-deployment.md
new file mode 100644
index 0000000..1c8498f
--- /dev/null
+++ b/docs/examples/functions/update-deployment.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+Function result = await functions.UpdateDeployment(
+ functionId: "[FUNCTION_ID]",
+ deploymentId: "[DEPLOYMENT_ID]");
\ No newline at end of file
diff --git a/docs/examples/functions/update-tag.md b/docs/examples/functions/update-tag.md
deleted file mode 100644
index b42ef93..0000000
--- a/docs/examples/functions/update-tag.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.UpdateTag("[FUNCTION_ID]", "[TAG]");
diff --git a/docs/examples/functions/update-variable.md b/docs/examples/functions/update-variable.md
new file mode 100644
index 0000000..ad60d97
--- /dev/null
+++ b/docs/examples/functions/update-variable.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var functions = new Functions(client);
+
+Variable result = await functions.UpdateVariable(
+ functionId: "[FUNCTION_ID]",
+ variableId: "[VARIABLE_ID]",
+ key: "[KEY]");
\ No newline at end of file
diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md
index 53db3ed..02bfc73 100644
--- a/docs/examples/functions/update.md
+++ b/docs/examples/functions/update.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var functions = new Functions(client);
-Functions functions = new Functions(client);
-
-HttpResponseMessage result = await functions.Update("[FUNCTION_ID]", "[NAME]", [List]);
+Function result = await functions.Update(
+ functionId: "[FUNCTION_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/graphql/mutation.md b/docs/examples/graphql/mutation.md
new file mode 100644
index 0000000..ba79658
--- /dev/null
+++ b/docs/examples/graphql/mutation.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var graphql = new Graphql(client);
+
+Any result = await graphql.Mutation(
+ query: [object]);
\ No newline at end of file
diff --git a/docs/examples/graphql/query.md b/docs/examples/graphql/query.md
new file mode 100644
index 0000000..e271058
--- /dev/null
+++ b/docs/examples/graphql/query.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var graphql = new Graphql(client);
+
+Any result = await graphql.Query(
+ query: [object]);
\ No newline at end of file
diff --git a/docs/examples/health/get-anti-virus.md b/docs/examples/health/get-anti-virus.md
deleted file mode 100644
index b8fcdd6..0000000
--- a/docs/examples/health/get-anti-virus.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetAntiVirus();
diff --git a/docs/examples/health/get-antivirus.md b/docs/examples/health/get-antivirus.md
new file mode 100644
index 0000000..f133c3d
--- /dev/null
+++ b/docs/examples/health/get-antivirus.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var health = new Health(client);
+
+HealthAntivirus result = await health.GetAntivirus();
\ No newline at end of file
diff --git a/docs/examples/health/get-cache.md b/docs/examples/health/get-cache.md
index 9f864ee..4c3b827 100644
--- a/docs/examples/health/get-cache.md
+++ b/docs/examples/health/get-cache.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetCache();
+HealthStatus result = await health.GetCache();
\ No newline at end of file
diff --git a/docs/examples/health/get-d-b.md b/docs/examples/health/get-d-b.md
index 458f31c..d49218f 100644
--- a/docs/examples/health/get-d-b.md
+++ b/docs/examples/health/get-d-b.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetDB();
+HealthStatus result = await health.GetDB();
\ No newline at end of file
diff --git a/docs/examples/health/get-queue-certificates.md b/docs/examples/health/get-queue-certificates.md
index 56d182f..4e4c042 100644
--- a/docs/examples/health/get-queue-certificates.md
+++ b/docs/examples/health/get-queue-certificates.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetQueueCertificates();
+HealthQueue result = await health.GetQueueCertificates();
\ No newline at end of file
diff --git a/docs/examples/health/get-queue-functions.md b/docs/examples/health/get-queue-functions.md
index adbba7a..1f12061 100644
--- a/docs/examples/health/get-queue-functions.md
+++ b/docs/examples/health/get-queue-functions.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetQueueFunctions();
+HealthQueue result = await health.GetQueueFunctions();
\ No newline at end of file
diff --git a/docs/examples/health/get-queue-logs.md b/docs/examples/health/get-queue-logs.md
index 75173bb..68d6dac 100644
--- a/docs/examples/health/get-queue-logs.md
+++ b/docs/examples/health/get-queue-logs.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetQueueLogs();
+HealthQueue result = await health.GetQueueLogs();
\ No newline at end of file
diff --git a/docs/examples/health/get-queue-tasks.md b/docs/examples/health/get-queue-tasks.md
deleted file mode 100644
index 6df301b..0000000
--- a/docs/examples/health/get-queue-tasks.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetQueueTasks();
diff --git a/docs/examples/health/get-queue-usage.md b/docs/examples/health/get-queue-usage.md
deleted file mode 100644
index 2ea5c91..0000000
--- a/docs/examples/health/get-queue-usage.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetQueueUsage();
diff --git a/docs/examples/health/get-queue-webhooks.md b/docs/examples/health/get-queue-webhooks.md
index b3d9ccd..12fb20d 100644
--- a/docs/examples/health/get-queue-webhooks.md
+++ b/docs/examples/health/get-queue-webhooks.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetQueueWebhooks();
+HealthQueue result = await health.GetQueueWebhooks();
\ No newline at end of file
diff --git a/docs/examples/health/get-storage-local.md b/docs/examples/health/get-storage-local.md
index d68bc1d..3412c03 100644
--- a/docs/examples/health/get-storage-local.md
+++ b/docs/examples/health/get-storage-local.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetStorageLocal();
+HealthStatus result = await health.GetStorageLocal();
\ No newline at end of file
diff --git a/docs/examples/health/get-time.md b/docs/examples/health/get-time.md
index 7a0711c..d50d15b 100644
--- a/docs/examples/health/get-time.md
+++ b/docs/examples/health/get-time.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.GetTime();
+HealthTime result = await health.GetTime();
\ No newline at end of file
diff --git a/docs/examples/health/get.md b/docs/examples/health/get.md
index f05c8ef..dac4a12 100644
--- a/docs/examples/health/get.md
+++ b/docs/examples/health/get.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var health = new Health(client);
-Health health = new Health(client);
-
-HttpResponseMessage result = await health.Get();
+HealthStatus result = await health.Get();
\ No newline at end of file
diff --git a/docs/examples/locale/get-continents.md b/docs/examples/locale/get-continents.md
deleted file mode 100644
index 600bfcd..0000000
--- a/docs/examples/locale/get-continents.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Locale locale = new Locale(client);
-
-HttpResponseMessage result = await locale.GetContinents();
diff --git a/docs/examples/locale/get-countries-e-u.md b/docs/examples/locale/get-countries-e-u.md
deleted file mode 100644
index 2ba4e22..0000000
--- a/docs/examples/locale/get-countries-e-u.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Locale locale = new Locale(client);
-
-HttpResponseMessage result = await locale.GetCountriesEU();
diff --git a/docs/examples/locale/get-countries-phones.md b/docs/examples/locale/get-countries-phones.md
deleted file mode 100644
index 2630aef..0000000
--- a/docs/examples/locale/get-countries-phones.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Locale locale = new Locale(client);
-
-HttpResponseMessage result = await locale.GetCountriesPhones();
diff --git a/docs/examples/locale/get-countries.md b/docs/examples/locale/get-countries.md
deleted file mode 100644
index 46b14de..0000000
--- a/docs/examples/locale/get-countries.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Locale locale = new Locale(client);
-
-HttpResponseMessage result = await locale.GetCountries();
diff --git a/docs/examples/locale/get-currencies.md b/docs/examples/locale/get-currencies.md
deleted file mode 100644
index daecdcf..0000000
--- a/docs/examples/locale/get-currencies.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Locale locale = new Locale(client);
-
-HttpResponseMessage result = await locale.GetCurrencies();
diff --git a/docs/examples/locale/get-languages.md b/docs/examples/locale/get-languages.md
deleted file mode 100644
index ba00b2a..0000000
--- a/docs/examples/locale/get-languages.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Locale locale = new Locale(client);
-
-HttpResponseMessage result = await locale.GetLanguages();
diff --git a/docs/examples/locale/get.md b/docs/examples/locale/get.md
index 7b10a28..da5866a 100644
--- a/docs/examples/locale/get.md
+++ b/docs/examples/locale/get.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var locale = new Locale(client);
-Locale locale = new Locale(client);
-
-HttpResponseMessage result = await locale.Get();
+Locale result = await locale.Get();
\ No newline at end of file
diff --git a/docs/examples/locale/list-continents.md b/docs/examples/locale/list-continents.md
new file mode 100644
index 0000000..94f5dce
--- /dev/null
+++ b/docs/examples/locale/list-continents.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var locale = new Locale(client);
+
+ContinentList result = await locale.ListContinents();
\ No newline at end of file
diff --git a/docs/examples/locale/list-countries-e-u.md b/docs/examples/locale/list-countries-e-u.md
new file mode 100644
index 0000000..49bee6c
--- /dev/null
+++ b/docs/examples/locale/list-countries-e-u.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var locale = new Locale(client);
+
+CountryList result = await locale.ListCountriesEU();
\ No newline at end of file
diff --git a/docs/examples/locale/list-countries-phones.md b/docs/examples/locale/list-countries-phones.md
new file mode 100644
index 0000000..1a2b578
--- /dev/null
+++ b/docs/examples/locale/list-countries-phones.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var locale = new Locale(client);
+
+PhoneList result = await locale.ListCountriesPhones();
\ No newline at end of file
diff --git a/docs/examples/locale/list-countries.md b/docs/examples/locale/list-countries.md
new file mode 100644
index 0000000..4036ba3
--- /dev/null
+++ b/docs/examples/locale/list-countries.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var locale = new Locale(client);
+
+CountryList result = await locale.ListCountries();
\ No newline at end of file
diff --git a/docs/examples/locale/list-currencies.md b/docs/examples/locale/list-currencies.md
new file mode 100644
index 0000000..338a7b4
--- /dev/null
+++ b/docs/examples/locale/list-currencies.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var locale = new Locale(client);
+
+CurrencyList result = await locale.ListCurrencies();
\ No newline at end of file
diff --git a/docs/examples/locale/list-languages.md b/docs/examples/locale/list-languages.md
new file mode 100644
index 0000000..ce75f8c
--- /dev/null
+++ b/docs/examples/locale/list-languages.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var locale = new Locale(client);
+
+LanguageList result = await locale.ListLanguages();
\ No newline at end of file
diff --git a/docs/examples/storage/create-bucket.md b/docs/examples/storage/create-bucket.md
new file mode 100644
index 0000000..ce3857f
--- /dev/null
+++ b/docs/examples/storage/create-bucket.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var storage = new Storage(client);
+
+Bucket result = await storage.CreateBucket(
+ bucketId: "[BUCKET_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/storage/create-file.md b/docs/examples/storage/create-file.md
index 5930f88..ed042bb 100644
--- a/docs/examples/storage/create-file.md
+++ b/docs/examples/storage/create-file.md
@@ -1,13 +1,14 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var storage = new Storage(client);
-Storage storage = new Storage(client);
-
-HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg"));
+File result = await storage.CreateFile(
+ bucketId: "[BUCKET_ID]",
+ fileId: "[FILE_ID]",
+ file: InputFile.FromPath("./path-to-files/image.jpg"));
\ No newline at end of file
diff --git a/docs/examples/storage/delete-bucket.md b/docs/examples/storage/delete-bucket.md
new file mode 100644
index 0000000..bf2c393
--- /dev/null
+++ b/docs/examples/storage/delete-bucket.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var storage = new Storage(client);
+
+await storage.DeleteBucket(
+ bucketId: "[BUCKET_ID]");
\ No newline at end of file
diff --git a/docs/examples/storage/delete-file.md b/docs/examples/storage/delete-file.md
index 5a91ecb..c66b581 100644
--- a/docs/examples/storage/delete-file.md
+++ b/docs/examples/storage/delete-file.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var storage = new Storage(client);
-Storage storage = new Storage(client);
-
-HttpResponseMessage result = await storage.DeleteFile("[FILE_ID]");
+await storage.DeleteFile(
+ bucketId: "[BUCKET_ID]",
+ fileId: "[FILE_ID]");
\ No newline at end of file
diff --git a/docs/examples/storage/get-bucket.md b/docs/examples/storage/get-bucket.md
new file mode 100644
index 0000000..37d6c21
--- /dev/null
+++ b/docs/examples/storage/get-bucket.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var storage = new Storage(client);
+
+Bucket result = await storage.GetBucket(
+ bucketId: "[BUCKET_ID]");
\ No newline at end of file
diff --git a/docs/examples/storage/get-file-download.md b/docs/examples/storage/get-file-download.md
index 0a93cef..6907347 100644
--- a/docs/examples/storage/get-file-download.md
+++ b/docs/examples/storage/get-file-download.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var storage = new Storage(client);
-Storage storage = new Storage(client);
-
-string result = await storage.GetFileDownload("[FILE_ID]");
+byte[] result = await storage.GetFileDownload(
+ bucketId: "[BUCKET_ID]",
+ fileId: "[FILE_ID]");
\ No newline at end of file
diff --git a/docs/examples/storage/get-file-preview.md b/docs/examples/storage/get-file-preview.md
index e89ca27..8d63fc8 100644
--- a/docs/examples/storage/get-file-preview.md
+++ b/docs/examples/storage/get-file-preview.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var storage = new Storage(client);
-Storage storage = new Storage(client);
-
-string result = await storage.GetFilePreview("[FILE_ID]");
+byte[] result = await storage.GetFilePreview(
+ bucketId: "[BUCKET_ID]",
+ fileId: "[FILE_ID]");
\ No newline at end of file
diff --git a/docs/examples/storage/get-file-view.md b/docs/examples/storage/get-file-view.md
index e3fe690..bdeb1b9 100644
--- a/docs/examples/storage/get-file-view.md
+++ b/docs/examples/storage/get-file-view.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var storage = new Storage(client);
-Storage storage = new Storage(client);
-
-string result = await storage.GetFileView("[FILE_ID]");
+byte[] result = await storage.GetFileView(
+ bucketId: "[BUCKET_ID]",
+ fileId: "[FILE_ID]");
\ No newline at end of file
diff --git a/docs/examples/storage/get-file.md b/docs/examples/storage/get-file.md
index 1e090bb..9b0c29e 100644
--- a/docs/examples/storage/get-file.md
+++ b/docs/examples/storage/get-file.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var storage = new Storage(client);
-Storage storage = new Storage(client);
-
-HttpResponseMessage result = await storage.GetFile("[FILE_ID]");
+File result = await storage.GetFile(
+ bucketId: "[BUCKET_ID]",
+ fileId: "[FILE_ID]");
\ No newline at end of file
diff --git a/docs/examples/storage/list-buckets.md b/docs/examples/storage/list-buckets.md
new file mode 100644
index 0000000..869571a
--- /dev/null
+++ b/docs/examples/storage/list-buckets.md
@@ -0,0 +1,11 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var storage = new Storage(client);
+
+BucketList result = await storage.ListBuckets();
\ No newline at end of file
diff --git a/docs/examples/storage/list-files.md b/docs/examples/storage/list-files.md
index bee452d..7010825 100644
--- a/docs/examples/storage/list-files.md
+++ b/docs/examples/storage/list-files.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var storage = new Storage(client);
-Storage storage = new Storage(client);
-
-HttpResponseMessage result = await storage.ListFiles();
+FileList result = await storage.ListFiles(
+ bucketId: "[BUCKET_ID]");
\ No newline at end of file
diff --git a/docs/examples/storage/update-bucket.md b/docs/examples/storage/update-bucket.md
new file mode 100644
index 0000000..f05ca9c
--- /dev/null
+++ b/docs/examples/storage/update-bucket.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var storage = new Storage(client);
+
+Bucket result = await storage.UpdateBucket(
+ bucketId: "[BUCKET_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/storage/update-file.md b/docs/examples/storage/update-file.md
index a4b87be..d2246ad 100644
--- a/docs/examples/storage/update-file.md
+++ b/docs/examples/storage/update-file.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var storage = new Storage(client);
-Storage storage = new Storage(client);
-
-HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", [List], [List]);
+File result = await storage.UpdateFile(
+ bucketId: "[BUCKET_ID]",
+ fileId: "[FILE_ID]");
\ No newline at end of file
diff --git a/docs/examples/teams/create-membership.md b/docs/examples/teams/create-membership.md
index 34f34dc..75abdfa 100644
--- a/docs/examples/teams/create-membership.md
+++ b/docs/examples/teams/create-membership.md
@@ -1,13 +1,14 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var teams = new Teams(client);
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", [List], "https://example.com");
+Membership result = await teams.CreateMembership(
+ teamId: "[TEAM_ID]",
+ roles: new List {},
+ url: "https://example.com");
\ No newline at end of file
diff --git a/docs/examples/teams/create.md b/docs/examples/teams/create.md
index ad325dd..bac3d72 100644
--- a/docs/examples/teams/create.md
+++ b/docs/examples/teams/create.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var teams = new Teams(client);
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.Create("[NAME]");
+Team result = await teams.Create(
+ teamId: "[TEAM_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/teams/delete-membership.md b/docs/examples/teams/delete-membership.md
index a50061b..60cb7ea 100644
--- a/docs/examples/teams/delete-membership.md
+++ b/docs/examples/teams/delete-membership.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var teams = new Teams(client);
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.DeleteMembership("[TEAM_ID]", "[MEMBERSHIP_ID]");
+await teams.DeleteMembership(
+ teamId: "[TEAM_ID]",
+ membershipId: "[MEMBERSHIP_ID]");
\ No newline at end of file
diff --git a/docs/examples/teams/delete.md b/docs/examples/teams/delete.md
index 26b780f..2b72528 100644
--- a/docs/examples/teams/delete.md
+++ b/docs/examples/teams/delete.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var teams = new Teams(client);
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.Delete("[TEAM_ID]");
+await teams.Delete(
+ teamId: "[TEAM_ID]");
\ No newline at end of file
diff --git a/docs/examples/teams/get-membership.md b/docs/examples/teams/get-membership.md
new file mode 100644
index 0000000..7873a24
--- /dev/null
+++ b/docs/examples/teams/get-membership.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var teams = new Teams(client);
+
+Membership result = await teams.GetMembership(
+ teamId: "[TEAM_ID]",
+ membershipId: "[MEMBERSHIP_ID]");
\ No newline at end of file
diff --git a/docs/examples/teams/get-memberships.md b/docs/examples/teams/get-memberships.md
deleted file mode 100644
index 8897efa..0000000
--- a/docs/examples/teams/get-memberships.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.GetMemberships("[TEAM_ID]");
diff --git a/docs/examples/teams/get-prefs.md b/docs/examples/teams/get-prefs.md
new file mode 100644
index 0000000..487461c
--- /dev/null
+++ b/docs/examples/teams/get-prefs.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var teams = new Teams(client);
+
+Preferences result = await teams.GetPrefs(
+ teamId: "[TEAM_ID]");
\ No newline at end of file
diff --git a/docs/examples/teams/get.md b/docs/examples/teams/get.md
index 78a3d0c..32bebaf 100644
--- a/docs/examples/teams/get.md
+++ b/docs/examples/teams/get.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var teams = new Teams(client);
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.Get("[TEAM_ID]");
+Team result = await teams.Get(
+ teamId: "[TEAM_ID]");
\ No newline at end of file
diff --git a/docs/examples/teams/list-memberships.md b/docs/examples/teams/list-memberships.md
new file mode 100644
index 0000000..3ea7cb5
--- /dev/null
+++ b/docs/examples/teams/list-memberships.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var teams = new Teams(client);
+
+MembershipList result = await teams.ListMemberships(
+ teamId: "[TEAM_ID]");
\ No newline at end of file
diff --git a/docs/examples/teams/list.md b/docs/examples/teams/list.md
index b93ba90..db4cd34 100644
--- a/docs/examples/teams/list.md
+++ b/docs/examples/teams/list.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var teams = new Teams(client);
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.List();
+TeamList result = await teams.List();
\ No newline at end of file
diff --git a/docs/examples/teams/update-membership-roles.md b/docs/examples/teams/update-membership-roles.md
index 17ab5e3..1c2fada 100644
--- a/docs/examples/teams/update-membership-roles.md
+++ b/docs/examples/teams/update-membership-roles.md
@@ -1,13 +1,14 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var teams = new Teams(client);
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.UpdateMembershipRoles("[TEAM_ID]", "[MEMBERSHIP_ID]", [List]);
+Membership result = await teams.UpdateMembershipRoles(
+ teamId: "[TEAM_ID]",
+ membershipId: "[MEMBERSHIP_ID]",
+ roles: new List {});
\ No newline at end of file
diff --git a/docs/examples/teams/update-membership-status.md b/docs/examples/teams/update-membership-status.md
index ab47f8a..eaff766 100644
--- a/docs/examples/teams/update-membership-status.md
+++ b/docs/examples/teams/update-membership-status.md
@@ -1,13 +1,15 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token
-;
+var teams = new Teams(client);
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.UpdateMembershipStatus("[TEAM_ID]", "[MEMBERSHIP_ID]", "[USER_ID]", "[SECRET]");
+Membership result = await teams.UpdateMembershipStatus(
+ teamId: "[TEAM_ID]",
+ membershipId: "[MEMBERSHIP_ID]",
+ userId: "[USER_ID]",
+ secret: "[SECRET]");
\ No newline at end of file
diff --git a/docs/examples/teams/update-name.md b/docs/examples/teams/update-name.md
new file mode 100644
index 0000000..ca72222
--- /dev/null
+++ b/docs/examples/teams/update-name.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var teams = new Teams(client);
+
+Team result = await teams.UpdateName(
+ teamId: "[TEAM_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/teams/update-prefs.md b/docs/examples/teams/update-prefs.md
new file mode 100644
index 0000000..7a51248
--- /dev/null
+++ b/docs/examples/teams/update-prefs.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
+
+var teams = new Teams(client);
+
+Preferences result = await teams.UpdatePrefs(
+ teamId: "[TEAM_ID]",
+ prefs: [object]);
\ No newline at end of file
diff --git a/docs/examples/teams/update.md b/docs/examples/teams/update.md
deleted file mode 100644
index 481c987..0000000
--- a/docs/examples/teams/update.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Teams teams = new Teams(client);
-
-HttpResponseMessage result = await teams.Update("[TEAM_ID]", "[NAME]");
diff --git a/docs/examples/users/create-argon2user.md b/docs/examples/users/create-argon2user.md
new file mode 100644
index 0000000..5bd89a2
--- /dev/null
+++ b/docs/examples/users/create-argon2user.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.CreateArgon2User(
+ userId: "[USER_ID]",
+ email: "email@example.com",
+ password: "password");
\ No newline at end of file
diff --git a/docs/examples/users/create-bcrypt-user.md b/docs/examples/users/create-bcrypt-user.md
new file mode 100644
index 0000000..aef0d9e
--- /dev/null
+++ b/docs/examples/users/create-bcrypt-user.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.CreateBcryptUser(
+ userId: "[USER_ID]",
+ email: "email@example.com",
+ password: "password");
\ No newline at end of file
diff --git a/docs/examples/users/create-m-d5user.md b/docs/examples/users/create-m-d5user.md
new file mode 100644
index 0000000..e537124
--- /dev/null
+++ b/docs/examples/users/create-m-d5user.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.CreateMD5User(
+ userId: "[USER_ID]",
+ email: "email@example.com",
+ password: "password");
\ No newline at end of file
diff --git a/docs/examples/users/create-p-h-pass-user.md b/docs/examples/users/create-p-h-pass-user.md
new file mode 100644
index 0000000..f7a0d24
--- /dev/null
+++ b/docs/examples/users/create-p-h-pass-user.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.CreatePHPassUser(
+ userId: "[USER_ID]",
+ email: "email@example.com",
+ password: "password");
\ No newline at end of file
diff --git a/docs/examples/users/create-s-h-a-user.md b/docs/examples/users/create-s-h-a-user.md
new file mode 100644
index 0000000..c504ec7
--- /dev/null
+++ b/docs/examples/users/create-s-h-a-user.md
@@ -0,0 +1,14 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.CreateSHAUser(
+ userId: "[USER_ID]",
+ email: "email@example.com",
+ password: "password");
\ No newline at end of file
diff --git a/docs/examples/users/create-scrypt-modified-user.md b/docs/examples/users/create-scrypt-modified-user.md
new file mode 100644
index 0000000..af04bbc
--- /dev/null
+++ b/docs/examples/users/create-scrypt-modified-user.md
@@ -0,0 +1,17 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.CreateScryptModifiedUser(
+ userId: "[USER_ID]",
+ email: "email@example.com",
+ password: "password",
+ passwordSalt: "[PASSWORD_SALT]",
+ passwordSaltSeparator: "[PASSWORD_SALT_SEPARATOR]",
+ passwordSignerKey: "[PASSWORD_SIGNER_KEY]");
\ No newline at end of file
diff --git a/docs/examples/users/create-scrypt-user.md b/docs/examples/users/create-scrypt-user.md
new file mode 100644
index 0000000..3a95de5
--- /dev/null
+++ b/docs/examples/users/create-scrypt-user.md
@@ -0,0 +1,19 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.CreateScryptUser(
+ userId: "[USER_ID]",
+ email: "email@example.com",
+ password: "password",
+ passwordSalt: "[PASSWORD_SALT]",
+ passwordCpu: 0,
+ passwordMemory: 0,
+ passwordParallel: 0,
+ passwordLength: 0);
\ No newline at end of file
diff --git a/docs/examples/users/create.md b/docs/examples/users/create.md
index 3c3e7d2..2ed0671 100644
--- a/docs/examples/users/create.md
+++ b/docs/examples/users/create.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.Create("email@example.com", "password");
+User result = await users.Create(
+ userId: "[USER_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/delete-session.md b/docs/examples/users/delete-session.md
index 2fcf7db..d656c67 100644
--- a/docs/examples/users/delete-session.md
+++ b/docs/examples/users/delete-session.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.DeleteSession("[USER_ID]", "[SESSION_ID]");
+await users.DeleteSession(
+ userId: "[USER_ID]",
+ sessionId: "[SESSION_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/delete-sessions.md b/docs/examples/users/delete-sessions.md
index b3b9f05..ca15eb9 100644
--- a/docs/examples/users/delete-sessions.md
+++ b/docs/examples/users/delete-sessions.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.DeleteSessions("[USER_ID]");
+await users.DeleteSessions(
+ userId: "[USER_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/delete.md b/docs/examples/users/delete.md
index b0eb7ef..e3552fd 100644
--- a/docs/examples/users/delete.md
+++ b/docs/examples/users/delete.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.Delete("[USER_ID]");
+await users.Delete(
+ userId: "[USER_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/get-logs.md b/docs/examples/users/get-logs.md
deleted file mode 100644
index ca352b4..0000000
--- a/docs/examples/users/get-logs.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.GetLogs("[USER_ID]");
diff --git a/docs/examples/users/get-prefs.md b/docs/examples/users/get-prefs.md
index 2e673a5..695601b 100644
--- a/docs/examples/users/get-prefs.md
+++ b/docs/examples/users/get-prefs.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.GetPrefs("[USER_ID]");
+Preferences result = await users.GetPrefs(
+ userId: "[USER_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/get-sessions.md b/docs/examples/users/get-sessions.md
deleted file mode 100644
index 63e9844..0000000
--- a/docs/examples/users/get-sessions.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.GetSessions("[USER_ID]");
diff --git a/docs/examples/users/get.md b/docs/examples/users/get.md
index 2448a98..90411a6 100644
--- a/docs/examples/users/get.md
+++ b/docs/examples/users/get.md
@@ -1,13 +1,12 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.Get("[USER_ID]");
+User result = await users.Get(
+ userId: "[USER_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/list-logs.md b/docs/examples/users/list-logs.md
new file mode 100644
index 0000000..c42a767
--- /dev/null
+++ b/docs/examples/users/list-logs.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+LogList result = await users.ListLogs(
+ userId: "[USER_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/list-memberships.md b/docs/examples/users/list-memberships.md
new file mode 100644
index 0000000..0a76062
--- /dev/null
+++ b/docs/examples/users/list-memberships.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+MembershipList result = await users.ListMemberships(
+ userId: "[USER_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/list-sessions.md b/docs/examples/users/list-sessions.md
new file mode 100644
index 0000000..43fcb7a
--- /dev/null
+++ b/docs/examples/users/list-sessions.md
@@ -0,0 +1,12 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+SessionList result = await users.ListSessions(
+ userId: "[USER_ID]");
\ No newline at end of file
diff --git a/docs/examples/users/list.md b/docs/examples/users/list.md
index 06a036d..7bba5b7 100644
--- a/docs/examples/users/list.md
+++ b/docs/examples/users/list.md
@@ -1,13 +1,11 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.List();
+UserList result = await users.List();
\ No newline at end of file
diff --git a/docs/examples/users/update-email-verification.md b/docs/examples/users/update-email-verification.md
new file mode 100644
index 0000000..14d7a41
--- /dev/null
+++ b/docs/examples/users/update-email-verification.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.UpdateEmailVerification(
+ userId: "[USER_ID]",
+ emailVerification: false);
\ No newline at end of file
diff --git a/docs/examples/users/update-email.md b/docs/examples/users/update-email.md
new file mode 100644
index 0000000..dd2e1e3
--- /dev/null
+++ b/docs/examples/users/update-email.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.UpdateEmail(
+ userId: "[USER_ID]",
+ email: "email@example.com");
\ No newline at end of file
diff --git a/docs/examples/users/update-name.md b/docs/examples/users/update-name.md
new file mode 100644
index 0000000..01e3654
--- /dev/null
+++ b/docs/examples/users/update-name.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.UpdateName(
+ userId: "[USER_ID]",
+ name: "[NAME]");
\ No newline at end of file
diff --git a/docs/examples/users/update-password.md b/docs/examples/users/update-password.md
new file mode 100644
index 0000000..b8ad2c5
--- /dev/null
+++ b/docs/examples/users/update-password.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.UpdatePassword(
+ userId: "[USER_ID]",
+ password: "");
\ No newline at end of file
diff --git a/docs/examples/users/update-phone-verification.md b/docs/examples/users/update-phone-verification.md
new file mode 100644
index 0000000..afddc55
--- /dev/null
+++ b/docs/examples/users/update-phone-verification.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.UpdatePhoneVerification(
+ userId: "[USER_ID]",
+ phoneVerification: false);
\ No newline at end of file
diff --git a/docs/examples/users/update-phone.md b/docs/examples/users/update-phone.md
new file mode 100644
index 0000000..f556b73
--- /dev/null
+++ b/docs/examples/users/update-phone.md
@@ -0,0 +1,13 @@
+using Appwrite;
+using Appwrite.Models;
+
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+var users = new Users(client);
+
+User result = await users.UpdatePhone(
+ userId: "[USER_ID]",
+ number: "+12065550100");
\ No newline at end of file
diff --git a/docs/examples/users/update-prefs.md b/docs/examples/users/update-prefs.md
index 01f481b..8d3f10e 100644
--- a/docs/examples/users/update-prefs.md
+++ b/docs/examples/users/update-prefs.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", [object]);
+Preferences result = await users.UpdatePrefs(
+ userId: "[USER_ID]",
+ prefs: [object]);
\ No newline at end of file
diff --git a/docs/examples/users/update-status.md b/docs/examples/users/update-status.md
index de625dd..c2d1336 100644
--- a/docs/examples/users/update-status.md
+++ b/docs/examples/users/update-status.md
@@ -1,13 +1,13 @@
using Appwrite;
+using Appwrite.Models;
-Client client = new Client();
+var client = new Client()
+ .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .SetProject("5df5acd0d48c2") // Your project ID
+ .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
+var users = new Users(client);
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.UpdateStatus("[USER_ID]", 1);
+User result = await users.UpdateStatus(
+ userId: "[USER_ID]",
+ status: false);
\ No newline at end of file
diff --git a/docs/examples/users/update-verification.md b/docs/examples/users/update-verification.md
deleted file mode 100644
index 127cdc9..0000000
--- a/docs/examples/users/update-verification.md
+++ /dev/null
@@ -1,13 +0,0 @@
-using Appwrite;
-
-Client client = new Client();
-
-client
- .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
- .SetProject("5df5acd0d48c2") // Your project ID
- .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-;
-
-Users users = new Users(client);
-
-HttpResponseMessage result = await users.UpdateVerification("[USER_ID]", false);
diff --git a/io/appwrite/src/Appwrite/Client.cs b/io/appwrite/src/Appwrite/Client.cs
deleted file mode 100644
index f5282bc..0000000
--- a/io/appwrite/src/Appwrite/Client.cs
+++ /dev/null
@@ -1,200 +0,0 @@
-using Newtonsoft.Json.Linq;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Net;
-using System.Net.Http;
-using System.Net.Http.Headers;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Appwrite
-{
- public class Client
- {
- private readonly HttpClient http;
- private readonly Dictionary headers;
- private readonly Dictionary config;
- private string endPoint;
- private bool selfSigned;
-
- public Client() : this("https://appwrite.io/v1", false, new HttpClient())
- {
- }
-
- public Client(string endPoint, bool selfSigned, HttpClient http)
- {
- this.endPoint = endPoint;
- this.selfSigned = selfSigned;
- this.headers = new Dictionary()
- {
- { "content-type", "application/json" },
- { "x-sdk-version", "appwrite:dotnet:0.3.0" },
- { "X-Appwrite-Response-Format", "0.9.0" }
- };
- this.config = new Dictionary();
- this.http = http;
- }
-
- public Client SetSelfSigned(bool selfSigned)
- {
- this.selfSigned = selfSigned;
- return this;
- }
-
- public Client SetEndPoint(string endPoint)
- {
- this.endPoint = endPoint;
- return this;
- }
-
- public string GetEndPoint()
- {
- return endPoint;
- }
-
- public Dictionary GetConfig()
- {
- return config;
- }
-
- /// Your project ID
- public Client SetProject(string value) {
- config.Add("project", value);
- AddHeader("X-Appwrite-Project", value);
- return this;
- }
-
- /// Your secret API key
- public Client SetKey(string value) {
- config.Add("key", value);
- AddHeader("X-Appwrite-Key", value);
- return this;
- }
-
- /// Your secret JSON Web Token
- public Client SetJWT(string value) {
- config.Add("jWT", value);
- AddHeader("X-Appwrite-JWT", value);
- return this;
- }
-
- public Client SetLocale(string value) {
- config.Add("locale", value);
- AddHeader("X-Appwrite-Locale", value);
- return this;
- }
-
- public Client AddHeader(String key, String value)
- {
- headers.Add(key, value);
- return this;
- }
-
- public async Task Call(string method, string path, Dictionary headers, Dictionary parameters)
- {
- if (selfSigned)
- {
- ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
- }
-
- bool methodGet = "GET".Equals(method, StringComparison.InvariantCultureIgnoreCase);
-
- string queryString = methodGet ? "?" + parameters.ToQueryString() : string.Empty;
-
- HttpRequestMessage request = new HttpRequestMessage(new HttpMethod(method), endPoint + path + queryString);
-
- if ("multipart/form-data".Equals(headers["content-type"], StringComparison.InvariantCultureIgnoreCase))
- {
- MultipartFormDataContent form = new MultipartFormDataContent();
-
- foreach (var parameter in parameters)
- {
- if (parameter.Key == "file")
- {
- FileInfo fi = parameters["file"] as FileInfo;
-
- var file = File.ReadAllBytes(fi.FullName);
-
- form.Add(new ByteArrayContent(file, 0, file.Length), "file", fi.Name);
- }
- else if (parameter.Value is IEnumerable)
- {
- List list = new List((IEnumerable) parameter.Value);
- for (int index = 0; index < list.Count; index++)
- {
- form.Add(new StringContent(list[index].ToString()), $"{parameter.Key}[{index}]");
- }
- }
- else
- {
- form.Add(new StringContent(parameter.Value.ToString()), parameter.Key);
- }
- }
- request.Content = form;
-
- }
- else if (!methodGet)
- {
- string body = parameters.ToJson();
-
- request.Content = new StringContent(body, Encoding.UTF8, "application/json");
- }
-
- foreach (var header in this.headers)
- {
- if (header.Key.Equals("content-type", StringComparison.InvariantCultureIgnoreCase))
- {
- http.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(header.Value));
- }
- else
- {
- if (http.DefaultRequestHeaders.Contains(header.Key)) {
- http.DefaultRequestHeaders.Remove(header.Key);
- }
- http.DefaultRequestHeaders.Add(header.Key, header.Value);
- }
- }
-
- foreach (var header in headers)
- {
- if (header.Key.Equals("content-type", StringComparison.InvariantCultureIgnoreCase))
- {
- request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(header.Value));
- }
- else
- {
- if (request.Headers.Contains(header.Key)) {
- request.Headers.Remove(header.Key);
- }
- request.Headers.Add(header.Key, header.Value);
- }
- }
- try
- {
- var httpResponseMessage = await http.SendAsync(request);
- var code = (int) httpResponseMessage.StatusCode;
- var response = await httpResponseMessage.Content.ReadAsStringAsync();
-
- if (code >= 400) {
- var message = response.ToString();
- var isJson = httpResponseMessage.Content.Headers.GetValues("Content-Type").FirstOrDefault().Contains("application/json");
-
- if (isJson) {
- message = (JObject.Parse(message))["message"].ToString();
- }
-
- throw new AppwriteException(message, code, response.ToString());
- }
-
- return httpResponseMessage;
- }
- catch (System.Exception e)
- {
- throw new AppwriteException(e.Message, e);
- }
-
- }
- }
-}
diff --git a/io/appwrite/src/Appwrite/Helpers/ExtensionMethods.cs b/io/appwrite/src/Appwrite/Helpers/ExtensionMethods.cs
deleted file mode 100644
index d0bcbc8..0000000
--- a/io/appwrite/src/Appwrite/Helpers/ExtensionMethods.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Serialization;
-using System;
-using System.Collections.Generic;
-
-namespace Appwrite
-{
- public static class ExtensionMethods
- {
- public static string ToJson(this Dictionary dict)
- {
- var settings = new JsonSerializerSettings
- {
- ContractResolver = new CamelCasePropertyNamesContractResolver(),
- Converters = new List { new StringEnumConverter() }
- };
-
- return JsonConvert.SerializeObject(dict, settings);
- }
-
- public static string ToQueryString(this Dictionary parameters)
- {
- List query = new List();
-
- foreach (KeyValuePair parameter in parameters)
- {
- if (parameter.Value != null)
- {
- if (parameter.Value is List)
- {
- foreach(object entry in (dynamic) parameter.Value)
- {
- query.Add(parameter.Key + "[]=" + Uri.EscapeUriString(entry.ToString()));
- }
- }
- else
- {
- query.Add(parameter.Key + "=" + Uri.EscapeUriString(parameter.Value.ToString()));
- }
- }
- }
- return string.Join("&", query);
- }
- }
-}
\ No newline at end of file
diff --git a/io/appwrite/src/Appwrite/Models/Rule.cs b/io/appwrite/src/Appwrite/Models/Rule.cs
deleted file mode 100644
index c6ad8d3..0000000
--- a/io/appwrite/src/Appwrite/Models/Rule.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Appwrite
-{
- public class Rule
- {
- public string Label { get; set; }
- public string Key { get; set; }
- public string Type { get; set; }
- public string Default { get; set; }
- public bool Required { get; set; }
- public bool Array { get; set; }
- }
-}
diff --git a/io/appwrite/src/Appwrite/Services/Account.cs b/io/appwrite/src/Appwrite/Services/Account.cs
deleted file mode 100644
index 29569f2..0000000
--- a/io/appwrite/src/Appwrite/Services/Account.cs
+++ /dev/null
@@ -1,430 +0,0 @@
-
-using System.Collections.Generic;
-using System.IO;
-using System.Net.Http;
-using System.Threading.Tasks;
-
-namespace Appwrite
-{
- public class Account : Service
- {
- public Account(Client client) : base(client) { }
-
- ///
- /// Get Account
- ///
- /// Get currently logged in user data as JSON object.
- ///
- ///
- public async Task Get()
- {
- string path = "/account";
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Delete Account
- ///
- /// Delete a currently logged in user account. Behind the scene, the user
- /// record is not deleted but permanently blocked from any access. This is done
- /// to avoid deleted accounts being overtaken by new users with the same email
- /// address. Any user-related resources like documents or storage files should
- /// be deleted separately.
- ///
- ///
- public async Task Delete()
- {
- string path = "/account";
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("DELETE", path, headers, parameters);
- }
-
- ///
- /// Update Account Email
- ///
- /// Update currently logged in user account email address. After changing user
- /// address, user confirmation status is being reset and a new confirmation
- /// mail is sent. For security measures, user password is required to complete
- /// this request.
- /// This endpoint can also be used to convert an anonymous account to a normal
- /// one, by passing an email address and a new password.
- ///
- ///
- public async Task UpdateEmail(string email, string password)
- {
- string path = "/account/email";
-
- Dictionary parameters = new Dictionary()
- {
- { "email", email },
- { "password", password }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PATCH", path, headers, parameters);
- }
-
- ///
- /// Get Account Logs
- ///
- /// Get currently logged in user list of latest security activity logs. Each
- /// log returns user IP address, location and date and time of log.
- ///
- ///
- public async Task GetLogs()
- {
- string path = "/account/logs";
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Update Account Name
- ///
- /// Update currently logged in user account name.
- ///
- ///
- public async Task UpdateName(string name)
- {
- string path = "/account/name";
-
- Dictionary parameters = new Dictionary()
- {
- { "name", name }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PATCH", path, headers, parameters);
- }
-
- ///
- /// Update Account Password
- ///
- /// Update currently logged in user password. For validation, user is required
- /// to pass in the new password, and the old password. For users created with
- /// OAuth and Team Invites, oldPassword is optional.
- ///
- ///
- public async Task UpdatePassword(string password, string oldPassword = "")
- {
- string path = "/account/password";
-
- Dictionary parameters = new Dictionary()
- {
- { "password", password },
- { "oldPassword", oldPassword }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PATCH", path, headers, parameters);
- }
-
- ///
- /// Get Account Preferences
- ///
- /// Get currently logged in user preferences as a key-value object.
- ///
- ///
- public async Task GetPrefs()
- {
- string path = "/account/prefs";
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Update Account Preferences
- ///
- /// Update currently logged in user account preferences. You can pass only the
- /// specific settings you wish to update.
- ///
- ///
- public async Task UpdatePrefs(object prefs)
- {
- string path = "/account/prefs";
-
- Dictionary parameters = new Dictionary()
- {
- { "prefs", prefs }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PATCH", path, headers, parameters);
- }
-
- ///
- /// Create Password Recovery
- ///
- /// Sends the user an email with a temporary secret key for password reset.
- /// When the user clicks the confirmation link he is redirected back to your
- /// app password reset URL with the secret key and email address values
- /// attached to the URL query string. Use the query string params to submit a
- /// request to the [PUT
- /// /account/recovery](/docs/client/account#accountUpdateRecovery) endpoint to
- /// complete the process. The verification link sent to the user's email
- /// address is valid for 1 hour.
- ///
- ///
- public async Task CreateRecovery(string email, string url)
- {
- string path = "/account/recovery";
-
- Dictionary parameters = new Dictionary()
- {
- { "email", email },
- { "url", url }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("POST", path, headers, parameters);
- }
-
- ///
- /// Complete Password Recovery
- ///
- /// Use this endpoint to complete the user account password reset. Both the
- /// **userId** and **secret** arguments will be passed as query parameters to
- /// the redirect URL you have provided when sending your request to the [POST
- /// /account/recovery](/docs/client/account#accountCreateRecovery) endpoint.
- ///
- /// Please note that in order to avoid a [Redirect
- /// Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
- /// the only valid redirect URLs are the ones from domains you have set when
- /// adding your platforms in the console interface.
- ///
- ///
- public async Task UpdateRecovery(string userId, string secret, string password, string passwordAgain)
- {
- string path = "/account/recovery";
-
- Dictionary parameters = new Dictionary()
- {
- { "userId", userId },
- { "secret", secret },
- { "password", password },
- { "passwordAgain", passwordAgain }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PUT", path, headers, parameters);
- }
-
- ///
- /// Get Account Sessions
- ///
- /// Get currently logged in user list of active sessions across different
- /// devices.
- ///
- ///
- public async Task GetSessions()
- {
- string path = "/account/sessions";
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Delete All Account Sessions
- ///
- /// Delete all sessions from the user account and remove any sessions cookies
- /// from the end client.
- ///
- ///
- public async Task DeleteSessions()
- {
- string path = "/account/sessions";
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("DELETE", path, headers, parameters);
- }
-
- ///
- /// Get Session By ID
- ///
- /// Use this endpoint to get a logged in user's session using a Session ID.
- /// Inputting 'current' will return the current session being used.
- ///
- ///
- public async Task GetSession(string sessionId)
- {
- string path = "/account/sessions/{sessionId}".Replace("{sessionId}", sessionId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Delete Account Session
- ///
- /// Use this endpoint to log out the currently logged in user from all their
- /// account sessions across all of their different devices. When using the
- /// option id argument, only the session unique ID provider will be deleted.
- ///
- ///
- public async Task DeleteSession(string sessionId)
- {
- string path = "/account/sessions/{sessionId}".Replace("{sessionId}", sessionId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("DELETE", path, headers, parameters);
- }
-
- ///
- /// Create Email Verification
- ///
- /// Use this endpoint to send a verification message to your user email address
- /// to confirm they are the valid owners of that address. Both the **userId**
- /// and **secret** arguments will be passed as query parameters to the URL you
- /// have provided to be attached to the verification email. The provided URL
- /// should redirect the user back to your app and allow you to complete the
- /// verification process by verifying both the **userId** and **secret**
- /// parameters. Learn more about how to [complete the verification
- /// process](/docs/client/account#accountUpdateVerification). The verification
- /// link sent to the user's email address is valid for 7 days.
- ///
- /// Please note that in order to avoid a [Redirect
- /// Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md),
- /// the only valid redirect URLs are the ones from domains you have set when
- /// adding your platforms in the console interface.
- ///
- ///
- ///
- public async Task CreateVerification(string url)
- {
- string path = "/account/verification";
-
- Dictionary parameters = new Dictionary()
- {
- { "url", url }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("POST", path, headers, parameters);
- }
-
- ///
- /// Complete Email Verification
- ///
- /// Use this endpoint to complete the user email verification process. Use both
- /// the **userId** and **secret** parameters that were attached to your app URL
- /// to verify the user email ownership. If confirmed this route will return a
- /// 200 status code.
- ///
- ///
- public async Task UpdateVerification(string userId, string secret)
- {
- string path = "/account/verification";
-
- Dictionary parameters = new Dictionary()
- {
- { "userId", userId },
- { "secret", secret }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PUT", path, headers, parameters);
- }
- };
-}
\ No newline at end of file
diff --git a/io/appwrite/src/Appwrite/Services/Avatars.cs b/io/appwrite/src/Appwrite/Services/Avatars.cs
deleted file mode 100644
index 9a07de6..0000000
--- a/io/appwrite/src/Appwrite/Services/Avatars.cs
+++ /dev/null
@@ -1,190 +0,0 @@
-
-using System.Collections.Generic;
-using System.IO;
-using System.Net.Http;
-using System.Threading.Tasks;
-
-namespace Appwrite
-{
- public class Avatars : Service
- {
- public Avatars(Client client) : base(client) { }
-
- ///
- /// Get Browser Icon
- ///
- /// You can use this endpoint to show different browser icons to your users.
- /// The code argument receives the browser code as it appears in your user
- /// /account/sessions endpoint. Use width, height and quality arguments to
- /// change the output settings.
- ///
- ///
- public string GetBrowser(string code, int? width = 100, int? height = 100, int? quality = 100)
- {
- string path = "/avatars/browsers/{code}".Replace("{code}", code);
-
- Dictionary parameters = new Dictionary()
- {
- { "width", width },
- { "height", height },
- { "quality", quality },
- };
- // { "project", _client.GetConfig().get("project") },
- // { "key", _client.GetConfig().get("key") }
-
- return _client.GetEndPoint() + path + "?" + parameters.ToQueryString();
- }
-
- ///
- /// Get Credit Card Icon
- ///
- /// The credit card endpoint will return you the icon of the credit card
- /// provider you need. Use width, height and quality arguments to change the
- /// output settings.
- ///
- ///
- public string GetCreditCard(string code, int? width = 100, int? height = 100, int? quality = 100)
- {
- string path = "/avatars/credit-cards/{code}".Replace("{code}", code);
-
- Dictionary parameters = new Dictionary()
- {
- { "width", width },
- { "height", height },
- { "quality", quality },
- };
- // { "project", _client.GetConfig().get("project") },
- // { "key", _client.GetConfig().get("key") }
-
- return _client.GetEndPoint() + path + "?" + parameters.ToQueryString();
- }
-
- ///
- /// Get Favicon
- ///
- /// Use this endpoint to fetch the favorite icon (AKA favicon) of any remote
- /// website URL.
- ///
- ///
- ///
- public string GetFavicon(string url)
- {
- string path = "/avatars/favicon";
-
- Dictionary parameters = new Dictionary()
- {
- { "url", url },
- };
- // { "project", _client.GetConfig().get("project") },
- // { "key", _client.GetConfig().get("key") }
-
- return _client.GetEndPoint() + path + "?" + parameters.ToQueryString();
- }
-
- ///
- /// Get Country Flag
- ///
- /// You can use this endpoint to show different country flags icons to your
- /// users. The code argument receives the 2 letter country code. Use width,
- /// height and quality arguments to change the output settings.
- ///
- ///
- public string GetFlag(string code, int? width = 100, int? height = 100, int? quality = 100)
- {
- string path = "/avatars/flags/{code}".Replace("{code}", code);
-
- Dictionary parameters = new Dictionary()
- {
- { "width", width },
- { "height", height },
- { "quality", quality },
- };
- // { "project", _client.GetConfig().get("project") },
- // { "key", _client.GetConfig().get("key") }
-
- return _client.GetEndPoint() + path + "?" + parameters.ToQueryString();
- }
-
- ///
- /// Get Image from URL
- ///
- /// Use this endpoint to fetch a remote image URL and crop it to any image size
- /// you want. This endpoint is very useful if you need to crop and display
- /// remote images in your app or in case you want to make sure a 3rd party
- /// image is properly served using a TLS protocol.
- ///
- ///
- public string GetImage(string url, int? width = 400, int? height = 400)
- {
- string path = "/avatars/image";
-
- Dictionary parameters = new Dictionary()
- {
- { "url", url },
- { "width", width },
- { "height", height },
- };
- // { "project", _client.GetConfig().get("project") },
- // { "key", _client.GetConfig().get("key") }
-
- return _client.GetEndPoint() + path + "?" + parameters.ToQueryString();
- }
-
- ///
- /// Get User Initials
- ///
- /// Use this endpoint to show your user initials avatar icon on your website or
- /// app. By default, this route will try to print your logged-in user name or
- /// email initials. You can also overwrite the user name if you pass the 'name'
- /// parameter. If no name is given and no user is logged, an empty avatar will
- /// be returned.
- ///
- /// You can use the color and background params to change the avatar colors. By
- /// default, a random theme will be selected. The random theme will persist for
- /// the user's initials when reloading the same theme will always return for
- /// the same initials.
- ///
- ///
- public string GetInitials(string name = "", int? width = 500, int? height = 500, string color = "", string background = "")
- {
- string path = "/avatars/initials";
-
- Dictionary parameters = new Dictionary()
- {
- { "name", name },
- { "width", width },
- { "height", height },
- { "color", color },
- { "background", background },
- };
- // { "project", _client.GetConfig().get("project") },
- // { "key", _client.GetConfig().get("key") }
-
- return _client.GetEndPoint() + path + "?" + parameters.ToQueryString();
- }
-
- ///
- /// Get QR Code
- ///
- /// Converts a given plain text to a QR code image. You can use the query
- /// parameters to change the size and style of the resulting image.
- ///
- ///
- public string GetQR(string text, int? size = 400, int? margin = 1, bool? download = false)
- {
- string path = "/avatars/qr";
-
- Dictionary parameters = new Dictionary()
- {
- { "text", text },
- { "size", size },
- { "margin", margin },
- { "download", download },
- };
- // { "project", _client.GetConfig().get("project") },
- // { "key", _client.GetConfig().get("key") }
-
- return _client.GetEndPoint() + path + "?" + parameters.ToQueryString();
- }
- };
-}
\ No newline at end of file
diff --git a/io/appwrite/src/Appwrite/Services/Database.cs b/io/appwrite/src/Appwrite/Services/Database.cs
deleted file mode 100644
index 6fe53f4..0000000
--- a/io/appwrite/src/Appwrite/Services/Database.cs
+++ /dev/null
@@ -1,276 +0,0 @@
-
-using System.Collections.Generic;
-using System.IO;
-using System.Net.Http;
-using System.Threading.Tasks;
-
-namespace Appwrite
-{
- public class Database : Service
- {
- public Database(Client client) : base(client) { }
-
- ///
- /// List Collections
- ///
- /// Get a list of all the user collections. You can use the query params to
- /// filter your results. On admin mode, this endpoint will return a list of all
- /// of the project's collections. [Learn more about different API
- /// modes](/docs/admin).
- ///
- ///
- public async Task ListCollections(string search = "", int? limit = 25, int? offset = 0, OrderType orderType = OrderType.ASC)
- {
- string path = "/database/collections";
-
- Dictionary parameters = new Dictionary()
- {
- { "search", search },
- { "limit", limit },
- { "offset", offset },
- { "orderType", orderType.ToString() }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Create Collection
- ///
- /// Create a new Collection.
- ///
- ///
- public async Task CreateCollection(string name, List read, List write, List rules)
- {
- string path = "/database/collections";
-
- Dictionary parameters = new Dictionary()
- {
- { "name", name },
- { "read", read },
- { "write", write },
- { "rules", rules }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("POST", path, headers, parameters);
- }
-
- ///
- /// Get Collection
- ///
- /// Get a collection by its unique ID. This endpoint response returns a JSON
- /// object with the collection metadata.
- ///
- ///
- public async Task GetCollection(string collectionId)
- {
- string path = "/database/collections/{collectionId}".Replace("{collectionId}", collectionId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Update Collection
- ///
- /// Update a collection by its unique ID.
- ///
- ///
- public async Task UpdateCollection(string collectionId, string name, List read = null, List write = null, List rules = null)
- {
- string path = "/database/collections/{collectionId}".Replace("{collectionId}", collectionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "name", name },
- { "read", read },
- { "write", write },
- { "rules", rules }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PUT", path, headers, parameters);
- }
-
- ///
- /// Delete Collection
- ///
- /// Delete a collection by its unique ID. Only users with write permissions
- /// have access to delete this resource.
- ///
- ///
- public async Task DeleteCollection(string collectionId)
- {
- string path = "/database/collections/{collectionId}".Replace("{collectionId}", collectionId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("DELETE", path, headers, parameters);
- }
-
- ///
- /// List Documents
- ///
- /// Get a list of all the user documents. You can use the query params to
- /// filter your results. On admin mode, this endpoint will return a list of all
- /// of the project's documents. [Learn more about different API
- /// modes](/docs/admin).
- ///
- ///
- public async Task ListDocuments(string collectionId, List filters = null, int? limit = 25, int? offset = 0, string orderField = "", OrderType orderType = OrderType.ASC, string orderCast = "string", string search = "")
- {
- string path = "/database/collections/{collectionId}/documents".Replace("{collectionId}", collectionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "filters", filters },
- { "limit", limit },
- { "offset", offset },
- { "orderField", orderField },
- { "orderType", orderType.ToString() },
- { "orderCast", orderCast },
- { "search", search }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Create Document
- ///
- /// Create a new Document. Before using this route, you should create a new
- /// collection resource using either a [server
- /// integration](/docs/server/database#databaseCreateCollection) API or
- /// directly from your database console.
- ///
- ///
- public async Task CreateDocument(string collectionId, object data, List read = null, List write = null, string parentDocument = "", string parentProperty = "", string parentPropertyType = "assign")
- {
- string path = "/database/collections/{collectionId}/documents".Replace("{collectionId}", collectionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "data", data },
- { "read", read },
- { "write", write },
- { "parentDocument", parentDocument },
- { "parentProperty", parentProperty },
- { "parentPropertyType", parentPropertyType }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("POST", path, headers, parameters);
- }
-
- ///
- /// Get Document
- ///
- /// Get a document by its unique ID. This endpoint response returns a JSON
- /// object with the document data.
- ///
- ///
- public async Task GetDocument(string collectionId, string documentId)
- {
- string path = "/database/collections/{collectionId}/documents/{documentId}".Replace("{collectionId}", collectionId).Replace("{documentId}", documentId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Update Document
- ///
- /// Update a document by its unique ID. Using the patch method you can pass
- /// only specific fields that will get updated.
- ///
- ///
- public async Task UpdateDocument(string collectionId, string documentId, object data, List read = null, List write = null)
- {
- string path = "/database/collections/{collectionId}/documents/{documentId}".Replace("{collectionId}", collectionId).Replace("{documentId}", documentId);
-
- Dictionary parameters = new Dictionary()
- {
- { "data", data },
- { "read", read },
- { "write", write }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PATCH", path, headers, parameters);
- }
-
- ///
- /// Delete Document
- ///
- /// Delete a document by its unique ID. This endpoint deletes only the parent
- /// documents, its attributes and relations to other documents. Child documents
- /// **will not** be deleted.
- ///
- ///
- public async Task DeleteDocument(string collectionId, string documentId)
- {
- string path = "/database/collections/{collectionId}/documents/{documentId}".Replace("{collectionId}", collectionId).Replace("{documentId}", documentId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("DELETE", path, headers, parameters);
- }
- };
-}
\ No newline at end of file
diff --git a/io/appwrite/src/Appwrite/Services/Functions.cs b/io/appwrite/src/Appwrite/Services/Functions.cs
deleted file mode 100644
index df35e6a..0000000
--- a/io/appwrite/src/Appwrite/Services/Functions.cs
+++ /dev/null
@@ -1,349 +0,0 @@
-
-using System.Collections.Generic;
-using System.IO;
-using System.Net.Http;
-using System.Threading.Tasks;
-
-namespace Appwrite
-{
- public class Functions : Service
- {
- public Functions(Client client) : base(client) { }
-
- ///
- /// List Functions
- ///
- /// Get a list of all the project's functions. You can use the query params to
- /// filter your results.
- ///
- ///
- public async Task List(string search = "", int? limit = 25, int? offset = 0, OrderType orderType = OrderType.ASC)
- {
- string path = "/functions";
-
- Dictionary parameters = new Dictionary()
- {
- { "search", search },
- { "limit", limit },
- { "offset", offset },
- { "orderType", orderType.ToString() }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Create Function
- ///
- /// Create a new function. You can pass a list of
- /// [permissions](/docs/permissions) to allow different project users or team
- /// with access to execute the function using the client API.
- ///
- ///
- public async Task Create(string name, List execute, string runtime, object vars = null, List events = null, string schedule = "", int? timeout = 15)
- {
- string path = "/functions";
-
- Dictionary parameters = new Dictionary()
- {
- { "name", name },
- { "execute", execute },
- { "runtime", runtime },
- { "vars", vars },
- { "events", events },
- { "schedule", schedule },
- { "timeout", timeout }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("POST", path, headers, parameters);
- }
-
- ///
- /// Get Function
- ///
- /// Get a function by its unique ID.
- ///
- ///
- public async Task Get(string functionId)
- {
- string path = "/functions/{functionId}".Replace("{functionId}", functionId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Update Function
- ///
- /// Update function by its unique ID.
- ///
- ///
- public async Task Update(string functionId, string name, List execute, object vars = null, List events = null, string schedule = "", int? timeout = 15)
- {
- string path = "/functions/{functionId}".Replace("{functionId}", functionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "name", name },
- { "execute", execute },
- { "vars", vars },
- { "events", events },
- { "schedule", schedule },
- { "timeout", timeout }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PUT", path, headers, parameters);
- }
-
- ///
- /// Delete Function
- ///
- /// Delete a function by its unique ID.
- ///
- ///
- public async Task Delete(string functionId)
- {
- string path = "/functions/{functionId}".Replace("{functionId}", functionId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("DELETE", path, headers, parameters);
- }
-
- ///
- /// List Executions
- ///
- /// Get a list of all the current user function execution logs. You can use the
- /// query params to filter your results. On admin mode, this endpoint will
- /// return a list of all of the project's executions. [Learn more about
- /// different API modes](/docs/admin).
- ///
- ///
- public async Task ListExecutions(string functionId, string search = "", int? limit = 25, int? offset = 0, OrderType orderType = OrderType.ASC)
- {
- string path = "/functions/{functionId}/executions".Replace("{functionId}", functionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "search", search },
- { "limit", limit },
- { "offset", offset },
- { "orderType", orderType.ToString() }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Create Execution
- ///
- /// Trigger a function execution. The returned object will return you the
- /// current execution status. You can ping the `Get Execution` endpoint to get
- /// updates on the current execution status. Once this endpoint is called, your
- /// function execution process will start asynchronously.
- ///
- ///
- public async Task CreateExecution(string functionId, string data = "")
- {
- string path = "/functions/{functionId}/executions".Replace("{functionId}", functionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "data", data }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("POST", path, headers, parameters);
- }
-
- ///
- /// Get Execution
- ///
- /// Get a function execution log by its unique ID.
- ///
- ///
- public async Task GetExecution(string functionId, string executionId)
- {
- string path = "/functions/{functionId}/executions/{executionId}".Replace("{functionId}", functionId).Replace("{executionId}", executionId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Update Function Tag
- ///
- /// Update the function code tag ID using the unique function ID. Use this
- /// endpoint to switch the code tag that should be executed by the execution
- /// endpoint.
- ///
- ///
- public async Task UpdateTag(string functionId, string tag)
- {
- string path = "/functions/{functionId}/tag".Replace("{functionId}", functionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "tag", tag }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("PATCH", path, headers, parameters);
- }
-
- ///
- /// List Tags
- ///
- /// Get a list of all the project's code tags. You can use the query params to
- /// filter your results.
- ///
- ///
- public async Task ListTags(string functionId, string search = "", int? limit = 25, int? offset = 0, OrderType orderType = OrderType.ASC)
- {
- string path = "/functions/{functionId}/tags".Replace("{functionId}", functionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "search", search },
- { "limit", limit },
- { "offset", offset },
- { "orderType", orderType.ToString() }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Create Tag
- ///
- /// Create a new function code tag. Use this endpoint to upload a new version
- /// of your code function. To execute your newly uploaded code, you'll need to
- /// update the function's tag to use your new tag UID.
- ///
- /// This endpoint accepts a tar.gz file compressed with your code. Make sure to
- /// include any dependencies your code has within the compressed file. You can
- /// learn more about code packaging in the [Appwrite Cloud Functions
- /// tutorial](/docs/functions).
- ///
- /// Use the "command" param to set the entry point used to execute your code.
- ///
- ///
- public async Task CreateTag(string functionId, string command, FileInfo code)
- {
- string path = "/functions/{functionId}/tags".Replace("{functionId}", functionId);
-
- Dictionary parameters = new Dictionary()
- {
- { "command", command },
- { "code", code }
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "multipart/form-data" }
- };
-
- return await _client.Call("POST", path, headers, parameters);
- }
-
- ///
- /// Get Tag
- ///
- /// Get a code tag by its unique ID.
- ///
- ///
- public async Task GetTag(string functionId, string tagId)
- {
- string path = "/functions/{functionId}/tags/{tagId}".Replace("{functionId}", functionId).Replace("{tagId}", tagId);
-
- Dictionary parameters = new Dictionary()
- {
- };
-
- Dictionary headers = new Dictionary()
- {
- { "content-type", "application/json" }
- };
-
- return await _client.Call("GET", path, headers, parameters);
- }
-
- ///
- /// Delete Tag
- ///
- /// Delete a code tag by its unique ID.
- ///
- ///
- public async Task DeleteTag(string functionId, string tagId)
- {
- string path = "/functions/{functionId}/tags/{tagId}".Replace("{functionId}", functionId).Replace("{tagId}", tagId);
-
- Dictionary parameters = new Dictionary