All Projects โ†’ appwrite โ†’ sdk-for-dotnet

appwrite / sdk-for-dotnet

Licence: BSD-3-Clause license
[READ-ONLY] Official Appwrite .NET SDK

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to sdk-for-dotnet

vscode-appwrite
Appwrite extension for Visual Studio Code
Stars: โœญ 30 (-18.92%)
Mutual labels:  appwrite
sdk-for-ruby
[READ-ONLY] Official Appwrite Ruby SDK ๐Ÿ’Ž ๐Ÿ”ด
Stars: โœญ 45 (+21.62%)
Mutual labels:  appwrite
playground-for-python
Simple examples that help you get started with Appwrite + Python (=โค๏ธ)
Stars: โœญ 36 (-2.7%)
Mutual labels:  appwrite
playground-for-node
Simple examples that help you get started with Appwrite + Node.js (=โค๏ธ)
Stars: โœญ 39 (+5.41%)
Mutual labels:  appwrite
appwrite-todo-with-nextjs
About A basic demo example for integrating between Appwrite & Next JS ๐Ÿ’™
Stars: โœญ 14 (-62.16%)
Mutual labels:  appwrite
demo-todo-with-react
A basic demo example for integrating between Appwrite & React JS ๐Ÿ’™
Stars: โœญ 88 (+137.84%)
Mutual labels:  appwrite
playground-for-php
Simple examples that help you get started with Appwrite + PHP (=โค๏ธ)
Stars: โœญ 24 (-35.14%)
Mutual labels:  appwrite
sdk-for-kotlin
[READ-ONLY] Official Appwrite Kotlin SDK ๐Ÿ’™๐Ÿงก
Stars: โœญ 41 (+10.81%)
Mutual labels:  appwrite
sdk-for-svelte
Appwrite SDK for Svelte ๐Ÿงก โš ๏ธ Warning - this SDK was designed to support Appwrite 0.9 and is not compatible with the latest Appwrite versions. We are planing to refactor it as part of the SDK Generator for better support and maintenance.
Stars: โœญ 69 (+86.49%)
Mutual labels:  appwrite
playground-for-android
Simple examples that help you get started with Appwrite + Android (=โค๏ธ)
Stars: โœญ 48 (+29.73%)
Mutual labels:  appwrite
demos-for-vue
Demos and tutorials for getting started with Appwrite + Vue.js
Stars: โœญ 37 (+0%)
Mutual labels:  appwrite
demos-for-svelte
Demos and tutorials for getting started with Appwrite + Svelte
Stars: โœญ 27 (-27.03%)
Mutual labels:  appwrite
sdk-for-php
[READ-ONLY] Official Appwrite PHP SDK ๐Ÿ˜
Stars: โœญ 109 (+194.59%)
Mutual labels:  appwrite
sdk-for-android
[READ-ONLY] Official Appwrite Android SDK ๐Ÿ’š ๐Ÿค–
Stars: โœญ 62 (+67.57%)
Mutual labels:  appwrite
FoodMagic
An AR App for Restaurants and Food Delivery โœจโœจ
Stars: โœญ 53 (+43.24%)
Mutual labels:  appwrite
php-clamav
ClamAV network and pipe client for PHP
Stars: โœญ 45 (+21.62%)
Mutual labels:  appwrite
Appwrite
Appwrite is a secure end-to-end backend server for Web, Mobile, and Flutter developers that is packaged as a set of Docker containers for easy deployment ๐Ÿš€
Stars: โœญ 14,592 (+39337.84%)
Mutual labels:  appwrite
sdk-for-dart
[READ-ONLY] Official Appwrite Dart SDK ๐Ÿ’™
Stars: โœญ 79 (+113.51%)
Mutual labels:  appwrite

Appwrite .NET SDK

License Version Build Status Twitter Account Discord

This SDK is compatible with Appwrite server version 0.9.x. For older versions, please check previous releases.

Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the .NET SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to https://appwrite.io/docs

Installation

.NET

Add this reference to your project's .csproj file:

<PackageReference Include="Appwrite" Version="0.3.0" />

You can install packages from the command line:

# Package Manager
Install-Package Appwrite -Version 0.3.0

# or .NET CLI
dotnet add package Appwrite --version 0.3.0

Getting Started

Initialize & Make API Request

Once you add the dependencies, its extremely easy to get started with the SDK; All you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:

using Appwrite;

static async Task Main(string[] args)
{
  var client = Client();

  client
    .setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
    .setProject('5ff3379a01d25') // Your project ID
    .setKey('cd868c7af8bdc893b4...93b7535db89')
    .setSelfSigned() // Use only on dev mode with a self-signed SSL cert
  ;

  var users = Users(client);

  try {
    var request = await users.create('[email protected]', 'password', 'name');
    var response = await request.Content.ReadAsStringAsync();
    Console.WriteLine(response);
  } catch (AppwriteException e) {
    Console.WriteLine(e.Message);
  }
}

Error Handling

The Appwrite .NET SDK raises AppwriteException object with message, code and response properties. You can handle any errors by catching AppwriteException and present the message to the user or handle it yourself based on the provided error information. Below is an example.

var users = Users(client);

try {
  var request = await users.create('[email protected]', 'password', 'name');
  var response = await request.Content.ReadAsStringAsync();
  Console.WriteLine(response);
} catch (AppwriteException e) {
  Console.WriteLine(e.Message);
}

Learn more

You can use following resources to learn more and get help

Contribution

This library is auto-generated by Appwrite custom SDK Generator. To learn more about how you can help us improve this SDK, please check the contribution guide before sending a pull-request.

License

Please see the BSD-3-Clause license file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].