mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Merge pull request #800 from appwrite/feat-support-for-csharp
Feat support for CSharp/.NET
This commit is contained in:
commit
ff62c9e43f
68 changed files with 894 additions and 58 deletions
|
|
@ -124,6 +124,7 @@ Below is a list of currently supported platforms and languages. If you wish to h
|
|||
* ✅ [Deno](https://github.com/appwrite/sdk-for-deno) - **Beta** (Maintained by the Appwrite Team)
|
||||
* ✅ [Ruby](https://github.com/appwrite/sdk-for-ruby) - **Beta** (Maintained by the Appwrite Team)
|
||||
* ✅ [Python](https://github.com/appwrite/sdk-for-python) - **Beta** (Maintained by the Appwrite Team)
|
||||
* ✅ [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Experimental** (Maintained by the Appwrite Team)
|
||||
* ✅ [Dart](https://github.com/appwrite/sdk-for-dart) **Experimental** (Maintained by the Appwrite Team)
|
||||
* ✅ [Go](https://github.com/appwrite/sdk-for-go) **Work in progress** (Maintained by the Appwrite Team)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* List of Appwrite Cloud Functions supported environments
|
||||
*/
|
||||
return [
|
||||
'node-14' => [
|
||||
'name' => 'Node.js',
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ return [
|
|||
// 'enabled' => false,
|
||||
// 'dev' => false,
|
||||
// 'beta' => false,
|
||||
// 'dev' => false,
|
||||
// 'family' => APP_PLATFORM_CLIENT,
|
||||
// 'prism' => 'java',
|
||||
// 'source' => false,
|
||||
|
|
@ -250,6 +251,22 @@ return [
|
|||
'gitRepoName' => 'sdk-for-java',
|
||||
'gitUserName' => 'appwrite',
|
||||
],
|
||||
[
|
||||
'key' => 'dotnet',
|
||||
'name' => '.NET',
|
||||
'version' => '0.0.2',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
||||
'package' => 'https://www.nuget.org/packages/Appwrite',
|
||||
'enabled' => true,
|
||||
'beta' => true,
|
||||
'dev' => true,
|
||||
'family' => APP_PLATFORM_SERVER,
|
||||
'prism' => 'csharp',
|
||||
'source' => \realpath(__DIR__ . '/../sdks/server-dotnet'),
|
||||
'gitUrl' => 'git@github.com:appwrite/sdk-for-dotnet.git',
|
||||
'gitRepoName' => 'sdk-for-dotnet',
|
||||
'gitUserName' => 'appwrite',
|
||||
],
|
||||
[
|
||||
'key' => 'dart',
|
||||
'name' => 'Dart',
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ use Appwrite\SDK\Language\Python;
|
|||
use Appwrite\SDK\Language\Ruby;
|
||||
use Appwrite\SDK\Language\Dart;
|
||||
use Appwrite\SDK\Language\Deno;
|
||||
use Appwrite\SDK\Language\DotNet;
|
||||
use Appwrite\SDK\Language\Flutter;
|
||||
use Appwrite\SDK\Language\Go;
|
||||
use Appwrite\SDK\Language\Java;
|
||||
|
|
@ -59,6 +60,7 @@ $cli
|
|||
|
||||
$spec = file_get_contents(__DIR__.'/../config/specs/'.$version.'.'.$language['family'].'.json');
|
||||
|
||||
$cover = 'https://appwrite.io/images/github.png';
|
||||
$result = \realpath(__DIR__.'/..').'/sdks/'.$key.'-'.$language['key'];
|
||||
$resultExamples = \realpath(__DIR__.'/../..').'/docs/examples/'.$version.'/'.$key.'-'.$language['key'];
|
||||
$target = \realpath(__DIR__.'/..').'/sdks/git/'.$language['key'].'/';
|
||||
|
|
@ -132,6 +134,10 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
case 'swift':
|
||||
$config = new Swift();
|
||||
break;
|
||||
case 'dotnet':
|
||||
$cover = '';
|
||||
$config = new DotNet();
|
||||
break;
|
||||
default:
|
||||
throw new Exception('Language "'.$language['key'].'" not supported');
|
||||
break;
|
||||
|
|
@ -154,7 +160,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|||
->setGitRepo($language['gitUrl'])
|
||||
->setGitRepoName($language['gitRepoName'])
|
||||
->setGitUserName($language['gitUserName'])
|
||||
->setLogo('https://appwrite.io/images/github.png')
|
||||
->setLogo($cover)
|
||||
->setURL('https://appwrite.io')
|
||||
->setShareText('Appwrite is a backend as a service for building web or mobile apps')
|
||||
->setShareURL('http://appwrite.io')
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"swoole/ide-helper": "4.5.5",
|
||||
"appwrite/sdk-generator": "0.4.1",
|
||||
"appwrite/sdk-generator": "0.4.3",
|
||||
"phpunit/phpunit": "9.4.2",
|
||||
"vimeo/psalm": "4.1.1"
|
||||
},
|
||||
|
|
|
|||
114
composer.lock
generated
114
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "db906327240b2eff5909e2d987003883",
|
||||
"content-hash": "6594e4d32da0196d0bb2e5a1794ea89d",
|
||||
"packages": [
|
||||
{
|
||||
"name": "appwrite/php-clamav",
|
||||
|
|
@ -131,16 +131,16 @@
|
|||
},
|
||||
{
|
||||
"name": "chillerlan/php-settings-container",
|
||||
"version": "2.1.0",
|
||||
"version": "2.1.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/chillerlan/php-settings-container.git",
|
||||
"reference": "90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5"
|
||||
"reference": "98ccc1b31b31a53bcb563465c4961879b2b93096"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5",
|
||||
"reference": "90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5",
|
||||
"url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/98ccc1b31b31a53bcb563465c4961879b2b93096",
|
||||
"reference": "98ccc1b31b31a53bcb563465c4961879b2b93096",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -148,8 +148,8 @@
|
|||
"php": "^7.4 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phan/phan": "^3.2.2",
|
||||
"phpunit/phpunit": "9.4"
|
||||
"phan/phan": "^4.0",
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
|
|
@ -181,12 +181,16 @@
|
|||
"source": "https://github.com/chillerlan/php-settings-container"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://ko-fi.com/codemasher",
|
||||
"type": "ko_fi"
|
||||
}
|
||||
],
|
||||
"time": "2020-10-07T13:18:35+00:00"
|
||||
"time": "2021-01-06T15:57:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "colinmollenhour/credis",
|
||||
|
|
@ -1858,11 +1862,11 @@
|
|||
},
|
||||
{
|
||||
"name": "appwrite/sdk-generator",
|
||||
"version": "0.4.1",
|
||||
"version": "0.4.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appwrite/sdk-generator",
|
||||
"reference": "bc6b2870d774779d0a2d027d12f4de576ac0b955"
|
||||
"reference": "630776cfe49412e72a70a3a69729054bf8302e1f"
|
||||
},
|
||||
"require": {
|
||||
"ext-curl": "*",
|
||||
|
|
@ -1892,7 +1896,7 @@
|
|||
}
|
||||
],
|
||||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||
"time": "2021-01-06T13:40:31+00:00"
|
||||
"time": "2021-01-08T11:55:04+00:00"
|
||||
},
|
||||
{
|
||||
"name": "composer/package-versions-deprecated",
|
||||
|
|
@ -2323,16 +2327,16 @@
|
|||
},
|
||||
{
|
||||
"name": "matthiasmullie/minify",
|
||||
"version": "1.3.65",
|
||||
"version": "1.3.66",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/matthiasmullie/minify.git",
|
||||
"reference": "227f19062451c55a797e0cc667ef983834e6580c"
|
||||
"reference": "45fd3b0f1dfa2c965857c6d4a470bea52adc31a6"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/227f19062451c55a797e0cc667ef983834e6580c",
|
||||
"reference": "227f19062451c55a797e0cc667ef983834e6580c",
|
||||
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/45fd3b0f1dfa2c965857c6d4a470bea52adc31a6",
|
||||
"reference": "45fd3b0f1dfa2c965857c6d4a470bea52adc31a6",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -2342,8 +2346,8 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "~2.0",
|
||||
"matthiasmullie/scrapbook": "~1.0",
|
||||
"phpunit/phpunit": "~4.8"
|
||||
"matthiasmullie/scrapbook": "dev-master",
|
||||
"phpunit/phpunit": ">=4.8"
|
||||
},
|
||||
"suggest": {
|
||||
"psr/cache-implementation": "Cache implementation to use with Minify::cache"
|
||||
|
|
@ -2381,7 +2385,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/matthiasmullie/minify/issues",
|
||||
"source": "https://github.com/matthiasmullie/minify/tree/1.3.65"
|
||||
"source": "https://github.com/matthiasmullie/minify/tree/1.3.66"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -2397,7 +2401,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2020-12-27T21:43:29+00:00"
|
||||
"time": "2021-01-06T15:18:10+00:00"
|
||||
},
|
||||
{
|
||||
"name": "matthiasmullie/path-converter",
|
||||
|
|
@ -4611,12 +4615,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||
"reference": "7c0a3c5420fd802637c4260e595d6c674b23d578"
|
||||
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7c0a3c5420fd802637c4260e595d6c674b23d578",
|
||||
"reference": "7c0a3c5420fd802637c4260e595d6c674b23d578",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
|
||||
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -4629,7 +4633,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.21-dev"
|
||||
"dev-main": "1.22-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
|
@ -4667,7 +4671,7 @@
|
|||
"portable"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-ctype/tree/main"
|
||||
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -4683,7 +4687,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-06T10:19:43+00:00"
|
||||
"time": "2021-01-07T16:49:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-intl-grapheme",
|
||||
|
|
@ -4691,12 +4695,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
|
||||
"reference": "32b651134d58efe1786c95352d846913a42d8331"
|
||||
"reference": "267a9adeb8ecb8071040a740930e077cdfb987af"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32b651134d58efe1786c95352d846913a42d8331",
|
||||
"reference": "32b651134d58efe1786c95352d846913a42d8331",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/267a9adeb8ecb8071040a740930e077cdfb987af",
|
||||
"reference": "267a9adeb8ecb8071040a740930e077cdfb987af",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -4709,7 +4713,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.21-dev"
|
||||
"dev-main": "1.22-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
|
@ -4749,7 +4753,7 @@
|
|||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/main"
|
||||
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.22.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -4765,7 +4769,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-06T10:19:43+00:00"
|
||||
"time": "2021-01-07T16:49:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-intl-normalizer",
|
||||
|
|
@ -4773,12 +4777,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
||||
"reference": "8592bf62da8352927fc3857484e84baacddec301"
|
||||
"reference": "6e971c891537eb617a00bb07a43d182a6915faba"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8592bf62da8352927fc3857484e84baacddec301",
|
||||
"reference": "8592bf62da8352927fc3857484e84baacddec301",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/6e971c891537eb617a00bb07a43d182a6915faba",
|
||||
"reference": "6e971c891537eb617a00bb07a43d182a6915faba",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -4791,7 +4795,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.21-dev"
|
||||
"dev-main": "1.22-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
|
@ -4834,7 +4838,7 @@
|
|||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/main"
|
||||
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.22.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -4850,7 +4854,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-06T10:19:43+00:00"
|
||||
"time": "2021-01-07T17:09:11+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
|
|
@ -4858,12 +4862,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "ec0101071dcbc6bdd5046da11df686f8515fa815"
|
||||
"reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/ec0101071dcbc6bdd5046da11df686f8515fa815",
|
||||
"reference": "ec0101071dcbc6bdd5046da11df686f8515fa815",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
|
||||
"reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -4876,7 +4880,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.21-dev"
|
||||
"dev-main": "1.22-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
|
@ -4915,7 +4919,7 @@
|
|||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/main"
|
||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -4931,7 +4935,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-06T10:19:43+00:00"
|
||||
"time": "2021-01-07T16:49:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php73",
|
||||
|
|
@ -4939,12 +4943,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php73.git",
|
||||
"reference": "6d0e293e2b13580b866090a135900aea4adcb308"
|
||||
"reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/6d0e293e2b13580b866090a135900aea4adcb308",
|
||||
"reference": "6d0e293e2b13580b866090a135900aea4adcb308",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/a678b42e92f86eca04b7fa4c0f6f19d097fb69e2",
|
||||
"reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -4954,7 +4958,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.21-dev"
|
||||
"dev-main": "1.22-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
|
@ -4995,7 +4999,7 @@
|
|||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-php73/tree/main"
|
||||
"source": "https://github.com/symfony/polyfill-php73/tree/v1.22.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -5011,7 +5015,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-06T10:19:43+00:00"
|
||||
"time": "2021-01-07T16:49:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php80",
|
||||
|
|
@ -5019,12 +5023,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php80.git",
|
||||
"reference": "69e5da91ad9c080f6ac1e010ddffefe71b14bd6e"
|
||||
"reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/69e5da91ad9c080f6ac1e010ddffefe71b14bd6e",
|
||||
"reference": "69e5da91ad9c080f6ac1e010ddffefe71b14bd6e",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91",
|
||||
"reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -5034,7 +5038,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.21-dev"
|
||||
"dev-main": "1.22-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
|
@ -5079,7 +5083,7 @@
|
|||
"shim"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/polyfill-php80/tree/main"
|
||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.22.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
@ -5095,7 +5099,7 @@
|
|||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-01-06T10:19:43+00:00"
|
||||
"time": "2021-01-07T16:49:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/service-contracts",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Avatars avatars = new Avatars(client);
|
||||
|
||||
string result = await avatars.GetBrowser("aa");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Avatars avatars = new Avatars(client);
|
||||
|
||||
string result = await avatars.GetCreditCard("amex");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Avatars avatars = new Avatars(client);
|
||||
|
||||
string result = await avatars.GetFavicon("https://example.com");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Avatars avatars = new Avatars(client);
|
||||
|
||||
string result = await avatars.GetFlag("af");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Avatars avatars = new Avatars(client);
|
||||
|
||||
string result = await avatars.GetImage("https://example.com");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Avatars avatars = new Avatars(client);
|
||||
|
||||
string result = await avatars.GetInitials();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Avatars avatars = new Avatars(client);
|
||||
|
||||
string result = await avatars.GetQR("[TEXT]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.CreateCollection("[NAME]", [List<object>], [List<object>], [List<object>]);
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", [object], [List<object>], [List<object>]);
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.DeleteCollection("[COLLECTION_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.DeleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.GetCollection("[COLLECTION_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.GetDocument("[COLLECTION_ID]", "[DOCUMENT_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.ListCollections();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.ListDocuments("[COLLECTION_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]", [List<object>], [List<object>]);
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Database database = new Database(client);
|
||||
|
||||
HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", [object], [List<object>], [List<object>]);
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetAntiVirus();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetCache();
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetDB();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetQueueCertificates();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetQueueFunctions();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetQueueLogs();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetQueueTasks();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetQueueUsage();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetQueueWebhooks();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetStorageLocal();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.GetTime();
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/health/get.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/health/get.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Health health = new Health(client);
|
||||
|
||||
HttpResponseMessage result = await health.Get();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
HttpResponseMessage result = await locale.GetContinents();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
HttpResponseMessage result = await locale.GetCountriesEU();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
HttpResponseMessage result = await locale.GetCountriesPhones();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
HttpResponseMessage result = await locale.GetCountries();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
HttpResponseMessage result = await locale.GetCurrencies();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
HttpResponseMessage result = await locale.GetLanguages();
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/locale/get.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/locale/get.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Locale locale = new Locale(client);
|
||||
|
||||
HttpResponseMessage result = await locale.Get();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg"), [List<object>], [List<object>]);
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
HttpResponseMessage result = await storage.DeleteFile("[FILE_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
string result = await storage.GetFileDownload("[FILE_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
string result = await storage.GetFilePreview("[FILE_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
string result = await storage.GetFileView("[FILE_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
HttpResponseMessage result = await storage.GetFile("[FILE_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
HttpResponseMessage result = await storage.ListFiles();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Storage storage = new Storage(client);
|
||||
|
||||
HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", [List<object>], [List<object>]);
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", [List<object>], "https://example.com");
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/teams/create.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/teams/create.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
HttpResponseMessage result = await teams.Create("[NAME]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
HttpResponseMessage result = await teams.DeleteMembership("[TEAM_ID]", "[INVITE_ID]");
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/teams/delete.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/teams/delete.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
HttpResponseMessage result = await teams.Delete("[TEAM_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
HttpResponseMessage result = await teams.GetMemberships("[TEAM_ID]");
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/teams/get.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/teams/get.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
HttpResponseMessage result = await teams.Get("[TEAM_ID]");
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/teams/list.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/teams/list.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
HttpResponseMessage result = await teams.List();
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/teams/update.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/teams/update.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Teams teams = new Teams(client);
|
||||
|
||||
HttpResponseMessage result = await teams.Update("[TEAM_ID]", "[NAME]");
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/users/create.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/users/create.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.Create("email@example.com", "password");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.DeleteSession("[USER_ID]", "[SESSION_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.DeleteSessions("[USER_ID]");
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.GetLogs("[USER_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.GetPrefs("[USER_ID]");
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.GetSessions("[USER_ID]");
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/users/get.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/users/get.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.Get("[USER_ID]");
|
||||
13
docs/examples/0.6.2/server-dotnet/examples/users/list.md
Normal file
13
docs/examples/0.6.2/server-dotnet/examples/users/list.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.List();
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", [object]);
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
use Appwrite;
|
||||
|
||||
Client client = new Client();
|
||||
|
||||
client
|
||||
.SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint
|
||||
.SetProject("5df5acd0d48c2") // Your project ID
|
||||
.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
|
||||
;
|
||||
|
||||
Users users = new Users(client);
|
||||
|
||||
HttpResponseMessage result = await users.UpdateStatus("[USER_ID]", "1");
|
||||
Loading…
Reference in a new issue