Appwrite 0.5.0
See the version list below for details.
dotnet add package Appwrite --version 0.5.0
NuGet\Install-Package Appwrite -Version 0.5.0
<PackageReference Include="Appwrite" Version="0.5.0" />
paket add Appwrite --version 0.5.0
#r "nuget: Appwrite, 0.5.0"
// Install Appwrite as a Cake Addin
#addin nuget:?package=Appwrite&version=0.5.0
// Install Appwrite as a Cake Tool
#tool nuget:?package=Appwrite&version=0.5.0
Appwrite .NET SDK
This SDK is compatible with Appwrite server version 1.4.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.5.0" />
You can install packages from the command line:
# Package Manager
Install-Package Appwrite -Version 0.5.0
# or .NET CLI
dotnet add package Appwrite --version 0.5.0
Getting Started
Initialize & Make API Request
Once you have installed the package, it is extremely easy to get started with the SDK; all you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndpoint("http://cloud.appwrite.io/v1")
.SetProject("5ff3379a01d25") // Your project ID
.SetKey("cd868db89"); // Your secret API key
var users = new Users(client);
var user = await users.Create(
userId: ID.Unique(),
email: "email@example.com",
password: "password",
name: "name");
Console.WriteLine(user.ToMap());
Error Handling
The Appwrite .NET SDK raises an AppwriteException
object with message
, code
, and response
properties. You can handle any errors by catching AppwriteException
and presenting the message
to the user or handling it yourself based on the provided error information. Below is an example.
var users = new Users(client);
try
{
var user = await users.Create(
userId: ID.Unique(),
email: "email@example.com",
password: "password",
name: "name");
}
catch (AppwriteException e)
{
Console.WriteLine(e.Message);
}
Learn more
You can use the following resources to learn more and get help
- 🚀 Getting Started Tutorial
- 📜 Appwrite Docs
- 💬 Discord Community
- 🚂 Appwrite .NET Playground
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.