├── icon.png ├── Appwrite ├── Models │ └── OrderType.cs ├── Enums │ ├── IEnum.cs │ ├── AuthenticatorType.cs │ ├── Theme.cs │ ├── Adapter.cs │ ├── DatabaseType.cs │ ├── MessagePriority.cs │ ├── HealthCheckStatus.cs │ ├── Compression.cs │ ├── DeploymentDownloadType.cs │ ├── SmtpEncryption.cs │ ├── RelationMutate.cs │ ├── VCSReferenceType.cs │ ├── ExecutionTrigger.cs │ ├── IndexType.cs │ ├── MessagingProviderType.cs │ ├── TemplateReferenceType.cs │ ├── HealthAntivirusStatus.cs │ └── RelationshipType.cs └── Services │ └── Service.cs ├── .github └── workflows │ └── autoclose.yml └── docs └── examples ├── health ├── get.md ├── get-db.md ├── get-time.md ├── get-cache.md ├── get-pub-sub.md ├── get-storage.md ├── get-antivirus.md ├── get-storage-local.md ├── get-queue-builds.md ├── get-queue-logs.md ├── get-queue-mails.md ├── get-queue-usage.md ├── get-certificate.md ├── get-queue-deletes.md ├── get-queue-webhooks.md ├── get-queue-functions.md ├── get-queue-messaging.md ├── get-queue-migrations.md ├── get-queue-certificates.md ├── get-queue-stats-resources.md ├── get-queue-databases.md └── get-failed-jobs.md ├── locale ├── get.md ├── list-codes.md ├── list-continents.md ├── list-countries.md ├── list-currencies.md ├── list-languages.md ├── list-countries-eu.md └── list-countries-phones.md ├── account ├── get.md ├── create-jwt.md ├── delete-sessions.md ├── get-prefs.md ├── update-status.md ├── list-sessions.md ├── list-mfa-factors.md ├── update-mfa.md ├── delete-session.md ├── update-name.md ├── create-anonymous-session.md ├── create-phone-verification.md ├── delete-identity.md ├── get-mfa-recovery-codes.md ├── create-mfa-recovery-codes.md ├── get-session.md ├── update-mfa-recovery-codes.md ├── update-session.md ├── create-verification.md ├── create-email-verification.md ├── create-session.md ├── update-phone.md ├── update-email.md ├── create-phone-token.md ├── delete-mfa-authenticator.md ├── update-password.md ├── update-verification.md ├── create-recovery.md ├── update-mfa-challenge.md ├── update-phone-session.md ├── list-logs.md ├── update-email-verification.md ├── update-magic-url-session.md ├── update-phone-verification.md ├── update-recovery.md ├── create-mfa-authenticator.md ├── create-mfa-challenge.md ├── list-identities.md ├── create-email-password-session.md ├── create-email-token.md ├── create.md ├── update-mfa-authenticator.md ├── update-prefs.md ├── create-magic-url-token.md └── create-o-auth-2-token.md ├── sites ├── delete.md ├── get.md ├── list-frameworks.md ├── list-specifications.md ├── delete-log.md ├── list-variables.md ├── get-log.md ├── delete-variable.md ├── delete-deployment.md ├── get-variable.md ├── get-deployment.md ├── update-site-deployment.md ├── update-deployment-status.md ├── create-duplicate-deployment.md ├── list-logs.md ├── list.md ├── create-variable.md ├── list-deployments.md ├── update-variable.md ├── get-deployment-download.md └── create-vcs-deployment.md ├── users ├── delete.md ├── get.md ├── delete-sessions.md ├── delete-identity.md ├── get-prefs.md ├── create-session.md ├── list-mfa-factors.md ├── update-mfa.md ├── delete-target.md ├── update-name.md ├── delete-session.md ├── update-password.md ├── update-status.md ├── get-mfa-recovery-codes.md ├── get-target.md ├── update-phone.md ├── update-prefs.md ├── create-mfa-recovery-codes.md ├── update-email.md ├── update-labels.md ├── update-mfa-recovery-codes.md ├── list-sessions.md ├── update-email-verification.md ├── update-phone-verification.md ├── create-token.md ├── create-jwt.md ├── delete-mfa-authenticator.md ├── list-logs.md ├── list.md ├── list-targets.md ├── create-md-5-user.md ├── list-identities.md ├── create-argon-2-user.md ├── create-bcrypt-user.md ├── create-ph-pass-user.md ├── list-memberships.md ├── create.md ├── update-target.md ├── create-sha-user.md └── create-target.md ├── teams ├── delete.md ├── get.md ├── get-prefs.md ├── update-name.md ├── update-prefs.md ├── delete-membership.md ├── get-membership.md ├── create.md ├── list.md ├── update-membership.md ├── update-membership-status.md └── list-memberships.md ├── tokens ├── delete.md ├── get.md ├── update.md ├── create-file-token.md └── list.md ├── graphql ├── query.md └── mutation.md ├── tablesdb ├── delete.md ├── get.md ├── delete-transaction.md ├── create-transaction.md ├── delete-table.md ├── get-transaction.md ├── get-table.md ├── delete-index.md ├── list-transactions.md ├── delete-column.md ├── get-column.md ├── get-index.md ├── create.md ├── update.md ├── list.md ├── update-transaction.md ├── delete-row.md ├── create-rows.md ├── delete-rows.md ├── list-columns.md ├── upsert-rows.md ├── list-indexes.md ├── list-tables.md ├── create-point-column.md ├── update-ip-column.md ├── create-line-column.md ├── create-ip-column.md ├── update-boolean-column.md ├── update-datetime-column.md ├── get-row.md ├── update-url-column.md ├── create-polygon-column.md ├── update-email-column.md ├── update-point-column.md ├── create-boolean-column.md ├── create-datetime-column.md ├── update-rows.md ├── create-url-column.md ├── list-rows.md ├── create-email-column.md ├── update-line-column.md ├── update-enum-column.md ├── update-string-column.md ├── update-polygon-column.md ├── update-relationship-column.md ├── create-enum-column.md ├── update-float-column.md ├── update-integer-column.md ├── decrement-row-column.md ├── increment-row-column.md ├── update-table.md └── create-float-column.md ├── databases ├── delete.md ├── get.md ├── delete-transaction.md ├── create-transaction.md ├── get-transaction.md ├── list-transactions.md ├── delete-collection.md ├── delete-index.md ├── create.md ├── delete-attribute.md ├── get-collection.md ├── get-index.md ├── update.md ├── get-attribute.md ├── list.md ├── update-transaction.md ├── delete-document.md ├── list-indexes.md ├── delete-documents.md ├── list-attributes.md ├── list-collections.md ├── create-documents.md ├── create-point-attribute.md ├── upsert-documents.md ├── update-ip-attribute.md ├── create-line-attribute.md ├── create-ip-attribute.md ├── update-boolean-attribute.md ├── update-datetime-attribute.md ├── update-point-attribute.md ├── update-url-attribute.md ├── create-polygon-attribute.md ├── update-email-attribute.md ├── create-boolean-attribute.md ├── create-datetime-attribute.md ├── create-email-attribute.md ├── create-url-attribute.md ├── get-document.md ├── update-documents.md ├── update-line-attribute.md ├── list-documents.md ├── update-enum-attribute.md ├── update-string-attribute.md └── update-polygon-attribute.md ├── functions ├── delete.md ├── list-runtimes.md ├── get.md ├── list-specifications.md ├── list-variables.md ├── delete-variable.md ├── delete-execution.md ├── delete-deployment.md ├── get-variable.md ├── get-deployment.md ├── get-execution.md ├── update-deployment-status.md ├── update-function-deployment.md ├── list.md ├── create-variable.md ├── list-executions.md ├── create-duplicate-deployment.md ├── list-deployments.md ├── update-variable.md ├── get-deployment-download.md ├── create-vcs-deployment.md └── create-deployment.md ├── messaging ├── delete.md ├── delete-topic.md ├── get-topic.md ├── delete-provider.md ├── get-message.md ├── get-provider.md ├── delete-subscriber.md ├── get-subscriber.md ├── create-topic.md ├── update-topic.md ├── create-subscriber.md ├── list-targets.md ├── list-topic-logs.md ├── list-topics.md ├── list-message-logs.md ├── list-messages.md ├── list-provider-logs.md ├── list-providers.md ├── list-subscriber-logs.md ├── create-fcm-provider.md ├── list-subscribers.md ├── update-fcm-provider.md ├── create-textmagic-provider.md └── create-vonage-provider.md ├── storage ├── delete-bucket.md ├── get-bucket.md ├── delete-file.md ├── get-file.md ├── get-file-view.md ├── get-file-download.md ├── list-buckets.md ├── list-files.md ├── update-file.md └── create-file.md └── avatars ├── get-favicon.md ├── get-image.md ├── get-qr.md ├── get-initials.md ├── get-flag.md ├── get-browser.md └── get-credit-card.md /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/appwrite/sdk-for-dotnet/HEAD/icon.png -------------------------------------------------------------------------------- /Appwrite/Models/OrderType.cs: -------------------------------------------------------------------------------- 1 | namespace Appwrite 2 | { 3 | public enum OrderType 4 | { 5 | ASC, 6 | DESC 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Appwrite/Enums/IEnum.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public interface IEnum 6 | { 7 | public string Value { get; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Appwrite/Services/Service.cs: -------------------------------------------------------------------------------- 1 | namespace Appwrite 2 | { 3 | public abstract class Service 4 | { 5 | protected readonly Client _client; 6 | 7 | public Service(Client client) 8 | { 9 | this._client = client; 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /.github/workflows/autoclose.yml: -------------------------------------------------------------------------------- 1 | name: Auto-close External Pull Requests 2 | 3 | on: 4 | pull_request_target: 5 | types: [opened, reopened] 6 | 7 | jobs: 8 | auto_close: 9 | uses: appwrite/.github/.github/workflows/autoclose.yml@main 10 | secrets: 11 | GH_AUTO_CLOSE_PR_TOKEN: ${{ secrets.GH_AUTO_CLOSE_PR_TOKEN }} 12 | -------------------------------------------------------------------------------- /Appwrite/Enums/AuthenticatorType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class AuthenticatorType : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public AuthenticatorType(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static AuthenticatorType Totp => new AuthenticatorType("totp"); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Appwrite/Enums/Theme.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class Theme : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public Theme(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static Theme Light => new Theme("light"); 15 | public static Theme Dark => new Theme("dark"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /docs/examples/health/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthStatus result = await health.Get(); 13 | -------------------------------------------------------------------------------- /docs/examples/locale/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Locale locale = new Locale(client); 11 | 12 | Locale result = await locale.Get(); 13 | -------------------------------------------------------------------------------- /Appwrite/Enums/Adapter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class Adapter : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public Adapter(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static Adapter Static => new Adapter("static"); 15 | public static Adapter Ssr => new Adapter("ssr"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /docs/examples/account/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.Get(); 13 | -------------------------------------------------------------------------------- /docs/examples/health/get-db.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthStatus result = await health.GetDB(); 13 | -------------------------------------------------------------------------------- /docs/examples/health/get-time.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthTime result = await health.GetTime(); 13 | -------------------------------------------------------------------------------- /docs/examples/health/get-cache.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthStatus result = await health.GetCache(); 13 | -------------------------------------------------------------------------------- /docs/examples/sites/delete.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | await sites.Delete( 13 | siteId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/delete.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | await users.Delete( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-jwt.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | JWT result = await account.CreateJWT(); 13 | -------------------------------------------------------------------------------- /docs/examples/account/delete-sessions.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | await account.DeleteSessions(); 13 | -------------------------------------------------------------------------------- /docs/examples/health/get-pub-sub.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthStatus result = await health.GetPubSub(); 13 | -------------------------------------------------------------------------------- /docs/examples/health/get-storage.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthStatus result = await health.GetStorage(); 13 | -------------------------------------------------------------------------------- /docs/examples/sites/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Site result = await sites.Get( 13 | siteId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/teams/delete.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | await teams.Delete( 13 | teamId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/tokens/delete.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Tokens tokens = new Tokens(client); 11 | 12 | await tokens.Delete( 13 | tokenId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.Get( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-antivirus.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthAntivirus result = await health.GetAntivirus(); 13 | -------------------------------------------------------------------------------- /docs/examples/sites/list-frameworks.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | FrameworkList result = await sites.ListFrameworks(); 13 | -------------------------------------------------------------------------------- /docs/examples/account/get-prefs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Preferences result = await account.GetPrefs(); 13 | -------------------------------------------------------------------------------- /docs/examples/account/update-status.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.UpdateStatus(); 13 | -------------------------------------------------------------------------------- /docs/examples/graphql/query.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Graphql graphql = new Graphql(client); 11 | 12 | Any result = await graphql.Query( 13 | query: [object] 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-storage-local.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthStatus result = await health.GetStorageLocal(); 13 | -------------------------------------------------------------------------------- /docs/examples/locale/list-codes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Locale locale = new Locale(client); 11 | 12 | LocaleCodeList result = await locale.ListCodes(); 13 | -------------------------------------------------------------------------------- /docs/examples/teams/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | Team result = await teams.Get( 13 | teamId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/delete-sessions.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | await users.DeleteSessions( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/list-sessions.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | SessionList result = await account.ListSessions(); 13 | -------------------------------------------------------------------------------- /docs/examples/graphql/mutation.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Graphql graphql = new Graphql(client); 11 | 12 | Any result = await graphql.Mutation( 13 | query: [object] 14 | ); -------------------------------------------------------------------------------- /docs/examples/locale/list-continents.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Locale locale = new Locale(client); 11 | 12 | ContinentList result = await locale.ListContinents(); 13 | -------------------------------------------------------------------------------- /docs/examples/locale/list-countries.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Locale locale = new Locale(client); 11 | 12 | CountryList result = await locale.ListCountries(); 13 | -------------------------------------------------------------------------------- /docs/examples/locale/list-currencies.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Locale locale = new Locale(client); 11 | 12 | CurrencyList result = await locale.ListCurrencies(); 13 | -------------------------------------------------------------------------------- /docs/examples/locale/list-languages.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Locale locale = new Locale(client); 11 | 12 | LanguageList result = await locale.ListLanguages(); 13 | -------------------------------------------------------------------------------- /docs/examples/sites/list-specifications.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | SpecificationList result = await sites.ListSpecifications(); 13 | -------------------------------------------------------------------------------- /docs/examples/tablesdb/delete.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | await tablesDB.Delete( 13 | databaseId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/tokens/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Tokens tokens = new Tokens(client); 11 | 12 | ResourceToken result = await tokens.Get( 13 | tokenId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/list-mfa-factors.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | MfaFactors result = await account.ListMFAFactors(); 13 | -------------------------------------------------------------------------------- /docs/examples/databases/delete.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | await databases.Delete( 13 | databaseId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/functions/delete.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | await functions.Delete( 13 | functionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/functions/list-runtimes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | RuntimeList result = await functions.ListRuntimes(); 13 | -------------------------------------------------------------------------------- /docs/examples/locale/list-countries-eu.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Locale locale = new Locale(client); 11 | 12 | CountryList result = await locale.ListCountriesEU(); 13 | -------------------------------------------------------------------------------- /docs/examples/messaging/delete.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | await messaging.Delete( 13 | messageId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/storage/delete-bucket.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Storage storage = new Storage(client); 11 | 12 | await storage.DeleteBucket( 13 | bucketId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/delete-identity.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | await users.DeleteIdentity( 13 | identityId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/get-prefs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | Preferences result = await users.GetPrefs( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-mfa.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.UpdateMFA( 13 | mfa: false 14 | ); -------------------------------------------------------------------------------- /docs/examples/locale/list-countries-phones.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Locale locale = new Locale(client); 11 | 12 | PhoneList result = await locale.ListCountriesPhones(); 13 | -------------------------------------------------------------------------------- /docs/examples/messaging/delete-topic.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | await messaging.DeleteTopic( 13 | topicId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/teams/get-prefs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | Preferences result = await teams.GetPrefs( 13 | teamId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | Session result = await users.CreateSession( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/delete-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | await account.DeleteSession( 13 | sessionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-name.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.UpdateName( 13 | name: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/sites/delete-log.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | await sites.DeleteLog( 13 | siteId: "", 14 | logId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/sites/list-variables.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | VariableList result = await sites.ListVariables( 13 | siteId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/storage/get-bucket.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Storage storage = new Storage(client); 11 | 12 | Bucket result = await storage.GetBucket( 13 | bucketId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Database result = await tablesDB.Get( 13 | databaseId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/list-mfa-factors.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | MfaFactors result = await users.ListMFAFactors( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/DatabaseType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class DatabaseType : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public DatabaseType(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static DatabaseType Legacy => new DatabaseType("legacy"); 15 | public static DatabaseType Tablesdb => new DatabaseType("tablesdb"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /docs/examples/account/create-anonymous-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Session result = await account.CreateAnonymousSession(); 13 | -------------------------------------------------------------------------------- /docs/examples/account/create-phone-verification.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.CreatePhoneVerification(); 13 | -------------------------------------------------------------------------------- /docs/examples/account/delete-identity.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | await account.DeleteIdentity( 13 | identityId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/get-mfa-recovery-codes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | MfaRecoveryCodes result = await account.GetMFARecoveryCodes(); 13 | -------------------------------------------------------------------------------- /docs/examples/databases/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Database result = await databases.Get( 13 | databaseId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/functions/get.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Function result = await functions.Get( 13 | functionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/functions/list-specifications.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | SpecificationList result = await functions.ListSpecifications(); 13 | -------------------------------------------------------------------------------- /docs/examples/messaging/get-topic.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Topic result = await messaging.GetTopic( 13 | topicId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-mfa.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdateMFA( 13 | userId: "", 14 | mfa: false 15 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-builds.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueBuilds( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-logs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueLogs( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-mails.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueMails( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-usage.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueUsage( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/delete-provider.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | await messaging.DeleteProvider( 13 | providerId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/sites/get-log.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Execution result = await sites.GetLog( 13 | siteId: "", 14 | logId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/delete-target.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | await users.DeleteTarget( 13 | userId: "", 14 | targetId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-name.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdateName( 13 | userId: "", 14 | name: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-mfa-recovery-codes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | MfaRecoveryCodes result = await account.CreateMFARecoveryCodes(); 13 | -------------------------------------------------------------------------------- /docs/examples/account/get-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Session result = await account.GetSession( 13 | sessionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-mfa-recovery-codes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | MfaRecoveryCodes result = await account.UpdateMFARecoveryCodes(); 13 | -------------------------------------------------------------------------------- /docs/examples/avatars/get-favicon.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Avatars avatars = new Avatars(client); 11 | 12 | byte[] result = await avatars.GetFavicon( 13 | url: "https://example.com" 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-certificate.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthCertificate result = await health.GetCertificate( 13 | domain: "" // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-deletes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueDeletes( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-webhooks.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueWebhooks( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/get-message.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Message result = await messaging.GetMessage( 13 | messageId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/delete-transaction.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | await tablesDB.DeleteTransaction( 13 | transactionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/delete-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | await users.DeleteSession( 13 | userId: "", 14 | sessionId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-password.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdatePassword( 13 | userId: "", 14 | password: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-status.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdateStatus( 13 | userId: "", 14 | status: false 15 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/MessagePriority.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class MessagePriority : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public MessagePriority(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static MessagePriority Normal => new MessagePriority("normal"); 15 | public static MessagePriority High => new MessagePriority("high"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /docs/examples/account/update-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Session result = await account.UpdateSession( 13 | sessionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/databases/delete-transaction.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | await databases.DeleteTransaction( 13 | transactionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-functions.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueFunctions( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-messaging.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueMessaging( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-migrations.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueMigrations( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/get-provider.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Provider result = await messaging.GetProvider( 13 | providerId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/sites/delete-variable.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | await sites.DeleteVariable( 13 | siteId: "", 14 | variableId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-transaction.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Transaction result = await tablesDB.CreateTransaction( 13 | ttl: 60 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/teams/update-name.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | Team result = await teams.UpdateName( 13 | teamId: "", 14 | name: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/get-mfa-recovery-codes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | MfaRecoveryCodes result = await users.GetMFARecoveryCodes( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/get-target.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | Target result = await users.GetTarget( 13 | userId: "", 14 | targetId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-phone.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdatePhone( 13 | userId: "", 14 | number: "+12065550100" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-prefs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | Preferences result = await users.UpdatePrefs( 13 | userId: "", 14 | prefs: [object] 15 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-transaction.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Transaction result = await databases.CreateTransaction( 13 | ttl: 60 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-certificates.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueCertificates( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/sites/delete-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | await sites.DeleteDeployment( 13 | siteId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/storage/delete-file.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Storage storage = new Storage(client); 11 | 12 | await storage.DeleteFile( 13 | bucketId: "", 14 | fileId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tokens/update.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Tokens tokens = new Tokens(client); 11 | 12 | ResourceToken result = await tokens.Update( 13 | tokenId: "", 14 | expire: "" // optional 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-mfa-recovery-codes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | MfaRecoveryCodes result = await users.CreateMFARecoveryCodes( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-email.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdateEmail( 13 | userId: "", 14 | email: "email@example.com" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-labels.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdateLabels( 13 | userId: "", 14 | labels: new List() 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-mfa-recovery-codes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | MfaRecoveryCodes result = await users.UpdateMFARecoveryCodes( 13 | userId: "" 14 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/HealthCheckStatus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class HealthCheckStatus : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public HealthCheckStatus(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static HealthCheckStatus Pass => new HealthCheckStatus("pass"); 15 | public static HealthCheckStatus Fail => new HealthCheckStatus("fail"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /docs/examples/account/create-verification.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.CreateVerification( 13 | url: "https://example.com" 14 | ); -------------------------------------------------------------------------------- /docs/examples/functions/list-variables.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | VariableList result = await functions.ListVariables( 13 | functionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-stats-resources.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueStatsResources( 13 | threshold: 0 // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/sites/get-variable.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Variable result = await sites.GetVariable( 13 | siteId: "", 14 | variableId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/storage/get-file.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Storage storage = new Storage(client); 11 | 12 | File result = await storage.GetFile( 13 | bucketId: "", 14 | fileId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/delete-table.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | await tablesDB.DeleteTable( 13 | databaseId: "", 14 | tableId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/get-transaction.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Transaction result = await tablesDB.GetTransaction( 13 | transactionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/teams/update-prefs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | Preferences result = await teams.UpdatePrefs( 13 | teamId: "", 14 | prefs: [object] 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/list-sessions.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | SessionList result = await users.ListSessions( 13 | userId: "", 14 | total: false // optional 15 | ); -------------------------------------------------------------------------------- /docs/examples/databases/get-transaction.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Transaction result = await databases.GetTransaction( 13 | transactionId: "" 14 | ); -------------------------------------------------------------------------------- /docs/examples/teams/delete-membership.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | await teams.DeleteMembership( 13 | teamId: "", 14 | membershipId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-email-verification.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.CreateEmailVerification( 13 | url: "https://example.com" 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Session result = await account.CreateSession( 13 | userId: "", 14 | secret: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-phone.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.UpdatePhone( 13 | phone: "+12065550100", 14 | password: "password" 15 | ); -------------------------------------------------------------------------------- /docs/examples/sites/get-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Deployment result = await sites.GetDeployment( 13 | siteId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/get-table.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Table result = await tablesDB.GetTable( 13 | databaseId: "", 14 | tableId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-email.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.UpdateEmail( 13 | email: "email@example.com", 14 | password: "password" 15 | ); -------------------------------------------------------------------------------- /docs/examples/functions/delete-variable.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | await functions.DeleteVariable( 13 | functionId: "", 14 | variableId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/delete-index.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | await tablesDB.DeleteIndex( 13 | databaseId: "", 14 | tableId: "", 15 | key: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/list-transactions.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | TransactionList result = await tablesDB.ListTransactions( 13 | queries: new List() // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-phone-token.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.CreatePhoneToken( 13 | userId: "", 14 | phone: "+12065550100" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/delete-mfa-authenticator.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetSession(""); // The user session to authenticate with 10 | 11 | Account account = new Account(client); 12 | 13 | await account.DeleteMFAAuthenticator( 14 | type: AuthenticatorType.Totp 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-password.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.UpdatePassword( 13 | password: "", 14 | oldPassword: "password" // optional 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-verification.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.UpdateVerification( 13 | userId: "", 14 | secret: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/databases/list-transactions.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | TransactionList result = await databases.ListTransactions( 13 | queries: new List() // optional 14 | ); -------------------------------------------------------------------------------- /docs/examples/functions/delete-execution.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | await functions.DeleteExecution( 13 | functionId: "", 14 | executionId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/delete-subscriber.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetJWT(""); // Your secret JSON Web Token 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | await messaging.DeleteSubscriber( 13 | topicId: "", 14 | subscriberId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/sites/update-site-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Site result = await sites.UpdateSiteDeployment( 13 | siteId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/delete-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | await tablesDB.DeleteColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/teams/get-membership.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | Membership result = await teams.GetMembership( 13 | teamId: "", 14 | membershipId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-email-verification.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdateEmailVerification( 13 | userId: "", 14 | emailVerification: false 15 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-phone-verification.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.UpdatePhoneVerification( 13 | userId: "", 14 | phoneVerification: false 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-recovery.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.CreateRecovery( 13 | email: "email@example.com", 14 | url: "https://example.com" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-mfa-challenge.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Session result = await account.UpdateMFAChallenge( 13 | challengeId: "", 14 | otp: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-phone-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Session result = await account.UpdatePhoneSession( 13 | userId: "", 14 | secret: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/databases/delete-collection.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | await databases.DeleteCollection( 13 | databaseId: "", 14 | collectionId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/functions/delete-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | await functions.DeleteDeployment( 13 | functionId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-queue-databases.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Health health = new Health(client); 11 | 12 | HealthQueue result = await health.GetQueueDatabases( 13 | name: "", // optional 14 | threshold: 0 // optional 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/get-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | result = await tablesDB.GetColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-token.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | Token result = await users.CreateToken( 13 | userId: "", 14 | length: 4, // optional 15 | expire: 60 // optional 16 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/Compression.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class Compression : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public Compression(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static Compression None => new Compression("none"); 15 | public static Compression Gzip => new Compression("gzip"); 16 | public static Compression Zstd => new Compression("zstd"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/examples/account/list-logs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | LogList result = await account.ListLogs( 13 | queries: new List(), // optional 14 | total: false // optional 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-email-verification.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.UpdateEmailVerification( 13 | userId: "", 14 | secret: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-magic-url-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Session result = await account.UpdateMagicURLSession( 13 | userId: "", 14 | secret: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-phone-verification.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.UpdatePhoneVerification( 13 | userId: "", 14 | secret: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/databases/delete-index.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | await databases.DeleteIndex( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/functions/get-variable.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Variable result = await functions.GetVariable( 13 | functionId: "", 14 | variableId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/get-subscriber.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Subscriber result = await messaging.GetSubscriber( 13 | topicId: "", 14 | subscriberId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/sites/update-deployment-status.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Deployment result = await sites.UpdateDeploymentStatus( 13 | siteId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/get-index.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnIndex result = await tablesDB.GetIndex( 13 | databaseId: "", 14 | tableId: "", 15 | key: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/teams/create.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | Team result = await teams.Create( 13 | teamId: "", 14 | name: "", 15 | roles: new List() // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-recovery.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.UpdateRecovery( 13 | userId: "", 14 | secret: "", 15 | password: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/sites/create-duplicate-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Deployment result = await sites.CreateDuplicateDeployment( 13 | siteId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Database result = await tablesDB.Create( 13 | databaseId: "", 14 | name: "", 15 | enabled: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Database result = await tablesDB.Update( 13 | databaseId: "", 14 | name: "", 15 | enabled: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-jwt.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | JWT result = await users.CreateJWT( 13 | userId: "", 14 | sessionId: "", // optional 15 | duration: 0 // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/users/delete-mfa-authenticator.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | Users users = new Users(client); 12 | 13 | await users.DeleteMFAAuthenticator( 14 | userId: "", 15 | type: AuthenticatorType.Totp 16 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/DeploymentDownloadType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class DeploymentDownloadType : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public DeploymentDownloadType(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static DeploymentDownloadType Source => new DeploymentDownloadType("source"); 15 | public static DeploymentDownloadType Output => new DeploymentDownloadType("output"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /docs/examples/account/create-mfa-authenticator.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetSession(""); // The user session to authenticate with 10 | 11 | Account account = new Account(client); 12 | 13 | MfaType result = await account.CreateMFAAuthenticator( 14 | type: AuthenticatorType.Totp 15 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-mfa-challenge.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetSession(""); // The user session to authenticate with 10 | 11 | Account account = new Account(client); 12 | 13 | MfaChallenge result = await account.CreateMFAChallenge( 14 | factor: AuthenticationFactor.Email 15 | ); -------------------------------------------------------------------------------- /docs/examples/avatars/get-image.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Avatars avatars = new Avatars(client); 11 | 12 | byte[] result = await avatars.GetImage( 13 | url: "https://example.com", 14 | width: 0, // optional 15 | height: 0 // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Database result = await databases.Create( 13 | databaseId: "", 14 | name: "", 15 | enabled: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/databases/delete-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | await databases.DeleteAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/databases/get-collection.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Collection result = await databases.GetCollection( 13 | databaseId: "", 14 | collectionId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/databases/get-index.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Index result = await databases.GetIndex( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Database result = await databases.Update( 13 | databaseId: "", 14 | name: "", 15 | enabled: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/functions/get-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Deployment result = await functions.GetDeployment( 13 | functionId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/functions/get-execution.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Execution result = await functions.GetExecution( 13 | functionId: "", 14 | executionId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/health/get-failed-jobs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | Health health = new Health(client); 12 | 13 | HealthQueue result = await health.GetFailedJobs( 14 | name: Name.V1Database, 15 | threshold: 0 // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/users/list-logs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | LogList result = await users.ListLogs( 13 | userId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/account/list-identities.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | IdentityList result = await account.ListIdentities( 13 | queries: new List(), // optional 14 | total: false // optional 15 | ); -------------------------------------------------------------------------------- /docs/examples/databases/get-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | result = await databases.GetAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/create-topic.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Topic result = await messaging.CreateTopic( 13 | topicId: "", 14 | name: "", 15 | subscribe: ["any"] // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/sites/list-logs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | ExecutionList result = await sites.ListLogs( 13 | siteId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/sites/list.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | SiteList result = await sites.List( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/users/list.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | UserList result = await users.List( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/SmtpEncryption.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class SmtpEncryption : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public SmtpEncryption(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static SmtpEncryption None => new SmtpEncryption("none"); 15 | public static SmtpEncryption Ssl => new SmtpEncryption("ssl"); 16 | public static SmtpEncryption Tls => new SmtpEncryption("tls"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/examples/account/create-email-password-session.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Session result = await account.CreateEmailPasswordSession( 13 | email: "email@example.com", 14 | password: "password" 15 | ); -------------------------------------------------------------------------------- /docs/examples/storage/get-file-view.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Storage storage = new Storage(client); 11 | 12 | byte[] result = await storage.GetFileView( 13 | bucketId: "", 14 | fileId: "", 15 | token: "" // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/teams/list.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | TeamList result = await teams.List( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/tokens/create-file-token.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Tokens tokens = new Tokens(client); 11 | 12 | ResourceToken result = await tokens.CreateFileToken( 13 | bucketId: "", 14 | fileId: "", 15 | expire: "" // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/users/list-targets.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | TargetList result = await users.ListTargets( 13 | userId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/functions/update-deployment-status.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Deployment result = await functions.UpdateDeploymentStatus( 13 | functionId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/sites/create-variable.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Variable result = await sites.CreateVariable( 13 | siteId: "", 14 | key: "", 15 | value: "", 16 | secret: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-email-token.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.CreateEmailToken( 13 | userId: "", 14 | email: "email@example.com", 15 | phrase: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/account/create.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.Create( 13 | userId: "", 14 | email: "email@example.com", 15 | password: "", 16 | name: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-mfa-authenticator.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetSession(""); // The user session to authenticate with 10 | 11 | Account account = new Account(client); 12 | 13 | User result = await account.UpdateMFAAuthenticator( 14 | type: AuthenticatorType.Totp, 15 | otp: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/avatars/get-qr.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Avatars avatars = new Avatars(client); 11 | 12 | byte[] result = await avatars.GetQR( 13 | text: "", 14 | size: 1, // optional 15 | margin: 0, // optional 16 | download: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/functions/update-function-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Function result = await functions.UpdateFunctionDeployment( 13 | functionId: "", 14 | deploymentId: "" 15 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/update-topic.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Topic result = await messaging.UpdateTopic( 13 | topicId: "", 14 | name: "", // optional 15 | subscribe: ["any"] // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/storage/get-file-download.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Storage storage = new Storage(client); 11 | 12 | byte[] result = await storage.GetFileDownload( 13 | bucketId: "", 14 | fileId: "", 15 | token: "" // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/list.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | DatabaseList result = await tablesDB.List( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/teams/update-membership.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | Membership result = await teams.UpdateMembership( 13 | teamId: "", 14 | membershipId: "", 15 | roles: new List() 16 | ); -------------------------------------------------------------------------------- /docs/examples/databases/list.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | DatabaseList result = await databases.List( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/functions/list.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | FunctionList result = await functions.List( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/account/update-prefs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | User result = await account.UpdatePrefs( 13 | prefs: new { 14 | language = "en", 15 | timezone = "UTC", 16 | darkTheme = true 17 | } 18 | ); -------------------------------------------------------------------------------- /docs/examples/storage/list-buckets.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Storage storage = new Storage(client); 11 | 12 | BucketList result = await storage.ListBuckets( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-md-5-user.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.CreateMD5User( 13 | userId: "", 14 | email: "email@example.com", 15 | password: "password", 16 | name: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/users/list-identities.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | IdentityList result = await users.ListIdentities( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/RelationMutate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class RelationMutate : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public RelationMutate(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static RelationMutate Cascade => new RelationMutate("cascade"); 15 | public static RelationMutate Restrict => new RelationMutate("restrict"); 16 | public static RelationMutate SetNull => new RelationMutate("setNull"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/examples/messaging/create-subscriber.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetJWT(""); // Your secret JSON Web Token 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Subscriber result = await messaging.CreateSubscriber( 13 | topicId: "", 14 | subscriberId: "", 15 | targetId: "" 16 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/list-targets.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | TargetList result = await messaging.ListTargets( 13 | messageId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/list-topic-logs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | LogList result = await messaging.ListTopicLogs( 13 | topicId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/list-topics.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | TopicList result = await messaging.ListTopics( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-argon-2-user.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.CreateArgon2User( 13 | userId: "", 14 | email: "email@example.com", 15 | password: "password", 16 | name: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-bcrypt-user.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.CreateBcryptUser( 13 | userId: "", 14 | email: "email@example.com", 15 | password: "password", 16 | name: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-ph-pass-user.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.CreatePHPassUser( 13 | userId: "", 14 | email: "email@example.com", 15 | password: "password", 16 | name: "" // optional 17 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/VCSReferenceType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class VCSReferenceType : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public VCSReferenceType(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static VCSReferenceType Branch => new VCSReferenceType("branch"); 15 | public static VCSReferenceType Commit => new VCSReferenceType("commit"); 16 | public static VCSReferenceType Tag => new VCSReferenceType("tag"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/examples/functions/create-variable.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Variable result = await functions.CreateVariable( 13 | functionId: "", 14 | key: "", 15 | value: "", 16 | secret: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/list-message-logs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | LogList result = await messaging.ListMessageLogs( 13 | messageId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-transaction.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Transaction result = await tablesDB.UpdateTransaction( 13 | transactionId: "", 14 | commit: false, // optional 15 | rollback: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/tokens/list.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Tokens tokens = new Tokens(client); 11 | 12 | ResourceTokenList result = await tokens.List( 13 | bucketId: "", 14 | fileId: "", 15 | queries: new List(), // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/ExecutionTrigger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class ExecutionTrigger : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public ExecutionTrigger(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static ExecutionTrigger Http => new ExecutionTrigger("http"); 15 | public static ExecutionTrigger Schedule => new ExecutionTrigger("schedule"); 16 | public static ExecutionTrigger Event => new ExecutionTrigger("event"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/examples/avatars/get-initials.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Avatars avatars = new Avatars(client); 11 | 12 | byte[] result = await avatars.GetInitials( 13 | name: "", // optional 14 | width: 0, // optional 15 | height: 0, // optional 16 | background: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-transaction.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Transaction result = await databases.UpdateTransaction( 13 | transactionId: "", 14 | commit: false, // optional 15 | rollback: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/list-messages.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | MessageList result = await messaging.ListMessages( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/list-provider-logs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | LogList result = await messaging.ListProviderLogs( 13 | providerId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/list-providers.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | ProviderList result = await messaging.ListProviders( 13 | queries: new List(), // optional 14 | search: "", // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/delete-row.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | await tablesDB.DeleteRow( 13 | databaseId: "", 14 | tableId: "", 15 | rowId: "", 16 | transactionId: "" // optional 17 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/IndexType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class IndexType : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public IndexType(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static IndexType Key => new IndexType("key"); 15 | public static IndexType Fulltext => new IndexType("fulltext"); 16 | public static IndexType Unique => new IndexType("unique"); 17 | public static IndexType Spatial => new IndexType("spatial"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /docs/examples/avatars/get-flag.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetSession(""); // The user session to authenticate with 10 | 11 | Avatars avatars = new Avatars(client); 12 | 13 | byte[] result = await avatars.GetFlag( 14 | code: Flag.Afghanistan, 15 | width: 0, // optional 16 | height: 0, // optional 17 | quality: -1 // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/functions/list-executions.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Functions functions = new Functions(client); 11 | 12 | ExecutionList result = await functions.ListExecutions( 13 | functionId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/list-subscriber-logs.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | LogList result = await messaging.ListSubscriberLogs( 13 | subscriberId: "", 14 | queries: new List(), // optional 15 | total: false // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/teams/update-membership-status.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | Membership result = await teams.UpdateMembershipStatus( 13 | teamId: "", 14 | membershipId: "", 15 | userId: "", 16 | secret: "" 17 | ); -------------------------------------------------------------------------------- /docs/examples/sites/list-deployments.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | DeploymentList result = await sites.ListDeployments( 13 | siteId: "", 14 | queries: new List(), // optional 15 | search: "", // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/users/list-memberships.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | MembershipList result = await users.ListMemberships( 13 | userId: "", 14 | queries: new List(), // optional 15 | search: "", // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/avatars/get-browser.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetSession(""); // The user session to authenticate with 10 | 11 | Avatars avatars = new Avatars(client); 12 | 13 | byte[] result = await avatars.GetBrowser( 14 | code: Browser.AvantBrowser, 15 | width: 0, // optional 16 | height: 0, // optional 17 | quality: -1 // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/functions/create-duplicate-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Deployment result = await functions.CreateDuplicateDeployment( 13 | functionId: "", 14 | deploymentId: "", 15 | buildId: "" // optional 16 | ); -------------------------------------------------------------------------------- /docs/examples/sites/update-variable.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Sites sites = new Sites(client); 11 | 12 | Variable result = await sites.UpdateVariable( 13 | siteId: "", 14 | variableId: "", 15 | key: "", 16 | value: "", // optional 17 | secret: false // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/storage/list-files.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Storage storage = new Storage(client); 11 | 12 | FileList result = await storage.ListFiles( 13 | bucketId: "", 14 | queries: new List(), // optional 15 | search: "", // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-rows.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | RowList result = await tablesDB.CreateRows( 13 | databaseId: "", 14 | tableId: "", 15 | rows: new List(), 16 | transactionId: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/delete-rows.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | await tablesDB.DeleteRows( 13 | databaseId: "", 14 | tableId: "", 15 | queries: new List(), // optional 16 | transactionId: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/list-columns.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnList result = await tablesDB.ListColumns( 13 | databaseId: "", 14 | tableId: "", 15 | queries: new List(), // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/upsert-rows.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | RowList result = await tablesDB.UpsertRows( 13 | databaseId: "", 14 | tableId: "", 15 | rows: new List(), 16 | transactionId: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/sites/get-deployment-download.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | Sites sites = new Sites(client); 12 | 13 | byte[] result = await sites.GetDeploymentDownload( 14 | siteId: "", 15 | deploymentId: "", 16 | type: DeploymentDownloadType.Source // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/list-indexes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnIndexList result = await tablesDB.ListIndexes( 13 | databaseId: "", 14 | tableId: "", 15 | queries: new List(), // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/list-tables.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | TableList result = await tablesDB.ListTables( 13 | databaseId: "", 14 | queries: new List(), // optional 15 | search: "", // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/teams/list-memberships.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Teams teams = new Teams(client); 11 | 12 | MembershipList result = await teams.ListMemberships( 13 | teamId: "", 14 | queries: new List(), // optional 15 | search: "", // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/users/create.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | User result = await users.Create( 13 | userId: "", 14 | email: "email@example.com", // optional 15 | phone: "+12065550100", // optional 16 | password: "", // optional 17 | name: "" // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-magic-url-token.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Account account = new Account(client); 11 | 12 | Token result = await account.CreateMagicURLToken( 13 | userId: "", 14 | email: "email@example.com", 15 | url: "https://example.com", // optional 16 | phrase: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/create-fcm-provider.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Provider result = await messaging.CreateFCMProvider( 13 | providerId: "", 14 | name: "", 15 | serviceAccountJSON: [object], // optional 16 | enabled: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-point-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnPoint result = await tablesDB.CreatePointColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: [1, 2] // optional 18 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/MessagingProviderType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class MessagingProviderType : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public MessagingProviderType(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static MessagingProviderType Email => new MessagingProviderType("email"); 15 | public static MessagingProviderType Sms => new MessagingProviderType("sms"); 16 | public static MessagingProviderType Push => new MessagingProviderType("push"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/examples/avatars/get-credit-card.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetSession(""); // The user session to authenticate with 10 | 11 | Avatars avatars = new Avatars(client); 12 | 13 | byte[] result = await avatars.GetCreditCard( 14 | code: CreditCard.AmericanExpress, 15 | width: 0, // optional 16 | height: 0, // optional 17 | quality: -1 // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/databases/delete-document.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Databases databases = new Databases(client); 11 | 12 | await databases.DeleteDocument( 13 | databaseId: "", 14 | collectionId: "", 15 | documentId: "", 16 | transactionId: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/databases/list-indexes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | IndexList result = await databases.ListIndexes( 13 | databaseId: "", 14 | collectionId: "", 15 | queries: new List(), // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/sites/create-vcs-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | Sites sites = new Sites(client); 12 | 13 | Deployment result = await sites.CreateVcsDeployment( 14 | siteId: "", 15 | type: VCSReferenceType.Branch, 16 | reference: "", 17 | activate: false // optional 18 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/TemplateReferenceType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class TemplateReferenceType : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public TemplateReferenceType(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static TemplateReferenceType Branch => new TemplateReferenceType("branch"); 15 | public static TemplateReferenceType Commit => new TemplateReferenceType("commit"); 16 | public static TemplateReferenceType Tag => new TemplateReferenceType("tag"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/examples/messaging/list-subscribers.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | SubscriberList result = await messaging.ListSubscribers( 13 | topicId: "", 14 | queries: new List(), // optional 15 | search: "", // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-ip-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnIp result = await tablesDB.UpdateIpColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "", 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/delete-documents.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | await databases.DeleteDocuments( 13 | databaseId: "", 14 | collectionId: "", 15 | queries: new List(), // optional 16 | transactionId: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/databases/list-attributes.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeList result = await databases.ListAttributes( 13 | databaseId: "", 14 | collectionId: "", 15 | queries: new List(), // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/databases/list-collections.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | CollectionList result = await databases.ListCollections( 13 | databaseId: "", 14 | queries: new List(), // optional 15 | search: "", // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/functions/list-deployments.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | DeploymentList result = await functions.ListDeployments( 13 | functionId: "", 14 | queries: new List(), // optional 15 | search: "", // optional 16 | total: false // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/functions/update-variable.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Variable result = await functions.UpdateVariable( 13 | functionId: "", 14 | variableId: "", 15 | key: "", 16 | value: "", // optional 17 | secret: false // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/update-fcm-provider.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Provider result = await messaging.UpdateFCMProvider( 13 | providerId: "", 14 | name: "", // optional 15 | enabled: false, // optional 16 | serviceAccountJSON: [object] // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/storage/update-file.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Storage storage = new Storage(client); 11 | 12 | File result = await storage.UpdateFile( 13 | bucketId: "", 14 | fileId: "", 15 | name: "", // optional 16 | permissions: new List { Permission.Read(Role.Any()) } // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-line-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnLine result = await tablesDB.CreateLineColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: [[1, 2], [3, 4], [5, 6]] // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/users/update-target.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Users users = new Users(client); 11 | 12 | Target result = await users.UpdateTarget( 13 | userId: "", 14 | targetId: "", 15 | identifier: "", // optional 16 | providerId: "", // optional 17 | name: "" // optional 18 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/HealthAntivirusStatus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class HealthAntivirusStatus : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public HealthAntivirusStatus(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static HealthAntivirusStatus Disabled => new HealthAntivirusStatus("disabled"); 15 | public static HealthAntivirusStatus Offline => new HealthAntivirusStatus("offline"); 16 | public static HealthAntivirusStatus Online => new HealthAntivirusStatus("online"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /docs/examples/functions/get-deployment-download.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | Functions functions = new Functions(client); 12 | 13 | byte[] result = await functions.GetDeploymentDownload( 14 | functionId: "", 15 | deploymentId: "", 16 | type: DeploymentDownloadType.Source // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-ip-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnIp result = await tablesDB.CreateIpColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "", // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-documents.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | DocumentList result = await databases.CreateDocuments( 13 | databaseId: "", 14 | collectionId: "", 15 | documents: new List(), 16 | transactionId: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-point-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributePoint result = await databases.CreatePointAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: [1, 2] // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/databases/upsert-documents.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | DocumentList result = await databases.UpsertDocuments( 13 | databaseId: "", 14 | collectionId: "", 15 | documents: new List(), 16 | transactionId: "" // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-boolean-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnBoolean result = await tablesDB.UpdateBooleanColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: false, 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-datetime-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnDatetime result = await tablesDB.UpdateDatetimeColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "", 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-ip-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeIp result = await databases.UpdateIpAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "", 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/get-row.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Row result = await tablesDB.GetRow( 13 | databaseId: "", 14 | tableId: "", 15 | rowId: "", 16 | queries: new List(), // optional 17 | transactionId: "" // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-url-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnUrl result = await tablesDB.UpdateUrlColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "https://example.com", 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/functions/create-vcs-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | Functions functions = new Functions(client); 12 | 13 | Deployment result = await functions.CreateVcsDeployment( 14 | functionId: "", 15 | type: VCSReferenceType.Branch, 16 | reference: "", 17 | activate: false // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-polygon-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnPolygon result = await tablesDB.CreatePolygonColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-email-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnEmail result = await tablesDB.UpdateEmailColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "email@example.com", 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-point-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnPoint result = await tablesDB.UpdatePointColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: [1, 2], // optional 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-sha-user.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | Users users = new Users(client); 12 | 13 | User result = await users.CreateSHAUser( 14 | userId: "", 15 | email: "email@example.com", 16 | password: "password", 17 | passwordVersion: PasswordHash.Sha1, // optional 18 | name: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-line-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeLine result = await databases.CreateLineAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: [[1, 2], [3, 4], [5, 6]] // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/storage/create-file.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Storage storage = new Storage(client); 11 | 12 | File result = await storage.CreateFile( 13 | bucketId: "", 14 | fileId: "", 15 | file: InputFile.FromPath("./path-to-files/image.jpg"), 16 | permissions: new List { Permission.Read(Role.Any()) } // optional 17 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-boolean-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnBoolean result = await tablesDB.CreateBooleanColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: false, // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-datetime-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnDatetime result = await tablesDB.CreateDatetimeColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "", // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-rows.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | RowList result = await tablesDB.UpdateRows( 13 | databaseId: "", 14 | tableId: "", 15 | data: [object], // optional 16 | queries: new List(), // optional 17 | transactionId: "" // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-ip-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeIp result = await databases.CreateIpAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "", // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-url-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnUrl result = await tablesDB.CreateUrlColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "https://example.com", // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/list-rows.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | RowList result = await tablesDB.ListRows( 13 | databaseId: "", 14 | tableId: "", 15 | queries: new List(), // optional 16 | transactionId: "", // optional 17 | total: false // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-boolean-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeBoolean result = await databases.UpdateBooleanAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: false, 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-datetime-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeDatetime result = await databases.UpdateDatetimeAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "", 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-email-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnEmail result = await tablesDB.CreateEmailColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "email@example.com", // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-line-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnLine result = await tablesDB.UpdateLineColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: [[1, 2], [3, 4], [5, 6]], // optional 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/account/create-o-auth-2-token.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetSession(""); // The user session to authenticate with 10 | 11 | Account account = new Account(client); 12 | 13 | await account.CreateOAuth2Token( 14 | provider: OAuthProvider.Amazon, 15 | success: "https://example.com", // optional 16 | failure: "https://example.com", // optional 17 | scopes: new List() // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-point-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributePoint result = await databases.UpdatePointAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: [1, 2], // optional 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-url-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeUrl result = await databases.UpdateUrlAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "https://example.com", 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-polygon-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributePolygon result = await databases.CreatePolygonAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-email-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeEmail result = await databases.UpdateEmailAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "email@example.com", 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-enum-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnEnum result = await tablesDB.UpdateEnumColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | elements: new List(), 17 | required: false, 18 | default: "", 19 | newKey: "" // optional 20 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-string-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnString result = await tablesDB.UpdateStringColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: "", 18 | size: 1, // optional 19 | newKey: "" // optional 20 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-boolean-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeBoolean result = await databases.CreateBooleanAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: false, // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-datetime-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeDatetime result = await databases.CreateDatetimeAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "", // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-polygon-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnPolygon result = await tablesDB.UpdatePolygonColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-email-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeEmail result = await databases.CreateEmailAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "email@example.com", // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/create-url-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeUrl result = await databases.CreateUrlAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "https://example.com", // optional 18 | array: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/get-document.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Databases databases = new Databases(client); 11 | 12 | Document result = await databases.GetDocument( 13 | databaseId: "", 14 | collectionId: "", 15 | documentId: "", 16 | queries: new List(), // optional 17 | transactionId: "" // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-documents.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | DocumentList result = await databases.UpdateDocuments( 13 | databaseId: "", 14 | collectionId: "", 15 | data: [object], // optional 16 | queries: new List(), // optional 17 | transactionId: "" // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-line-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeLine result = await databases.UpdateLineAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: [[1, 2], [3, 4], [5, 6]], // optional 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/functions/create-deployment.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Functions functions = new Functions(client); 11 | 12 | Deployment result = await functions.CreateDeployment( 13 | functionId: "", 14 | code: InputFile.FromPath("./path-to-files/image.jpg"), 15 | activate: false, 16 | entrypoint: "", // optional 17 | commands: "" // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-relationship-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | TablesDB tablesDB = new TablesDB(client); 12 | 13 | ColumnRelationship result = await tablesDB.UpdateRelationshipColumn( 14 | databaseId: "", 15 | tableId: "", 16 | key: "", 17 | onDelete: RelationMutate.Cascade, // optional 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/databases/list-documents.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | Databases databases = new Databases(client); 11 | 12 | DocumentList result = await databases.ListDocuments( 13 | databaseId: "", 14 | collectionId: "", 15 | queries: new List(), // optional 16 | transactionId: "", // optional 17 | total: false // optional 18 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-enum-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnEnum result = await tablesDB.CreateEnumColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | elements: new List(), 17 | required: false, 18 | default: "", // optional 19 | array: false // optional 20 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-float-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnFloat result = await tablesDB.UpdateFloatColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: 0, 18 | min: 0, // optional 19 | max: 0, // optional 20 | newKey: "" // optional 21 | ); -------------------------------------------------------------------------------- /Appwrite/Enums/RelationshipType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Appwrite.Enums 4 | { 5 | public class RelationshipType : IEnum 6 | { 7 | public string Value { get; private set; } 8 | 9 | public RelationshipType(string value) 10 | { 11 | Value = value; 12 | } 13 | 14 | public static RelationshipType OneToOne => new RelationshipType("oneToOne"); 15 | public static RelationshipType ManyToOne => new RelationshipType("manyToOne"); 16 | public static RelationshipType ManyToMany => new RelationshipType("manyToMany"); 17 | public static RelationshipType OneToMany => new RelationshipType("oneToMany"); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-integer-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnInteger result = await tablesDB.UpdateIntegerColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | default: 0, 18 | min: 0, // optional 19 | max: 0, // optional 20 | newKey: "" // optional 21 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-enum-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeEnum result = await databases.UpdateEnumAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | elements: new List(), 17 | required: false, 18 | default: "", 19 | newKey: "" // optional 20 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-string-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributeString result = await databases.UpdateStringAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: "", 18 | size: 1, // optional 19 | newKey: "" // optional 20 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/decrement-row-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Row result = await tablesDB.DecrementRowColumn( 13 | databaseId: "", 14 | tableId: "", 15 | rowId: "", 16 | column: "", 17 | value: 0, // optional 18 | min: 0, // optional 19 | transactionId: "" // optional 20 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/increment-row-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetSession(""); // The user session to authenticate with 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Row result = await tablesDB.IncrementRowColumn( 13 | databaseId: "", 14 | tableId: "", 15 | rowId: "", 16 | column: "", 17 | value: 0, // optional 18 | max: 0, // optional 19 | transactionId: "" // optional 20 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/update-table.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | Table result = await tablesDB.UpdateTable( 13 | databaseId: "", 14 | tableId: "", 15 | name: "", 16 | permissions: new List { Permission.Read(Role.Any()) }, // optional 17 | rowSecurity: false, // optional 18 | enabled: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/users/create-target.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Enums; 3 | using Appwrite.Models; 4 | using Appwrite.Services; 5 | 6 | Client client = new Client() 7 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 8 | .SetProject("") // Your project ID 9 | .SetKey(""); // Your secret API key 10 | 11 | Users users = new Users(client); 12 | 13 | Target result = await users.CreateTarget( 14 | userId: "", 15 | targetId: "", 16 | providerType: MessagingProviderType.Email, 17 | identifier: "", 18 | providerId: "", // optional 19 | name: "" // optional 20 | ); -------------------------------------------------------------------------------- /docs/examples/databases/update-polygon-attribute.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Databases databases = new Databases(client); 11 | 12 | AttributePolygon result = await databases.UpdatePolygonAttribute( 13 | databaseId: "", 14 | collectionId: "", 15 | key: "", 16 | required: false, 17 | default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional 18 | newKey: "" // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/create-textmagic-provider.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Provider result = await messaging.CreateTextmagicProvider( 13 | providerId: "", 14 | name: "", 15 | from: "+12065550100", // optional 16 | username: "", // optional 17 | apiKey: "", // optional 18 | enabled: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/messaging/create-vonage-provider.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | Messaging messaging = new Messaging(client); 11 | 12 | Provider result = await messaging.CreateVonageProvider( 13 | providerId: "", 14 | name: "", 15 | from: "+12065550100", // optional 16 | apiKey: "", // optional 17 | apiSecret: "", // optional 18 | enabled: false // optional 19 | ); -------------------------------------------------------------------------------- /docs/examples/tablesdb/create-float-column.md: -------------------------------------------------------------------------------- 1 | using Appwrite; 2 | using Appwrite.Models; 3 | using Appwrite.Services; 4 | 5 | Client client = new Client() 6 | .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint 7 | .SetProject("") // Your project ID 8 | .SetKey(""); // Your secret API key 9 | 10 | TablesDB tablesDB = new TablesDB(client); 11 | 12 | ColumnFloat result = await tablesDB.CreateFloatColumn( 13 | databaseId: "", 14 | tableId: "", 15 | key: "", 16 | required: false, 17 | min: 0, // optional 18 | max: 0, // optional 19 | default: 0, // optional 20 | array: false // optional 21 | ); --------------------------------------------------------------------------------