From 287bef7a6ce490ddfb8800d922cb659506c880df Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 4 Jan 2021 00:33:23 +0200 Subject: [PATCH 01/12] Init new SDK --- README.md | 1 + app/config/environments.php | 4 +- app/config/platforms.php | 29 ++-- composer.json | 2 +- composer.lock | 275 +++++++++++++++++++----------------- 5 files changed, 164 insertions(+), 147 deletions(-) diff --git a/README.md b/README.md index ea3ee938b9..f5dea89bf7 100644 --- a/README.md +++ b/README.md @@ -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) +* ✅   [C#](https://github.com/appwrite/sdk-for-csharp) - **Expiremental** (Maintained by the Appwrite Team) * ✅   [Go](https://github.com/appwrite/sdk-for-go) **Work in progress** (Maintained by the Appwrite Team) * ✅   [Dart](https://github.com/appwrite/sdk-for-dart) **Work in progress** (Maintained by the Appwrite Team) diff --git a/app/config/environments.php b/app/config/environments.php index 9119bee335..228e7e4608 100644 --- a/app/config/environments.php +++ b/app/config/environments.php @@ -1,5 +1,7 @@ [ 'name' => 'Node.js', diff --git a/app/config/platforms.php b/app/config/platforms.php index c9a3f25b59..8b751e436d 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -20,7 +20,6 @@ return [ 'package' => 'https://www.npmjs.com/package/appwrite', 'enabled' => true, 'beta' => false, - 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => 'javascript', 'source' => \realpath(__DIR__ . '/../sdks/client-web'), @@ -36,7 +35,6 @@ return [ 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, 'beta' => true, - 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => 'dart', 'source' => \realpath(__DIR__ . '/../sdks/client-flutter'), @@ -51,7 +49,6 @@ return [ 'package' => '', 'enabled' => false, 'beta' => false, - 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => 'swift', 'source' => false, @@ -66,7 +63,6 @@ return [ 'package' => '', 'enabled' => false, 'beta' => false, - 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => '', 'source' => false, @@ -81,7 +77,6 @@ return [ 'package' => '', 'enabled' => false, 'beta' => false, - 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => 'kotlin', 'source' => false, @@ -120,7 +115,6 @@ return [ 'package' => '', 'enabled' => true, 'beta' => false, - 'dev' => false, 'family' => APP_PLATFORM_CONSOLE, 'prism' => 'console', 'source' => \realpath(__DIR__ . '/../sdks/console-web'), @@ -146,7 +140,6 @@ return [ 'package' => 'https://www.npmjs.com/package/node-appwrite', 'enabled' => true, 'beta' => false, - 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'javascript', 'source' => \realpath(__DIR__ . '/../sdks/server-nodejs'), @@ -162,7 +155,6 @@ return [ 'package' => 'https://deno.land/x/appwrite', 'enabled' => true, 'beta' => true, - 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'typescript', 'source' => \realpath(__DIR__ . '/../sdks/server-deno'), @@ -178,7 +170,6 @@ return [ 'package' => 'https://packagist.org/packages/appwrite/appwrite', 'enabled' => true, 'beta' => false, - 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'php', 'source' => \realpath(__DIR__ . '/../sdks/server-php'), @@ -194,7 +185,6 @@ return [ 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, 'beta' => true, - 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'python', 'source' => \realpath(__DIR__ . '/../sdks/server-python'), @@ -210,7 +200,6 @@ return [ 'package' => 'https://rubygems.org/gems/appwrite', 'enabled' => true, 'beta' => true, - 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'ruby', 'source' => \realpath(__DIR__ . '/../sdks/server-ruby'), @@ -226,7 +215,6 @@ return [ 'package' => '', 'enabled' => false, 'beta' => true, - 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'go', 'source' => \realpath(__DIR__ . '/../sdks/server-go'), @@ -242,7 +230,6 @@ return [ 'package' => '', 'enabled' => false, 'beta' => true, - 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'java', 'source' => \realpath(__DIR__ . '/../sdks/server-java'), @@ -250,6 +237,21 @@ return [ 'gitRepoName' => 'sdk-for-java', 'gitUserName' => 'appwrite', ], + [ + 'key' => 'csharp', + 'name' => 'CSharp', + 'version' => '0.0.1', + 'url' => 'https://github.com/appwrite/sdk-for-csharp', + 'package' => '', + 'enabled' => true, + 'beta' => true, + 'family' => APP_PLATFORM_SERVER, + 'prism' => 'csharp', + 'source' => \realpath(__DIR__ . '/../sdks/server-csharp'), + 'gitUrl' => 'git@github.com:appwrite/sdk-for-csharp.git', + 'gitRepoName' => 'sdk-for-csharp', + 'gitUserName' => 'appwrite', + ], [ 'key' => 'dart', 'name' => 'Dart', @@ -258,7 +260,6 @@ return [ 'package' => '', 'enabled' => false, 'beta' => true, - 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'java', 'source' => \realpath(__DIR__ . '/../sdks/server-dart'), diff --git a/composer.json b/composer.json index bf9f354acc..97d2263952 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ }, "require-dev": { "swoole/ide-helper": "4.5.5", - "appwrite/sdk-generator": "0.2.3", + "appwrite/sdk-generator": "0.3.0", "phpunit/phpunit": "9.4.2", "vimeo/psalm": "4.1.1" }, diff --git a/composer.lock b/composer.lock index 500c67d954..606dd5fd67 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "aa1bf812ee6a45af12cdfbbfb7229471", + "content-hash": "57a43a1cab8459494f031551fe83ffb5", "packages": [ { "name": "appwrite/php-clamav", @@ -1158,9 +1158,9 @@ ], "support": { "issues": "https://github.com/utopia-php/abuse/issues", - "source": "https://github.com/utopia-php/abuse/tree/0.2.2" + "source": "https://github.com/utopia-php/abuse/tree/0.3.1" }, - "time": "2020-10-23T06:51:42+00:00" + "time": "2020-12-21T17:28:03+00:00" }, { "name": "utopia-php/audit", @@ -1210,9 +1210,9 @@ ], "support": { "issues": "https://github.com/utopia-php/audit/issues", - "source": "https://github.com/utopia-php/audit/tree/0.3.2" + "source": "https://github.com/utopia-php/audit/tree/0.5.1" }, - "time": "2020-10-23T08:09:44+00:00" + "time": "2020-12-21T17:28:53+00:00" }, { "name": "utopia-php/cache", @@ -1315,9 +1315,9 @@ ], "support": { "issues": "https://github.com/utopia-php/cli/issues", - "source": "https://github.com/utopia-php/cli/tree/0.7.3" + "source": "https://github.com/utopia-php/cli/tree/0.8" }, - "time": "2020-11-02T07:50:18+00:00" + "time": "2020-12-14T06:31:42+00:00" }, { "name": "utopia-php/config", @@ -1858,11 +1858,11 @@ }, { "name": "appwrite/sdk-generator", - "version": "0.2.3", + "version": "0.3.0", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "6b564fef01fd681023c1d465783931bade04468d" + "reference": "f0a6ecf92869012dd546ec503c69177dce0f9d90" }, "require": { "ext-curl": "*", @@ -1875,7 +1875,6 @@ "require-dev": { "phpunit/phpunit": "^7.0" }, - "default-branch": true, "type": "library", "autoload": { "psr-4": { @@ -1893,7 +1892,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2020-12-23T21:58:58+00:00" + "time": "2021-01-03T21:23:24+00:00" }, { "name": "composer/package-versions-deprecated", @@ -1901,12 +1900,12 @@ "source": { "type": "git", "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "64291c788b9a18272346decf566931e33a317399" + "reference": "f921205948ab93bb19f86327c793a81edb62f236" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/64291c788b9a18272346decf566931e33a317399", - "reference": "64291c788b9a18272346decf566931e33a317399", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/f921205948ab93bb19f86327c793a81edb62f236", + "reference": "f921205948ab93bb19f86327c793a81edb62f236", "shasum": "" }, "require": { @@ -1967,7 +1966,7 @@ "type": "tidelift" } ], - "time": "2020-11-12T09:39:33+00:00" + "time": "2020-12-27T20:11:05+00:00" }, { "name": "composer/semver", @@ -2324,16 +2323,16 @@ }, { "name": "matthiasmullie/minify", - "version": "1.3.64", + "version": "1.3.65", "source": { "type": "git", "url": "https://github.com/matthiasmullie/minify.git", - "reference": "38f9d58c739687e269f46c6dff4647de9e2eb855" + "reference": "227f19062451c55a797e0cc667ef983834e6580c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/matthiasmullie/minify/zipball/38f9d58c739687e269f46c6dff4647de9e2eb855", - "reference": "38f9d58c739687e269f46c6dff4647de9e2eb855", + "url": "https://api.github.com/repos/matthiasmullie/minify/zipball/227f19062451c55a797e0cc667ef983834e6580c", + "reference": "227f19062451c55a797e0cc667ef983834e6580c", "shasum": "" }, "require": { @@ -2382,9 +2381,23 @@ ], "support": { "issues": "https://github.com/matthiasmullie/minify/issues", - "source": "https://github.com/matthiasmullie/minify/tree/1.3.64" + "source": "https://github.com/matthiasmullie/minify/tree/1.3.65" }, - "time": "2020-12-23T13:37:53+00:00" + "funding": [ + { + "url": "https://github.com/[user1", + "type": "github" + }, + { + "url": "https://github.com/matthiasmullie] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g.", + "type": "github" + }, + { + "url": "https://github.com/user2", + "type": "github" + } + ], + "time": "2020-12-27T21:43:29+00:00" }, { "name": "matthiasmullie/path-converter", @@ -3004,12 +3017,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "ad44fae76b874e7d49afb6923a66591e0a94bef6" + "reference": "cbe315f4d3b653ac0310862697866ffddabc502f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ad44fae76b874e7d49afb6923a66591e0a94bef6", - "reference": "ad44fae76b874e7d49afb6923a66591e0a94bef6", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/cbe315f4d3b653ac0310862697866ffddabc502f", + "reference": "cbe315f4d3b653ac0310862697866ffddabc502f", "shasum": "" }, "require": { @@ -3065,7 +3078,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/master" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2" }, "funding": [ { @@ -3073,7 +3086,7 @@ "type": "github" } ], - "time": "2020-12-24T12:26:22+00:00" + "time": "2021-01-02T06:24:37+00:00" }, { "name": "phpunit/php-file-iterator", @@ -3081,12 +3094,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "544be757d192233486ad9119dcb297ebbf5f2dd4" + "reference": "cdb8225b328ef5e9647049954299211804000ce0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/544be757d192233486ad9119dcb297ebbf5f2dd4", - "reference": "544be757d192233486ad9119dcb297ebbf5f2dd4", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cdb8225b328ef5e9647049954299211804000ce0", + "reference": "cdb8225b328ef5e9647049954299211804000ce0", "shasum": "" }, "require": { @@ -3134,7 +3147,7 @@ "type": "github" } ], - "time": "2020-12-24T12:27:43+00:00" + "time": "2021-01-02T06:22:20+00:00" }, { "name": "phpunit/php-invoker", @@ -3142,12 +3155,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "05210af8d0ab68c811ae61a4bc42b066d62b88a0" + "reference": "6fdda2828180f7d86cf66d822e6ad4bc124baf5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/05210af8d0ab68c811ae61a4bc42b066d62b88a0", - "reference": "05210af8d0ab68c811ae61a4bc42b066d62b88a0", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/6fdda2828180f7d86cf66d822e6ad4bc124baf5d", + "reference": "6fdda2828180f7d86cf66d822e6ad4bc124baf5d", "shasum": "" }, "require": { @@ -3198,7 +3211,7 @@ "type": "github" } ], - "time": "2020-12-24T12:27:51+00:00" + "time": "2021-01-02T06:22:25+00:00" }, { "name": "phpunit/php-text-template", @@ -3206,12 +3219,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "c1abda6e0590f8e7138eb48ade2f0b21a5c4257b" + "reference": "081fc9efc54b1b858b3497c142d82a0c36bc6755" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/c1abda6e0590f8e7138eb48ade2f0b21a5c4257b", - "reference": "c1abda6e0590f8e7138eb48ade2f0b21a5c4257b", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/081fc9efc54b1b858b3497c142d82a0c36bc6755", + "reference": "081fc9efc54b1b858b3497c142d82a0c36bc6755", "shasum": "" }, "require": { @@ -3258,7 +3271,7 @@ "type": "github" } ], - "time": "2020-12-24T12:28:23+00:00" + "time": "2021-01-02T06:22:47+00:00" }, { "name": "phpunit/php-timer", @@ -3266,12 +3279,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "59e401088c91efeb76150f0a301aa79e3ac95fd1" + "reference": "2194371fec37b03cfda3f8ab08aee33787350228" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/59e401088c91efeb76150f0a301aa79e3ac95fd1", - "reference": "59e401088c91efeb76150f0a301aa79e3ac95fd1", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2194371fec37b03cfda3f8ab08aee33787350228", + "reference": "2194371fec37b03cfda3f8ab08aee33787350228", "shasum": "" }, "require": { @@ -3318,7 +3331,7 @@ "type": "github" } ], - "time": "2020-12-24T12:27:59+00:00" + "time": "2021-01-02T06:22:31+00:00" }, { "name": "phpunit/phpunit", @@ -3483,12 +3496,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "7605547e80bf845bc2c1b2cc3f8ac0f5574caa63" + "reference": "1012bd8df812778b8386c5e76cacd85b45cf329e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7605547e80bf845bc2c1b2cc3f8ac0f5574caa63", - "reference": "7605547e80bf845bc2c1b2cc3f8ac0f5574caa63", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/1012bd8df812778b8386c5e76cacd85b45cf329e", + "reference": "1012bd8df812778b8386c5e76cacd85b45cf329e", "shasum": "" }, "require": { @@ -3532,7 +3545,7 @@ "type": "github" } ], - "time": "2020-12-24T12:28:52+00:00" + "time": "2021-01-02T06:23:03+00:00" }, { "name": "sebastian/code-unit", @@ -3596,12 +3609,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "f861b90785c30dc0743554f0e615d8f950dc8e9d" + "reference": "f0a408b6519db241e624a62576dc5871d4ac8c14" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/f861b90785c30dc0743554f0e615d8f950dc8e9d", - "reference": "f861b90785c30dc0743554f0e615d8f950dc8e9d", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/f0a408b6519db241e624a62576dc5871d4ac8c14", + "reference": "f0a408b6519db241e624a62576dc5871d4ac8c14", "shasum": "" }, "require": { @@ -3644,7 +3657,7 @@ "type": "github" } ], - "time": "2020-12-24T12:26:38+00:00" + "time": "2021-01-02T06:21:36+00:00" }, { "name": "sebastian/comparator", @@ -3652,12 +3665,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "1cfe9edf7ec9e4c18e54bb259110a053d09a899f" + "reference": "fe4c68c639d9e580ec31bfc88b32641dc80a08d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1cfe9edf7ec9e4c18e54bb259110a053d09a899f", - "reference": "1cfe9edf7ec9e4c18e54bb259110a053d09a899f", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fe4c68c639d9e580ec31bfc88b32641dc80a08d0", + "reference": "fe4c68c639d9e580ec31bfc88b32641dc80a08d0", "shasum": "" }, "require": { @@ -3719,7 +3732,7 @@ "type": "github" } ], - "time": "2020-12-24T12:38:43+00:00" + "time": "2021-01-02T06:21:42+00:00" }, { "name": "sebastian/complexity", @@ -3727,12 +3740,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "23030bf3d3722767fdc5f8f2d2d99b03f4e58122" + "reference": "c182133e92fc7a8b0a923b5d20f3a9fdfa534818" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/23030bf3d3722767fdc5f8f2d2d99b03f4e58122", - "reference": "23030bf3d3722767fdc5f8f2d2d99b03f4e58122", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/c182133e92fc7a8b0a923b5d20f3a9fdfa534818", + "reference": "c182133e92fc7a8b0a923b5d20f3a9fdfa534818", "shasum": "" }, "require": { @@ -3777,7 +3790,7 @@ "type": "github" } ], - "time": "2020-12-24T12:28:32+00:00" + "time": "2021-01-02T06:22:53+00:00" }, { "name": "sebastian/diff", @@ -3785,12 +3798,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "02178c586d5fbd59d348798d7122237a2907f8a4" + "reference": "33f7bf3c1741b2a10e16d5c41c369c402b933e4c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/02178c586d5fbd59d348798d7122237a2907f8a4", - "reference": "02178c586d5fbd59d348798d7122237a2907f8a4", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/33f7bf3c1741b2a10e16d5c41c369c402b933e4c", + "reference": "33f7bf3c1741b2a10e16d5c41c369c402b933e4c", "shasum": "" }, "require": { @@ -3844,7 +3857,7 @@ "type": "github" } ], - "time": "2020-12-24T12:26:54+00:00" + "time": "2021-01-02T06:21:47+00:00" }, { "name": "sebastian/environment", @@ -3852,12 +3865,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "7bb5a20ec06e366cb75b0e126169649c62b397b1" + "reference": "b885263b3601b7570ef386a468d6a827c95c8994" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/7bb5a20ec06e366cb75b0e126169649c62b397b1", - "reference": "7bb5a20ec06e366cb75b0e126169649c62b397b1", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/b885263b3601b7570ef386a468d6a827c95c8994", + "reference": "b885263b3601b7570ef386a468d6a827c95c8994", "shasum": "" }, "require": { @@ -3908,7 +3921,7 @@ "type": "github" } ], - "time": "2020-12-24T12:27:03+00:00" + "time": "2021-01-02T06:21:52+00:00" }, { "name": "sebastian/exporter", @@ -3916,12 +3929,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "91975a2dbcf4a89184d9e4143c06b88d89644b58" + "reference": "f670c4f17dffab83b44048f6fe6747a7c6097179" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/91975a2dbcf4a89184d9e4143c06b88d89644b58", - "reference": "91975a2dbcf4a89184d9e4143c06b88d89644b58", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/f670c4f17dffab83b44048f6fe6747a7c6097179", + "reference": "f670c4f17dffab83b44048f6fe6747a7c6097179", "shasum": "" }, "require": { @@ -3986,7 +3999,7 @@ "type": "github" } ], - "time": "2020-12-24T12:27:11+00:00" + "time": "2021-01-02T06:21:58+00:00" }, { "name": "sebastian/global-state", @@ -3994,12 +4007,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0471b24bddeb05ffd0a5edc6837796f339068c25" + "reference": "a74d82a0654a7f685f80016cc3570d7a387f9da0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0471b24bddeb05ffd0a5edc6837796f339068c25", - "reference": "0471b24bddeb05ffd0a5edc6837796f339068c25", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/a74d82a0654a7f685f80016cc3570d7a387f9da0", + "reference": "a74d82a0654a7f685f80016cc3570d7a387f9da0", "shasum": "" }, "require": { @@ -4051,7 +4064,7 @@ "type": "github" } ], - "time": "2020-12-24T12:27:19+00:00" + "time": "2021-01-02T06:22:03+00:00" }, { "name": "sebastian/lines-of-code", @@ -4059,12 +4072,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "219c932af1aeee0b4eccbc53af2181ff50e14b24" + "reference": "db62e01f14ea9485d5a52dfb5706061fd0f50425" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/219c932af1aeee0b4eccbc53af2181ff50e14b24", - "reference": "219c932af1aeee0b4eccbc53af2181ff50e14b24", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/db62e01f14ea9485d5a52dfb5706061fd0f50425", + "reference": "db62e01f14ea9485d5a52dfb5706061fd0f50425", "shasum": "" }, "require": { @@ -4109,7 +4122,7 @@ "type": "github" } ], - "time": "2020-12-24T12:28:42+00:00" + "time": "2021-01-02T06:22:58+00:00" }, { "name": "sebastian/object-enumerator", @@ -4117,12 +4130,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "da36684b10f17db8718e314fa8d84b2e0ed7132e" + "reference": "fccb61351e8a3a10ffacfad9544bb2905905b69c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/da36684b10f17db8718e314fa8d84b2e0ed7132e", - "reference": "da36684b10f17db8718e314fa8d84b2e0ed7132e", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/fccb61351e8a3a10ffacfad9544bb2905905b69c", + "reference": "fccb61351e8a3a10ffacfad9544bb2905905b69c", "shasum": "" }, "require": { @@ -4167,7 +4180,7 @@ "type": "github" } ], - "time": "2020-12-24T12:27:27+00:00" + "time": "2021-01-02T06:22:09+00:00" }, { "name": "sebastian/object-reflector", @@ -4175,12 +4188,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "6717d193da503616e69462cf98e2af3f4443335d" + "reference": "c0ad4ce74e040797d5f8abfc23ab79fd79b064c3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6717d193da503616e69462cf98e2af3f4443335d", - "reference": "6717d193da503616e69462cf98e2af3f4443335d", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/c0ad4ce74e040797d5f8abfc23ab79fd79b064c3", + "reference": "c0ad4ce74e040797d5f8abfc23ab79fd79b064c3", "shasum": "" }, "require": { @@ -4223,7 +4236,7 @@ "type": "github" } ], - "time": "2020-12-24T12:27:35+00:00" + "time": "2021-01-02T06:22:14+00:00" }, { "name": "sebastian/recursion-context", @@ -4231,12 +4244,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "cee249a3e471aa870067fa6155991230c7507924" + "reference": "c5616ce32278e62c77066f72b1fe413a8c958cee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cee249a3e471aa870067fa6155991230c7507924", - "reference": "cee249a3e471aa870067fa6155991230c7507924", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/c5616ce32278e62c77066f72b1fe413a8c958cee", + "reference": "c5616ce32278e62c77066f72b1fe413a8c958cee", "shasum": "" }, "require": { @@ -4287,7 +4300,7 @@ "type": "github" } ], - "time": "2020-12-24T12:28:07+00:00" + "time": "2021-01-02T06:22:36+00:00" }, { "name": "sebastian/resource-operations", @@ -4351,12 +4364,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "67bfce3beb94968d175fdf117b80fc9a6b60bdd0" + "reference": "655e3b59cc2e508306dba9c3df08b774055548e7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/67bfce3beb94968d175fdf117b80fc9a6b60bdd0", - "reference": "67bfce3beb94968d175fdf117b80fc9a6b60bdd0", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/655e3b59cc2e508306dba9c3df08b774055548e7", + "reference": "655e3b59cc2e508306dba9c3df08b774055548e7", "shasum": "" }, "require": { @@ -4400,7 +4413,7 @@ "type": "github" } ], - "time": "2020-12-24T12:28:15+00:00" + "time": "2021-01-02T06:22:42+00:00" }, { "name": "sebastian/version", @@ -4500,12 +4513,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "15c96194f32e1b1aa30d1b302c71c5f83fd4dea9" + "reference": "5a8ebe413fbd4091d5b3c5b70e298141681c59c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/15c96194f32e1b1aa30d1b302c71c5f83fd4dea9", - "reference": "15c96194f32e1b1aa30d1b302c71c5f83fd4dea9", + "url": "https://api.github.com/repos/symfony/console/zipball/5a8ebe413fbd4091d5b3c5b70e298141681c59c7", + "reference": "5a8ebe413fbd4091d5b3c5b70e298141681c59c7", "shasum": "" }, "require": { @@ -4590,7 +4603,7 @@ "type": "tidelift" } ], - "time": "2020-12-18T08:03:24+00:00" + "time": "2021-01-01T09:27:20+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4598,12 +4611,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "fade6deebd931cfd7a544f68479405a6a08979a3" + "reference": "7130f348df2f842044038aaae9d6653dc9d67649" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/fade6deebd931cfd7a544f68479405a6a08979a3", - "reference": "fade6deebd931cfd7a544f68479405a6a08979a3", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7130f348df2f842044038aaae9d6653dc9d67649", + "reference": "7130f348df2f842044038aaae9d6653dc9d67649", "shasum": "" }, "require": { @@ -4670,7 +4683,7 @@ "type": "tidelift" } ], - "time": "2020-10-26T13:35:45+00:00" + "time": "2020-12-27T09:28:48+00:00" }, { "name": "symfony/polyfill-intl-grapheme", @@ -4678,12 +4691,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "be092746c3ab9f9c62608c82e0f04687f8a879f9" + "reference": "e314d4992832c3a0a68ca731fadd959917320fda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/be092746c3ab9f9c62608c82e0f04687f8a879f9", - "reference": "be092746c3ab9f9c62608c82e0f04687f8a879f9", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e314d4992832c3a0a68ca731fadd959917320fda", + "reference": "e314d4992832c3a0a68ca731fadd959917320fda", "shasum": "" }, "require": { @@ -4752,7 +4765,7 @@ "type": "tidelift" } ], - "time": "2020-11-13T15:40:22+00:00" + "time": "2020-12-27T09:28:48+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -4760,12 +4773,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "69609f9f06790591b4b13a45ee117e7bab6395aa" + "reference": "3a79a2226897adae0cab81688fbc5144e2fc53f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/69609f9f06790591b4b13a45ee117e7bab6395aa", - "reference": "69609f9f06790591b4b13a45ee117e7bab6395aa", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3a79a2226897adae0cab81688fbc5144e2fc53f6", + "reference": "3a79a2226897adae0cab81688fbc5144e2fc53f6", "shasum": "" }, "require": { @@ -4837,7 +4850,7 @@ "type": "tidelift" } ], - "time": "2020-10-26T13:35:45+00:00" + "time": "2020-12-27T22:11:44+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -4845,12 +4858,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "401c9d9d3400c53a8f1a39425f0543406c137a43" + "reference": "de14691dc88bbbc5535de7f0e32080977dc1d23f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/401c9d9d3400c53a8f1a39425f0543406c137a43", - "reference": "401c9d9d3400c53a8f1a39425f0543406c137a43", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/de14691dc88bbbc5535de7f0e32080977dc1d23f", + "reference": "de14691dc88bbbc5535de7f0e32080977dc1d23f", "shasum": "" }, "require": { @@ -4918,7 +4931,7 @@ "type": "tidelift" } ], - "time": "2020-10-26T13:35:45+00:00" + "time": "2020-12-27T09:28:48+00:00" }, { "name": "symfony/polyfill-php73", @@ -5006,12 +5019,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "3a11f3dfb34ad50f978cb2b8cf936933b87739aa" + "reference": "54cc82c30ba7ed02bc64f5d010488c159b5f1706" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/3a11f3dfb34ad50f978cb2b8cf936933b87739aa", - "reference": "3a11f3dfb34ad50f978cb2b8cf936933b87739aa", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/54cc82c30ba7ed02bc64f5d010488c159b5f1706", + "reference": "54cc82c30ba7ed02bc64f5d010488c159b5f1706", "shasum": "" }, "require": { @@ -5082,7 +5095,7 @@ "type": "tidelift" } ], - "time": "2020-10-26T13:35:45+00:00" + "time": "2020-12-27T09:28:48+00:00" }, { "name": "symfony/service-contracts", @@ -5090,12 +5103,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "5c448a39281b671be2cc8d208e6df75ac2d4b366" + "reference": "e0d43e6e2f909287d2e4e867ca5c131a661f08ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/5c448a39281b671be2cc8d208e6df75ac2d4b366", - "reference": "5c448a39281b671be2cc8d208e6df75ac2d4b366", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e0d43e6e2f909287d2e4e867ca5c131a661f08ef", + "reference": "e0d43e6e2f909287d2e4e867ca5c131a661f08ef", "shasum": "" }, "require": { @@ -5163,7 +5176,7 @@ "type": "tidelift" } ], - "time": "2020-12-23T15:38:30+00:00" + "time": "2021-01-01T09:26:45+00:00" }, { "name": "symfony/string", @@ -5171,12 +5184,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed" + "reference": "99f25957efe05db14a1aa6cff643eca0f83a952c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed", - "reference": "5bd67751d2e3f7d6f770c9154b8fbcb2aa05f7ed", + "url": "https://api.github.com/repos/symfony/string/zipball/99f25957efe05db14a1aa6cff643eca0f83a952c", + "reference": "99f25957efe05db14a1aa6cff643eca0f83a952c", "shasum": "" }, "require": { @@ -5231,7 +5244,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.2.1" + "source": "https://github.com/symfony/string/tree/5.x" }, "funding": [ { @@ -5247,7 +5260,7 @@ "type": "tidelift" } ], - "time": "2020-12-05T07:33:16+00:00" + "time": "2021-01-01T09:26:45+00:00" }, { "name": "theseer/tokenizer", @@ -5305,12 +5318,12 @@ "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "c5379903e5640e5f29024e71aa0817f7bd56102b" + "reference": "846ebbd7c8e780913fa5731d9c6139522111b56f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/c5379903e5640e5f29024e71aa0817f7bd56102b", - "reference": "c5379903e5640e5f29024e71aa0817f7bd56102b", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/846ebbd7c8e780913fa5731d9c6139522111b56f", + "reference": "846ebbd7c8e780913fa5731d9c6139522111b56f", "shasum": "" }, "require": { @@ -5376,7 +5389,7 @@ "type": "tidelift" } ], - "time": "2020-11-27T13:05:37+00:00" + "time": "2021-01-01T14:57:43+00:00" }, { "name": "vimeo/psalm", From 968c03fd010e89a2b4f0254119d0bf488fb702ee Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 4 Jan 2021 11:23:36 +0200 Subject: [PATCH 02/12] Changed name from CSharp to .NET --- README.md | 2 +- app/config/platforms.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f5dea89bf7..7967b1b2ef 100644 --- a/README.md +++ b/README.md @@ -124,7 +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) -* ✅   [C#](https://github.com/appwrite/sdk-for-csharp) - **Expiremental** (Maintained by the Appwrite Team) +* ✅   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Expiremental** (Maintained by the Appwrite Team) * ✅   [Go](https://github.com/appwrite/sdk-for-go) **Work in progress** (Maintained by the Appwrite Team) * ✅   [Dart](https://github.com/appwrite/sdk-for-dart) **Work in progress** (Maintained by the Appwrite Team) diff --git a/app/config/platforms.php b/app/config/platforms.php index 8b751e436d..13773b67eb 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -238,18 +238,18 @@ return [ 'gitUserName' => 'appwrite', ], [ - 'key' => 'csharp', - 'name' => 'CSharp', + 'key' => 'dotnet', + 'name' => '.NET', 'version' => '0.0.1', - 'url' => 'https://github.com/appwrite/sdk-for-csharp', + 'url' => 'https://github.com/appwrite/sdk-for-dotnet', 'package' => '', 'enabled' => true, 'beta' => true, 'family' => APP_PLATFORM_SERVER, 'prism' => 'csharp', - 'source' => \realpath(__DIR__ . '/../sdks/server-csharp'), - 'gitUrl' => 'git@github.com:appwrite/sdk-for-csharp.git', - 'gitRepoName' => 'sdk-for-csharp', + 'source' => \realpath(__DIR__ . '/../sdks/server-dotnet'), + 'gitUrl' => 'git@github.com:appwrite/sdk-for-dotnet.git', + 'gitRepoName' => 'sdk-for-dotnet', 'gitUserName' => 'appwrite', ], [ From 9428ad930862ff2d906e1bdad83b23b340083a8c Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 4 Jan 2021 17:20:41 +0200 Subject: [PATCH 03/12] Added dotNet SDK --- app/tasks/sdks.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/tasks/sdks.php b/app/tasks/sdks.php index 857b4de7b5..9b0798b179 100644 --- a/app/tasks/sdks.php +++ b/app/tasks/sdks.php @@ -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; @@ -132,6 +133,9 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND case 'swift': $config = new Swift(); break; + case 'dotnet': + $config = new DotNet(); + break; default: throw new Exception('Language "'.$language['key'].'" not supported'); break; From 4a937659202aa60d739476fe09f70b97dbc8b4c3 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 4 Jan 2021 17:20:56 +0200 Subject: [PATCH 04/12] Updated docs --- .../server-dotnet/examples/avatars/get-browser.md | 13 +++++++++++++ .../examples/avatars/get-credit-card.md | 13 +++++++++++++ .../server-dotnet/examples/avatars/get-favicon.md | 13 +++++++++++++ .../server-dotnet/examples/avatars/get-flag.md | 13 +++++++++++++ .../server-dotnet/examples/avatars/get-image.md | 13 +++++++++++++ .../server-dotnet/examples/avatars/get-initials.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/avatars/get-q-r.md | 13 +++++++++++++ .../examples/database/create-collection.md | 13 +++++++++++++ .../examples/database/create-document.md | 13 +++++++++++++ .../examples/database/delete-collection.md | 13 +++++++++++++ .../examples/database/delete-document.md | 13 +++++++++++++ .../examples/database/get-collection.md | 13 +++++++++++++ .../server-dotnet/examples/database/get-document.md | 13 +++++++++++++ .../examples/database/list-collections.md | 13 +++++++++++++ .../examples/database/list-documents.md | 13 +++++++++++++ .../examples/database/update-collection.md | 13 +++++++++++++ .../examples/database/update-document.md | 13 +++++++++++++ .../server-dotnet/examples/health/get-anti-virus.md | 13 +++++++++++++ .../server-dotnet/examples/health/get-cache.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/health/get-d-b.md | 13 +++++++++++++ .../examples/health/get-queue-certificates.md | 13 +++++++++++++ .../examples/health/get-queue-functions.md | 13 +++++++++++++ .../server-dotnet/examples/health/get-queue-logs.md | 13 +++++++++++++ .../examples/health/get-queue-tasks.md | 13 +++++++++++++ .../examples/health/get-queue-usage.md | 13 +++++++++++++ .../examples/health/get-queue-webhooks.md | 13 +++++++++++++ .../examples/health/get-storage-local.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/health/get-time.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/health/get.md | 13 +++++++++++++ .../server-dotnet/examples/locale/get-continents.md | 13 +++++++++++++ .../examples/locale/get-countries-e-u.md | 13 +++++++++++++ .../examples/locale/get-countries-phones.md | 13 +++++++++++++ .../server-dotnet/examples/locale/get-countries.md | 13 +++++++++++++ .../server-dotnet/examples/locale/get-currencies.md | 13 +++++++++++++ .../server-dotnet/examples/locale/get-languages.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/locale/get.md | 13 +++++++++++++ .../server-dotnet/examples/storage/create-file.md | 13 +++++++++++++ .../server-dotnet/examples/storage/delete-file.md | 13 +++++++++++++ .../examples/storage/get-file-download.md | 13 +++++++++++++ .../examples/storage/get-file-preview.md | 13 +++++++++++++ .../server-dotnet/examples/storage/get-file-view.md | 13 +++++++++++++ .../server-dotnet/examples/storage/get-file.md | 13 +++++++++++++ .../server-dotnet/examples/storage/list-files.md | 13 +++++++++++++ .../server-dotnet/examples/storage/update-file.md | 13 +++++++++++++ .../examples/teams/create-membership.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/teams/create.md | 13 +++++++++++++ .../examples/teams/delete-membership.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/teams/delete.md | 13 +++++++++++++ .../server-dotnet/examples/teams/get-memberships.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/teams/get.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/teams/list.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/teams/update.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/users/create.md | 13 +++++++++++++ .../server-dotnet/examples/users/delete-session.md | 13 +++++++++++++ .../server-dotnet/examples/users/delete-sessions.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/users/get-logs.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/users/get-prefs.md | 13 +++++++++++++ .../server-dotnet/examples/users/get-sessions.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/users/get.md | 13 +++++++++++++ .../0.6.2/server-dotnet/examples/users/list.md | 13 +++++++++++++ .../server-dotnet/examples/users/update-prefs.md | 13 +++++++++++++ .../server-dotnet/examples/users/update-status.md | 13 +++++++++++++ 62 files changed, 806 insertions(+) create mode 100644 docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/create-document.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/get-document.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/database/update-document.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get-time.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/health/get.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/locale/get.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/teams/create.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/teams/delete.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/teams/get.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/teams/list.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/teams/update.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/create.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/get.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/list.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md create mode 100644 docs/examples/0.6.2/server-dotnet/examples/users/update-status.md diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md new file mode 100644 index 0000000000..6d6a5b7f18 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md @@ -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); + +result = avatars.getBrowser("aa"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..8a89c04618 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md @@ -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); + +result = avatars.getCreditCard("amex"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..d51b02a7c3 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md @@ -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); + +result = avatars.getFavicon("https://example.com"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md new file mode 100644 index 0000000000..88a06d16ff --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md @@ -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); + +result = avatars.getFlag("af"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md new file mode 100644 index 0000000000..06d021dcf7 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md @@ -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); + +result = avatars.getImage("https://example.com"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md new file mode 100644 index 0000000000..09e91e0120 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md @@ -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); + +result = avatars.getInitials(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..5f410cd4ae --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md @@ -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); + +result = avatars.getQR("[TEXT]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md new file mode 100644 index 0000000000..92a26b5559 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md @@ -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); + +result = database.createCollection("[NAME]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md new file mode 100644 index 0000000000..70d00bac14 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md @@ -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); + +result = database.createDocument("[COLLECTION_ID]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md new file mode 100644 index 0000000000..7a611e4778 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md @@ -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); + +result = database.deleteCollection("[COLLECTION_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md new file mode 100644 index 0000000000..7af78fc558 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md @@ -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); + +result = database.deleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md new file mode 100644 index 0000000000..f2bc02fc97 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md @@ -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); + +result = database.getCollection("[COLLECTION_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md new file mode 100644 index 0000000000..376057e59b --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md @@ -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); + +result = database.getDocument("[COLLECTION_ID]", "[DOCUMENT_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md b/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md new file mode 100644 index 0000000000..b9af7abf1c --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md @@ -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); + +result = database.listCollections(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md b/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md new file mode 100644 index 0000000000..355bc43476 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md @@ -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); + +result = database.listDocuments("[COLLECTION_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md new file mode 100644 index 0000000000..33ae0d7d91 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md @@ -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); + +result = database.updateCollection("[COLLECTION_ID]", "[NAME]", {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md new file mode 100644 index 0000000000..719d9f5e2e --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md @@ -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); + +result = database.updateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..3a2b920271 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md @@ -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); + +result = health.getAntiVirus(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md new file mode 100644 index 0000000000..cba191b265 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md @@ -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); + +result = health.getCache(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md new file mode 100644 index 0000000000..27a46ffe7c --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md @@ -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); + +result = health.getDB(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..895147525a --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md @@ -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); + +result = health.getQueueCertificates(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..1e6130ddbd --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md @@ -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); + +result = health.getQueueFunctions(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..bf9dec6e7c --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md @@ -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); + +result = health.getQueueLogs(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..0ca3a4b3f0 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md @@ -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); + +result = health.getQueueTasks(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..74cedc0bca --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md @@ -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); + +result = health.getQueueUsage(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..eb7f9071c1 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md @@ -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); + +result = health.getQueueWebhooks(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md new file mode 100644 index 0000000000..0cfc305b63 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md @@ -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); + +result = health.getStorageLocal(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md new file mode 100644 index 0000000000..4887d4b20b --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md @@ -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); + +result = health.getTime(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get.md b/docs/examples/0.6.2/server-dotnet/examples/health/get.md new file mode 100644 index 0000000000..1b7428a216 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get.md @@ -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); + +result = health.get(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md new file mode 100644 index 0000000000..0f85130aa3 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md @@ -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); + +result = locale.getContinents(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..8567e3ea4e --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md @@ -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); + +result = locale.getCountriesEU(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..a2c5e1a8ab --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md @@ -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); + +result = locale.getCountriesPhones(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md new file mode 100644 index 0000000000..724c019133 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md @@ -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); + +result = locale.getCountries(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md new file mode 100644 index 0000000000..44f4ba5924 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md @@ -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); + +result = locale.getCurrencies(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md new file mode 100644 index 0000000000..8020c37230 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md @@ -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); + +result = locale.getLanguages(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get.md new file mode 100644 index 0000000000..ce9d4207b6 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get.md @@ -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); + +result = locale.get(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md new file mode 100644 index 0000000000..f0ac77f9d8 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md @@ -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); + +result = storage.createFile(new File("./path-to-files/image.jpg"), {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md new file mode 100644 index 0000000000..d478052b7c --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md @@ -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); + +result = storage.deleteFile("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md new file mode 100644 index 0000000000..fc209435fe --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md @@ -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); + +result = storage.getFileDownload("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..ba50cb911a --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md @@ -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); + +result = storage.getFilePreview("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md new file mode 100644 index 0000000000..87226f1603 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md @@ -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); + +result = storage.getFileView("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md new file mode 100644 index 0000000000..50553b6b0e --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md @@ -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); + +result = storage.getFile("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md b/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md new file mode 100644 index 0000000000..ba9bb077b8 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md @@ -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); + +result = storage.listFiles(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md new file mode 100644 index 0000000000..1aa65653c2 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md @@ -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); + +result = storage.updateFile("[FILE_ID]", {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md b/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md new file mode 100644 index 0000000000..66832b80f1 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md @@ -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); + +result = teams.createMembership("[TEAM_ID]", "email@example.com", {}, "https://example.com"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/create.md b/docs/examples/0.6.2/server-dotnet/examples/teams/create.md new file mode 100644 index 0000000000..ff5ee26138 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/create.md @@ -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); + +result = teams.create("[NAME]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md b/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md new file mode 100644 index 0000000000..7c1900621c --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md @@ -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); + +result = teams.deleteMembership("[TEAM_ID]", "[INVITE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md b/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md new file mode 100644 index 0000000000..ae0fda06ad --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md @@ -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); + +result = teams.delete("[TEAM_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md b/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md new file mode 100644 index 0000000000..1aac54c69d --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md @@ -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); + +result = teams.getMemberships("[TEAM_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/get.md b/docs/examples/0.6.2/server-dotnet/examples/teams/get.md new file mode 100644 index 0000000000..eb0bc28f73 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/get.md @@ -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); + +result = teams.get("[TEAM_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/list.md b/docs/examples/0.6.2/server-dotnet/examples/teams/list.md new file mode 100644 index 0000000000..bc60aa8a35 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/list.md @@ -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); + +result = teams.list(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/update.md b/docs/examples/0.6.2/server-dotnet/examples/teams/update.md new file mode 100644 index 0000000000..3815283343 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/update.md @@ -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); + +result = teams.update("[TEAM_ID]", "[NAME]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/create.md b/docs/examples/0.6.2/server-dotnet/examples/users/create.md new file mode 100644 index 0000000000..536e995d0b --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/create.md @@ -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); + +result = users.create("email@example.com", "password"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md b/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md new file mode 100644 index 0000000000..eb455cb140 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md @@ -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); + +result = users.deleteSession("[USER_ID]", "[SESSION_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md b/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md new file mode 100644 index 0000000000..5793fe5bc8 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md @@ -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); + +result = users.deleteSessions("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md new file mode 100644 index 0000000000..0c68cad6c2 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md @@ -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); + +result = users.getLogs("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md new file mode 100644 index 0000000000..b9165807bc --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md @@ -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); + +result = users.getPrefs("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md new file mode 100644 index 0000000000..b1fff05940 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md @@ -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); + +result = users.getSessions("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get.md b/docs/examples/0.6.2/server-dotnet/examples/users/get.md new file mode 100644 index 0000000000..fb5d4ceec5 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get.md @@ -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); + +result = users.get("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/list.md b/docs/examples/0.6.2/server-dotnet/examples/users/list.md new file mode 100644 index 0000000000..bbe25485a2 --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/list.md @@ -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); + +result = users.list(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md b/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md new file mode 100644 index 0000000000..accdcd757f --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md @@ -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); + +result = users.updatePrefs("[USER_ID]", {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md b/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md new file mode 100644 index 0000000000..51822dd10e --- /dev/null +++ b/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md @@ -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); + +result = users.updateStatus("[USER_ID]", "1"); From 90c5913957b66300f2c85cca027cff0af8a42e7b Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 4 Jan 2021 19:45:35 +0200 Subject: [PATCH 05/12] Updated dependencies --- app/tasks/sdks.php | 4 +++- composer.json | 2 +- composer.lock | 13 ++++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/tasks/sdks.php b/app/tasks/sdks.php index 9b0798b179..e0a6fbd051 100644 --- a/app/tasks/sdks.php +++ b/app/tasks/sdks.php @@ -61,6 +61,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'].'/'; @@ -134,6 +135,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND $config = new Swift(); break; case 'dotnet': + $cover = ''; $config = new DotNet(); break; default: @@ -158,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') diff --git a/composer.json b/composer.json index 97d2263952..998e6b0d0d 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ }, "require-dev": { "swoole/ide-helper": "4.5.5", - "appwrite/sdk-generator": "0.3.0", + "appwrite/sdk-generator": "dev-master", "phpunit/phpunit": "9.4.2", "vimeo/psalm": "4.1.1" }, diff --git a/composer.lock b/composer.lock index 606dd5fd67..3b8cc855d4 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "57a43a1cab8459494f031551fe83ffb5", + "content-hash": "30a8a58c868d3546fc22511b46431564", "packages": [ { "name": "appwrite/php-clamav", @@ -1858,11 +1858,11 @@ }, { "name": "appwrite/sdk-generator", - "version": "0.3.0", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "f0a6ecf92869012dd546ec503c69177dce0f9d90" + "reference": "7d762df83f2539ca89605e40541afbdb20941542" }, "require": { "ext-curl": "*", @@ -1875,6 +1875,7 @@ "require-dev": { "phpunit/phpunit": "^7.0" }, + "default-branch": true, "type": "library", "autoload": { "psr-4": { @@ -1892,7 +1893,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2021-01-03T21:23:24+00:00" + "time": "2021-01-04T16:19:42+00:00" }, { "name": "composer/package-versions-deprecated", @@ -5603,7 +5604,9 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": { + "appwrite/sdk-generator": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { From df18492d7f57632d60e97cdee7431cc424d247d7 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 4 Jan 2021 19:56:08 +0200 Subject: [PATCH 06/12] Updated Nuget URL --- app/config/platforms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index 13773b67eb..ffc51b89ed 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -242,7 +242,7 @@ return [ 'name' => '.NET', 'version' => '0.0.1', 'url' => 'https://github.com/appwrite/sdk-for-dotnet', - 'package' => '', + 'package' => 'https://www.nuget.org/packages/Appwrite', 'enabled' => true, 'beta' => true, 'family' => APP_PLATFORM_SERVER, From b516eec69d17025c9cf8e8b9b2b4ef8736e50a18 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 5 Jan 2021 00:34:21 +0200 Subject: [PATCH 07/12] Updated SDK generator version --- composer.json | 2 +- composer.lock | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 998e6b0d0d..a74996f91a 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ }, "require-dev": { "swoole/ide-helper": "4.5.5", - "appwrite/sdk-generator": "dev-master", + "appwrite/sdk-generator": "0.3.2", "phpunit/phpunit": "9.4.2", "vimeo/psalm": "4.1.1" }, diff --git a/composer.lock b/composer.lock index 3b8cc855d4..42591c7182 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "30a8a58c868d3546fc22511b46431564", + "content-hash": "229bcebe0c03153ab739cd324fb4eb43", "packages": [ { "name": "appwrite/php-clamav", @@ -1858,7 +1858,7 @@ }, { "name": "appwrite/sdk-generator", - "version": "dev-master", + "version": "0.3.2", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", @@ -1875,7 +1875,6 @@ "require-dev": { "phpunit/phpunit": "^7.0" }, - "default-branch": true, "type": "library", "autoload": { "psr-4": { @@ -5604,9 +5603,7 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": { - "appwrite/sdk-generator": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { From 4a05e963901b7d9c468ea207e4a95e8d0afabc4e Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 5 Jan 2021 23:33:36 +0200 Subject: [PATCH 08/12] Updated dependencies --- composer.json | 2 +- composer.lock | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/composer.json b/composer.json index a74996f91a..f0dc6c104c 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ }, "require-dev": { "swoole/ide-helper": "4.5.5", - "appwrite/sdk-generator": "0.3.2", + "appwrite/sdk-generator": "0.3.3", "phpunit/phpunit": "9.4.2", "vimeo/psalm": "4.1.1" }, diff --git a/composer.lock b/composer.lock index 42591c7182..23bbf8edea 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "229bcebe0c03153ab739cd324fb4eb43", + "content-hash": "2dee8b75780ba88fd7da28d08d691998", "packages": [ { "name": "appwrite/php-clamav", @@ -1858,11 +1858,11 @@ }, { "name": "appwrite/sdk-generator", - "version": "0.3.2", + "version": "0.3.3", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "7d762df83f2539ca89605e40541afbdb20941542" + "reference": "7530820a1ee824874d89749c51b0e49d15595abc" }, "require": { "ext-curl": "*", @@ -1892,7 +1892,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2021-01-04T16:19:42+00:00" + "time": "2021-01-05T17:58:17+00:00" }, { "name": "composer/package-versions-deprecated", @@ -4513,12 +4513,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "5a8ebe413fbd4091d5b3c5b70e298141681c59c7" + "reference": "af2bafc13cb92e182bf634285346925e09888d23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/5a8ebe413fbd4091d5b3c5b70e298141681c59c7", - "reference": "5a8ebe413fbd4091d5b3c5b70e298141681c59c7", + "url": "https://api.github.com/repos/symfony/console/zipball/af2bafc13cb92e182bf634285346925e09888d23", + "reference": "af2bafc13cb92e182bf634285346925e09888d23", "shasum": "" }, "require": { @@ -4603,7 +4603,7 @@ "type": "tidelift" } ], - "time": "2021-01-01T09:27:20+00:00" + "time": "2021-01-05T19:51:30+00:00" }, { "name": "symfony/polyfill-ctype", @@ -5318,12 +5318,12 @@ "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "846ebbd7c8e780913fa5731d9c6139522111b56f" + "reference": "a0e2cc25723f3cdb6bbaf617664c4e228f1e9886" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/846ebbd7c8e780913fa5731d9c6139522111b56f", - "reference": "846ebbd7c8e780913fa5731d9c6139522111b56f", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/a0e2cc25723f3cdb6bbaf617664c4e228f1e9886", + "reference": "a0e2cc25723f3cdb6bbaf617664c4e228f1e9886", "shasum": "" }, "require": { @@ -5389,7 +5389,7 @@ "type": "tidelift" } ], - "time": "2021-01-01T14:57:43+00:00" + "time": "2021-01-05T15:39:16+00:00" }, { "name": "vimeo/psalm", From bb0725261d0edb6fc5e28e2eedbe4acfef32aea2 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 5 Jan 2021 23:34:49 +0200 Subject: [PATCH 09/12] Updated code examples --- .../0.6.2/server-dotnet/examples/avatars/get-browser.md | 8 ++++---- .../server-dotnet/examples/avatars/get-credit-card.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-favicon.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-flag.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-image.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-initials.md | 8 ++++---- .../0.6.2/server-dotnet/examples/avatars/get-q-r.md | 8 ++++---- .../server-dotnet/examples/database/create-collection.md | 8 ++++---- .../server-dotnet/examples/database/create-document.md | 8 ++++---- .../server-dotnet/examples/database/delete-collection.md | 8 ++++---- .../server-dotnet/examples/database/delete-document.md | 8 ++++---- .../server-dotnet/examples/database/get-collection.md | 8 ++++---- .../0.6.2/server-dotnet/examples/database/get-document.md | 8 ++++---- .../server-dotnet/examples/database/list-collections.md | 8 ++++---- .../server-dotnet/examples/database/list-documents.md | 8 ++++---- .../server-dotnet/examples/database/update-collection.md | 8 ++++---- .../server-dotnet/examples/database/update-document.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-anti-virus.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-cache.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-d-b.md | 8 ++++---- .../examples/health/get-queue-certificates.md | 8 ++++---- .../server-dotnet/examples/health/get-queue-functions.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-queue-logs.md | 8 ++++---- .../server-dotnet/examples/health/get-queue-tasks.md | 8 ++++---- .../server-dotnet/examples/health/get-queue-usage.md | 8 ++++---- .../server-dotnet/examples/health/get-queue-webhooks.md | 8 ++++---- .../server-dotnet/examples/health/get-storage-local.md | 8 ++++---- .../0.6.2/server-dotnet/examples/health/get-time.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/health/get.md | 8 ++++---- .../0.6.2/server-dotnet/examples/locale/get-continents.md | 8 ++++---- .../server-dotnet/examples/locale/get-countries-e-u.md | 8 ++++---- .../server-dotnet/examples/locale/get-countries-phones.md | 8 ++++---- .../0.6.2/server-dotnet/examples/locale/get-countries.md | 8 ++++---- .../0.6.2/server-dotnet/examples/locale/get-currencies.md | 8 ++++---- .../0.6.2/server-dotnet/examples/locale/get-languages.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/locale/get.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/create-file.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/delete-file.md | 8 ++++---- .../server-dotnet/examples/storage/get-file-download.md | 8 ++++---- .../server-dotnet/examples/storage/get-file-preview.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/get-file-view.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/get-file.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/list-files.md | 8 ++++---- .../0.6.2/server-dotnet/examples/storage/update-file.md | 8 ++++---- .../server-dotnet/examples/teams/create-membership.md | 8 ++++---- .../examples/0.6.2/server-dotnet/examples/teams/create.md | 8 ++++---- .../server-dotnet/examples/teams/delete-membership.md | 8 ++++---- .../examples/0.6.2/server-dotnet/examples/teams/delete.md | 8 ++++---- .../0.6.2/server-dotnet/examples/teams/get-memberships.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/teams/get.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/teams/list.md | 8 ++++---- .../examples/0.6.2/server-dotnet/examples/teams/update.md | 8 ++++---- .../examples/0.6.2/server-dotnet/examples/users/create.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/delete-session.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/delete-sessions.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/get-logs.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/get-prefs.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/get-sessions.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/users/get.md | 8 ++++---- docs/examples/0.6.2/server-dotnet/examples/users/list.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/update-prefs.md | 8 ++++---- .../0.6.2/server-dotnet/examples/users/update-status.md | 8 ++++---- 62 files changed, 248 insertions(+), 248 deletions(-) diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md index 6d6a5b7f18..d4c2d0312d 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-browser.md @@ -3,11 +3,11 @@ 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 + .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); -result = avatars.getBrowser("aa"); +string result = await avatars.GetBrowser("aa"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md index 8a89c04618..d0ab8d7205 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-credit-card.md @@ -3,11 +3,11 @@ 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 + .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); -result = avatars.getCreditCard("amex"); +string result = await avatars.GetCreditCard("amex"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md index d51b02a7c3..85155dbfd4 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-favicon.md @@ -3,11 +3,11 @@ 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 + .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); -result = avatars.getFavicon("https://example.com"); +string result = await avatars.GetFavicon("https://example.com"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md index 88a06d16ff..031b52af14 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-flag.md @@ -3,11 +3,11 @@ 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 + .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); -result = avatars.getFlag("af"); +string result = await avatars.GetFlag("af"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md index 06d021dcf7..d8e6c98558 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-image.md @@ -3,11 +3,11 @@ 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 + .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); -result = avatars.getImage("https://example.com"); +string result = await avatars.GetImage("https://example.com"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md index 09e91e0120..177216034b 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-initials.md @@ -3,11 +3,11 @@ 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 + .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); -result = avatars.getInitials(); +string result = await avatars.GetInitials(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md index 5f410cd4ae..e057ed6877 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md +++ b/docs/examples/0.6.2/server-dotnet/examples/avatars/get-q-r.md @@ -3,11 +3,11 @@ 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 + .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); -result = avatars.getQR("[TEXT]"); +string result = await avatars.GetQR("[TEXT]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md index 92a26b5559..a8c2c3f7e0 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.createCollection("[NAME]", {}, {}, {}); +HttpResponseMessage result = await database.CreateCollection("[NAME]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md index 70d00bac14..1a875067a1 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.createDocument("[COLLECTION_ID]", {}, {}, {}); +HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md index 7a611e4778..4648a3e194 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/delete-collection.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.deleteCollection("[COLLECTION_ID]"); +HttpResponseMessage result = await database.DeleteCollection("[COLLECTION_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md index 7af78fc558..80f413b468 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/delete-document.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.deleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]"); +HttpResponseMessage result = await database.DeleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md index f2bc02fc97..88f046ba2e 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/get-collection.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.getCollection("[COLLECTION_ID]"); +HttpResponseMessage result = await database.GetCollection("[COLLECTION_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md index 376057e59b..1d425bac59 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/get-document.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.getDocument("[COLLECTION_ID]", "[DOCUMENT_ID]"); +HttpResponseMessage result = await database.GetDocument("[COLLECTION_ID]", "[DOCUMENT_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md b/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md index b9af7abf1c..593438d255 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/list-collections.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.listCollections(); +HttpResponseMessage result = await database.ListCollections(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md b/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md index 355bc43476..36e31468f9 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/list-documents.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.listDocuments("[COLLECTION_ID]"); +HttpResponseMessage result = await database.ListDocuments("[COLLECTION_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md index 33ae0d7d91..42c67650d1 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.updateCollection("[COLLECTION_ID]", "[NAME]", {}, {}); +HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]", {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md index 719d9f5e2e..5f4c173b7a 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md @@ -3,11 +3,11 @@ 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 + .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); -result = database.updateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {}, {}, {}); +HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {}, {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md index 3a2b920271..a287ec4617 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-anti-virus.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getAntiVirus(); +HttpResponseMessage result = await health.GetAntiVirus(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md index cba191b265..66c72f77b6 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-cache.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getCache(); +HttpResponseMessage result = await health.GetCache(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md index 27a46ffe7c..94e3556b4e 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-d-b.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getDB(); +HttpResponseMessage result = await health.GetDB(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md index 895147525a..f0dbb9086b 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-certificates.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getQueueCertificates(); +HttpResponseMessage result = await health.GetQueueCertificates(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md index 1e6130ddbd..c0a0b14628 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-functions.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getQueueFunctions(); +HttpResponseMessage result = await health.GetQueueFunctions(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md index bf9dec6e7c..11ea9dbff1 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-logs.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getQueueLogs(); +HttpResponseMessage result = await health.GetQueueLogs(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md index 0ca3a4b3f0..291e5ea8bd 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-tasks.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getQueueTasks(); +HttpResponseMessage result = await health.GetQueueTasks(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md index 74cedc0bca..ecd4f69180 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-usage.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getQueueUsage(); +HttpResponseMessage result = await health.GetQueueUsage(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md index eb7f9071c1..b16a368469 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-queue-webhooks.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getQueueWebhooks(); +HttpResponseMessage result = await health.GetQueueWebhooks(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md index 0cfc305b63..793d9c8667 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-storage-local.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getStorageLocal(); +HttpResponseMessage result = await health.GetStorageLocal(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md b/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md index 4887d4b20b..00431f7b2f 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get-time.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.getTime(); +HttpResponseMessage result = await health.GetTime(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/health/get.md b/docs/examples/0.6.2/server-dotnet/examples/health/get.md index 1b7428a216..f487428928 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/health/get.md +++ b/docs/examples/0.6.2/server-dotnet/examples/health/get.md @@ -3,11 +3,11 @@ 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 + .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); -result = health.get(); +HttpResponseMessage result = await health.Get(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md index 0f85130aa3..ad5590032c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-continents.md @@ -3,11 +3,11 @@ 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 + .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); -result = locale.getContinents(); +HttpResponseMessage result = await locale.GetContinents(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md index 8567e3ea4e..6bd92406cf 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-e-u.md @@ -3,11 +3,11 @@ 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 + .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); -result = locale.getCountriesEU(); +HttpResponseMessage result = await locale.GetCountriesEU(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md index a2c5e1a8ab..2952035a5a 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries-phones.md @@ -3,11 +3,11 @@ 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 + .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); -result = locale.getCountriesPhones(); +HttpResponseMessage result = await locale.GetCountriesPhones(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md index 724c019133..fa65eede63 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-countries.md @@ -3,11 +3,11 @@ 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 + .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); -result = locale.getCountries(); +HttpResponseMessage result = await locale.GetCountries(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md index 44f4ba5924..bfe091796c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-currencies.md @@ -3,11 +3,11 @@ 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 + .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); -result = locale.getCurrencies(); +HttpResponseMessage result = await locale.GetCurrencies(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md index 8020c37230..5bb2571246 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get-languages.md @@ -3,11 +3,11 @@ 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 + .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); -result = locale.getLanguages(); +HttpResponseMessage result = await locale.GetLanguages(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/locale/get.md b/docs/examples/0.6.2/server-dotnet/examples/locale/get.md index ce9d4207b6..ba59d83b7b 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/locale/get.md +++ b/docs/examples/0.6.2/server-dotnet/examples/locale/get.md @@ -3,11 +3,11 @@ 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 + .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); -result = locale.get(); +HttpResponseMessage result = await locale.Get(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md index f0ac77f9d8..5427fceb1e 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md @@ -3,11 +3,11 @@ 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 + .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); -result = storage.createFile(new File("./path-to-files/image.jpg"), {}, {}); +HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg"), {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md index d478052b7c..c78d0fbeb2 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/delete-file.md @@ -3,11 +3,11 @@ 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 + .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); -result = storage.deleteFile("[FILE_ID]"); +HttpResponseMessage result = await storage.DeleteFile("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md index fc209435fe..4f0f940130 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-download.md @@ -3,11 +3,11 @@ 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 + .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); -result = storage.getFileDownload("[FILE_ID]"); +string result = await storage.GetFileDownload("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md index ba50cb911a..1c7df59c31 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-preview.md @@ -3,11 +3,11 @@ 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 + .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); -result = storage.getFilePreview("[FILE_ID]"); +string result = await storage.GetFilePreview("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md index 87226f1603..61843791d2 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file-view.md @@ -3,11 +3,11 @@ 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 + .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); -result = storage.getFileView("[FILE_ID]"); +string result = await storage.GetFileView("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md index 50553b6b0e..a23d658b10 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/get-file.md @@ -3,11 +3,11 @@ 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 + .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); -result = storage.getFile("[FILE_ID]"); +HttpResponseMessage result = await storage.GetFile("[FILE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md b/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md index ba9bb077b8..df57620627 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/list-files.md @@ -3,11 +3,11 @@ 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 + .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); -result = storage.listFiles(); +HttpResponseMessage result = await storage.ListFiles(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md index 1aa65653c2..8effc42980 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md @@ -3,11 +3,11 @@ 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 + .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); -result = storage.updateFile("[FILE_ID]", {}, {}); +HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", {}, {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md b/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md index 66832b80f1..d149cb4738 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md @@ -3,11 +3,11 @@ 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 + .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); -result = teams.createMembership("[TEAM_ID]", "email@example.com", {}, "https://example.com"); +HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", {}, "https://example.com"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/create.md b/docs/examples/0.6.2/server-dotnet/examples/teams/create.md index ff5ee26138..a78e517308 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/create.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/create.md @@ -3,11 +3,11 @@ 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 + .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); -result = teams.create("[NAME]"); +HttpResponseMessage result = await teams.Create("[NAME]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md b/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md index 7c1900621c..d551dbf3aa 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/delete-membership.md @@ -3,11 +3,11 @@ 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 + .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); -result = teams.deleteMembership("[TEAM_ID]", "[INVITE_ID]"); +HttpResponseMessage result = await teams.DeleteMembership("[TEAM_ID]", "[INVITE_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md b/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md index ae0fda06ad..a08d23519c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/delete.md @@ -3,11 +3,11 @@ 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 + .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); -result = teams.delete("[TEAM_ID]"); +HttpResponseMessage result = await teams.Delete("[TEAM_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md b/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md index 1aac54c69d..1d76616f5e 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/get-memberships.md @@ -3,11 +3,11 @@ 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 + .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); -result = teams.getMemberships("[TEAM_ID]"); +HttpResponseMessage result = await teams.GetMemberships("[TEAM_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/get.md b/docs/examples/0.6.2/server-dotnet/examples/teams/get.md index eb0bc28f73..796f600bd9 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/get.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/get.md @@ -3,11 +3,11 @@ 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 + .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); -result = teams.get("[TEAM_ID]"); +HttpResponseMessage result = await teams.Get("[TEAM_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/list.md b/docs/examples/0.6.2/server-dotnet/examples/teams/list.md index bc60aa8a35..648003524d 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/list.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/list.md @@ -3,11 +3,11 @@ 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 + .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); -result = teams.list(); +HttpResponseMessage result = await teams.List(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/update.md b/docs/examples/0.6.2/server-dotnet/examples/teams/update.md index 3815283343..54ed78db72 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/update.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/update.md @@ -3,11 +3,11 @@ 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 + .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); -result = teams.update("[TEAM_ID]", "[NAME]"); +HttpResponseMessage result = await teams.Update("[TEAM_ID]", "[NAME]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/create.md b/docs/examples/0.6.2/server-dotnet/examples/users/create.md index 536e995d0b..1f7fab70a7 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/create.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/create.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.create("email@example.com", "password"); +HttpResponseMessage result = await users.Create("email@example.com", "password"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md b/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md index eb455cb140..fd322868ab 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/delete-session.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.deleteSession("[USER_ID]", "[SESSION_ID]"); +HttpResponseMessage result = await users.DeleteSession("[USER_ID]", "[SESSION_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md b/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md index 5793fe5bc8..d2ed98e479 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/delete-sessions.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.deleteSessions("[USER_ID]"); +HttpResponseMessage result = await users.DeleteSessions("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md index 0c68cad6c2..bf9db43c23 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-logs.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.getLogs("[USER_ID]"); +HttpResponseMessage result = await users.GetLogs("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md index b9165807bc..b92ed4c20a 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-prefs.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.getPrefs("[USER_ID]"); +HttpResponseMessage result = await users.GetPrefs("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md b/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md index b1fff05940..2431460668 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get-sessions.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.getSessions("[USER_ID]"); +HttpResponseMessage result = await users.GetSessions("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/get.md b/docs/examples/0.6.2/server-dotnet/examples/users/get.md index fb5d4ceec5..93c31c599c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/get.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/get.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.get("[USER_ID]"); +HttpResponseMessage result = await users.Get("[USER_ID]"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/list.md b/docs/examples/0.6.2/server-dotnet/examples/users/list.md index bbe25485a2..f85440c498 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/list.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/list.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.list(); +HttpResponseMessage result = await users.List(); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md b/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md index accdcd757f..06ffa4245a 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.updatePrefs("[USER_ID]", {}); +HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", {}); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md b/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md index 51822dd10e..a2b00ff16c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/update-status.md @@ -3,11 +3,11 @@ 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 + .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); -result = users.updateStatus("[USER_ID]", "1"); +HttpResponseMessage result = await users.UpdateStatus("[USER_ID]", "1"); From 5e1ff7396e288d2e8e831497cebf53a057a264e2 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 7 Jan 2021 00:02:05 +0200 Subject: [PATCH 10/12] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7967b1b2ef..b10fecd5cf 100644 --- a/README.md +++ b/README.md @@ -124,7 +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) - **Expiremental** (Maintained by the Appwrite Team) +* ✅   [.NET](https://github.com/appwrite/sdk-for-dotnet) - **Experimental** (Maintained by the Appwrite Team) * ✅   [Go](https://github.com/appwrite/sdk-for-go) **Work in progress** (Maintained by the Appwrite Team) * ✅   [Dart](https://github.com/appwrite/sdk-for-dart) **Work in progress** (Maintained by the Appwrite Team) From b23d2bf6e4d2663d9d02ec32b5b743995324bff3 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 7 Jan 2021 16:11:41 +0200 Subject: [PATCH 11/12] Updated examples --- composer.json | 2 +- composer.lock | 98 ++++++++++--------- .../examples/database/create-collection.md | 2 +- .../examples/database/create-document.md | 2 +- .../examples/database/update-collection.md | 2 +- .../examples/database/update-document.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/storage/update-file.md | 2 +- .../examples/teams/create-membership.md | 2 +- .../examples/users/update-prefs.md | 2 +- 10 files changed, 60 insertions(+), 56 deletions(-) diff --git a/composer.json b/composer.json index f0dc6c104c..ee1e90a876 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ }, "require-dev": { "swoole/ide-helper": "4.5.5", - "appwrite/sdk-generator": "0.3.3", + "appwrite/sdk-generator": "0.4.2", "phpunit/phpunit": "9.4.2", "vimeo/psalm": "4.1.1" }, diff --git a/composer.lock b/composer.lock index 23bbf8edea..9b68ad5f56 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "2dee8b75780ba88fd7da28d08d691998", + "content-hash": "0df79d7789fec84aa4500edad823f1f6", "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.3.3", + "version": "0.4.2", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "7530820a1ee824874d89749c51b0e49d15595abc" + "reference": "5482f4cdb65ab90ffea752ba9a625187cd7c7784" }, "require": { "ext-curl": "*", @@ -1892,7 +1896,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2021-01-05T17:58:17+00:00" + "time": "2021-01-07T14:03:54+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", @@ -4513,12 +4517,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "af2bafc13cb92e182bf634285346925e09888d23" + "reference": "da4c3663721420520b024e5aede66b813019e744" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/af2bafc13cb92e182bf634285346925e09888d23", - "reference": "af2bafc13cb92e182bf634285346925e09888d23", + "url": "https://api.github.com/repos/symfony/console/zipball/da4c3663721420520b024e5aede66b813019e744", + "reference": "da4c3663721420520b024e5aede66b813019e744", "shasum": "" }, "require": { @@ -4603,7 +4607,7 @@ "type": "tidelift" } ], - "time": "2021-01-05T19:51:30+00:00" + "time": "2021-01-05T20:16:44+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4611,12 +4615,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "7130f348df2f842044038aaae9d6653dc9d67649" + "reference": "7c0a3c5420fd802637c4260e595d6c674b23d578" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7130f348df2f842044038aaae9d6653dc9d67649", - "reference": "7130f348df2f842044038aaae9d6653dc9d67649", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/7c0a3c5420fd802637c4260e595d6c674b23d578", + "reference": "7c0a3c5420fd802637c4260e595d6c674b23d578", "shasum": "" }, "require": { @@ -4683,7 +4687,7 @@ "type": "tidelift" } ], - "time": "2020-12-27T09:28:48+00:00" + "time": "2021-01-06T10:19:43+00:00" }, { "name": "symfony/polyfill-intl-grapheme", @@ -4691,12 +4695,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "e314d4992832c3a0a68ca731fadd959917320fda" + "reference": "32b651134d58efe1786c95352d846913a42d8331" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e314d4992832c3a0a68ca731fadd959917320fda", - "reference": "e314d4992832c3a0a68ca731fadd959917320fda", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32b651134d58efe1786c95352d846913a42d8331", + "reference": "32b651134d58efe1786c95352d846913a42d8331", "shasum": "" }, "require": { @@ -4765,7 +4769,7 @@ "type": "tidelift" } ], - "time": "2020-12-27T09:28:48+00:00" + "time": "2021-01-06T10:19:43+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -4773,12 +4777,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "3a79a2226897adae0cab81688fbc5144e2fc53f6" + "reference": "8592bf62da8352927fc3857484e84baacddec301" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3a79a2226897adae0cab81688fbc5144e2fc53f6", - "reference": "3a79a2226897adae0cab81688fbc5144e2fc53f6", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8592bf62da8352927fc3857484e84baacddec301", + "reference": "8592bf62da8352927fc3857484e84baacddec301", "shasum": "" }, "require": { @@ -4850,7 +4854,7 @@ "type": "tidelift" } ], - "time": "2020-12-27T22:11:44+00:00" + "time": "2021-01-06T10:19:43+00:00" }, { "name": "symfony/polyfill-mbstring", @@ -4858,12 +4862,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "de14691dc88bbbc5535de7f0e32080977dc1d23f" + "reference": "ec0101071dcbc6bdd5046da11df686f8515fa815" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/de14691dc88bbbc5535de7f0e32080977dc1d23f", - "reference": "de14691dc88bbbc5535de7f0e32080977dc1d23f", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/ec0101071dcbc6bdd5046da11df686f8515fa815", + "reference": "ec0101071dcbc6bdd5046da11df686f8515fa815", "shasum": "" }, "require": { @@ -4931,7 +4935,7 @@ "type": "tidelift" } ], - "time": "2020-12-27T09:28:48+00:00" + "time": "2021-01-06T10:19:43+00:00" }, { "name": "symfony/polyfill-php73", @@ -4939,12 +4943,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "8c0d39c1526009b97f43beea4cc685bbc353a70b" + "reference": "6d0e293e2b13580b866090a135900aea4adcb308" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/8c0d39c1526009b97f43beea4cc685bbc353a70b", - "reference": "8c0d39c1526009b97f43beea4cc685bbc353a70b", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/6d0e293e2b13580b866090a135900aea4adcb308", + "reference": "6d0e293e2b13580b866090a135900aea4adcb308", "shasum": "" }, "require": { @@ -5011,7 +5015,7 @@ "type": "tidelift" } ], - "time": "2020-10-26T13:35:45+00:00" + "time": "2021-01-06T10:19:43+00:00" }, { "name": "symfony/polyfill-php80", @@ -5019,12 +5023,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "54cc82c30ba7ed02bc64f5d010488c159b5f1706" + "reference": "69e5da91ad9c080f6ac1e010ddffefe71b14bd6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/54cc82c30ba7ed02bc64f5d010488c159b5f1706", - "reference": "54cc82c30ba7ed02bc64f5d010488c159b5f1706", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/69e5da91ad9c080f6ac1e010ddffefe71b14bd6e", + "reference": "69e5da91ad9c080f6ac1e010ddffefe71b14bd6e", "shasum": "" }, "require": { @@ -5095,7 +5099,7 @@ "type": "tidelift" } ], - "time": "2020-12-27T09:28:48+00:00" + "time": "2021-01-06T10:19:43+00:00" }, { "name": "symfony/service-contracts", diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md index a8c2c3f7e0..7e519655b2 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/create-collection.md @@ -10,4 +10,4 @@ client Database database = new Database(client); -HttpResponseMessage result = await database.CreateCollection("[NAME]", {}, {}, {}); +HttpResponseMessage result = await database.CreateCollection("[NAME]", [List], [List], [List]); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md index 1a875067a1..be00512f29 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/create-document.md @@ -10,4 +10,4 @@ client Database database = new Database(client); -HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", {}, {}, {}); +HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", [object], [List], [List]); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md b/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md index 42c67650d1..c28830be3c 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/update-collection.md @@ -10,4 +10,4 @@ client Database database = new Database(client); -HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]", {}, {}); +HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]", [List], [List]); diff --git a/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md b/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md index 5f4c173b7a..32176af3da 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md +++ b/docs/examples/0.6.2/server-dotnet/examples/database/update-document.md @@ -10,4 +10,4 @@ client Database database = new Database(client); -HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", {}, {}, {}); +HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", [object], [List], [List]); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md index 5427fceb1e..8c1e80e8c3 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/create-file.md @@ -10,4 +10,4 @@ client Storage storage = new Storage(client); -HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg"), {}, {}); +HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg"), [List], [List]); diff --git a/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md b/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md index 8effc42980..fd62fa4049 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md +++ b/docs/examples/0.6.2/server-dotnet/examples/storage/update-file.md @@ -10,4 +10,4 @@ client Storage storage = new Storage(client); -HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", {}, {}); +HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", [List], [List]); diff --git a/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md b/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md index d149cb4738..7391cc6fff 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md +++ b/docs/examples/0.6.2/server-dotnet/examples/teams/create-membership.md @@ -10,4 +10,4 @@ client Teams teams = new Teams(client); -HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", {}, "https://example.com"); +HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", [List], "https://example.com"); diff --git a/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md b/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md index 06ffa4245a..0cfb05f912 100644 --- a/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md +++ b/docs/examples/0.6.2/server-dotnet/examples/users/update-prefs.md @@ -10,4 +10,4 @@ client Users users = new Users(client); -HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", {}); +HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", [object]); From cb13cbe389ddb33413836d036cb14240c259c26c Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sat, 9 Jan 2021 08:04:39 +0200 Subject: [PATCH 12/12] Updated .NET version, added dev flag --- app/config/platforms.php | 18 ++++++++- composer.json | 2 +- composer.lock | 80 ++++++++++++++++++++-------------------- 3 files changed, 58 insertions(+), 42 deletions(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index ffc51b89ed..36ce0bb226 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -20,6 +20,7 @@ return [ 'package' => 'https://www.npmjs.com/package/appwrite', 'enabled' => true, 'beta' => false, + 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => 'javascript', 'source' => \realpath(__DIR__ . '/../sdks/client-web'), @@ -35,6 +36,7 @@ return [ 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, 'beta' => true, + 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => 'dart', 'source' => \realpath(__DIR__ . '/../sdks/client-flutter'), @@ -49,6 +51,7 @@ return [ 'package' => '', 'enabled' => false, 'beta' => false, + 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => 'swift', 'source' => false, @@ -63,6 +66,7 @@ return [ 'package' => '', 'enabled' => false, 'beta' => false, + 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => '', 'source' => false, @@ -77,6 +81,7 @@ return [ 'package' => '', 'enabled' => false, 'beta' => false, + 'dev' => false, 'family' => APP_PLATFORM_CLIENT, 'prism' => 'kotlin', 'source' => false, @@ -91,6 +96,7 @@ return [ // 'enabled' => false, // 'dev' => false, // 'beta' => false, + // 'dev' => false, // 'family' => APP_PLATFORM_CLIENT, // 'prism' => 'java', // 'source' => false, @@ -115,6 +121,7 @@ return [ 'package' => '', 'enabled' => true, 'beta' => false, + 'dev' => false, 'family' => APP_PLATFORM_CONSOLE, 'prism' => 'console', 'source' => \realpath(__DIR__ . '/../sdks/console-web'), @@ -140,6 +147,7 @@ return [ 'package' => 'https://www.npmjs.com/package/node-appwrite', 'enabled' => true, 'beta' => false, + 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'javascript', 'source' => \realpath(__DIR__ . '/../sdks/server-nodejs'), @@ -155,6 +163,7 @@ return [ 'package' => 'https://deno.land/x/appwrite', 'enabled' => true, 'beta' => true, + 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'typescript', 'source' => \realpath(__DIR__ . '/../sdks/server-deno'), @@ -170,6 +179,7 @@ return [ 'package' => 'https://packagist.org/packages/appwrite/appwrite', 'enabled' => true, 'beta' => false, + 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'php', 'source' => \realpath(__DIR__ . '/../sdks/server-php'), @@ -185,6 +195,7 @@ return [ 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, 'beta' => true, + 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'python', 'source' => \realpath(__DIR__ . '/../sdks/server-python'), @@ -200,6 +211,7 @@ return [ 'package' => 'https://rubygems.org/gems/appwrite', 'enabled' => true, 'beta' => true, + 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'ruby', 'source' => \realpath(__DIR__ . '/../sdks/server-ruby'), @@ -215,6 +227,7 @@ return [ 'package' => '', 'enabled' => false, 'beta' => true, + 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'go', 'source' => \realpath(__DIR__ . '/../sdks/server-go'), @@ -230,6 +243,7 @@ return [ 'package' => '', 'enabled' => false, 'beta' => true, + 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'java', 'source' => \realpath(__DIR__ . '/../sdks/server-java'), @@ -240,11 +254,12 @@ return [ [ 'key' => 'dotnet', 'name' => '.NET', - 'version' => '0.0.1', + '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'), @@ -260,6 +275,7 @@ return [ 'package' => '', 'enabled' => false, 'beta' => true, + 'dev' => false, 'family' => APP_PLATFORM_SERVER, 'prism' => 'java', 'source' => \realpath(__DIR__ . '/../sdks/server-dart'), diff --git a/composer.json b/composer.json index ee1e90a876..043007c735 100644 --- a/composer.json +++ b/composer.json @@ -56,7 +56,7 @@ }, "require-dev": { "swoole/ide-helper": "4.5.5", - "appwrite/sdk-generator": "0.4.2", + "appwrite/sdk-generator": "0.4.3", "phpunit/phpunit": "9.4.2", "vimeo/psalm": "4.1.1" }, diff --git a/composer.lock b/composer.lock index 9b68ad5f56..09483dbca6 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "0df79d7789fec84aa4500edad823f1f6", + "content-hash": "6594e4d32da0196d0bb2e5a1794ea89d", "packages": [ { "name": "appwrite/php-clamav", @@ -1862,11 +1862,11 @@ }, { "name": "appwrite/sdk-generator", - "version": "0.4.2", + "version": "0.4.3", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "5482f4cdb65ab90ffea752ba9a625187cd7c7784" + "reference": "630776cfe49412e72a70a3a69729054bf8302e1f" }, "require": { "ext-curl": "*", @@ -1896,7 +1896,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2021-01-07T14:03:54+00:00" + "time": "2021-01-08T11:55:04+00:00" }, { "name": "composer/package-versions-deprecated", @@ -4615,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": { @@ -4633,7 +4633,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.21-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4671,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": [ { @@ -4687,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", @@ -4695,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": { @@ -4713,7 +4713,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.21-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4753,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": [ { @@ -4769,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", @@ -4777,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": { @@ -4795,7 +4795,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.21-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4838,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": [ { @@ -4854,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", @@ -4862,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": { @@ -4880,7 +4880,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.21-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4919,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": [ { @@ -4935,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", @@ -4943,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": { @@ -4958,7 +4958,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.21-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4999,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": [ { @@ -5015,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", @@ -5023,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": { @@ -5038,7 +5038,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.21-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5083,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": [ { @@ -5099,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",