commit
181741d7a2
|
@ -357,12 +357,12 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'dotnet',
|
'key' => 'dotnet',
|
||||||
'name' => '.NET',
|
'name' => '.NET',
|
||||||
'version' => '2.0.0',
|
'version' => '0.4.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
||||||
'package' => 'https://www.nuget.org/packages/Appwrite',
|
'package' => 'https://www.nuget.org/packages/Appwrite',
|
||||||
'enabled' => false,
|
'enabled' => true,
|
||||||
'beta' => true,
|
'beta' => true,
|
||||||
'dev' => true,
|
'dev' => false,
|
||||||
'hidden' => false,
|
'hidden' => false,
|
||||||
'family' => APP_PLATFORM_SERVER,
|
'family' => APP_PLATFORM_SERVER,
|
||||||
'prism' => 'csharp',
|
'prism' => 'csharp',
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"appwrite/sdk-generator": "0.32.*",
|
"appwrite/sdk-generator": "0.33.*",
|
||||||
"ext-fileinfo": "*",
|
"ext-fileinfo": "*",
|
||||||
"phpunit/phpunit": "9.5.20",
|
"phpunit/phpunit": "9.5.20",
|
||||||
"squizlabs/php_codesniffer": "^3.6",
|
"squizlabs/php_codesniffer": "^3.6",
|
||||||
|
|
14
composer.lock
generated
14
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "169ab6e7dd540e45309d3c5093506fad",
|
"content-hash": "3eadbfe5543aafdf8682ea0465159e3c",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adhocore/jwt",
|
"name": "adhocore/jwt",
|
||||||
|
@ -3034,16 +3034,16 @@
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "appwrite/sdk-generator",
|
"name": "appwrite/sdk-generator",
|
||||||
"version": "0.32.3",
|
"version": "0.33.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||||
"reference": "4057e14a61335070034b1cbdce9e39bef94d997d"
|
"reference": "551cdae31a68b19874f10ca321b1d08cfa06a13f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/4057e14a61335070034b1cbdce9e39bef94d997d",
|
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/551cdae31a68b19874f10ca321b1d08cfa06a13f",
|
||||||
"reference": "4057e14a61335070034b1cbdce9e39bef94d997d",
|
"reference": "551cdae31a68b19874f10ca321b1d08cfa06a13f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -3079,9 +3079,9 @@
|
||||||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
||||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.32.3"
|
"source": "https://github.com/appwrite/sdk-generator/tree/0.33.1"
|
||||||
},
|
},
|
||||||
"time": "2023-04-27T19:22:05+00:00"
|
"time": "2023-05-16T04:37:34+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/deprecations",
|
"name": "doctrine/deprecations",
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Token result = await account.CreatePhoneVerification();
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Token result = await account.CreateRecovery(
|
||||||
|
email: "email@example.com",
|
||||||
|
url: "https://example.com");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Token result = await account.CreateVerification(
|
||||||
|
url: "https://example.com");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
await account.DeleteSession(
|
||||||
|
sessionId: "[SESSION_ID]");
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
await account.DeleteSessions();
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Preferences result = await account.GetPrefs();
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Session result = await account.GetSession(
|
||||||
|
sessionId: "[SESSION_ID]");
|
11
docs/examples/1.3.x/server-dotnet/examples/account/get.md
Normal file
11
docs/examples/1.3.x/server-dotnet/examples/account/get.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
User result = await account.Get();
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
LogList result = await account.ListLogs();
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
SessionList result = await account.ListSessions();
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
User result = await account.UpdateEmail(
|
||||||
|
email: "email@example.com",
|
||||||
|
password: "password");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
User result = await account.UpdateName(
|
||||||
|
name: "[NAME]");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
User result = await account.UpdatePassword(
|
||||||
|
password: "");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Token result = await account.UpdatePhoneVerification(
|
||||||
|
userId: "[USER_ID]",
|
||||||
|
secret: "[SECRET]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
User result = await account.UpdatePhone(
|
||||||
|
phone: "+12065550100",
|
||||||
|
password: "password");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
User result = await account.UpdatePrefs(
|
||||||
|
prefs: [object]);
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Token result = await account.UpdateRecovery(
|
||||||
|
userId: "[USER_ID]",
|
||||||
|
secret: "[SECRET]",
|
||||||
|
password: "password",
|
||||||
|
passwordAgain: "password");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Session result = await account.UpdateSession(
|
||||||
|
sessionId: "[SESSION_ID]");
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
User result = await account.UpdateStatus();
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
|
||||||
|
|
||||||
|
var account = new Account(client);
|
||||||
|
|
||||||
|
Token result = await account.UpdateVerification(
|
||||||
|
userId: "[USER_ID]",
|
||||||
|
secret: "[SECRET]");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var avatars = new Avatars(client);
|
||||||
|
|
||||||
|
byte[] result = await avatars.GetBrowser(
|
||||||
|
code: "aa");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var avatars = new Avatars(client);
|
||||||
|
|
||||||
|
byte[] result = await avatars.GetCreditCard(
|
||||||
|
code: "amex");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var avatars = new Avatars(client);
|
||||||
|
|
||||||
|
byte[] result = await avatars.GetFavicon(
|
||||||
|
url: "https://example.com");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var avatars = new Avatars(client);
|
||||||
|
|
||||||
|
byte[] result = await avatars.GetFlag(
|
||||||
|
code: "af");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var avatars = new Avatars(client);
|
||||||
|
|
||||||
|
byte[] result = await avatars.GetImage(
|
||||||
|
url: "https://example.com");
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var avatars = new Avatars(client);
|
||||||
|
|
||||||
|
byte[] result = await avatars.GetInitials();
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var avatars = new Avatars(client);
|
||||||
|
|
||||||
|
byte[] result = await avatars.GetQR(
|
||||||
|
text: "[TEXT]");
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeBoolean result = await databases.CreateBooleanAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false);
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Collection result = await databases.CreateCollection(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
name: "[NAME]");
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeDatetime result = await databases.CreateDatetimeAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false);
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Document result = await databases.CreateDocument(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
documentId: "[DOCUMENT_ID]",
|
||||||
|
data: [object]);
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeEmail result = await databases.CreateEmailAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false);
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeEnum result = await databases.CreateEnumAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
elements: new List<string> {},
|
||||||
|
required: false);
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeFloat result = await databases.CreateFloatAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false);
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Index result = await databases.CreateIndex(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
type: "key",
|
||||||
|
attributes: new List<string> {});
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeInteger result = await databases.CreateIntegerAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false);
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeIp result = await databases.CreateIpAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false);
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeRelationship result = await databases.CreateRelationshipAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
relatedCollectionId: "[RELATED_COLLECTION_ID]",
|
||||||
|
type: "oneToOne");
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeString result = await databases.CreateStringAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
size: 1,
|
||||||
|
required: false);
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeUrl result = await databases.CreateUrlAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false);
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Database result = await databases.Create(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
name: "[NAME]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
await databases.DeleteAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
await databases.DeleteCollection(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
await databases.DeleteDocument(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
documentId: "[DOCUMENT_ID]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
await databases.DeleteIndex(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
await databases.Delete(
|
||||||
|
databaseId: "[DATABASE_ID]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
result = await databases.GetAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Collection result = await databases.GetCollection(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Document result = await databases.GetDocument(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
documentId: "[DOCUMENT_ID]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Index result = await databases.GetIndex(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "");
|
12
docs/examples/1.3.x/server-dotnet/examples/databases/get.md
Normal file
12
docs/examples/1.3.x/server-dotnet/examples/databases/get.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Database result = await databases.Get(
|
||||||
|
databaseId: "[DATABASE_ID]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeList result = await databases.ListAttributes(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
CollectionList result = await databases.ListCollections(
|
||||||
|
databaseId: "[DATABASE_ID]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
DocumentList result = await databases.ListDocuments(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
IndexList result = await databases.ListIndexes(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]");
|
11
docs/examples/1.3.x/server-dotnet/examples/databases/list.md
Normal file
11
docs/examples/1.3.x/server-dotnet/examples/databases/list.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
DatabaseList result = await databases.List();
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeBoolean result = await databases.UpdateBooleanAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false,
|
||||||
|
default: false);
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Collection result = await databases.UpdateCollection(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
name: "[NAME]");
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeDatetime result = await databases.UpdateDatetimeAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false,
|
||||||
|
default: "");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Document result = await databases.UpdateDocument(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
documentId: "[DOCUMENT_ID]");
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeEmail result = await databases.UpdateEmailAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false,
|
||||||
|
default: "email@example.com");
|
|
@ -0,0 +1,17 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeEnum result = await databases.UpdateEnumAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
elements: new List<string> {},
|
||||||
|
required: false,
|
||||||
|
default: "[DEFAULT]");
|
|
@ -0,0 +1,18 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeFloat result = await databases.UpdateFloatAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false,
|
||||||
|
min: 0,
|
||||||
|
max: 0,
|
||||||
|
default: 0);
|
|
@ -0,0 +1,18 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeInteger result = await databases.UpdateIntegerAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false,
|
||||||
|
min: 0,
|
||||||
|
max: 0,
|
||||||
|
default: 0);
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeIp result = await databases.UpdateIpAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false,
|
||||||
|
default: "");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeRelationship result = await databases.UpdateRelationshipAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "");
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeString result = await databases.UpdateStringAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false,
|
||||||
|
default: "[DEFAULT]");
|
|
@ -0,0 +1,16 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
AttributeUrl result = await databases.UpdateUrlAttribute(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
collectionId: "[COLLECTION_ID]",
|
||||||
|
key: "",
|
||||||
|
required: false,
|
||||||
|
default: "https://example.com");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var databases = new Databases(client);
|
||||||
|
|
||||||
|
Database result = await databases.Update(
|
||||||
|
databaseId: "[DATABASE_ID]",
|
||||||
|
name: "[NAME]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
result = await functions.CreateBuild(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
deploymentId: "[DEPLOYMENT_ID]",
|
||||||
|
buildId: "[BUILD_ID]");
|
|
@ -0,0 +1,15 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Deployment result = await functions.CreateDeployment(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
entrypoint: "[ENTRYPOINT]",
|
||||||
|
code: new File("./path-to-files/image.jpg"),
|
||||||
|
activate: false);
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Execution result = await functions.CreateExecution(
|
||||||
|
functionId: "[FUNCTION_ID]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Variable result = await functions.CreateVariable(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
key: "[KEY]",
|
||||||
|
value: "[VALUE]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Function result = await functions.Create(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
name: "[NAME]",
|
||||||
|
runtime: "node-14.5");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
await functions.DeleteDeployment(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
deploymentId: "[DEPLOYMENT_ID]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
await functions.DeleteVariable(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
variableId: "[VARIABLE_ID]");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
await functions.Delete(
|
||||||
|
functionId: "[FUNCTION_ID]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Deployment result = await functions.GetDeployment(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
deploymentId: "[DEPLOYMENT_ID]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Execution result = await functions.GetExecution(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
executionId: "[EXECUTION_ID]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Variable result = await functions.GetVariable(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
variableId: "[VARIABLE_ID]");
|
12
docs/examples/1.3.x/server-dotnet/examples/functions/get.md
Normal file
12
docs/examples/1.3.x/server-dotnet/examples/functions/get.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Function result = await functions.Get(
|
||||||
|
functionId: "[FUNCTION_ID]");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
DeploymentList result = await functions.ListDeployments(
|
||||||
|
functionId: "[FUNCTION_ID]");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
ExecutionList result = await functions.ListExecutions(
|
||||||
|
functionId: "[FUNCTION_ID]");
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
RuntimeList result = await functions.ListRuntimes();
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
VariableList result = await functions.ListVariables(
|
||||||
|
functionId: "[FUNCTION_ID]");
|
11
docs/examples/1.3.x/server-dotnet/examples/functions/list.md
Normal file
11
docs/examples/1.3.x/server-dotnet/examples/functions/list.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
FunctionList result = await functions.List();
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Function result = await functions.UpdateDeployment(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
deploymentId: "[DEPLOYMENT_ID]");
|
|
@ -0,0 +1,14 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Variable result = await functions.UpdateVariable(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
variableId: "[VARIABLE_ID]",
|
||||||
|
key: "[KEY]");
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var functions = new Functions(client);
|
||||||
|
|
||||||
|
Function result = await functions.Update(
|
||||||
|
functionId: "[FUNCTION_ID]",
|
||||||
|
name: "[NAME]");
|
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var graphql = new Graphql(client);
|
||||||
|
|
||||||
|
Any result = await graphql.Mutation(
|
||||||
|
query: [object]);
|
12
docs/examples/1.3.x/server-dotnet/examples/graphql/query.md
Normal file
12
docs/examples/1.3.x/server-dotnet/examples/graphql/query.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var graphql = new Graphql(client);
|
||||||
|
|
||||||
|
Any result = await graphql.Query(
|
||||||
|
query: [object]);
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var health = new Health(client);
|
||||||
|
|
||||||
|
HealthAntivirus result = await health.GetAntivirus();
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var health = new Health(client);
|
||||||
|
|
||||||
|
HealthStatus result = await health.GetCache();
|
11
docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md
Normal file
11
docs/examples/1.3.x/server-dotnet/examples/health/get-d-b.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var health = new Health(client);
|
||||||
|
|
||||||
|
HealthStatus result = await health.GetDB();
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var health = new Health(client);
|
||||||
|
|
||||||
|
HealthQueue result = await health.GetQueueCertificates();
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var health = new Health(client);
|
||||||
|
|
||||||
|
HealthQueue result = await health.GetQueueFunctions();
|
|
@ -0,0 +1,11 @@
|
||||||
|
using Appwrite;
|
||||||
|
using Appwrite.Models;
|
||||||
|
|
||||||
|
var client = new Client()
|
||||||
|
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
|
||||||
|
.SetProject("5df5acd0d48c2") // Your project ID
|
||||||
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
||||||
|
|
||||||
|
var health = new Health(client);
|
||||||
|
|
||||||
|
HealthQueue result = await health.GetQueueLogs();
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue