From 2c9ce4aa528d37c4bbf2c8c929101955e89880c6 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 1 Jul 2021 22:17:19 +0530 Subject: [PATCH 1/3] feat: updated README and security file --- README.md | 8 ++++---- SECURITY.md | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0596bee316..164e78acb9 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ [![Build Status](https://img.shields.io/travis/com/appwrite/appwrite?style=flat-square)](https://travis-ci.com/appwrite/appwrite) [![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io) -[**Appwrite 0.8 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-0-8-an-open-source-self-hosted-baas-kda) +[**Appwrite 0.9 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-0-8-an-open-source-self-hosted-baas-kda) Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster. @@ -56,7 +56,7 @@ docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ - appwrite/appwrite:0.8.0 + appwrite/appwrite:0.9.0 ``` ### Windows @@ -68,7 +68,7 @@ docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="install" ^ - appwrite/appwrite:0.8.0 + appwrite/appwrite:0.9.0 ``` #### PowerShell @@ -78,7 +78,7 @@ docker run -it --rm , --volume /var/run/docker.sock:/var/run/docker.sock , --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw , --entrypoint="install" , - appwrite/appwrite:0.8.0 + appwrite/appwrite:0.9.0 ``` Once the Docker installation completes, go to http://localhost to access the Appwrite console from your browser. Please note that on non-linux native hosts, the server might take a few minutes to start after installation completes. diff --git a/SECURITY.md b/SECURITY.md index 66bdeb985f..dac6cd04e0 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -8,6 +8,7 @@ | 0.6.x | :white_check_mark: | | 0.7.x | :white_check_mark: | | 0.8.0 | :white_check_mark: | +| 0.9.0 | :white_check_mark: | ## Reporting a Vulnerability From f4b8bc1c84808b81099cbdc7814129c8c1fa8a77 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 1 Jul 2021 22:21:07 +0530 Subject: [PATCH 2/3] feat: update docs for 0.9.x --- .../account/create-anonymous-session.md | 24 +++++++++++++++ .../examples/account/create-j-w-t.md | 24 +++++++++++++++ .../examples/account/create-o-auth2session.md | 26 +++++++++++++++++ .../examples/account/create-recovery.md | 27 +++++++++++++++++ .../examples/account/create-session.md | 27 +++++++++++++++++ .../examples/account/create-verification.md | 26 +++++++++++++++++ .../client-android/examples/account/create.md | 27 +++++++++++++++++ .../examples/account/delete-session.md | 26 +++++++++++++++++ .../examples/account/delete-sessions.md | 24 +++++++++++++++ .../client-android/examples/account/delete.md | 24 +++++++++++++++ .../examples/account/get-logs.md | 24 +++++++++++++++ .../examples/account/get-prefs.md | 24 +++++++++++++++ .../examples/account/get-session.md | 26 +++++++++++++++++ .../examples/account/get-sessions.md | 24 +++++++++++++++ .../client-android/examples/account/get.md | 24 +++++++++++++++ .../examples/account/update-email.md | 27 +++++++++++++++++ .../examples/account/update-name.md | 26 +++++++++++++++++ .../examples/account/update-password.md | 26 +++++++++++++++++ .../examples/account/update-prefs.md | 26 +++++++++++++++++ .../examples/account/update-recovery.md | 29 +++++++++++++++++++ .../examples/account/update-verification.md | 27 +++++++++++++++++ .../examples/avatars/get-browser.md | 26 +++++++++++++++++ .../examples/avatars/get-credit-card.md | 26 +++++++++++++++++ .../examples/avatars/get-favicon.md | 26 +++++++++++++++++ .../examples/avatars/get-flag.md | 26 +++++++++++++++++ .../examples/avatars/get-image.md | 26 +++++++++++++++++ .../examples/avatars/get-initials.md | 25 ++++++++++++++++ .../examples/avatars/get-q-r.md | 26 +++++++++++++++++ .../examples/database/create-document.md | 27 +++++++++++++++++ .../examples/database/delete-document.md | 27 +++++++++++++++++ .../examples/database/get-document.md | 27 +++++++++++++++++ .../examples/database/list-documents.md | 26 +++++++++++++++++ .../examples/database/update-document.md | 28 ++++++++++++++++++ .../examples/functions/create-execution.md | 26 +++++++++++++++++ .../examples/functions/get-execution.md | 27 +++++++++++++++++ .../examples/functions/list-executions.md | 26 +++++++++++++++++ .../examples/locale/get-continents.md | 24 +++++++++++++++ .../examples/locale/get-countries-e-u.md | 24 +++++++++++++++ .../examples/locale/get-countries-phones.md | 24 +++++++++++++++ .../examples/locale/get-countries.md | 24 +++++++++++++++ .../examples/locale/get-currencies.md | 24 +++++++++++++++ .../examples/locale/get-languages.md | 24 +++++++++++++++ .../client-android/examples/locale/get.md | 24 +++++++++++++++ .../examples/storage/create-file.md | 26 +++++++++++++++++ .../examples/storage/delete-file.md | 26 +++++++++++++++++ .../examples/storage/get-file-download.md | 26 +++++++++++++++++ .../examples/storage/get-file-preview.md | 26 +++++++++++++++++ .../examples/storage/get-file-view.md | 26 +++++++++++++++++ .../examples/storage/get-file.md | 26 +++++++++++++++++ .../examples/storage/list-files.md | 25 ++++++++++++++++ .../examples/storage/update-file.md | 28 ++++++++++++++++++ .../examples/teams/create-membership.md | 29 +++++++++++++++++++ .../client-android/examples/teams/create.md | 26 +++++++++++++++++ .../examples/teams/delete-membership.md | 27 +++++++++++++++++ .../client-android/examples/teams/delete.md | 26 +++++++++++++++++ .../examples/teams/get-memberships.md | 26 +++++++++++++++++ .../client-android/examples/teams/get.md | 26 +++++++++++++++++ .../client-android/examples/teams/list.md | 25 ++++++++++++++++ .../examples/teams/update-membership-roles.md | 28 ++++++++++++++++++ .../teams/update-membership-status.md | 29 +++++++++++++++++++ .../client-android/examples/teams/update.md | 27 +++++++++++++++++ .../account/create-anonymous-session.md | 19 ++++++++++++ .../examples/account/create-j-w-t.md | 19 ++++++++++++ .../examples/account/create-o-auth2session.md | 21 ++++++++++++++ .../examples/account/create-recovery.md | 22 ++++++++++++++ .../examples/account/create-session.md | 22 ++++++++++++++ .../examples/account/create-verification.md | 21 ++++++++++++++ .../client-flutter/examples/account/create.md | 22 ++++++++++++++ .../examples/account/delete-session.md | 21 ++++++++++++++ .../examples/account/delete-sessions.md | 19 ++++++++++++ .../client-flutter/examples/account/delete.md | 19 ++++++++++++ .../examples/account/get-logs.md | 19 ++++++++++++ .../examples/account/get-prefs.md | 19 ++++++++++++ .../examples/account/get-session.md | 21 ++++++++++++++ .../examples/account/get-sessions.md | 19 ++++++++++++ .../client-flutter/examples/account/get.md | 19 ++++++++++++ .../examples/account/update-email.md | 22 ++++++++++++++ .../examples/account/update-name.md | 21 ++++++++++++++ .../examples/account/update-password.md | 21 ++++++++++++++ .../examples/account/update-prefs.md | 21 ++++++++++++++ .../examples/account/update-recovery.md | 24 +++++++++++++++ .../examples/account/update-verification.md | 22 ++++++++++++++ .../examples/avatars/get-browser.md | 25 ++++++++++++++++ .../examples/avatars/get-credit-card.md | 25 ++++++++++++++++ .../examples/avatars/get-favicon.md | 25 ++++++++++++++++ .../examples/avatars/get-flag.md | 25 ++++++++++++++++ .../examples/avatars/get-image.md | 25 ++++++++++++++++ .../examples/avatars/get-initials.md | 24 +++++++++++++++ .../examples/avatars/get-q-r.md | 25 ++++++++++++++++ .../examples/database/create-document.md | 22 ++++++++++++++ .../examples/database/delete-document.md | 22 ++++++++++++++ .../examples/database/get-document.md | 22 ++++++++++++++ .../examples/database/list-documents.md | 21 ++++++++++++++ .../examples/database/update-document.md | 23 +++++++++++++++ .../examples/functions/create-execution.md | 21 ++++++++++++++ .../examples/functions/get-execution.md | 22 ++++++++++++++ .../examples/functions/list-executions.md | 21 ++++++++++++++ .../examples/locale/get-continents.md | 19 ++++++++++++ .../examples/locale/get-countries-e-u.md | 19 ++++++++++++ .../examples/locale/get-countries-phones.md | 19 ++++++++++++ .../examples/locale/get-countries.md | 19 ++++++++++++ .../examples/locale/get-currencies.md | 19 ++++++++++++ .../examples/locale/get-languages.md | 19 ++++++++++++ .../client-flutter/examples/locale/get.md | 19 ++++++++++++ .../examples/storage/create-file.md | 22 ++++++++++++++ .../examples/storage/delete-file.md | 21 ++++++++++++++ .../examples/storage/get-file-download.md | 25 ++++++++++++++++ .../examples/storage/get-file-preview.md | 25 ++++++++++++++++ .../examples/storage/get-file-view.md | 25 ++++++++++++++++ .../examples/storage/get-file.md | 21 ++++++++++++++ .../examples/storage/list-files.md | 20 +++++++++++++ .../examples/storage/update-file.md | 23 +++++++++++++++ .../examples/teams/create-membership.md | 24 +++++++++++++++ .../client-flutter/examples/teams/create.md | 21 ++++++++++++++ .../examples/teams/delete-membership.md | 22 ++++++++++++++ .../client-flutter/examples/teams/delete.md | 21 ++++++++++++++ .../examples/teams/get-memberships.md | 21 ++++++++++++++ .../client-flutter/examples/teams/get.md | 21 ++++++++++++++ .../client-flutter/examples/teams/list.md | 20 +++++++++++++ .../examples/teams/update-membership-roles.md | 23 +++++++++++++++ .../teams/update-membership-status.md | 24 +++++++++++++++ .../client-flutter/examples/teams/update.md | 22 ++++++++++++++ .../account/create-anonymous-session.md | 14 +++++++++ .../examples/account/create-j-w-t.md | 14 +++++++++ .../examples/account/create-o-auth2session.md | 10 +++++++ .../examples/account/create-recovery.md | 14 +++++++++ .../examples/account/create-session.md | 14 +++++++++ .../examples/account/create-verification.md | 14 +++++++++ .../client-web/examples/account/create.md | 14 +++++++++ .../examples/account/delete-session.md | 14 +++++++++ .../examples/account/delete-sessions.md | 14 +++++++++ .../client-web/examples/account/delete.md | 14 +++++++++ .../client-web/examples/account/get-logs.md | 14 +++++++++ .../client-web/examples/account/get-prefs.md | 14 +++++++++ .../examples/account/get-session.md | 14 +++++++++ .../examples/account/get-sessions.md | 14 +++++++++ .../0.9.x/client-web/examples/account/get.md | 14 +++++++++ .../examples/account/update-email.md | 14 +++++++++ .../examples/account/update-name.md | 14 +++++++++ .../examples/account/update-password.md | 14 +++++++++ .../examples/account/update-prefs.md | 14 +++++++++ .../examples/account/update-recovery.md | 14 +++++++++ .../examples/account/update-verification.md | 14 +++++++++ .../examples/avatars/get-browser.md | 10 +++++++ .../examples/avatars/get-credit-card.md | 10 +++++++ .../examples/avatars/get-favicon.md | 10 +++++++ .../client-web/examples/avatars/get-flag.md | 10 +++++++ .../client-web/examples/avatars/get-image.md | 10 +++++++ .../examples/avatars/get-initials.md | 10 +++++++ .../client-web/examples/avatars/get-q-r.md | 10 +++++++ .../examples/database/create-document.md | 14 +++++++++ .../examples/database/delete-document.md | 14 +++++++++ .../examples/database/get-document.md | 14 +++++++++ .../examples/database/list-documents.md | 14 +++++++++ .../examples/database/update-document.md | 14 +++++++++ .../examples/functions/create-execution.md | 14 +++++++++ .../examples/functions/get-execution.md | 14 +++++++++ .../examples/functions/list-executions.md | 14 +++++++++ .../examples/locale/get-continents.md | 14 +++++++++ .../examples/locale/get-countries-e-u.md | 14 +++++++++ .../examples/locale/get-countries-phones.md | 14 +++++++++ .../examples/locale/get-countries.md | 14 +++++++++ .../examples/locale/get-currencies.md | 14 +++++++++ .../examples/locale/get-languages.md | 14 +++++++++ .../0.9.x/client-web/examples/locale/get.md | 14 +++++++++ .../examples/storage/create-file.md | 14 +++++++++ .../examples/storage/delete-file.md | 14 +++++++++ .../examples/storage/get-file-download.md | 10 +++++++ .../examples/storage/get-file-preview.md | 10 +++++++ .../examples/storage/get-file-view.md | 10 +++++++ .../client-web/examples/storage/get-file.md | 14 +++++++++ .../client-web/examples/storage/list-files.md | 14 +++++++++ .../examples/storage/update-file.md | 14 +++++++++ .../examples/teams/create-membership.md | 14 +++++++++ .../0.9.x/client-web/examples/teams/create.md | 14 +++++++++ .../examples/teams/delete-membership.md | 14 +++++++++ .../0.9.x/client-web/examples/teams/delete.md | 14 +++++++++ .../examples/teams/get-memberships.md | 14 +++++++++ .../0.9.x/client-web/examples/teams/get.md | 14 +++++++++ .../0.9.x/client-web/examples/teams/list.md | 14 +++++++++ .../examples/teams/update-membership-roles.md | 14 +++++++++ .../teams/update-membership-status.md | 14 +++++++++ .../0.9.x/client-web/examples/teams/update.md | 14 +++++++++ .../account/create-anonymous-session.md | 14 +++++++++ .../examples/account/create-j-w-t.md | 14 +++++++++ .../examples/account/create-o-auth2session.md | 10 +++++++ .../examples/account/create-recovery.md | 14 +++++++++ .../examples/account/create-session.md | 14 +++++++++ .../examples/account/create-verification.md | 14 +++++++++ .../console-web/examples/account/create.md | 14 +++++++++ .../examples/account/delete-session.md | 14 +++++++++ .../examples/account/delete-sessions.md | 14 +++++++++ .../console-web/examples/account/delete.md | 14 +++++++++ .../console-web/examples/account/get-logs.md | 14 +++++++++ .../console-web/examples/account/get-prefs.md | 14 +++++++++ .../examples/account/get-session.md | 14 +++++++++ .../examples/account/get-sessions.md | 14 +++++++++ .../0.9.x/console-web/examples/account/get.md | 14 +++++++++ .../examples/account/update-email.md | 14 +++++++++ .../examples/account/update-name.md | 14 +++++++++ .../examples/account/update-password.md | 14 +++++++++ .../examples/account/update-prefs.md | 14 +++++++++ .../examples/account/update-recovery.md | 14 +++++++++ .../examples/account/update-verification.md | 14 +++++++++ .../examples/avatars/get-browser.md | 10 +++++++ .../examples/avatars/get-credit-card.md | 10 +++++++ .../examples/avatars/get-favicon.md | 10 +++++++ .../console-web/examples/avatars/get-flag.md | 10 +++++++ .../console-web/examples/avatars/get-image.md | 10 +++++++ .../examples/avatars/get-initials.md | 10 +++++++ .../console-web/examples/avatars/get-q-r.md | 10 +++++++ .../examples/database/create-collection.md | 14 +++++++++ .../examples/database/create-document.md | 14 +++++++++ .../examples/database/delete-collection.md | 14 +++++++++ .../examples/database/delete-document.md | 14 +++++++++ .../examples/database/get-collection.md | 14 +++++++++ .../examples/database/get-document.md | 14 +++++++++ .../examples/database/list-collections.md | 14 +++++++++ .../examples/database/list-documents.md | 14 +++++++++ .../examples/database/update-collection.md | 14 +++++++++ .../examples/database/update-document.md | 14 +++++++++ .../examples/functions/create-execution.md | 14 +++++++++ .../examples/functions/create-tag.md | 14 +++++++++ .../console-web/examples/functions/create.md | 14 +++++++++ .../examples/functions/delete-tag.md | 14 +++++++++ .../console-web/examples/functions/delete.md | 14 +++++++++ .../examples/functions/get-execution.md | 14 +++++++++ .../console-web/examples/functions/get-tag.md | 14 +++++++++ .../examples/functions/get-usage.md | 14 +++++++++ .../console-web/examples/functions/get.md | 14 +++++++++ .../examples/functions/list-executions.md | 14 +++++++++ .../examples/functions/list-tags.md | 14 +++++++++ .../console-web/examples/functions/list.md | 14 +++++++++ .../examples/functions/update-tag.md | 14 +++++++++ .../console-web/examples/functions/update.md | 14 +++++++++ .../examples/health/get-anti-virus.md | 14 +++++++++ .../console-web/examples/health/get-cache.md | 14 +++++++++ .../console-web/examples/health/get-d-b.md | 14 +++++++++ .../examples/health/get-queue-certificates.md | 14 +++++++++ .../examples/health/get-queue-functions.md | 14 +++++++++ .../examples/health/get-queue-logs.md | 14 +++++++++ .../examples/health/get-queue-tasks.md | 14 +++++++++ .../examples/health/get-queue-usage.md | 14 +++++++++ .../examples/health/get-queue-webhooks.md | 14 +++++++++ .../examples/health/get-storage-local.md | 14 +++++++++ .../console-web/examples/health/get-time.md | 14 +++++++++ .../0.9.x/console-web/examples/health/get.md | 14 +++++++++ .../examples/locale/get-continents.md | 14 +++++++++ .../examples/locale/get-countries-e-u.md | 14 +++++++++ .../examples/locale/get-countries-phones.md | 14 +++++++++ .../examples/locale/get-countries.md | 14 +++++++++ .../examples/locale/get-currencies.md | 14 +++++++++ .../examples/locale/get-languages.md | 14 +++++++++ .../0.9.x/console-web/examples/locale/get.md | 14 +++++++++ .../examples/projects/create-domain.md | 14 +++++++++ .../examples/projects/create-key.md | 14 +++++++++ .../examples/projects/create-platform.md | 14 +++++++++ .../examples/projects/create-task.md | 14 +++++++++ .../examples/projects/create-webhook.md | 14 +++++++++ .../console-web/examples/projects/create.md | 14 +++++++++ .../examples/projects/delete-domain.md | 14 +++++++++ .../examples/projects/delete-key.md | 14 +++++++++ .../examples/projects/delete-platform.md | 14 +++++++++ .../examples/projects/delete-task.md | 14 +++++++++ .../examples/projects/delete-webhook.md | 14 +++++++++ .../console-web/examples/projects/delete.md | 14 +++++++++ .../examples/projects/get-domain.md | 14 +++++++++ .../console-web/examples/projects/get-key.md | 14 +++++++++ .../examples/projects/get-platform.md | 14 +++++++++ .../console-web/examples/projects/get-task.md | 14 +++++++++ .../examples/projects/get-usage.md | 14 +++++++++ .../examples/projects/get-webhook.md | 14 +++++++++ .../console-web/examples/projects/get.md | 14 +++++++++ .../examples/projects/list-domains.md | 14 +++++++++ .../examples/projects/list-keys.md | 14 +++++++++ .../examples/projects/list-platforms.md | 14 +++++++++ .../examples/projects/list-tasks.md | 14 +++++++++ .../examples/projects/list-webhooks.md | 14 +++++++++ .../console-web/examples/projects/list.md | 14 +++++++++ .../examples/projects/update-auth-limit.md | 14 +++++++++ .../examples/projects/update-auth-status.md | 14 +++++++++ .../projects/update-domain-verification.md | 14 +++++++++ .../examples/projects/update-key.md | 14 +++++++++ .../examples/projects/update-o-auth2.md | 14 +++++++++ .../examples/projects/update-platform.md | 14 +++++++++ .../examples/projects/update-task.md | 14 +++++++++ .../examples/projects/update-webhook.md | 14 +++++++++ .../console-web/examples/projects/update.md | 14 +++++++++ .../examples/storage/create-file.md | 14 +++++++++ .../examples/storage/delete-file.md | 14 +++++++++ .../examples/storage/get-file-download.md | 10 +++++++ .../examples/storage/get-file-preview.md | 10 +++++++ .../examples/storage/get-file-view.md | 10 +++++++ .../console-web/examples/storage/get-file.md | 14 +++++++++ .../examples/storage/list-files.md | 14 +++++++++ .../examples/storage/update-file.md | 14 +++++++++ .../examples/teams/create-membership.md | 14 +++++++++ .../console-web/examples/teams/create.md | 14 +++++++++ .../examples/teams/delete-membership.md | 14 +++++++++ .../console-web/examples/teams/delete.md | 14 +++++++++ .../examples/teams/get-memberships.md | 14 +++++++++ .../0.9.x/console-web/examples/teams/get.md | 14 +++++++++ .../0.9.x/console-web/examples/teams/list.md | 14 +++++++++ .../examples/teams/update-membership-roles.md | 14 +++++++++ .../teams/update-membership-status.md | 14 +++++++++ .../console-web/examples/teams/update.md | 14 +++++++++ .../console-web/examples/users/create.md | 14 +++++++++ .../examples/users/delete-session.md | 14 +++++++++ .../examples/users/delete-sessions.md | 14 +++++++++ .../console-web/examples/users/delete.md | 14 +++++++++ .../console-web/examples/users/get-logs.md | 14 +++++++++ .../console-web/examples/users/get-prefs.md | 14 +++++++++ .../examples/users/get-sessions.md | 14 +++++++++ .../0.9.x/console-web/examples/users/get.md | 14 +++++++++ .../0.9.x/console-web/examples/users/list.md | 14 +++++++++ .../examples/users/update-prefs.md | 14 +++++++++ .../examples/users/update-status.md | 14 +++++++++ .../examples/users/update-verification.md | 14 +++++++++ .../examples/account/create-recovery.md | 1 + .../examples/account/create-verification.md | 1 + .../examples/account/delete-session.md | 1 + .../examples/account/delete-sessions.md | 1 + .../server-cli/examples/account/delete.md | 1 + .../server-cli/examples/account/get-logs.md | 1 + .../server-cli/examples/account/get-prefs.md | 1 + .../examples/account/get-session.md | 1 + .../examples/account/get-sessions.md | 1 + .../0.9.x/server-cli/examples/account/get.md | 1 + .../examples/account/update-email.md | 1 + .../examples/account/update-name.md | 1 + .../examples/account/update-password.md | 1 + .../examples/account/update-prefs.md | 1 + .../examples/account/update-recovery.md | 1 + .../examples/account/update-verification.md | 1 + .../examples/avatars/get-browser.md | 1 + .../examples/avatars/get-credit-card.md | 1 + .../examples/avatars/get-favicon.md | 1 + .../server-cli/examples/avatars/get-flag.md | 1 + .../server-cli/examples/avatars/get-image.md | 1 + .../examples/avatars/get-initials.md | 1 + .../server-cli/examples/avatars/get-q-r.md | 1 + .../examples/database/create-collection.md | 1 + .../examples/database/create-document.md | 1 + .../examples/database/delete-collection.md | 1 + .../examples/database/delete-document.md | 1 + .../examples/database/get-collection.md | 1 + .../examples/database/get-document.md | 1 + .../examples/database/list-collections.md | 1 + .../examples/database/list-documents.md | 1 + .../examples/database/update-collection.md | 1 + .../examples/database/update-document.md | 1 + .../examples/functions/create-execution.md | 1 + .../examples/functions/create-tag.md | 1 + .../server-cli/examples/functions/create.md | 1 + .../examples/functions/delete-tag.md | 1 + .../server-cli/examples/functions/delete.md | 1 + .../examples/functions/get-execution.md | 1 + .../server-cli/examples/functions/get-tag.md | 1 + .../server-cli/examples/functions/get.md | 1 + .../examples/functions/list-executions.md | 1 + .../examples/functions/list-tags.md | 1 + .../server-cli/examples/functions/list.md | 1 + .../examples/functions/update-tag.md | 1 + .../server-cli/examples/functions/update.md | 1 + .../examples/health/get-anti-virus.md | 1 + .../server-cli/examples/health/get-cache.md | 1 + .../server-cli/examples/health/get-d-b.md | 1 + .../examples/health/get-queue-certificates.md | 1 + .../examples/health/get-queue-functions.md | 1 + .../examples/health/get-queue-logs.md | 1 + .../examples/health/get-queue-tasks.md | 1 + .../examples/health/get-queue-usage.md | 1 + .../examples/health/get-queue-webhooks.md | 1 + .../examples/health/get-storage-local.md | 1 + .../server-cli/examples/health/get-time.md | 1 + .../0.9.x/server-cli/examples/health/get.md | 1 + .../examples/locale/get-continents.md | 1 + .../examples/locale/get-countries-e-u.md | 1 + .../examples/locale/get-countries-phones.md | 1 + .../examples/locale/get-countries.md | 1 + .../examples/locale/get-currencies.md | 1 + .../examples/locale/get-languages.md | 1 + .../0.9.x/server-cli/examples/locale/get.md | 1 + .../examples/storage/create-file.md | 1 + .../examples/storage/delete-file.md | 1 + .../examples/storage/get-file-download.md | 1 + .../examples/storage/get-file-preview.md | 1 + .../examples/storage/get-file-view.md | 1 + .../server-cli/examples/storage/get-file.md | 1 + .../server-cli/examples/storage/list-files.md | 1 + .../examples/storage/update-file.md | 1 + .../examples/teams/create-membership.md | 1 + .../0.9.x/server-cli/examples/teams/create.md | 1 + .../examples/teams/delete-membership.md | 1 + .../0.9.x/server-cli/examples/teams/delete.md | 1 + .../examples/teams/get-memberships.md | 1 + .../0.9.x/server-cli/examples/teams/get.md | 1 + .../0.9.x/server-cli/examples/teams/list.md | 1 + .../examples/teams/update-membership-roles.md | 1 + .../teams/update-membership-status.md | 1 + .../0.9.x/server-cli/examples/teams/update.md | 1 + .../0.9.x/server-cli/examples/users/create.md | 1 + .../examples/users/delete-session.md | 1 + .../examples/users/delete-sessions.md | 1 + .../0.9.x/server-cli/examples/users/delete.md | 1 + .../server-cli/examples/users/get-logs.md | 1 + .../server-cli/examples/users/get-prefs.md | 1 + .../server-cli/examples/users/get-sessions.md | 1 + .../0.9.x/server-cli/examples/users/get.md | 1 + .../0.9.x/server-cli/examples/users/list.md | 1 + .../server-cli/examples/users/update-prefs.md | 1 + .../examples/users/update-status.md | 1 + .../examples/users/update-verification.md | 1 + .../examples/account/create-recovery.md | 24 +++++++++++++++ .../examples/account/create-verification.md | 23 +++++++++++++++ .../examples/account/delete-session.md | 23 +++++++++++++++ .../examples/account/delete-sessions.md | 21 ++++++++++++++ .../server-dart/examples/account/delete.md | 21 ++++++++++++++ .../server-dart/examples/account/get-logs.md | 21 ++++++++++++++ .../server-dart/examples/account/get-prefs.md | 21 ++++++++++++++ .../examples/account/get-session.md | 23 +++++++++++++++ .../examples/account/get-sessions.md | 21 ++++++++++++++ .../0.9.x/server-dart/examples/account/get.md | 21 ++++++++++++++ .../examples/account/update-email.md | 24 +++++++++++++++ .../examples/account/update-name.md | 23 +++++++++++++++ .../examples/account/update-password.md | 23 +++++++++++++++ .../examples/account/update-prefs.md | 23 +++++++++++++++ .../examples/account/update-recovery.md | 26 +++++++++++++++++ .../examples/account/update-verification.md | 24 +++++++++++++++ .../examples/avatars/get-browser.md | 23 +++++++++++++++ .../examples/avatars/get-credit-card.md | 23 +++++++++++++++ .../examples/avatars/get-favicon.md | 23 +++++++++++++++ .../server-dart/examples/avatars/get-flag.md | 23 +++++++++++++++ .../server-dart/examples/avatars/get-image.md | 23 +++++++++++++++ .../examples/avatars/get-initials.md | 22 ++++++++++++++ .../server-dart/examples/avatars/get-q-r.md | 23 +++++++++++++++ .../examples/database/create-collection.md | 26 +++++++++++++++++ .../examples/database/create-document.md | 24 +++++++++++++++ .../examples/database/delete-collection.md | 23 +++++++++++++++ .../examples/database/delete-document.md | 24 +++++++++++++++ .../examples/database/get-collection.md | 23 +++++++++++++++ .../examples/database/get-document.md | 24 +++++++++++++++ .../examples/database/list-collections.md | 22 ++++++++++++++ .../examples/database/list-documents.md | 23 +++++++++++++++ .../examples/database/update-collection.md | 24 +++++++++++++++ .../examples/database/update-document.md | 25 ++++++++++++++++ .../examples/functions/create-execution.md | 23 +++++++++++++++ .../examples/functions/create-tag.md | 25 ++++++++++++++++ .../server-dart/examples/functions/create.md | 25 ++++++++++++++++ .../examples/functions/delete-tag.md | 24 +++++++++++++++ .../server-dart/examples/functions/delete.md | 23 +++++++++++++++ .../examples/functions/get-execution.md | 24 +++++++++++++++ .../server-dart/examples/functions/get-tag.md | 24 +++++++++++++++ .../server-dart/examples/functions/get.md | 23 +++++++++++++++ .../examples/functions/list-executions.md | 23 +++++++++++++++ .../examples/functions/list-tags.md | 23 +++++++++++++++ .../server-dart/examples/functions/list.md | 22 ++++++++++++++ .../examples/functions/update-tag.md | 24 +++++++++++++++ .../server-dart/examples/functions/update.md | 25 ++++++++++++++++ .../examples/health/get-anti-virus.md | 21 ++++++++++++++ .../server-dart/examples/health/get-cache.md | 21 ++++++++++++++ .../server-dart/examples/health/get-d-b.md | 21 ++++++++++++++ .../examples/health/get-queue-certificates.md | 21 ++++++++++++++ .../examples/health/get-queue-functions.md | 21 ++++++++++++++ .../examples/health/get-queue-logs.md | 21 ++++++++++++++ .../examples/health/get-queue-tasks.md | 21 ++++++++++++++ .../examples/health/get-queue-usage.md | 21 ++++++++++++++ .../examples/health/get-queue-webhooks.md | 21 ++++++++++++++ .../examples/health/get-storage-local.md | 21 ++++++++++++++ .../server-dart/examples/health/get-time.md | 21 ++++++++++++++ .../0.9.x/server-dart/examples/health/get.md | 21 ++++++++++++++ .../examples/locale/get-continents.md | 21 ++++++++++++++ .../examples/locale/get-countries-e-u.md | 21 ++++++++++++++ .../examples/locale/get-countries-phones.md | 21 ++++++++++++++ .../examples/locale/get-countries.md | 21 ++++++++++++++ .../examples/locale/get-currencies.md | 21 ++++++++++++++ .../examples/locale/get-languages.md | 21 ++++++++++++++ .../0.9.x/server-dart/examples/locale/get.md | 21 ++++++++++++++ .../examples/storage/create-file.md | 24 +++++++++++++++ .../examples/storage/delete-file.md | 23 +++++++++++++++ .../examples/storage/get-file-download.md | 23 +++++++++++++++ .../examples/storage/get-file-preview.md | 23 +++++++++++++++ .../examples/storage/get-file-view.md | 23 +++++++++++++++ .../server-dart/examples/storage/get-file.md | 23 +++++++++++++++ .../examples/storage/list-files.md | 22 ++++++++++++++ .../examples/storage/update-file.md | 25 ++++++++++++++++ .../examples/teams/create-membership.md | 26 +++++++++++++++++ .../server-dart/examples/teams/create.md | 23 +++++++++++++++ .../examples/teams/delete-membership.md | 24 +++++++++++++++ .../server-dart/examples/teams/delete.md | 23 +++++++++++++++ .../examples/teams/get-memberships.md | 23 +++++++++++++++ .../0.9.x/server-dart/examples/teams/get.md | 23 +++++++++++++++ .../0.9.x/server-dart/examples/teams/list.md | 22 ++++++++++++++ .../examples/teams/update-membership-roles.md | 25 ++++++++++++++++ .../teams/update-membership-status.md | 26 +++++++++++++++++ .../server-dart/examples/teams/update.md | 24 +++++++++++++++ .../server-dart/examples/users/create.md | 24 +++++++++++++++ .../examples/users/delete-session.md | 24 +++++++++++++++ .../examples/users/delete-sessions.md | 23 +++++++++++++++ .../server-dart/examples/users/delete.md | 23 +++++++++++++++ .../server-dart/examples/users/get-logs.md | 23 +++++++++++++++ .../server-dart/examples/users/get-prefs.md | 23 +++++++++++++++ .../examples/users/get-sessions.md | 23 +++++++++++++++ .../0.9.x/server-dart/examples/users/get.md | 23 +++++++++++++++ .../0.9.x/server-dart/examples/users/list.md | 22 ++++++++++++++ .../examples/users/update-prefs.md | 24 +++++++++++++++ .../examples/users/update-status.md | 24 +++++++++++++++ .../examples/users/update-verification.md | 24 +++++++++++++++ .../examples/account/create-recovery.md | 21 ++++++++++++++ .../examples/account/create-verification.md | 21 ++++++++++++++ .../examples/account/delete-session.md | 21 ++++++++++++++ .../examples/account/delete-sessions.md | 21 ++++++++++++++ .../server-deno/examples/account/delete.md | 21 ++++++++++++++ .../server-deno/examples/account/get-logs.md | 21 ++++++++++++++ .../server-deno/examples/account/get-prefs.md | 21 ++++++++++++++ .../examples/account/get-session.md | 21 ++++++++++++++ .../examples/account/get-sessions.md | 21 ++++++++++++++ .../0.9.x/server-deno/examples/account/get.md | 21 ++++++++++++++ .../examples/account/update-email.md | 21 ++++++++++++++ .../examples/account/update-name.md | 21 ++++++++++++++ .../examples/account/update-password.md | 21 ++++++++++++++ .../examples/account/update-prefs.md | 21 ++++++++++++++ .../examples/account/update-recovery.md | 21 ++++++++++++++ .../examples/account/update-verification.md | 21 ++++++++++++++ .../examples/avatars/get-browser.md | 21 ++++++++++++++ .../examples/avatars/get-credit-card.md | 21 ++++++++++++++ .../examples/avatars/get-favicon.md | 21 ++++++++++++++ .../server-deno/examples/avatars/get-flag.md | 21 ++++++++++++++ .../server-deno/examples/avatars/get-image.md | 21 ++++++++++++++ .../examples/avatars/get-initials.md | 21 ++++++++++++++ .../server-deno/examples/avatars/get-q-r.md | 21 ++++++++++++++ .../examples/database/create-collection.md | 21 ++++++++++++++ .../examples/database/create-document.md | 21 ++++++++++++++ .../examples/database/delete-collection.md | 21 ++++++++++++++ .../examples/database/delete-document.md | 21 ++++++++++++++ .../examples/database/get-collection.md | 21 ++++++++++++++ .../examples/database/get-document.md | 21 ++++++++++++++ .../examples/database/list-collections.md | 21 ++++++++++++++ .../examples/database/list-documents.md | 21 ++++++++++++++ .../examples/database/update-collection.md | 21 ++++++++++++++ .../examples/database/update-document.md | 21 ++++++++++++++ .../examples/functions/create-execution.md | 21 ++++++++++++++ .../examples/functions/create-tag.md | 21 ++++++++++++++ .../server-deno/examples/functions/create.md | 21 ++++++++++++++ .../examples/functions/delete-tag.md | 21 ++++++++++++++ .../server-deno/examples/functions/delete.md | 21 ++++++++++++++ .../examples/functions/get-execution.md | 21 ++++++++++++++ .../server-deno/examples/functions/get-tag.md | 21 ++++++++++++++ .../server-deno/examples/functions/get.md | 21 ++++++++++++++ .../examples/functions/list-executions.md | 21 ++++++++++++++ .../examples/functions/list-tags.md | 21 ++++++++++++++ .../server-deno/examples/functions/list.md | 21 ++++++++++++++ .../examples/functions/update-tag.md | 21 ++++++++++++++ .../server-deno/examples/functions/update.md | 21 ++++++++++++++ .../examples/health/get-anti-virus.md | 21 ++++++++++++++ .../server-deno/examples/health/get-cache.md | 21 ++++++++++++++ .../server-deno/examples/health/get-d-b.md | 21 ++++++++++++++ .../examples/health/get-queue-certificates.md | 21 ++++++++++++++ .../examples/health/get-queue-functions.md | 21 ++++++++++++++ .../examples/health/get-queue-logs.md | 21 ++++++++++++++ .../examples/health/get-queue-tasks.md | 21 ++++++++++++++ .../examples/health/get-queue-usage.md | 21 ++++++++++++++ .../examples/health/get-queue-webhooks.md | 21 ++++++++++++++ .../examples/health/get-storage-local.md | 21 ++++++++++++++ .../server-deno/examples/health/get-time.md | 21 ++++++++++++++ .../0.9.x/server-deno/examples/health/get.md | 21 ++++++++++++++ .../examples/locale/get-continents.md | 21 ++++++++++++++ .../examples/locale/get-countries-e-u.md | 21 ++++++++++++++ .../examples/locale/get-countries-phones.md | 21 ++++++++++++++ .../examples/locale/get-countries.md | 21 ++++++++++++++ .../examples/locale/get-currencies.md | 21 ++++++++++++++ .../examples/locale/get-languages.md | 21 ++++++++++++++ .../0.9.x/server-deno/examples/locale/get.md | 21 ++++++++++++++ .../examples/storage/create-file.md | 21 ++++++++++++++ .../examples/storage/delete-file.md | 21 ++++++++++++++ .../examples/storage/get-file-download.md | 21 ++++++++++++++ .../examples/storage/get-file-preview.md | 21 ++++++++++++++ .../examples/storage/get-file-view.md | 21 ++++++++++++++ .../server-deno/examples/storage/get-file.md | 21 ++++++++++++++ .../examples/storage/list-files.md | 21 ++++++++++++++ .../examples/storage/update-file.md | 21 ++++++++++++++ .../examples/teams/create-membership.md | 21 ++++++++++++++ .../server-deno/examples/teams/create.md | 21 ++++++++++++++ .../examples/teams/delete-membership.md | 21 ++++++++++++++ .../server-deno/examples/teams/delete.md | 21 ++++++++++++++ .../examples/teams/get-memberships.md | 21 ++++++++++++++ .../0.9.x/server-deno/examples/teams/get.md | 21 ++++++++++++++ .../0.9.x/server-deno/examples/teams/list.md | 21 ++++++++++++++ .../examples/teams/update-membership-roles.md | 21 ++++++++++++++ .../teams/update-membership-status.md | 21 ++++++++++++++ .../server-deno/examples/teams/update.md | 21 ++++++++++++++ .../server-deno/examples/users/create.md | 21 ++++++++++++++ .../examples/users/delete-session.md | 21 ++++++++++++++ .../examples/users/delete-sessions.md | 21 ++++++++++++++ .../server-deno/examples/users/delete.md | 21 ++++++++++++++ .../server-deno/examples/users/get-logs.md | 21 ++++++++++++++ .../server-deno/examples/users/get-prefs.md | 21 ++++++++++++++ .../examples/users/get-sessions.md | 21 ++++++++++++++ .../0.9.x/server-deno/examples/users/get.md | 21 ++++++++++++++ .../0.9.x/server-deno/examples/users/list.md | 21 ++++++++++++++ .../examples/users/update-prefs.md | 21 ++++++++++++++ .../examples/users/update-status.md | 21 ++++++++++++++ .../examples/users/update-verification.md | 21 ++++++++++++++ .../examples/account/create-recovery.md | 13 +++++++++ .../examples/account/create-verification.md | 13 +++++++++ .../examples/account/delete-session.md | 13 +++++++++ .../examples/account/delete-sessions.md | 13 +++++++++ .../server-dotnet/examples/account/delete.md | 13 +++++++++ .../examples/account/get-logs.md | 13 +++++++++ .../examples/account/get-prefs.md | 13 +++++++++ .../examples/account/get-session.md | 13 +++++++++ .../examples/account/get-sessions.md | 13 +++++++++ .../server-dotnet/examples/account/get.md | 13 +++++++++ .../examples/account/update-email.md | 13 +++++++++ .../examples/account/update-name.md | 13 +++++++++ .../examples/account/update-password.md | 13 +++++++++ .../examples/account/update-prefs.md | 13 +++++++++ .../examples/account/update-recovery.md | 13 +++++++++ .../examples/account/update-verification.md | 13 +++++++++ .../examples/avatars/get-browser.md | 13 +++++++++ .../examples/avatars/get-credit-card.md | 13 +++++++++ .../examples/avatars/get-favicon.md | 13 +++++++++ .../examples/avatars/get-flag.md | 13 +++++++++ .../examples/avatars/get-image.md | 13 +++++++++ .../examples/avatars/get-initials.md | 13 +++++++++ .../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 +++++++++ .../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 +++++++++ .../examples/functions/create-execution.md | 13 +++++++++ .../examples/functions/create-tag.md | 13 +++++++++ .../examples/functions/create.md | 13 +++++++++ .../examples/functions/delete-tag.md | 13 +++++++++ .../examples/functions/delete.md | 13 +++++++++ .../examples/functions/get-execution.md | 13 +++++++++ .../examples/functions/get-tag.md | 13 +++++++++ .../server-dotnet/examples/functions/get.md | 13 +++++++++ .../examples/functions/list-executions.md | 13 +++++++++ .../examples/functions/list-tags.md | 13 +++++++++ .../server-dotnet/examples/functions/list.md | 13 +++++++++ .../examples/functions/update-tag.md | 13 +++++++++ .../examples/functions/update.md | 13 +++++++++ .../examples/health/get-anti-virus.md | 13 +++++++++ .../examples/health/get-cache.md | 13 +++++++++ .../server-dotnet/examples/health/get-d-b.md | 13 +++++++++ .../examples/health/get-queue-certificates.md | 13 +++++++++ .../examples/health/get-queue-functions.md | 13 +++++++++ .../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 +++++++++ .../server-dotnet/examples/health/get-time.md | 13 +++++++++ .../server-dotnet/examples/health/get.md | 13 +++++++++ .../examples/locale/get-continents.md | 13 +++++++++ .../examples/locale/get-countries-e-u.md | 13 +++++++++ .../examples/locale/get-countries-phones.md | 13 +++++++++ .../examples/locale/get-countries.md | 13 +++++++++ .../examples/locale/get-currencies.md | 13 +++++++++ .../examples/locale/get-languages.md | 13 +++++++++ .../server-dotnet/examples/locale/get.md | 13 +++++++++ .../examples/storage/create-file.md | 13 +++++++++ .../examples/storage/delete-file.md | 13 +++++++++ .../examples/storage/get-file-download.md | 13 +++++++++ .../examples/storage/get-file-preview.md | 13 +++++++++ .../examples/storage/get-file-view.md | 13 +++++++++ .../examples/storage/get-file.md | 13 +++++++++ .../examples/storage/list-files.md | 13 +++++++++ .../examples/storage/update-file.md | 13 +++++++++ .../examples/teams/create-membership.md | 13 +++++++++ .../server-dotnet/examples/teams/create.md | 13 +++++++++ .../examples/teams/delete-membership.md | 13 +++++++++ .../server-dotnet/examples/teams/delete.md | 13 +++++++++ .../examples/teams/get-memberships.md | 13 +++++++++ .../0.9.x/server-dotnet/examples/teams/get.md | 13 +++++++++ .../server-dotnet/examples/teams/list.md | 13 +++++++++ .../examples/teams/update-membership-roles.md | 13 +++++++++ .../teams/update-membership-status.md | 13 +++++++++ .../server-dotnet/examples/teams/update.md | 13 +++++++++ .../server-dotnet/examples/users/create.md | 13 +++++++++ .../examples/users/delete-session.md | 13 +++++++++ .../examples/users/delete-sessions.md | 13 +++++++++ .../server-dotnet/examples/users/delete.md | 13 +++++++++ .../server-dotnet/examples/users/get-logs.md | 13 +++++++++ .../server-dotnet/examples/users/get-prefs.md | 13 +++++++++ .../examples/users/get-sessions.md | 13 +++++++++ .../0.9.x/server-dotnet/examples/users/get.md | 13 +++++++++ .../server-dotnet/examples/users/list.md | 13 +++++++++ .../examples/users/update-prefs.md | 13 +++++++++ .../examples/users/update-status.md | 13 +++++++++ .../examples/users/update-verification.md | 13 +++++++++ .../examples/account/create-recovery.md | 16 ++++++++++ .../examples/account/create-verification.md | 15 ++++++++++ .../examples/account/delete-session.md | 15 ++++++++++ .../examples/account/delete-sessions.md | 13 +++++++++ .../server-kotlin/examples/account/delete.md | 13 +++++++++ .../examples/account/get-logs.md | 13 +++++++++ .../examples/account/get-prefs.md | 13 +++++++++ .../examples/account/get-session.md | 15 ++++++++++ .../examples/account/get-sessions.md | 13 +++++++++ .../server-kotlin/examples/account/get.md | 13 +++++++++ .../examples/account/update-email.md | 16 ++++++++++ .../examples/account/update-name.md | 15 ++++++++++ .../examples/account/update-password.md | 15 ++++++++++ .../examples/account/update-prefs.md | 15 ++++++++++ .../examples/account/update-recovery.md | 18 ++++++++++++ .../examples/account/update-verification.md | 16 ++++++++++ .../examples/avatars/get-browser.md | 15 ++++++++++ .../examples/avatars/get-credit-card.md | 15 ++++++++++ .../examples/avatars/get-favicon.md | 15 ++++++++++ .../examples/avatars/get-flag.md | 15 ++++++++++ .../examples/avatars/get-image.md | 15 ++++++++++ .../examples/avatars/get-initials.md | 14 +++++++++ .../server-kotlin/examples/avatars/get-q-r.md | 15 ++++++++++ .../examples/database/create-collection.md | 18 ++++++++++++ .../examples/database/create-document.md | 16 ++++++++++ .../examples/database/delete-collection.md | 15 ++++++++++ .../examples/database/delete-document.md | 16 ++++++++++ .../examples/database/get-collection.md | 15 ++++++++++ .../examples/database/get-document.md | 16 ++++++++++ .../examples/database/list-collections.md | 14 +++++++++ .../examples/database/list-documents.md | 15 ++++++++++ .../examples/database/update-collection.md | 16 ++++++++++ .../examples/database/update-document.md | 17 +++++++++++ .../examples/functions/create-execution.md | 15 ++++++++++ .../examples/functions/create-tag.md | 17 +++++++++++ .../examples/functions/create.md | 17 +++++++++++ .../examples/functions/delete-tag.md | 16 ++++++++++ .../examples/functions/delete.md | 15 ++++++++++ .../examples/functions/get-execution.md | 16 ++++++++++ .../examples/functions/get-tag.md | 16 ++++++++++ .../server-kotlin/examples/functions/get.md | 15 ++++++++++ .../examples/functions/list-executions.md | 15 ++++++++++ .../examples/functions/list-tags.md | 15 ++++++++++ .../server-kotlin/examples/functions/list.md | 14 +++++++++ .../examples/functions/update-tag.md | 16 ++++++++++ .../examples/functions/update.md | 17 +++++++++++ .../examples/health/get-anti-virus.md | 13 +++++++++ .../examples/health/get-cache.md | 13 +++++++++ .../server-kotlin/examples/health/get-d-b.md | 13 +++++++++ .../examples/health/get-queue-certificates.md | 13 +++++++++ .../examples/health/get-queue-functions.md | 13 +++++++++ .../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 +++++++++ .../server-kotlin/examples/health/get-time.md | 13 +++++++++ .../server-kotlin/examples/health/get.md | 13 +++++++++ .../examples/locale/get-continents.md | 13 +++++++++ .../examples/locale/get-countries-e-u.md | 13 +++++++++ .../examples/locale/get-countries-phones.md | 13 +++++++++ .../examples/locale/get-countries.md | 13 +++++++++ .../examples/locale/get-currencies.md | 13 +++++++++ .../examples/locale/get-languages.md | 13 +++++++++ .../server-kotlin/examples/locale/get.md | 13 +++++++++ .../examples/storage/create-file.md | 15 ++++++++++ .../examples/storage/delete-file.md | 15 ++++++++++ .../examples/storage/get-file-download.md | 15 ++++++++++ .../examples/storage/get-file-preview.md | 15 ++++++++++ .../examples/storage/get-file-view.md | 15 ++++++++++ .../examples/storage/get-file.md | 15 ++++++++++ .../examples/storage/list-files.md | 14 +++++++++ .../examples/storage/update-file.md | 17 +++++++++++ .../examples/teams/create-membership.md | 18 ++++++++++++ .../server-kotlin/examples/teams/create.md | 15 ++++++++++ .../examples/teams/delete-membership.md | 16 ++++++++++ .../server-kotlin/examples/teams/delete.md | 15 ++++++++++ .../examples/teams/get-memberships.md | 15 ++++++++++ .../0.9.x/server-kotlin/examples/teams/get.md | 15 ++++++++++ .../server-kotlin/examples/teams/list.md | 14 +++++++++ .../examples/teams/update-membership-roles.md | 17 +++++++++++ .../teams/update-membership-status.md | 18 ++++++++++++ .../server-kotlin/examples/teams/update.md | 16 ++++++++++ .../server-kotlin/examples/users/create.md | 16 ++++++++++ .../examples/users/delete-session.md | 16 ++++++++++ .../examples/users/delete-sessions.md | 15 ++++++++++ .../server-kotlin/examples/users/delete.md | 15 ++++++++++ .../server-kotlin/examples/users/get-logs.md | 15 ++++++++++ .../server-kotlin/examples/users/get-prefs.md | 15 ++++++++++ .../examples/users/get-sessions.md | 15 ++++++++++ .../0.9.x/server-kotlin/examples/users/get.md | 15 ++++++++++ .../server-kotlin/examples/users/list.md | 14 +++++++++ .../examples/users/update-prefs.md | 16 ++++++++++ .../examples/users/update-status.md | 16 ++++++++++ .../examples/users/update-verification.md | 16 ++++++++++ .../examples/account/create-recovery.md | 20 +++++++++++++ .../examples/account/create-verification.md | 20 +++++++++++++ .../examples/account/delete-session.md | 20 +++++++++++++ .../examples/account/delete-sessions.md | 20 +++++++++++++ .../server-nodejs/examples/account/delete.md | 20 +++++++++++++ .../examples/account/get-logs.md | 20 +++++++++++++ .../examples/account/get-prefs.md | 20 +++++++++++++ .../examples/account/get-session.md | 20 +++++++++++++ .../examples/account/get-sessions.md | 20 +++++++++++++ .../server-nodejs/examples/account/get.md | 20 +++++++++++++ .../examples/account/update-email.md | 20 +++++++++++++ .../examples/account/update-name.md | 20 +++++++++++++ .../examples/account/update-password.md | 20 +++++++++++++ .../examples/account/update-prefs.md | 20 +++++++++++++ .../examples/account/update-recovery.md | 20 +++++++++++++ .../examples/account/update-verification.md | 20 +++++++++++++ .../examples/avatars/get-browser.md | 20 +++++++++++++ .../examples/avatars/get-credit-card.md | 20 +++++++++++++ .../examples/avatars/get-favicon.md | 20 +++++++++++++ .../examples/avatars/get-flag.md | 20 +++++++++++++ .../examples/avatars/get-image.md | 20 +++++++++++++ .../examples/avatars/get-initials.md | 20 +++++++++++++ .../server-nodejs/examples/avatars/get-q-r.md | 20 +++++++++++++ .../examples/database/create-collection.md | 20 +++++++++++++ .../examples/database/create-document.md | 20 +++++++++++++ .../examples/database/delete-collection.md | 20 +++++++++++++ .../examples/database/delete-document.md | 20 +++++++++++++ .../examples/database/get-collection.md | 20 +++++++++++++ .../examples/database/get-document.md | 20 +++++++++++++ .../examples/database/list-collections.md | 20 +++++++++++++ .../examples/database/list-documents.md | 20 +++++++++++++ .../examples/database/update-collection.md | 20 +++++++++++++ .../examples/database/update-document.md | 20 +++++++++++++ .../examples/functions/create-execution.md | 20 +++++++++++++ .../examples/functions/create-tag.md | 21 ++++++++++++++ .../examples/functions/create.md | 20 +++++++++++++ .../examples/functions/delete-tag.md | 20 +++++++++++++ .../examples/functions/delete.md | 20 +++++++++++++ .../examples/functions/get-execution.md | 20 +++++++++++++ .../examples/functions/get-tag.md | 20 +++++++++++++ .../server-nodejs/examples/functions/get.md | 20 +++++++++++++ .../examples/functions/list-executions.md | 20 +++++++++++++ .../examples/functions/list-tags.md | 20 +++++++++++++ .../server-nodejs/examples/functions/list.md | 20 +++++++++++++ .../examples/functions/update-tag.md | 20 +++++++++++++ .../examples/functions/update.md | 20 +++++++++++++ .../examples/health/get-anti-virus.md | 20 +++++++++++++ .../examples/health/get-cache.md | 20 +++++++++++++ .../server-nodejs/examples/health/get-d-b.md | 20 +++++++++++++ .../examples/health/get-queue-certificates.md | 20 +++++++++++++ .../examples/health/get-queue-functions.md | 20 +++++++++++++ .../examples/health/get-queue-logs.md | 20 +++++++++++++ .../examples/health/get-queue-tasks.md | 20 +++++++++++++ .../examples/health/get-queue-usage.md | 20 +++++++++++++ .../examples/health/get-queue-webhooks.md | 20 +++++++++++++ .../examples/health/get-storage-local.md | 20 +++++++++++++ .../server-nodejs/examples/health/get-time.md | 20 +++++++++++++ .../server-nodejs/examples/health/get.md | 20 +++++++++++++ .../examples/locale/get-continents.md | 20 +++++++++++++ .../examples/locale/get-countries-e-u.md | 20 +++++++++++++ .../examples/locale/get-countries-phones.md | 20 +++++++++++++ .../examples/locale/get-countries.md | 20 +++++++++++++ .../examples/locale/get-currencies.md | 20 +++++++++++++ .../examples/locale/get-languages.md | 20 +++++++++++++ .../server-nodejs/examples/locale/get.md | 20 +++++++++++++ .../examples/storage/create-file.md | 21 ++++++++++++++ .../examples/storage/delete-file.md | 20 +++++++++++++ .../examples/storage/get-file-download.md | 20 +++++++++++++ .../examples/storage/get-file-preview.md | 20 +++++++++++++ .../examples/storage/get-file-view.md | 20 +++++++++++++ .../examples/storage/get-file.md | 20 +++++++++++++ .../examples/storage/list-files.md | 20 +++++++++++++ .../examples/storage/update-file.md | 20 +++++++++++++ .../examples/teams/create-membership.md | 20 +++++++++++++ .../server-nodejs/examples/teams/create.md | 20 +++++++++++++ .../examples/teams/delete-membership.md | 20 +++++++++++++ .../server-nodejs/examples/teams/delete.md | 20 +++++++++++++ .../examples/teams/get-memberships.md | 20 +++++++++++++ .../0.9.x/server-nodejs/examples/teams/get.md | 20 +++++++++++++ .../server-nodejs/examples/teams/list.md | 20 +++++++++++++ .../examples/teams/update-membership-roles.md | 20 +++++++++++++ .../teams/update-membership-status.md | 20 +++++++++++++ .../server-nodejs/examples/teams/update.md | 20 +++++++++++++ .../server-nodejs/examples/users/create.md | 20 +++++++++++++ .../examples/users/delete-session.md | 20 +++++++++++++ .../examples/users/delete-sessions.md | 20 +++++++++++++ .../server-nodejs/examples/users/delete.md | 20 +++++++++++++ .../server-nodejs/examples/users/get-logs.md | 20 +++++++++++++ .../server-nodejs/examples/users/get-prefs.md | 20 +++++++++++++ .../examples/users/get-sessions.md | 20 +++++++++++++ .../0.9.x/server-nodejs/examples/users/get.md | 20 +++++++++++++ .../server-nodejs/examples/users/list.md | 20 +++++++++++++ .../examples/users/update-prefs.md | 20 +++++++++++++ .../examples/users/update-status.md | 20 +++++++++++++ .../examples/users/update-verification.md | 20 +++++++++++++ .../examples/account/create-recovery.md | 16 ++++++++++ .../examples/account/create-verification.md | 16 ++++++++++ .../examples/account/delete-session.md | 16 ++++++++++ .../examples/account/delete-sessions.md | 16 ++++++++++ .../server-php/examples/account/delete.md | 16 ++++++++++ .../server-php/examples/account/get-logs.md | 16 ++++++++++ .../server-php/examples/account/get-prefs.md | 16 ++++++++++ .../examples/account/get-session.md | 16 ++++++++++ .../examples/account/get-sessions.md | 16 ++++++++++ .../0.9.x/server-php/examples/account/get.md | 16 ++++++++++ .../examples/account/update-email.md | 16 ++++++++++ .../examples/account/update-name.md | 16 ++++++++++ .../examples/account/update-password.md | 16 ++++++++++ .../examples/account/update-prefs.md | 16 ++++++++++ .../examples/account/update-recovery.md | 16 ++++++++++ .../examples/account/update-verification.md | 16 ++++++++++ .../examples/avatars/get-browser.md | 16 ++++++++++ .../examples/avatars/get-credit-card.md | 16 ++++++++++ .../examples/avatars/get-favicon.md | 16 ++++++++++ .../server-php/examples/avatars/get-flag.md | 16 ++++++++++ .../server-php/examples/avatars/get-image.md | 16 ++++++++++ .../examples/avatars/get-initials.md | 16 ++++++++++ .../server-php/examples/avatars/get-q-r.md | 16 ++++++++++ .../examples/database/create-collection.md | 16 ++++++++++ .../examples/database/create-document.md | 16 ++++++++++ .../examples/database/delete-collection.md | 16 ++++++++++ .../examples/database/delete-document.md | 16 ++++++++++ .../examples/database/get-collection.md | 16 ++++++++++ .../examples/database/get-document.md | 16 ++++++++++ .../examples/database/list-collections.md | 16 ++++++++++ .../examples/database/list-documents.md | 16 ++++++++++ .../examples/database/update-collection.md | 16 ++++++++++ .../examples/database/update-document.md | 16 ++++++++++ .../examples/functions/create-execution.md | 16 ++++++++++ .../examples/functions/create-tag.md | 16 ++++++++++ .../server-php/examples/functions/create.md | 16 ++++++++++ .../examples/functions/delete-tag.md | 16 ++++++++++ .../server-php/examples/functions/delete.md | 16 ++++++++++ .../examples/functions/get-execution.md | 16 ++++++++++ .../server-php/examples/functions/get-tag.md | 16 ++++++++++ .../server-php/examples/functions/get.md | 16 ++++++++++ .../examples/functions/list-executions.md | 16 ++++++++++ .../examples/functions/list-tags.md | 16 ++++++++++ .../server-php/examples/functions/list.md | 16 ++++++++++ .../examples/functions/update-tag.md | 16 ++++++++++ .../server-php/examples/functions/update.md | 16 ++++++++++ .../examples/health/get-anti-virus.md | 16 ++++++++++ .../server-php/examples/health/get-cache.md | 16 ++++++++++ .../server-php/examples/health/get-d-b.md | 16 ++++++++++ .../examples/health/get-queue-certificates.md | 16 ++++++++++ .../examples/health/get-queue-functions.md | 16 ++++++++++ .../examples/health/get-queue-logs.md | 16 ++++++++++ .../examples/health/get-queue-tasks.md | 16 ++++++++++ .../examples/health/get-queue-usage.md | 16 ++++++++++ .../examples/health/get-queue-webhooks.md | 16 ++++++++++ .../examples/health/get-storage-local.md | 16 ++++++++++ .../server-php/examples/health/get-time.md | 16 ++++++++++ .../0.9.x/server-php/examples/health/get.md | 16 ++++++++++ .../examples/locale/get-continents.md | 16 ++++++++++ .../examples/locale/get-countries-e-u.md | 16 ++++++++++ .../examples/locale/get-countries-phones.md | 16 ++++++++++ .../examples/locale/get-countries.md | 16 ++++++++++ .../examples/locale/get-currencies.md | 16 ++++++++++ .../examples/locale/get-languages.md | 16 ++++++++++ .../0.9.x/server-php/examples/locale/get.md | 16 ++++++++++ .../examples/storage/create-file.md | 16 ++++++++++ .../examples/storage/delete-file.md | 16 ++++++++++ .../examples/storage/get-file-download.md | 16 ++++++++++ .../examples/storage/get-file-preview.md | 16 ++++++++++ .../examples/storage/get-file-view.md | 16 ++++++++++ .../server-php/examples/storage/get-file.md | 16 ++++++++++ .../server-php/examples/storage/list-files.md | 16 ++++++++++ .../examples/storage/update-file.md | 16 ++++++++++ .../examples/teams/create-membership.md | 16 ++++++++++ .../0.9.x/server-php/examples/teams/create.md | 16 ++++++++++ .../examples/teams/delete-membership.md | 16 ++++++++++ .../0.9.x/server-php/examples/teams/delete.md | 16 ++++++++++ .../examples/teams/get-memberships.md | 16 ++++++++++ .../0.9.x/server-php/examples/teams/get.md | 16 ++++++++++ .../0.9.x/server-php/examples/teams/list.md | 16 ++++++++++ .../examples/teams/update-membership-roles.md | 16 ++++++++++ .../teams/update-membership-status.md | 16 ++++++++++ .../0.9.x/server-php/examples/teams/update.md | 16 ++++++++++ .../0.9.x/server-php/examples/users/create.md | 16 ++++++++++ .../examples/users/delete-session.md | 16 ++++++++++ .../examples/users/delete-sessions.md | 16 ++++++++++ .../0.9.x/server-php/examples/users/delete.md | 16 ++++++++++ .../server-php/examples/users/get-logs.md | 16 ++++++++++ .../server-php/examples/users/get-prefs.md | 16 ++++++++++ .../server-php/examples/users/get-sessions.md | 16 ++++++++++ .../0.9.x/server-php/examples/users/get.md | 16 ++++++++++ .../0.9.x/server-php/examples/users/list.md | 16 ++++++++++ .../server-php/examples/users/update-prefs.md | 16 ++++++++++ .../examples/users/update-status.md | 16 ++++++++++ .../examples/users/update-verification.md | 16 ++++++++++ .../examples/account/create-recovery.md | 14 +++++++++ .../examples/account/create-verification.md | 14 +++++++++ .../examples/account/delete-session.md | 14 +++++++++ .../examples/account/delete-sessions.md | 14 +++++++++ .../server-python/examples/account/delete.md | 14 +++++++++ .../examples/account/get-logs.md | 14 +++++++++ .../examples/account/get-prefs.md | 14 +++++++++ .../examples/account/get-session.md | 14 +++++++++ .../examples/account/get-sessions.md | 14 +++++++++ .../server-python/examples/account/get.md | 14 +++++++++ .../examples/account/update-email.md | 14 +++++++++ .../examples/account/update-name.md | 14 +++++++++ .../examples/account/update-password.md | 14 +++++++++ .../examples/account/update-prefs.md | 14 +++++++++ .../examples/account/update-recovery.md | 14 +++++++++ .../examples/account/update-verification.md | 14 +++++++++ .../examples/avatars/get-browser.md | 14 +++++++++ .../examples/avatars/get-credit-card.md | 14 +++++++++ .../examples/avatars/get-favicon.md | 14 +++++++++ .../examples/avatars/get-flag.md | 14 +++++++++ .../examples/avatars/get-image.md | 14 +++++++++ .../examples/avatars/get-initials.md | 14 +++++++++ .../server-python/examples/avatars/get-q-r.md | 14 +++++++++ .../examples/database/create-collection.md | 14 +++++++++ .../examples/database/create-document.md | 14 +++++++++ .../examples/database/delete-collection.md | 14 +++++++++ .../examples/database/delete-document.md | 14 +++++++++ .../examples/database/get-collection.md | 14 +++++++++ .../examples/database/get-document.md | 14 +++++++++ .../examples/database/list-collections.md | 14 +++++++++ .../examples/database/list-documents.md | 14 +++++++++ .../examples/database/update-collection.md | 14 +++++++++ .../examples/database/update-document.md | 14 +++++++++ .../examples/functions/create-execution.md | 14 +++++++++ .../examples/functions/create-tag.md | 14 +++++++++ .../examples/functions/create.md | 14 +++++++++ .../examples/functions/delete-tag.md | 14 +++++++++ .../examples/functions/delete.md | 14 +++++++++ .../examples/functions/get-execution.md | 14 +++++++++ .../examples/functions/get-tag.md | 14 +++++++++ .../server-python/examples/functions/get.md | 14 +++++++++ .../examples/functions/list-executions.md | 14 +++++++++ .../examples/functions/list-tags.md | 14 +++++++++ .../server-python/examples/functions/list.md | 14 +++++++++ .../examples/functions/update-tag.md | 14 +++++++++ .../examples/functions/update.md | 14 +++++++++ .../examples/health/get-anti-virus.md | 14 +++++++++ .../examples/health/get-cache.md | 14 +++++++++ .../server-python/examples/health/get-d-b.md | 14 +++++++++ .../examples/health/get-queue-certificates.md | 14 +++++++++ .../examples/health/get-queue-functions.md | 14 +++++++++ .../examples/health/get-queue-logs.md | 14 +++++++++ .../examples/health/get-queue-tasks.md | 14 +++++++++ .../examples/health/get-queue-usage.md | 14 +++++++++ .../examples/health/get-queue-webhooks.md | 14 +++++++++ .../examples/health/get-storage-local.md | 14 +++++++++ .../server-python/examples/health/get-time.md | 14 +++++++++ .../server-python/examples/health/get.md | 14 +++++++++ .../examples/locale/get-continents.md | 14 +++++++++ .../examples/locale/get-countries-e-u.md | 14 +++++++++ .../examples/locale/get-countries-phones.md | 14 +++++++++ .../examples/locale/get-countries.md | 14 +++++++++ .../examples/locale/get-currencies.md | 14 +++++++++ .../examples/locale/get-languages.md | 14 +++++++++ .../server-python/examples/locale/get.md | 14 +++++++++ .../examples/storage/create-file.md | 14 +++++++++ .../examples/storage/delete-file.md | 14 +++++++++ .../examples/storage/get-file-download.md | 14 +++++++++ .../examples/storage/get-file-preview.md | 14 +++++++++ .../examples/storage/get-file-view.md | 14 +++++++++ .../examples/storage/get-file.md | 14 +++++++++ .../examples/storage/list-files.md | 14 +++++++++ .../examples/storage/update-file.md | 14 +++++++++ .../examples/teams/create-membership.md | 14 +++++++++ .../server-python/examples/teams/create.md | 14 +++++++++ .../examples/teams/delete-membership.md | 14 +++++++++ .../server-python/examples/teams/delete.md | 14 +++++++++ .../examples/teams/get-memberships.md | 14 +++++++++ .../0.9.x/server-python/examples/teams/get.md | 14 +++++++++ .../server-python/examples/teams/list.md | 14 +++++++++ .../examples/teams/update-membership-roles.md | 14 +++++++++ .../teams/update-membership-status.md | 14 +++++++++ .../server-python/examples/teams/update.md | 14 +++++++++ .../server-python/examples/users/create.md | 14 +++++++++ .../examples/users/delete-session.md | 14 +++++++++ .../examples/users/delete-sessions.md | 14 +++++++++ .../server-python/examples/users/delete.md | 14 +++++++++ .../server-python/examples/users/get-logs.md | 14 +++++++++ .../server-python/examples/users/get-prefs.md | 14 +++++++++ .../examples/users/get-sessions.md | 14 +++++++++ .../0.9.x/server-python/examples/users/get.md | 14 +++++++++ .../server-python/examples/users/list.md | 14 +++++++++ .../examples/users/update-prefs.md | 14 +++++++++ .../examples/users/update-status.md | 14 +++++++++ .../examples/users/update-verification.md | 14 +++++++++ .../examples/account/create-recovery.md | 15 ++++++++++ .../examples/account/create-verification.md | 15 ++++++++++ .../examples/account/delete-session.md | 15 ++++++++++ .../examples/account/delete-sessions.md | 15 ++++++++++ .../server-ruby/examples/account/delete.md | 15 ++++++++++ .../server-ruby/examples/account/get-logs.md | 15 ++++++++++ .../server-ruby/examples/account/get-prefs.md | 15 ++++++++++ .../examples/account/get-session.md | 15 ++++++++++ .../examples/account/get-sessions.md | 15 ++++++++++ .../0.9.x/server-ruby/examples/account/get.md | 15 ++++++++++ .../examples/account/update-email.md | 15 ++++++++++ .../examples/account/update-name.md | 15 ++++++++++ .../examples/account/update-password.md | 15 ++++++++++ .../examples/account/update-prefs.md | 15 ++++++++++ .../examples/account/update-recovery.md | 15 ++++++++++ .../examples/account/update-verification.md | 15 ++++++++++ .../examples/avatars/get-browser.md | 15 ++++++++++ .../examples/avatars/get-credit-card.md | 15 ++++++++++ .../examples/avatars/get-favicon.md | 15 ++++++++++ .../server-ruby/examples/avatars/get-flag.md | 15 ++++++++++ .../server-ruby/examples/avatars/get-image.md | 15 ++++++++++ .../examples/avatars/get-initials.md | 15 ++++++++++ .../server-ruby/examples/avatars/get-q-r.md | 15 ++++++++++ .../examples/database/create-collection.md | 15 ++++++++++ .../examples/database/create-document.md | 15 ++++++++++ .../examples/database/delete-collection.md | 15 ++++++++++ .../examples/database/delete-document.md | 15 ++++++++++ .../examples/database/get-collection.md | 15 ++++++++++ .../examples/database/get-document.md | 15 ++++++++++ .../examples/database/list-collections.md | 15 ++++++++++ .../examples/database/list-documents.md | 15 ++++++++++ .../examples/database/update-collection.md | 15 ++++++++++ .../examples/database/update-document.md | 15 ++++++++++ .../examples/functions/create-execution.md | 15 ++++++++++ .../examples/functions/create-tag.md | 15 ++++++++++ .../server-ruby/examples/functions/create.md | 15 ++++++++++ .../examples/functions/delete-tag.md | 15 ++++++++++ .../server-ruby/examples/functions/delete.md | 15 ++++++++++ .../examples/functions/get-execution.md | 15 ++++++++++ .../server-ruby/examples/functions/get-tag.md | 15 ++++++++++ .../server-ruby/examples/functions/get.md | 15 ++++++++++ .../examples/functions/list-executions.md | 15 ++++++++++ .../examples/functions/list-tags.md | 15 ++++++++++ .../server-ruby/examples/functions/list.md | 15 ++++++++++ .../examples/functions/update-tag.md | 15 ++++++++++ .../server-ruby/examples/functions/update.md | 15 ++++++++++ .../examples/health/get-anti-virus.md | 15 ++++++++++ .../server-ruby/examples/health/get-cache.md | 15 ++++++++++ .../server-ruby/examples/health/get-d-b.md | 15 ++++++++++ .../examples/health/get-queue-certificates.md | 15 ++++++++++ .../examples/health/get-queue-functions.md | 15 ++++++++++ .../examples/health/get-queue-logs.md | 15 ++++++++++ .../examples/health/get-queue-tasks.md | 15 ++++++++++ .../examples/health/get-queue-usage.md | 15 ++++++++++ .../examples/health/get-queue-webhooks.md | 15 ++++++++++ .../examples/health/get-storage-local.md | 15 ++++++++++ .../server-ruby/examples/health/get-time.md | 15 ++++++++++ .../0.9.x/server-ruby/examples/health/get.md | 15 ++++++++++ .../examples/locale/get-continents.md | 15 ++++++++++ .../examples/locale/get-countries-e-u.md | 15 ++++++++++ .../examples/locale/get-countries-phones.md | 15 ++++++++++ .../examples/locale/get-countries.md | 15 ++++++++++ .../examples/locale/get-currencies.md | 15 ++++++++++ .../examples/locale/get-languages.md | 15 ++++++++++ .../0.9.x/server-ruby/examples/locale/get.md | 15 ++++++++++ .../examples/storage/create-file.md | 15 ++++++++++ .../examples/storage/delete-file.md | 15 ++++++++++ .../examples/storage/get-file-download.md | 15 ++++++++++ .../examples/storage/get-file-preview.md | 15 ++++++++++ .../examples/storage/get-file-view.md | 15 ++++++++++ .../server-ruby/examples/storage/get-file.md | 15 ++++++++++ .../examples/storage/list-files.md | 15 ++++++++++ .../examples/storage/update-file.md | 15 ++++++++++ .../examples/teams/create-membership.md | 15 ++++++++++ .../server-ruby/examples/teams/create.md | 15 ++++++++++ .../examples/teams/delete-membership.md | 15 ++++++++++ .../server-ruby/examples/teams/delete.md | 15 ++++++++++ .../examples/teams/get-memberships.md | 15 ++++++++++ .../0.9.x/server-ruby/examples/teams/get.md | 15 ++++++++++ .../0.9.x/server-ruby/examples/teams/list.md | 15 ++++++++++ .../examples/teams/update-membership-roles.md | 15 ++++++++++ .../teams/update-membership-status.md | 15 ++++++++++ .../server-ruby/examples/teams/update.md | 15 ++++++++++ .../server-ruby/examples/users/create.md | 15 ++++++++++ .../examples/users/delete-session.md | 15 ++++++++++ .../examples/users/delete-sessions.md | 15 ++++++++++ .../server-ruby/examples/users/delete.md | 15 ++++++++++ .../server-ruby/examples/users/get-logs.md | 15 ++++++++++ .../server-ruby/examples/users/get-prefs.md | 15 ++++++++++ .../examples/users/get-sessions.md | 15 ++++++++++ .../0.9.x/server-ruby/examples/users/get.md | 15 ++++++++++ .../0.9.x/server-ruby/examples/users/list.md | 15 ++++++++++ .../examples/users/update-prefs.md | 15 ++++++++++ .../examples/users/update-status.md | 15 ++++++++++ .../examples/users/update-verification.md | 15 ++++++++++ 1173 files changed, 18635 insertions(+) create mode 100644 docs/examples/0.9.x/client-android/examples/account/create-anonymous-session.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/create-j-w-t.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/create-o-auth2session.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/create-session.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/create.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/delete.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/get.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/client-android/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/client-android/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/client-android/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/client-android/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/client-android/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/client-android/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/client-android/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/client-android/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/client-android/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/client-android/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/client-android/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/client-android/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/client-android/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/client-android/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/client-android/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/client-android/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/client-android/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/client-android/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/client-android/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/client-android/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/client-android/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/client-android/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/client-android/examples/locale/get.md create mode 100644 docs/examples/0.9.x/client-android/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/client-android/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/client-android/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/client-android/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/client-android/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/client-android/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/client-android/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/client-android/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/create.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/get.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/list.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/client-android/examples/teams/update.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/create-anonymous-session.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/create-j-w-t.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/create-o-auth2session.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/create-session.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/create.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/delete.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/get.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/locale/get.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/create.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/get.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/list.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/client-flutter/examples/teams/update.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/create-anonymous-session.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/create-j-w-t.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/create-o-auth2session.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/create-session.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/create.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/delete.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/get.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/client-web/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/client-web/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/client-web/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/client-web/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/client-web/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/client-web/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/client-web/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/client-web/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/client-web/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/client-web/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/client-web/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/client-web/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/client-web/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/client-web/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/client-web/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/client-web/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/client-web/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/client-web/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/client-web/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/client-web/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/client-web/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/client-web/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/client-web/examples/locale/get.md create mode 100644 docs/examples/0.9.x/client-web/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/client-web/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/client-web/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/client-web/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/client-web/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/client-web/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/client-web/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/client-web/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/create.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/get.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/list.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/client-web/examples/teams/update.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/create-anonymous-session.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/create-j-w-t.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/create-o-auth2session.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/create-session.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/create.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/delete.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/get.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/console-web/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/console-web/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/console-web/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/console-web/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/console-web/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/console-web/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/console-web/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/console-web/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/console-web/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/create.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/get-usage.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/get.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/list.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/console-web/examples/functions/update.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/console-web/examples/health/get.md create mode 100644 docs/examples/0.9.x/console-web/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/console-web/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/console-web/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/console-web/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/console-web/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/console-web/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/console-web/examples/locale/get.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/create-domain.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/create-key.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/create-platform.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/create-task.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/create-webhook.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/create.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/delete-domain.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/delete-key.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/delete-platform.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/delete-task.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/delete-webhook.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/delete.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/get-domain.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/get-key.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/get-platform.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/get-task.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/get-usage.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/get-webhook.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/get.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/list-domains.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/list-keys.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/list-platforms.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/list-tasks.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/list-webhooks.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/list.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update-auth-limit.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update-auth-status.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update-domain-verification.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update-key.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update-o-auth2.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update-platform.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update-task.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update-webhook.md create mode 100644 docs/examples/0.9.x/console-web/examples/projects/update.md create mode 100644 docs/examples/0.9.x/console-web/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/console-web/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/console-web/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/console-web/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/console-web/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/console-web/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/console-web/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/console-web/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/create.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/get.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/list.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/console-web/examples/teams/update.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/create.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/delete.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/get.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/list.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/console-web/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-cli/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-cli/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-cli/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-cli/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-cli/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-cli/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-cli/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-cli/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-cli/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-cli/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-cli/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-cli/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-cli/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-cli/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-cli/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-cli/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-cli/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-cli/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-cli/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-cli/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-cli/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-cli/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-cli/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-cli/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-cli/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-cli/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-cli/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-cli/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-dart/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-dart/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-dart/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-dart/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-dart/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-dart/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-dart/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-dart/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-dart/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-dart/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-dart/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-dart/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-dart/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-dart/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-dart/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-dart/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-dart/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-dart/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-dart/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-dart/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-dart/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-dart/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-dart/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-dart/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-dart/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-dart/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-dart/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-dart/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-deno/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-deno/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-deno/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-deno/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-deno/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-deno/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-deno/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-deno/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-deno/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-deno/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-deno/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-deno/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-deno/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-deno/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-deno/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-deno/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-deno/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-deno/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-deno/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-deno/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-deno/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-deno/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-deno/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-deno/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-deno/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-deno/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-deno/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-deno/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-dotnet/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-kotlin/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-nodejs/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-php/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-php/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-php/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-php/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-php/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-php/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-php/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-php/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-php/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-php/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-php/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-php/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-php/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-php/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-php/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-php/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-php/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-php/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-php/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-php/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-php/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-php/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-php/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-php/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-php/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-php/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-php/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-php/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-python/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-python/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-python/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-python/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-python/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-python/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-python/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-python/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-python/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-python/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-python/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-python/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-python/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-python/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-python/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-python/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-python/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-python/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-python/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-python/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-python/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-python/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-python/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-python/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-python/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-python/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-python/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-python/examples/users/update-verification.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/create-recovery.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/create-verification.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/delete-session.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/delete.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/get-logs.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/get-prefs.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/get-session.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/get-sessions.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/get.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/update-email.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/update-name.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/update-password.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/update-prefs.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/update-recovery.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/account/update-verification.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/avatars/get-browser.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/avatars/get-credit-card.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/avatars/get-favicon.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/avatars/get-flag.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/avatars/get-image.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/avatars/get-initials.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/avatars/get-q-r.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/create-collection.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/create-document.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/delete-collection.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/delete-document.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/get-collection.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/get-document.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/list-collections.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/list-documents.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/update-collection.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/database/update-document.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/create-execution.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/create-tag.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/create.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/delete-tag.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/delete.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/get-execution.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/get-tag.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/get.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/list-executions.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/list-tags.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/list.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/update-tag.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/functions/update.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-anti-virus.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-cache.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-d-b.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-queue-certificates.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-queue-functions.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-queue-logs.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-queue-tasks.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-queue-usage.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-queue-webhooks.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-storage-local.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get-time.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/health/get.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/locale/get-continents.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/locale/get-countries-e-u.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/locale/get-countries-phones.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/locale/get-countries.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/locale/get-currencies.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/locale/get-languages.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/locale/get.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/storage/create-file.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/storage/delete-file.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/storage/get-file-download.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/storage/get-file-preview.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/storage/get-file-view.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/storage/get-file.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/storage/list-files.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/storage/update-file.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/create-membership.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/create.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/delete-membership.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/delete.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/get-memberships.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/get.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/list.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/update-membership-roles.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/update-membership-status.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/teams/update.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/create.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/delete-session.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/delete-sessions.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/delete.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/get-logs.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/get-prefs.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/get-sessions.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/get.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/list.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/update-prefs.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/update-status.md create mode 100644 docs/examples/0.9.x/server-ruby/examples/users/update-verification.md diff --git a/docs/examples/0.9.x/client-android/examples/account/create-anonymous-session.md b/docs/examples/0.9.x/client-android/examples/account/create-anonymous-session.md new file mode 100644 index 0000000000..80ce88f3b9 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/create-anonymous-session.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.createAnonymousSession() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/create-j-w-t.md b/docs/examples/0.9.x/client-android/examples/account/create-j-w-t.md new file mode 100644 index 0000000000..cae8e9ba67 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/create-j-w-t.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.createJWT() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/create-o-auth2session.md b/docs/examples/0.9.x/client-android/examples/account/create-o-auth2session.md new file mode 100644 index 0000000000..ed9782e538 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/create-o-auth2session.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.createOAuth2Session( + provider = "amazon", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/create-recovery.md b/docs/examples/0.9.x/client-android/examples/account/create-recovery.md new file mode 100644 index 0000000000..f5eddf9e18 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/create-recovery.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.createRecovery( + email = "email@example.com", + url = "https://example.com" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/create-session.md b/docs/examples/0.9.x/client-android/examples/account/create-session.md new file mode 100644 index 0000000000..b1d70277d8 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/create-session.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.createSession( + email = "email@example.com", + password = "password" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/create-verification.md b/docs/examples/0.9.x/client-android/examples/account/create-verification.md new file mode 100644 index 0000000000..322abfac8f --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/create-verification.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.createVerification( + url = "https://example.com" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/create.md b/docs/examples/0.9.x/client-android/examples/account/create.md new file mode 100644 index 0000000000..49c08c4543 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/create.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.create( + email = "email@example.com", + password = "password", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/delete-session.md b/docs/examples/0.9.x/client-android/examples/account/delete-session.md new file mode 100644 index 0000000000..2d5bfd27e6 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/delete-session.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.deleteSession( + sessionId = "[SESSION_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/delete-sessions.md b/docs/examples/0.9.x/client-android/examples/account/delete-sessions.md new file mode 100644 index 0000000000..1d451eccec --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/delete-sessions.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.deleteSessions() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/delete.md b/docs/examples/0.9.x/client-android/examples/account/delete.md new file mode 100644 index 0000000000..962dda3095 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/delete.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.delete() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/get-logs.md b/docs/examples/0.9.x/client-android/examples/account/get-logs.md new file mode 100644 index 0000000000..0515eb8b9c --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/get-logs.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.getLogs() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/get-prefs.md b/docs/examples/0.9.x/client-android/examples/account/get-prefs.md new file mode 100644 index 0000000000..efab1b6179 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/get-prefs.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.getPrefs() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/get-session.md b/docs/examples/0.9.x/client-android/examples/account/get-session.md new file mode 100644 index 0000000000..8451d23b13 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/get-session.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.getSession( + sessionId = "[SESSION_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/get-sessions.md b/docs/examples/0.9.x/client-android/examples/account/get-sessions.md new file mode 100644 index 0000000000..ca2723fe0d --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/get-sessions.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.getSessions() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/get.md b/docs/examples/0.9.x/client-android/examples/account/get.md new file mode 100644 index 0000000000..96c7ff7324 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/get.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.get() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/update-email.md b/docs/examples/0.9.x/client-android/examples/account/update-email.md new file mode 100644 index 0000000000..b6d3615ce8 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/update-email.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.updateEmail( + email = "email@example.com", + password = "password" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/update-name.md b/docs/examples/0.9.x/client-android/examples/account/update-name.md new file mode 100644 index 0000000000..0ab74e42fa --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/update-name.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.updateName( + name = "[NAME]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/update-password.md b/docs/examples/0.9.x/client-android/examples/account/update-password.md new file mode 100644 index 0000000000..9c21ca790e --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/update-password.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.updatePassword( + password = "password", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/update-prefs.md b/docs/examples/0.9.x/client-android/examples/account/update-prefs.md new file mode 100644 index 0000000000..481cc8064c --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/update-prefs.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.updatePrefs( + prefs = mapOf( "a" to "b" ) + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/update-recovery.md b/docs/examples/0.9.x/client-android/examples/account/update-recovery.md new file mode 100644 index 0000000000..726e8ad668 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/update-recovery.md @@ -0,0 +1,29 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.updateRecovery( + userId = "[USER_ID]", + secret = "[SECRET]", + password = "password", + passwordAgain = "password" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/account/update-verification.md b/docs/examples/0.9.x/client-android/examples/account/update-verification.md new file mode 100644 index 0000000000..832314a984 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/account/update-verification.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Account + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val account = Account(client) + + GlobalScope.launch { + val response = account.updateVerification( + userId = "[USER_ID]", + secret = "[SECRET]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/avatars/get-browser.md b/docs/examples/0.9.x/client-android/examples/avatars/get-browser.md new file mode 100644 index 0000000000..15e765ed43 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/avatars/get-browser.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Avatars + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val avatars = Avatars(client) + + GlobalScope.launch { + val response = avatars.getBrowser( + code = "aa", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/client-android/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..b31587bea4 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/avatars/get-credit-card.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Avatars + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val avatars = Avatars(client) + + GlobalScope.launch { + val response = avatars.getCreditCard( + code = "amex", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/avatars/get-favicon.md b/docs/examples/0.9.x/client-android/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..d17aab995d --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/avatars/get-favicon.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Avatars + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val avatars = Avatars(client) + + GlobalScope.launch { + val response = avatars.getFavicon( + url = "https://example.com" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/avatars/get-flag.md b/docs/examples/0.9.x/client-android/examples/avatars/get-flag.md new file mode 100644 index 0000000000..7579ba0cf1 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/avatars/get-flag.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Avatars + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val avatars = Avatars(client) + + GlobalScope.launch { + val response = avatars.getFlag( + code = "af", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/avatars/get-image.md b/docs/examples/0.9.x/client-android/examples/avatars/get-image.md new file mode 100644 index 0000000000..21da7eeb7f --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/avatars/get-image.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Avatars + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val avatars = Avatars(client) + + GlobalScope.launch { + val response = avatars.getImage( + url = "https://example.com", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/avatars/get-initials.md b/docs/examples/0.9.x/client-android/examples/avatars/get-initials.md new file mode 100644 index 0000000000..e0cdc47f25 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/avatars/get-initials.md @@ -0,0 +1,25 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Avatars + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val avatars = Avatars(client) + + GlobalScope.launch { + val response = avatars.getInitials( + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/avatars/get-q-r.md b/docs/examples/0.9.x/client-android/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..e33584c452 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/avatars/get-q-r.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Avatars + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val avatars = Avatars(client) + + GlobalScope.launch { + val response = avatars.getQR( + text = "[TEXT]", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/database/create-document.md b/docs/examples/0.9.x/client-android/examples/database/create-document.md new file mode 100644 index 0000000000..efae56ef5d --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/database/create-document.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Database + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val database = Database(client) + + GlobalScope.launch { + val response = database.createDocument( + collectionId = "[COLLECTION_ID]", + data = mapOf( "a" to "b" ), + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/database/delete-document.md b/docs/examples/0.9.x/client-android/examples/database/delete-document.md new file mode 100644 index 0000000000..a3e91c43e4 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/database/delete-document.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Database + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val database = Database(client) + + GlobalScope.launch { + val response = database.deleteDocument( + collectionId = "[COLLECTION_ID]", + documentId = "[DOCUMENT_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/database/get-document.md b/docs/examples/0.9.x/client-android/examples/database/get-document.md new file mode 100644 index 0000000000..0b8b2b1a4f --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/database/get-document.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Database + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val database = Database(client) + + GlobalScope.launch { + val response = database.getDocument( + collectionId = "[COLLECTION_ID]", + documentId = "[DOCUMENT_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/database/list-documents.md b/docs/examples/0.9.x/client-android/examples/database/list-documents.md new file mode 100644 index 0000000000..d334283904 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/database/list-documents.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Database + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val database = Database(client) + + GlobalScope.launch { + val response = database.listDocuments( + collectionId = "[COLLECTION_ID]", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/database/update-document.md b/docs/examples/0.9.x/client-android/examples/database/update-document.md new file mode 100644 index 0000000000..2c62eb9061 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/database/update-document.md @@ -0,0 +1,28 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Database + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val database = Database(client) + + GlobalScope.launch { + val response = database.updateDocument( + collectionId = "[COLLECTION_ID]", + documentId = "[DOCUMENT_ID]", + data = mapOf( "a" to "b" ), + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/functions/create-execution.md b/docs/examples/0.9.x/client-android/examples/functions/create-execution.md new file mode 100644 index 0000000000..f9bad8dd3d --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/functions/create-execution.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Functions + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val functions = Functions(client) + + GlobalScope.launch { + val response = functions.createExecution( + functionId = "[FUNCTION_ID]", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/functions/get-execution.md b/docs/examples/0.9.x/client-android/examples/functions/get-execution.md new file mode 100644 index 0000000000..ee2b48c8e8 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/functions/get-execution.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Functions + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val functions = Functions(client) + + GlobalScope.launch { + val response = functions.getExecution( + functionId = "[FUNCTION_ID]", + executionId = "[EXECUTION_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/functions/list-executions.md b/docs/examples/0.9.x/client-android/examples/functions/list-executions.md new file mode 100644 index 0000000000..43e6573783 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/functions/list-executions.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Functions + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val functions = Functions(client) + + GlobalScope.launch { + val response = functions.listExecutions( + functionId = "[FUNCTION_ID]", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/locale/get-continents.md b/docs/examples/0.9.x/client-android/examples/locale/get-continents.md new file mode 100644 index 0000000000..9e69797b6c --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/locale/get-continents.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Locale + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val locale = Locale(client) + + GlobalScope.launch { + val response = locale.getContinents() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/client-android/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..146fcb4948 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/locale/get-countries-e-u.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Locale + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val locale = Locale(client) + + GlobalScope.launch { + val response = locale.getCountriesEU() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/client-android/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..71179957e7 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/locale/get-countries-phones.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Locale + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val locale = Locale(client) + + GlobalScope.launch { + val response = locale.getCountriesPhones() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/locale/get-countries.md b/docs/examples/0.9.x/client-android/examples/locale/get-countries.md new file mode 100644 index 0000000000..56d84188b1 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/locale/get-countries.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Locale + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val locale = Locale(client) + + GlobalScope.launch { + val response = locale.getCountries() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/locale/get-currencies.md b/docs/examples/0.9.x/client-android/examples/locale/get-currencies.md new file mode 100644 index 0000000000..a4bb2b6a1c --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/locale/get-currencies.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Locale + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val locale = Locale(client) + + GlobalScope.launch { + val response = locale.getCurrencies() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/locale/get-languages.md b/docs/examples/0.9.x/client-android/examples/locale/get-languages.md new file mode 100644 index 0000000000..ed1d41a54d --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/locale/get-languages.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Locale + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val locale = Locale(client) + + GlobalScope.launch { + val response = locale.getLanguages() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/locale/get.md b/docs/examples/0.9.x/client-android/examples/locale/get.md new file mode 100644 index 0000000000..fb6bf9858d --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/locale/get.md @@ -0,0 +1,24 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Locale + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val locale = Locale(client) + + GlobalScope.launch { + val response = locale.get() + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/storage/create-file.md b/docs/examples/0.9.x/client-android/examples/storage/create-file.md new file mode 100644 index 0000000000..680e332419 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/storage/create-file.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Storage + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val storage = Storage(client) + + GlobalScope.launch { + val response = storage.createFile( + file = File("./path-to-files/image.jpg"), + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/storage/delete-file.md b/docs/examples/0.9.x/client-android/examples/storage/delete-file.md new file mode 100644 index 0000000000..7fcb393491 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/storage/delete-file.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Storage + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val storage = Storage(client) + + GlobalScope.launch { + val response = storage.deleteFile( + fileId = "[FILE_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/storage/get-file-download.md b/docs/examples/0.9.x/client-android/examples/storage/get-file-download.md new file mode 100644 index 0000000000..3c4bfba324 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/storage/get-file-download.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Storage + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val storage = Storage(client) + + GlobalScope.launch { + val response = storage.getFileDownload( + fileId = "[FILE_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/storage/get-file-preview.md b/docs/examples/0.9.x/client-android/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..2a4d30e9bd --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/storage/get-file-preview.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Storage + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val storage = Storage(client) + + GlobalScope.launch { + val response = storage.getFilePreview( + fileId = "[FILE_ID]", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/storage/get-file-view.md b/docs/examples/0.9.x/client-android/examples/storage/get-file-view.md new file mode 100644 index 0000000000..de752a953a --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/storage/get-file-view.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Storage + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val storage = Storage(client) + + GlobalScope.launch { + val response = storage.getFileView( + fileId = "[FILE_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/storage/get-file.md b/docs/examples/0.9.x/client-android/examples/storage/get-file.md new file mode 100644 index 0000000000..b2657e843c --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/storage/get-file.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Storage + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val storage = Storage(client) + + GlobalScope.launch { + val response = storage.getFile( + fileId = "[FILE_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/storage/list-files.md b/docs/examples/0.9.x/client-android/examples/storage/list-files.md new file mode 100644 index 0000000000..0b43d3b432 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/storage/list-files.md @@ -0,0 +1,25 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Storage + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val storage = Storage(client) + + GlobalScope.launch { + val response = storage.listFiles( + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/storage/update-file.md b/docs/examples/0.9.x/client-android/examples/storage/update-file.md new file mode 100644 index 0000000000..94e492a523 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/storage/update-file.md @@ -0,0 +1,28 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Storage + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val storage = Storage(client) + + GlobalScope.launch { + val response = storage.updateFile( + fileId = "[FILE_ID]", + read = listOf(), + write = listOf() + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/create-membership.md b/docs/examples/0.9.x/client-android/examples/teams/create-membership.md new file mode 100644 index 0000000000..4c9b2c4be1 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/create-membership.md @@ -0,0 +1,29 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.createMembership( + teamId = "[TEAM_ID]", + email = "email@example.com", + roles = listOf(), + url = "https://example.com", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/create.md b/docs/examples/0.9.x/client-android/examples/teams/create.md new file mode 100644 index 0000000000..6b53502ead --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/create.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.create( + name = "[NAME]", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/delete-membership.md b/docs/examples/0.9.x/client-android/examples/teams/delete-membership.md new file mode 100644 index 0000000000..099583196f --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/delete-membership.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.deleteMembership( + teamId = "[TEAM_ID]", + membershipId = "[MEMBERSHIP_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/delete.md b/docs/examples/0.9.x/client-android/examples/teams/delete.md new file mode 100644 index 0000000000..a5c0d1469e --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/delete.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.delete( + teamId = "[TEAM_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/get-memberships.md b/docs/examples/0.9.x/client-android/examples/teams/get-memberships.md new file mode 100644 index 0000000000..a16950a227 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/get-memberships.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.getMemberships( + teamId = "[TEAM_ID]", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/get.md b/docs/examples/0.9.x/client-android/examples/teams/get.md new file mode 100644 index 0000000000..ecbed31524 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/get.md @@ -0,0 +1,26 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.get( + teamId = "[TEAM_ID]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/list.md b/docs/examples/0.9.x/client-android/examples/teams/list.md new file mode 100644 index 0000000000..3d25f922b8 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/list.md @@ -0,0 +1,25 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.list( + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/client-android/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..acc874eb22 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/update-membership-roles.md @@ -0,0 +1,28 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.updateMembershipRoles( + teamId = "[TEAM_ID]", + membershipId = "[MEMBERSHIP_ID]", + roles = listOf() + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/update-membership-status.md b/docs/examples/0.9.x/client-android/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..94dfd88fde --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/update-membership-status.md @@ -0,0 +1,29 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.updateMembershipStatus( + teamId = "[TEAM_ID]", + membershipId = "[MEMBERSHIP_ID]", + userId = "[USER_ID]", + secret = "[SECRET]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-android/examples/teams/update.md b/docs/examples/0.9.x/client-android/examples/teams/update.md new file mode 100644 index 0000000000..a9a2c49bf6 --- /dev/null +++ b/docs/examples/0.9.x/client-android/examples/teams/update.md @@ -0,0 +1,27 @@ +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.launch +import io.appwrite.Client +import io.appwrite.services.Teams + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + val client = Client(applicationContext) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + + val teams = Teams(client) + + GlobalScope.launch { + val response = teams.update( + teamId = "[TEAM_ID]", + name = "[NAME]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.9.x/client-flutter/examples/account/create-anonymous-session.md b/docs/examples/0.9.x/client-flutter/examples/account/create-anonymous-session.md new file mode 100644 index 0000000000..01b43744b0 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/create-anonymous-session.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.createAnonymousSession(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/0.9.x/client-flutter/examples/account/create-j-w-t.md new file mode 100644 index 0000000000..f88c7ad3ea --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/create-j-w-t.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.createJWT(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/0.9.x/client-flutter/examples/account/create-o-auth2session.md new file mode 100644 index 0000000000..a100378a00 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/create-o-auth2session.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.createOAuth2Session( + provider: 'amazon', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/create-recovery.md b/docs/examples/0.9.x/client-flutter/examples/account/create-recovery.md new file mode 100644 index 0000000000..2a5df1aa49 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/create-recovery.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.createRecovery( + email: 'email@example.com', + url: 'https://example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/create-session.md b/docs/examples/0.9.x/client-flutter/examples/account/create-session.md new file mode 100644 index 0000000000..6233665a43 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/create-session.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.createSession( + email: 'email@example.com', + password: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/create-verification.md b/docs/examples/0.9.x/client-flutter/examples/account/create-verification.md new file mode 100644 index 0000000000..18fa98aed2 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/create-verification.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.createVerification( + url: 'https://example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/create.md b/docs/examples/0.9.x/client-flutter/examples/account/create.md new file mode 100644 index 0000000000..33f7169477 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/create.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.create( + email: 'email@example.com', + password: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/delete-session.md b/docs/examples/0.9.x/client-flutter/examples/account/delete-session.md new file mode 100644 index 0000000000..c116ef1188 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/delete-session.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.deleteSession( + sessionId: '[SESSION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/delete-sessions.md b/docs/examples/0.9.x/client-flutter/examples/account/delete-sessions.md new file mode 100644 index 0000000000..0d84b9d121 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/delete-sessions.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.deleteSessions(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/delete.md b/docs/examples/0.9.x/client-flutter/examples/account/delete.md new file mode 100644 index 0000000000..c08891e787 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/delete.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.delete(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/get-logs.md b/docs/examples/0.9.x/client-flutter/examples/account/get-logs.md new file mode 100644 index 0000000000..82da1f46ef --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/get-logs.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.getLogs(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/get-prefs.md b/docs/examples/0.9.x/client-flutter/examples/account/get-prefs.md new file mode 100644 index 0000000000..2d6efd54db --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/get-prefs.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.getPrefs(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/get-session.md b/docs/examples/0.9.x/client-flutter/examples/account/get-session.md new file mode 100644 index 0000000000..4d93a81c72 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/get-session.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.getSession( + sessionId: '[SESSION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/get-sessions.md b/docs/examples/0.9.x/client-flutter/examples/account/get-sessions.md new file mode 100644 index 0000000000..a44eac144b --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/get-sessions.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.getSessions(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/get.md b/docs/examples/0.9.x/client-flutter/examples/account/get.md new file mode 100644 index 0000000000..733d8842ce --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/get.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.get(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/update-email.md b/docs/examples/0.9.x/client-flutter/examples/account/update-email.md new file mode 100644 index 0000000000..30dff9b7c9 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/update-email.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.updateEmail( + email: 'email@example.com', + password: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/update-name.md b/docs/examples/0.9.x/client-flutter/examples/account/update-name.md new file mode 100644 index 0000000000..01ff7a0b62 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/update-name.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.updateName( + name: '[NAME]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/update-password.md b/docs/examples/0.9.x/client-flutter/examples/account/update-password.md new file mode 100644 index 0000000000..a4647c95bc --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/update-password.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.updatePassword( + password: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/update-prefs.md b/docs/examples/0.9.x/client-flutter/examples/account/update-prefs.md new file mode 100644 index 0000000000..bb7b8f800e --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/update-prefs.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.updatePrefs( + prefs: {}, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/update-recovery.md b/docs/examples/0.9.x/client-flutter/examples/account/update-recovery.md new file mode 100644 index 0000000000..df9f144600 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/update-recovery.md @@ -0,0 +1,24 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.updateRecovery( + userId: '[USER_ID]', + secret: '[SECRET]', + password: 'password', + passwordAgain: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/account/update-verification.md b/docs/examples/0.9.x/client-flutter/examples/account/update-verification.md new file mode 100644 index 0000000000..2bfbaed75c --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/account/update-verification.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = account.updateVerification( + userId: '[USER_ID]', + secret: '[SECRET]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/avatars/get-browser.md b/docs/examples/0.9.x/client-flutter/examples/avatars/get-browser.md new file mode 100644 index 0000000000..474b4a2097 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/avatars/get-browser.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: avatars.getBrowser( + code: 'aa', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/client-flutter/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..5611b0ba9a --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/avatars/get-credit-card.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: avatars.getCreditCard( + code: 'amex', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/avatars/get-favicon.md b/docs/examples/0.9.x/client-flutter/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..5e1aad08ed --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/avatars/get-favicon.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: avatars.getFavicon( + url: 'https://example.com', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/avatars/get-flag.md b/docs/examples/0.9.x/client-flutter/examples/avatars/get-flag.md new file mode 100644 index 0000000000..f729dccdd7 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/avatars/get-flag.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: avatars.getFlag( + code: 'af', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/avatars/get-image.md b/docs/examples/0.9.x/client-flutter/examples/avatars/get-image.md new file mode 100644 index 0000000000..21ac6f80f0 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/avatars/get-image.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: avatars.getImage( + url: 'https://example.com', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/avatars/get-initials.md b/docs/examples/0.9.x/client-flutter/examples/avatars/get-initials.md new file mode 100644 index 0000000000..6ee824559d --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/avatars/get-initials.md @@ -0,0 +1,24 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: avatars.getInitials( + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/0.9.x/client-flutter/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..5c828ba98b --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/avatars/get-q-r.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: avatars.getQR( + text: '[TEXT]', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/database/create-document.md b/docs/examples/0.9.x/client-flutter/examples/database/create-document.md new file mode 100644 index 0000000000..0a3d0945c9 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/database/create-document.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = database.createDocument( + collectionId: '[COLLECTION_ID]', + data: {}, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/database/delete-document.md b/docs/examples/0.9.x/client-flutter/examples/database/delete-document.md new file mode 100644 index 0000000000..94479a0949 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/database/delete-document.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = database.deleteDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/database/get-document.md b/docs/examples/0.9.x/client-flutter/examples/database/get-document.md new file mode 100644 index 0000000000..153ad8e0f9 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/database/get-document.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = database.getDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/database/list-documents.md b/docs/examples/0.9.x/client-flutter/examples/database/list-documents.md new file mode 100644 index 0000000000..dc6893a285 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/database/list-documents.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = database.listDocuments( + collectionId: '[COLLECTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/database/update-document.md b/docs/examples/0.9.x/client-flutter/examples/database/update-document.md new file mode 100644 index 0000000000..65c23a297e --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/database/update-document.md @@ -0,0 +1,23 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = database.updateDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', + data: {}, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/functions/create-execution.md b/docs/examples/0.9.x/client-flutter/examples/functions/create-execution.md new file mode 100644 index 0000000000..70b617ffab --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/functions/create-execution.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = functions.createExecution( + functionId: '[FUNCTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/functions/get-execution.md b/docs/examples/0.9.x/client-flutter/examples/functions/get-execution.md new file mode 100644 index 0000000000..a10f7933c2 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/functions/get-execution.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = functions.getExecution( + functionId: '[FUNCTION_ID]', + executionId: '[EXECUTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/functions/list-executions.md b/docs/examples/0.9.x/client-flutter/examples/functions/list-executions.md new file mode 100644 index 0000000000..3f59aa3f20 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/functions/list-executions.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = functions.listExecutions( + functionId: '[FUNCTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/locale/get-continents.md b/docs/examples/0.9.x/client-flutter/examples/locale/get-continents.md new file mode 100644 index 0000000000..63920e735a --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/locale/get-continents.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = locale.getContinents(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/client-flutter/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..39f3a1d709 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/locale/get-countries-e-u.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = locale.getCountriesEU(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/client-flutter/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..44ff02603b --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/locale/get-countries-phones.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = locale.getCountriesPhones(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/locale/get-countries.md b/docs/examples/0.9.x/client-flutter/examples/locale/get-countries.md new file mode 100644 index 0000000000..97ef85e1e6 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/locale/get-countries.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = locale.getCountries(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/locale/get-currencies.md b/docs/examples/0.9.x/client-flutter/examples/locale/get-currencies.md new file mode 100644 index 0000000000..fb27e3d957 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/locale/get-currencies.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = locale.getCurrencies(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/locale/get-languages.md b/docs/examples/0.9.x/client-flutter/examples/locale/get-languages.md new file mode 100644 index 0000000000..badc806861 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/locale/get-languages.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = locale.getLanguages(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/locale/get.md b/docs/examples/0.9.x/client-flutter/examples/locale/get.md new file mode 100644 index 0000000000..21b1a6cff2 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/locale/get.md @@ -0,0 +1,19 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = locale.get(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/storage/create-file.md b/docs/examples/0.9.x/client-flutter/examples/storage/create-file.md new file mode 100644 index 0000000000..64c7881124 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/storage/create-file.md @@ -0,0 +1,22 @@ +import 'dart:io'; +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = storage.createFile( + file: await MultipartFile.fromFile('./path-to-files/image.jpg', 'image.jpg'), + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/storage/delete-file.md b/docs/examples/0.9.x/client-flutter/examples/storage/delete-file.md new file mode 100644 index 0000000000..ee9af9fc0e --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/storage/delete-file.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = storage.deleteFile( + fileId: '[FILE_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/storage/get-file-download.md b/docs/examples/0.9.x/client-flutter/examples/storage/get-file-download.md new file mode 100644 index 0000000000..2c5de98ee8 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/storage/get-file-download.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: storage.getFileDownload( + fileId: '[FILE_ID]', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/storage/get-file-preview.md b/docs/examples/0.9.x/client-flutter/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..0cf4c9c0d0 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/storage/get-file-preview.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: storage.getFilePreview( + fileId: '[FILE_ID]', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/storage/get-file-view.md b/docs/examples/0.9.x/client-flutter/examples/storage/get-file-view.md new file mode 100644 index 0000000000..9b53265ee7 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/storage/get-file-view.md @@ -0,0 +1,25 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; +} + +//displaying image +FutureBuilder( + future: storage.getFileView( + fileId: '[FILE_ID]', + ), //works for both public file and private file, for private files you need to be logged in + builder: (context, snapshot) { + return snapshot.hasData && snapshot.data != null + ? Image.memory( + snapshot.data.data, + ) + : CircularProgressIndicator(); + }, +); diff --git a/docs/examples/0.9.x/client-flutter/examples/storage/get-file.md b/docs/examples/0.9.x/client-flutter/examples/storage/get-file.md new file mode 100644 index 0000000000..2f734c6bdc --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/storage/get-file.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = storage.getFile( + fileId: '[FILE_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/storage/list-files.md b/docs/examples/0.9.x/client-flutter/examples/storage/list-files.md new file mode 100644 index 0000000000..663d416198 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/storage/list-files.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = storage.listFiles( + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/storage/update-file.md b/docs/examples/0.9.x/client-flutter/examples/storage/update-file.md new file mode 100644 index 0000000000..bc71901245 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/storage/update-file.md @@ -0,0 +1,23 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = storage.updateFile( + fileId: '[FILE_ID]', + read: [], + write: [], + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/create-membership.md b/docs/examples/0.9.x/client-flutter/examples/teams/create-membership.md new file mode 100644 index 0000000000..ef5931ea66 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/create-membership.md @@ -0,0 +1,24 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.createMembership( + teamId: '[TEAM_ID]', + email: 'email@example.com', + roles: [], + url: 'https://example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/create.md b/docs/examples/0.9.x/client-flutter/examples/teams/create.md new file mode 100644 index 0000000000..90dea2fb1a --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/create.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.create( + name: '[NAME]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/delete-membership.md b/docs/examples/0.9.x/client-flutter/examples/teams/delete-membership.md new file mode 100644 index 0000000000..8192b8528e --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/delete-membership.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.deleteMembership( + teamId: '[TEAM_ID]', + membershipId: '[MEMBERSHIP_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/delete.md b/docs/examples/0.9.x/client-flutter/examples/teams/delete.md new file mode 100644 index 0000000000..e55c62b2e3 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/delete.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.delete( + teamId: '[TEAM_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/get-memberships.md b/docs/examples/0.9.x/client-flutter/examples/teams/get-memberships.md new file mode 100644 index 0000000000..3116ca86ad --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/get-memberships.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.getMemberships( + teamId: '[TEAM_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/get.md b/docs/examples/0.9.x/client-flutter/examples/teams/get.md new file mode 100644 index 0000000000..25eb2453fc --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/get.md @@ -0,0 +1,21 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.get( + teamId: '[TEAM_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/list.md b/docs/examples/0.9.x/client-flutter/examples/teams/list.md new file mode 100644 index 0000000000..8657f80fd3 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/list.md @@ -0,0 +1,20 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.list( + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/client-flutter/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..7615752cd9 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/update-membership-roles.md @@ -0,0 +1,23 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.updateMembershipRoles( + teamId: '[TEAM_ID]', + membershipId: '[MEMBERSHIP_ID]', + roles: [], + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/update-membership-status.md b/docs/examples/0.9.x/client-flutter/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..7cda544d00 --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/update-membership-status.md @@ -0,0 +1,24 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.updateMembershipStatus( + teamId: '[TEAM_ID]', + membershipId: '[MEMBERSHIP_ID]', + userId: '[USER_ID]', + secret: '[SECRET]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-flutter/examples/teams/update.md b/docs/examples/0.9.x/client-flutter/examples/teams/update.md new file mode 100644 index 0000000000..838639be9b --- /dev/null +++ b/docs/examples/0.9.x/client-flutter/examples/teams/update.md @@ -0,0 +1,22 @@ +import 'package:appwrite/appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + ; + Future result = teams.update( + teamId: '[TEAM_ID]', + name: '[NAME]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.9.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/0.9.x/client-web/examples/account/create-anonymous-session.md new file mode 100644 index 0000000000..2be824e813 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/create-anonymous-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createAnonymousSession(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/create-j-w-t.md b/docs/examples/0.9.x/client-web/examples/account/create-j-w-t.md new file mode 100644 index 0000000000..f868c802d7 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/create-j-w-t.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createJWT(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/0.9.x/client-web/examples/account/create-o-auth2session.md new file mode 100644 index 0000000000..25b02e632e --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/create-o-auth2session.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +// Go to OAuth provider login page +sdk.account.createOAuth2Session('amazon'); + diff --git a/docs/examples/0.9.x/client-web/examples/account/create-recovery.md b/docs/examples/0.9.x/client-web/examples/account/create-recovery.md new file mode 100644 index 0000000000..72130f4de4 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/create-recovery.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createRecovery('email@example.com', 'https://example.com'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/create-session.md b/docs/examples/0.9.x/client-web/examples/account/create-session.md new file mode 100644 index 0000000000..4a7682c13d --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/create-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createSession('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/create-verification.md b/docs/examples/0.9.x/client-web/examples/account/create-verification.md new file mode 100644 index 0000000000..7903384a9f --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/create-verification.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createVerification('https://example.com'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/create.md b/docs/examples/0.9.x/client-web/examples/account/create.md new file mode 100644 index 0000000000..c9ce798b6a --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/create.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.create('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/delete-session.md b/docs/examples/0.9.x/client-web/examples/account/delete-session.md new file mode 100644 index 0000000000..581e5d132d --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/delete-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.deleteSession('[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/delete-sessions.md b/docs/examples/0.9.x/client-web/examples/account/delete-sessions.md new file mode 100644 index 0000000000..d037673eb3 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/delete-sessions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.deleteSessions(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/delete.md b/docs/examples/0.9.x/client-web/examples/account/delete.md new file mode 100644 index 0000000000..d952d77d7a --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/delete.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.delete(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/get-logs.md b/docs/examples/0.9.x/client-web/examples/account/get-logs.md new file mode 100644 index 0000000000..c53e0446e9 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/get-logs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.getLogs(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/get-prefs.md b/docs/examples/0.9.x/client-web/examples/account/get-prefs.md new file mode 100644 index 0000000000..75835e37fb --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/get-prefs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.getPrefs(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/get-session.md b/docs/examples/0.9.x/client-web/examples/account/get-session.md new file mode 100644 index 0000000000..5bc8690b78 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/get-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.getSession('[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/get-sessions.md b/docs/examples/0.9.x/client-web/examples/account/get-sessions.md new file mode 100644 index 0000000000..b4434de336 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/get-sessions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.getSessions(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/get.md b/docs/examples/0.9.x/client-web/examples/account/get.md new file mode 100644 index 0000000000..f0184a8513 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.get(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/update-email.md b/docs/examples/0.9.x/client-web/examples/account/update-email.md new file mode 100644 index 0000000000..f48fed78bc --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/update-email.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateEmail('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/update-name.md b/docs/examples/0.9.x/client-web/examples/account/update-name.md new file mode 100644 index 0000000000..e03e72c4b2 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/update-name.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateName('[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/update-password.md b/docs/examples/0.9.x/client-web/examples/account/update-password.md new file mode 100644 index 0000000000..acb360267e --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/update-password.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updatePassword('password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/update-prefs.md b/docs/examples/0.9.x/client-web/examples/account/update-prefs.md new file mode 100644 index 0000000000..b2d4ff175e --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/update-prefs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updatePrefs({}); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/update-recovery.md b/docs/examples/0.9.x/client-web/examples/account/update-recovery.md new file mode 100644 index 0000000000..33cf1b63c9 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/account/update-verification.md b/docs/examples/0.9.x/client-web/examples/account/update-verification.md new file mode 100644 index 0000000000..a80e125e30 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/account/update-verification.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateVerification('[USER_ID]', '[SECRET]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/avatars/get-browser.md b/docs/examples/0.9.x/client-web/examples/avatars/get-browser.md new file mode 100644 index 0000000000..0855209f58 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/avatars/get-browser.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getBrowser('aa'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/client-web/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..1aa595bd65 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/avatars/get-credit-card.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getCreditCard('amex'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/avatars/get-favicon.md b/docs/examples/0.9.x/client-web/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..a945e50bb2 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/avatars/get-favicon.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getFavicon('https://example.com'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/avatars/get-flag.md b/docs/examples/0.9.x/client-web/examples/avatars/get-flag.md new file mode 100644 index 0000000000..222b388afc --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/avatars/get-flag.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getFlag('af'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/avatars/get-image.md b/docs/examples/0.9.x/client-web/examples/avatars/get-image.md new file mode 100644 index 0000000000..3f15981c71 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/avatars/get-image.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getImage('https://example.com'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/avatars/get-initials.md b/docs/examples/0.9.x/client-web/examples/avatars/get-initials.md new file mode 100644 index 0000000000..ef04988e2d --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/avatars/get-initials.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getInitials(); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/avatars/get-q-r.md b/docs/examples/0.9.x/client-web/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..9d9ee3fea2 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/avatars/get-q-r.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getQR('[TEXT]'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/database/create-document.md b/docs/examples/0.9.x/client-web/examples/database/create-document.md new file mode 100644 index 0000000000..0235ba797f --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/database/create-document.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.createDocument('[COLLECTION_ID]', {}); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/database/delete-document.md b/docs/examples/0.9.x/client-web/examples/database/delete-document.md new file mode 100644 index 0000000000..79799b6907 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/database/delete-document.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/database/get-document.md b/docs/examples/0.9.x/client-web/examples/database/get-document.md new file mode 100644 index 0000000000..b9605dccc6 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/database/get-document.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/database/list-documents.md b/docs/examples/0.9.x/client-web/examples/database/list-documents.md new file mode 100644 index 0000000000..14f8a423a1 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/database/list-documents.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.listDocuments('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/database/update-document.md b/docs/examples/0.9.x/client-web/examples/database/update-document.md new file mode 100644 index 0000000000..23b9f49504 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/database/update-document.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/functions/create-execution.md b/docs/examples/0.9.x/client-web/examples/functions/create-execution.md new file mode 100644 index 0000000000..1afc158d87 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/functions/create-execution.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.createExecution('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/functions/get-execution.md b/docs/examples/0.9.x/client-web/examples/functions/get-execution.md new file mode 100644 index 0000000000..10a9f814db --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/functions/get-execution.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/functions/list-executions.md b/docs/examples/0.9.x/client-web/examples/functions/list-executions.md new file mode 100644 index 0000000000..f481d71919 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/functions/list-executions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.listExecutions('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/locale/get-continents.md b/docs/examples/0.9.x/client-web/examples/locale/get-continents.md new file mode 100644 index 0000000000..1dfdf8013b --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/locale/get-continents.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getContinents(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/client-web/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..6b3f210a1e --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/locale/get-countries-e-u.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getCountriesEU(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/client-web/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..f35e2152e4 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/locale/get-countries-phones.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getCountriesPhones(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/locale/get-countries.md b/docs/examples/0.9.x/client-web/examples/locale/get-countries.md new file mode 100644 index 0000000000..53b96375a1 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/locale/get-countries.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getCountries(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/locale/get-currencies.md b/docs/examples/0.9.x/client-web/examples/locale/get-currencies.md new file mode 100644 index 0000000000..57db66401f --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/locale/get-currencies.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getCurrencies(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/locale/get-languages.md b/docs/examples/0.9.x/client-web/examples/locale/get-languages.md new file mode 100644 index 0000000000..04e3063ee7 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/locale/get-languages.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getLanguages(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/locale/get.md b/docs/examples/0.9.x/client-web/examples/locale/get.md new file mode 100644 index 0000000000..469a046dbc --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/locale/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.get(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/storage/create-file.md b/docs/examples/0.9.x/client-web/examples/storage/create-file.md new file mode 100644 index 0000000000..00864e7320 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/storage/create-file.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.createFile(document.getElementById('uploader').files[0]); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/storage/delete-file.md b/docs/examples/0.9.x/client-web/examples/storage/delete-file.md new file mode 100644 index 0000000000..c38ab4ba9c --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/storage/delete-file.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.deleteFile('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/storage/get-file-download.md b/docs/examples/0.9.x/client-web/examples/storage/get-file-download.md new file mode 100644 index 0000000000..1323b8b8df --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/storage/get-file-download.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.storage.getFileDownload('[FILE_ID]'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/storage/get-file-preview.md b/docs/examples/0.9.x/client-web/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..5ede9fdb93 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/storage/get-file-preview.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.storage.getFilePreview('[FILE_ID]'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/storage/get-file-view.md b/docs/examples/0.9.x/client-web/examples/storage/get-file-view.md new file mode 100644 index 0000000000..53877ae352 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/storage/get-file-view.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.storage.getFileView('[FILE_ID]'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/storage/get-file.md b/docs/examples/0.9.x/client-web/examples/storage/get-file.md new file mode 100644 index 0000000000..a1f94c08a6 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/storage/get-file.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.getFile('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/storage/list-files.md b/docs/examples/0.9.x/client-web/examples/storage/list-files.md new file mode 100644 index 0000000000..c489a0b46d --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/storage/list-files.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.listFiles(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/storage/update-file.md b/docs/examples/0.9.x/client-web/examples/storage/update-file.md new file mode 100644 index 0000000000..2a2f579b3b --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/storage/update-file.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.updateFile('[FILE_ID]', [], []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/create-membership.md b/docs/examples/0.9.x/client-web/examples/teams/create-membership.md new file mode 100644 index 0000000000..78b2d7fa77 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/create-membership.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/create.md b/docs/examples/0.9.x/client-web/examples/teams/create.md new file mode 100644 index 0000000000..43205ba888 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/create.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.create('[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/delete-membership.md b/docs/examples/0.9.x/client-web/examples/teams/delete-membership.md new file mode 100644 index 0000000000..466b963df2 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/delete-membership.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/delete.md b/docs/examples/0.9.x/client-web/examples/teams/delete.md new file mode 100644 index 0000000000..4665ad5773 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/delete.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.delete('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/get-memberships.md b/docs/examples/0.9.x/client-web/examples/teams/get-memberships.md new file mode 100644 index 0000000000..6235ce33f4 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/get-memberships.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.getMemberships('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/get.md b/docs/examples/0.9.x/client-web/examples/teams/get.md new file mode 100644 index 0000000000..f4b0f040b1 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.get('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/list.md b/docs/examples/0.9.x/client-web/examples/teams/list.md new file mode 100644 index 0000000000..c4229e2400 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/list.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.list(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/client-web/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..ee8d7fcb93 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/update-membership-roles.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/update-membership-status.md b/docs/examples/0.9.x/client-web/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..ea68d9bc08 --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/update-membership-status.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/client-web/examples/teams/update.md b/docs/examples/0.9.x/client-web/examples/teams/update.md new file mode 100644 index 0000000000..bbab80937d --- /dev/null +++ b/docs/examples/0.9.x/client-web/examples/teams/update.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.update('[TEAM_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/0.9.x/console-web/examples/account/create-anonymous-session.md new file mode 100644 index 0000000000..2be824e813 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/create-anonymous-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createAnonymousSession(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/create-j-w-t.md b/docs/examples/0.9.x/console-web/examples/account/create-j-w-t.md new file mode 100644 index 0000000000..f868c802d7 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/create-j-w-t.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createJWT(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/0.9.x/console-web/examples/account/create-o-auth2session.md new file mode 100644 index 0000000000..25b02e632e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/create-o-auth2session.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +// Go to OAuth provider login page +sdk.account.createOAuth2Session('amazon'); + diff --git a/docs/examples/0.9.x/console-web/examples/account/create-recovery.md b/docs/examples/0.9.x/console-web/examples/account/create-recovery.md new file mode 100644 index 0000000000..72130f4de4 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/create-recovery.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createRecovery('email@example.com', 'https://example.com'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/create-session.md b/docs/examples/0.9.x/console-web/examples/account/create-session.md new file mode 100644 index 0000000000..4a7682c13d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/create-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createSession('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/create-verification.md b/docs/examples/0.9.x/console-web/examples/account/create-verification.md new file mode 100644 index 0000000000..7903384a9f --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/create-verification.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createVerification('https://example.com'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/create.md b/docs/examples/0.9.x/console-web/examples/account/create.md new file mode 100644 index 0000000000..c9ce798b6a --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/create.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.create('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/delete-session.md b/docs/examples/0.9.x/console-web/examples/account/delete-session.md new file mode 100644 index 0000000000..581e5d132d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/delete-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.deleteSession('[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/delete-sessions.md b/docs/examples/0.9.x/console-web/examples/account/delete-sessions.md new file mode 100644 index 0000000000..d037673eb3 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/delete-sessions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.deleteSessions(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/delete.md b/docs/examples/0.9.x/console-web/examples/account/delete.md new file mode 100644 index 0000000000..d952d77d7a --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/delete.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.delete(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/get-logs.md b/docs/examples/0.9.x/console-web/examples/account/get-logs.md new file mode 100644 index 0000000000..c53e0446e9 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/get-logs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.getLogs(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/get-prefs.md b/docs/examples/0.9.x/console-web/examples/account/get-prefs.md new file mode 100644 index 0000000000..75835e37fb --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/get-prefs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.getPrefs(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/get-session.md b/docs/examples/0.9.x/console-web/examples/account/get-session.md new file mode 100644 index 0000000000..5bc8690b78 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/get-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.getSession('[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/get-sessions.md b/docs/examples/0.9.x/console-web/examples/account/get-sessions.md new file mode 100644 index 0000000000..b4434de336 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/get-sessions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.getSessions(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/get.md b/docs/examples/0.9.x/console-web/examples/account/get.md new file mode 100644 index 0000000000..f0184a8513 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.get(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/update-email.md b/docs/examples/0.9.x/console-web/examples/account/update-email.md new file mode 100644 index 0000000000..f48fed78bc --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/update-email.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateEmail('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/update-name.md b/docs/examples/0.9.x/console-web/examples/account/update-name.md new file mode 100644 index 0000000000..e03e72c4b2 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/update-name.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateName('[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/update-password.md b/docs/examples/0.9.x/console-web/examples/account/update-password.md new file mode 100644 index 0000000000..acb360267e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/update-password.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updatePassword('password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/update-prefs.md b/docs/examples/0.9.x/console-web/examples/account/update-prefs.md new file mode 100644 index 0000000000..b2d4ff175e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/update-prefs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updatePrefs({}); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/update-recovery.md b/docs/examples/0.9.x/console-web/examples/account/update-recovery.md new file mode 100644 index 0000000000..33cf1b63c9 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/account/update-verification.md b/docs/examples/0.9.x/console-web/examples/account/update-verification.md new file mode 100644 index 0000000000..a80e125e30 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/account/update-verification.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateVerification('[USER_ID]', '[SECRET]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/avatars/get-browser.md b/docs/examples/0.9.x/console-web/examples/avatars/get-browser.md new file mode 100644 index 0000000000..0855209f58 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/avatars/get-browser.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getBrowser('aa'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/console-web/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..1aa595bd65 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/avatars/get-credit-card.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getCreditCard('amex'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/avatars/get-favicon.md b/docs/examples/0.9.x/console-web/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..a945e50bb2 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/avatars/get-favicon.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getFavicon('https://example.com'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/avatars/get-flag.md b/docs/examples/0.9.x/console-web/examples/avatars/get-flag.md new file mode 100644 index 0000000000..222b388afc --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/avatars/get-flag.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getFlag('af'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/avatars/get-image.md b/docs/examples/0.9.x/console-web/examples/avatars/get-image.md new file mode 100644 index 0000000000..3f15981c71 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/avatars/get-image.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getImage('https://example.com'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/avatars/get-initials.md b/docs/examples/0.9.x/console-web/examples/avatars/get-initials.md new file mode 100644 index 0000000000..ef04988e2d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/avatars/get-initials.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getInitials(); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/avatars/get-q-r.md b/docs/examples/0.9.x/console-web/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..9d9ee3fea2 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/avatars/get-q-r.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.avatars.getQR('[TEXT]'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/create-collection.md b/docs/examples/0.9.x/console-web/examples/database/create-collection.md new file mode 100644 index 0000000000..f9e1f89f1d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/create-collection.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.createCollection('[NAME]', [], [], []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/create-document.md b/docs/examples/0.9.x/console-web/examples/database/create-document.md new file mode 100644 index 0000000000..0235ba797f --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/create-document.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.createDocument('[COLLECTION_ID]', {}); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/delete-collection.md b/docs/examples/0.9.x/console-web/examples/database/delete-collection.md new file mode 100644 index 0000000000..dc3127119b --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/delete-collection.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.deleteCollection('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/delete-document.md b/docs/examples/0.9.x/console-web/examples/database/delete-document.md new file mode 100644 index 0000000000..79799b6907 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/delete-document.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/get-collection.md b/docs/examples/0.9.x/console-web/examples/database/get-collection.md new file mode 100644 index 0000000000..e50f15d648 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/get-collection.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.getCollection('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/get-document.md b/docs/examples/0.9.x/console-web/examples/database/get-document.md new file mode 100644 index 0000000000..b9605dccc6 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/get-document.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/list-collections.md b/docs/examples/0.9.x/console-web/examples/database/list-collections.md new file mode 100644 index 0000000000..899d69b38e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/list-collections.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.listCollections(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/list-documents.md b/docs/examples/0.9.x/console-web/examples/database/list-documents.md new file mode 100644 index 0000000000..14f8a423a1 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/list-documents.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.listDocuments('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/update-collection.md b/docs/examples/0.9.x/console-web/examples/database/update-collection.md new file mode 100644 index 0000000000..94a0fea610 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/update-collection.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.updateCollection('[COLLECTION_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/database/update-document.md b/docs/examples/0.9.x/console-web/examples/database/update-document.md new file mode 100644 index 0000000000..23b9f49504 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/database/update-document.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/create-execution.md b/docs/examples/0.9.x/console-web/examples/functions/create-execution.md new file mode 100644 index 0000000000..1afc158d87 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/create-execution.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.createExecution('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/create-tag.md b/docs/examples/0.9.x/console-web/examples/functions/create-tag.md new file mode 100644 index 0000000000..94a352d0c0 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/create-tag.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.createTag('[FUNCTION_ID]', '[COMMAND]', document.getElementById('uploader').files[0]); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/create.md b/docs/examples/0.9.x/console-web/examples/functions/create.md new file mode 100644 index 0000000000..12e47827a1 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/create.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.create('[NAME]', [], 'java-11'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/delete-tag.md b/docs/examples/0.9.x/console-web/examples/functions/delete-tag.md new file mode 100644 index 0000000000..0d8d1e3e57 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/delete-tag.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.deleteTag('[FUNCTION_ID]', '[TAG_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/delete.md b/docs/examples/0.9.x/console-web/examples/functions/delete.md new file mode 100644 index 0000000000..2d384eabef --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/delete.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.delete('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/get-execution.md b/docs/examples/0.9.x/console-web/examples/functions/get-execution.md new file mode 100644 index 0000000000..10a9f814db --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/get-execution.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/get-tag.md b/docs/examples/0.9.x/console-web/examples/functions/get-tag.md new file mode 100644 index 0000000000..7aaf25225a --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/get-tag.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.getTag('[FUNCTION_ID]', '[TAG_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/get-usage.md b/docs/examples/0.9.x/console-web/examples/functions/get-usage.md new file mode 100644 index 0000000000..944135904f --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/get-usage.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.getUsage('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/get.md b/docs/examples/0.9.x/console-web/examples/functions/get.md new file mode 100644 index 0000000000..6aa6efe82e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.get('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/list-executions.md b/docs/examples/0.9.x/console-web/examples/functions/list-executions.md new file mode 100644 index 0000000000..f481d71919 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/list-executions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.listExecutions('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/list-tags.md b/docs/examples/0.9.x/console-web/examples/functions/list-tags.md new file mode 100644 index 0000000000..a84c938882 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/list-tags.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.listTags('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/list.md b/docs/examples/0.9.x/console-web/examples/functions/list.md new file mode 100644 index 0000000000..ef7b3168f3 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/list.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.list(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/update-tag.md b/docs/examples/0.9.x/console-web/examples/functions/update-tag.md new file mode 100644 index 0000000000..55e9f924f4 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/update-tag.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.updateTag('[FUNCTION_ID]', '[TAG]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/functions/update.md b/docs/examples/0.9.x/console-web/examples/functions/update.md new file mode 100644 index 0000000000..11bf7947c9 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/functions/update.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.functions.update('[FUNCTION_ID]', '[NAME]', []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-anti-virus.md b/docs/examples/0.9.x/console-web/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..15adab27c6 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-anti-virus.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getAntiVirus(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-cache.md b/docs/examples/0.9.x/console-web/examples/health/get-cache.md new file mode 100644 index 0000000000..ecc44b360f --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-cache.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getCache(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-d-b.md b/docs/examples/0.9.x/console-web/examples/health/get-d-b.md new file mode 100644 index 0000000000..8254e84cdd --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-d-b.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getDB(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/console-web/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..149345dd11 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-queue-certificates.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getQueueCertificates(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-queue-functions.md b/docs/examples/0.9.x/console-web/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..6400e4d112 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-queue-functions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getQueueFunctions(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-queue-logs.md b/docs/examples/0.9.x/console-web/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..af169df8ae --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-queue-logs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getQueueLogs(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/console-web/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..bcf52a730d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-queue-tasks.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getQueueTasks(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-queue-usage.md b/docs/examples/0.9.x/console-web/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..7c74fbe663 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-queue-usage.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getQueueUsage(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/console-web/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..6a7e4de02e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-queue-webhooks.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getQueueWebhooks(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-storage-local.md b/docs/examples/0.9.x/console-web/examples/health/get-storage-local.md new file mode 100644 index 0000000000..fc7c882e6e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-storage-local.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getStorageLocal(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get-time.md b/docs/examples/0.9.x/console-web/examples/health/get-time.md new file mode 100644 index 0000000000..7f66da8321 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get-time.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.getTime(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/health/get.md b/docs/examples/0.9.x/console-web/examples/health/get.md new file mode 100644 index 0000000000..d7e278b6a6 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/health/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.health.get(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/locale/get-continents.md b/docs/examples/0.9.x/console-web/examples/locale/get-continents.md new file mode 100644 index 0000000000..1dfdf8013b --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/locale/get-continents.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getContinents(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/console-web/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..6b3f210a1e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/locale/get-countries-e-u.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getCountriesEU(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/console-web/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..f35e2152e4 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/locale/get-countries-phones.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getCountriesPhones(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/locale/get-countries.md b/docs/examples/0.9.x/console-web/examples/locale/get-countries.md new file mode 100644 index 0000000000..53b96375a1 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/locale/get-countries.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getCountries(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/locale/get-currencies.md b/docs/examples/0.9.x/console-web/examples/locale/get-currencies.md new file mode 100644 index 0000000000..57db66401f --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/locale/get-currencies.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getCurrencies(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/locale/get-languages.md b/docs/examples/0.9.x/console-web/examples/locale/get-languages.md new file mode 100644 index 0000000000..04e3063ee7 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/locale/get-languages.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.getLanguages(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/locale/get.md b/docs/examples/0.9.x/console-web/examples/locale/get.md new file mode 100644 index 0000000000..469a046dbc --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/locale/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.locale.get(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/create-domain.md b/docs/examples/0.9.x/console-web/examples/projects/create-domain.md new file mode 100644 index 0000000000..b3eb47574b --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/create-domain.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.createDomain('[PROJECT_ID]', ''); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/create-key.md b/docs/examples/0.9.x/console-web/examples/projects/create-key.md new file mode 100644 index 0000000000..8da85b7e99 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/create-key.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.createKey('[PROJECT_ID]', '[NAME]', []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/create-platform.md b/docs/examples/0.9.x/console-web/examples/projects/create-platform.md new file mode 100644 index 0000000000..6d98cb77ba --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/create-platform.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.createPlatform('[PROJECT_ID]', 'web', '[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/create-task.md b/docs/examples/0.9.x/console-web/examples/projects/create-task.md new file mode 100644 index 0000000000..26d1906ce3 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/create-task.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.createTask('[PROJECT_ID]', '[NAME]', 'play', '', false, 'GET', 'https://example.com'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/create-webhook.md b/docs/examples/0.9.x/console-web/examples/projects/create-webhook.md new file mode 100644 index 0000000000..6454e3f9d0 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/create-webhook.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], 'https://example.com', false); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/create.md b/docs/examples/0.9.x/console-web/examples/projects/create.md new file mode 100644 index 0000000000..fcf809403a --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/create.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.create('[NAME]', '[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/delete-domain.md b/docs/examples/0.9.x/console-web/examples/projects/delete-domain.md new file mode 100644 index 0000000000..81b62e5991 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/delete-domain.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.deleteDomain('[PROJECT_ID]', '[DOMAIN_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/delete-key.md b/docs/examples/0.9.x/console-web/examples/projects/delete-key.md new file mode 100644 index 0000000000..b74e776b9a --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/delete-key.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.deleteKey('[PROJECT_ID]', '[KEY_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/delete-platform.md b/docs/examples/0.9.x/console-web/examples/projects/delete-platform.md new file mode 100644 index 0000000000..6ecdf0c20d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/delete-platform.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.deletePlatform('[PROJECT_ID]', '[PLATFORM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/delete-task.md b/docs/examples/0.9.x/console-web/examples/projects/delete-task.md new file mode 100644 index 0000000000..fc9c17334a --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/delete-task.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.deleteTask('[PROJECT_ID]', '[TASK_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/delete-webhook.md b/docs/examples/0.9.x/console-web/examples/projects/delete-webhook.md new file mode 100644 index 0000000000..8724e9a2cb --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/delete-webhook.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.deleteWebhook('[PROJECT_ID]', '[WEBHOOK_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/delete.md b/docs/examples/0.9.x/console-web/examples/projects/delete.md new file mode 100644 index 0000000000..737948409c --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/delete.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.delete('[PROJECT_ID]', '[PASSWORD]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/get-domain.md b/docs/examples/0.9.x/console-web/examples/projects/get-domain.md new file mode 100644 index 0000000000..e4eb18e653 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/get-domain.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.getDomain('[PROJECT_ID]', '[DOMAIN_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/get-key.md b/docs/examples/0.9.x/console-web/examples/projects/get-key.md new file mode 100644 index 0000000000..6aa54d5690 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/get-key.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.getKey('[PROJECT_ID]', '[KEY_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/get-platform.md b/docs/examples/0.9.x/console-web/examples/projects/get-platform.md new file mode 100644 index 0000000000..4ffc20ed8a --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/get-platform.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.getPlatform('[PROJECT_ID]', '[PLATFORM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/get-task.md b/docs/examples/0.9.x/console-web/examples/projects/get-task.md new file mode 100644 index 0000000000..c910b6ac7c --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/get-task.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.getTask('[PROJECT_ID]', '[TASK_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/get-usage.md b/docs/examples/0.9.x/console-web/examples/projects/get-usage.md new file mode 100644 index 0000000000..2567253dde --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/get-usage.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.getUsage('[PROJECT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/get-webhook.md b/docs/examples/0.9.x/console-web/examples/projects/get-webhook.md new file mode 100644 index 0000000000..98881e855a --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/get-webhook.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.getWebhook('[PROJECT_ID]', '[WEBHOOK_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/get.md b/docs/examples/0.9.x/console-web/examples/projects/get.md new file mode 100644 index 0000000000..947cf01f6d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.get('[PROJECT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/list-domains.md b/docs/examples/0.9.x/console-web/examples/projects/list-domains.md new file mode 100644 index 0000000000..fde48b32c7 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/list-domains.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.listDomains('[PROJECT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/list-keys.md b/docs/examples/0.9.x/console-web/examples/projects/list-keys.md new file mode 100644 index 0000000000..1b04e272b7 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/list-keys.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.listKeys('[PROJECT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/list-platforms.md b/docs/examples/0.9.x/console-web/examples/projects/list-platforms.md new file mode 100644 index 0000000000..b997f58dc5 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/list-platforms.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.listPlatforms('[PROJECT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/list-tasks.md b/docs/examples/0.9.x/console-web/examples/projects/list-tasks.md new file mode 100644 index 0000000000..f6136ff1ad --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/list-tasks.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.listTasks('[PROJECT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/list-webhooks.md b/docs/examples/0.9.x/console-web/examples/projects/list-webhooks.md new file mode 100644 index 0000000000..48b509abdc --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/list-webhooks.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.listWebhooks('[PROJECT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/list.md b/docs/examples/0.9.x/console-web/examples/projects/list.md new file mode 100644 index 0000000000..c66b01a059 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/list.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.list(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/0.9.x/console-web/examples/projects/update-auth-limit.md new file mode 100644 index 0000000000..928d9a771e --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update-auth-limit.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.updateAuthLimit('[PROJECT_ID]', null); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update-auth-status.md b/docs/examples/0.9.x/console-web/examples/projects/update-auth-status.md new file mode 100644 index 0000000000..8092fdb7ad --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update-auth-status.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.updateAuthStatus('[PROJECT_ID]', 'email-password', false); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/0.9.x/console-web/examples/projects/update-domain-verification.md new file mode 100644 index 0000000000..33ce20a4cf --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update-domain-verification.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.updateDomainVerification('[PROJECT_ID]', '[DOMAIN_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update-key.md b/docs/examples/0.9.x/console-web/examples/projects/update-key.md new file mode 100644 index 0000000000..f9e21a54e8 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update-key.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.updateKey('[PROJECT_ID]', '[KEY_ID]', '[NAME]', []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/0.9.x/console-web/examples/projects/update-o-auth2.md new file mode 100644 index 0000000000..094a27a311 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update-o-auth2.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.updateOAuth2('[PROJECT_ID]', 'amazon'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update-platform.md b/docs/examples/0.9.x/console-web/examples/projects/update-platform.md new file mode 100644 index 0000000000..7371498d8c --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update-platform.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.updatePlatform('[PROJECT_ID]', '[PLATFORM_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update-task.md b/docs/examples/0.9.x/console-web/examples/projects/update-task.md new file mode 100644 index 0000000000..446c15f29d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update-task.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', false, 'GET', 'https://example.com'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update-webhook.md b/docs/examples/0.9.x/console-web/examples/projects/update-webhook.md new file mode 100644 index 0000000000..5a419a768d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update-webhook.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], 'https://example.com', false); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/projects/update.md b/docs/examples/0.9.x/console-web/examples/projects/update.md new file mode 100644 index 0000000000..61dee9e300 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/projects/update.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.projects.update('[PROJECT_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/storage/create-file.md b/docs/examples/0.9.x/console-web/examples/storage/create-file.md new file mode 100644 index 0000000000..00864e7320 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/storage/create-file.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.createFile(document.getElementById('uploader').files[0]); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/storage/delete-file.md b/docs/examples/0.9.x/console-web/examples/storage/delete-file.md new file mode 100644 index 0000000000..c38ab4ba9c --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/storage/delete-file.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.deleteFile('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/storage/get-file-download.md b/docs/examples/0.9.x/console-web/examples/storage/get-file-download.md new file mode 100644 index 0000000000..1323b8b8df --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/storage/get-file-download.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.storage.getFileDownload('[FILE_ID]'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/storage/get-file-preview.md b/docs/examples/0.9.x/console-web/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..5ede9fdb93 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/storage/get-file-preview.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.storage.getFilePreview('[FILE_ID]'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/storage/get-file-view.md b/docs/examples/0.9.x/console-web/examples/storage/get-file-view.md new file mode 100644 index 0000000000..53877ae352 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/storage/get-file-view.md @@ -0,0 +1,10 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let result = sdk.storage.getFileView('[FILE_ID]'); + +console.log(result); // Resource URL \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/storage/get-file.md b/docs/examples/0.9.x/console-web/examples/storage/get-file.md new file mode 100644 index 0000000000..a1f94c08a6 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/storage/get-file.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.getFile('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/storage/list-files.md b/docs/examples/0.9.x/console-web/examples/storage/list-files.md new file mode 100644 index 0000000000..c489a0b46d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/storage/list-files.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.listFiles(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/storage/update-file.md b/docs/examples/0.9.x/console-web/examples/storage/update-file.md new file mode 100644 index 0000000000..2a2f579b3b --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/storage/update-file.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.storage.updateFile('[FILE_ID]', [], []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/create-membership.md b/docs/examples/0.9.x/console-web/examples/teams/create-membership.md new file mode 100644 index 0000000000..78b2d7fa77 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/create-membership.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/create.md b/docs/examples/0.9.x/console-web/examples/teams/create.md new file mode 100644 index 0000000000..43205ba888 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/create.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.create('[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/delete-membership.md b/docs/examples/0.9.x/console-web/examples/teams/delete-membership.md new file mode 100644 index 0000000000..466b963df2 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/delete-membership.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/delete.md b/docs/examples/0.9.x/console-web/examples/teams/delete.md new file mode 100644 index 0000000000..4665ad5773 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/delete.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.delete('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/get-memberships.md b/docs/examples/0.9.x/console-web/examples/teams/get-memberships.md new file mode 100644 index 0000000000..6235ce33f4 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/get-memberships.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.getMemberships('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/get.md b/docs/examples/0.9.x/console-web/examples/teams/get.md new file mode 100644 index 0000000000..f4b0f040b1 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.get('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/list.md b/docs/examples/0.9.x/console-web/examples/teams/list.md new file mode 100644 index 0000000000..c4229e2400 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/list.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.list(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/console-web/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..ee8d7fcb93 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/update-membership-roles.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/update-membership-status.md b/docs/examples/0.9.x/console-web/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..ea68d9bc08 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/update-membership-status.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/teams/update.md b/docs/examples/0.9.x/console-web/examples/teams/update.md new file mode 100644 index 0000000000..bbab80937d --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/teams/update.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.teams.update('[TEAM_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/create.md b/docs/examples/0.9.x/console-web/examples/users/create.md new file mode 100644 index 0000000000..c82dd9c7e5 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/create.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.create('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/delete-session.md b/docs/examples/0.9.x/console-web/examples/users/delete-session.md new file mode 100644 index 0000000000..6335b618f0 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/delete-session.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.deleteSession('[USER_ID]', '[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/delete-sessions.md b/docs/examples/0.9.x/console-web/examples/users/delete-sessions.md new file mode 100644 index 0000000000..1a81df33f4 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/delete-sessions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.deleteSessions('[USER_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/delete.md b/docs/examples/0.9.x/console-web/examples/users/delete.md new file mode 100644 index 0000000000..9f075ceab8 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/delete.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.delete('[USER_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/get-logs.md b/docs/examples/0.9.x/console-web/examples/users/get-logs.md new file mode 100644 index 0000000000..0f1dda2e7b --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/get-logs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.getLogs('[USER_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/get-prefs.md b/docs/examples/0.9.x/console-web/examples/users/get-prefs.md new file mode 100644 index 0000000000..f4ae1178bc --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/get-prefs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.getPrefs('[USER_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/get-sessions.md b/docs/examples/0.9.x/console-web/examples/users/get-sessions.md new file mode 100644 index 0000000000..6397652d22 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/get-sessions.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.getSessions('[USER_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/get.md b/docs/examples/0.9.x/console-web/examples/users/get.md new file mode 100644 index 0000000000..25e9cb0aa5 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/get.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.get('[USER_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/list.md b/docs/examples/0.9.x/console-web/examples/users/list.md new file mode 100644 index 0000000000..22f4b1f6b5 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/list.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.list(); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/update-prefs.md b/docs/examples/0.9.x/console-web/examples/users/update-prefs.md new file mode 100644 index 0000000000..557234cad8 --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/update-prefs.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.updatePrefs('[USER_ID]', {}); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/update-status.md b/docs/examples/0.9.x/console-web/examples/users/update-status.md new file mode 100644 index 0000000000..1b8610108b --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/update-status.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.updateStatus('[USER_ID]', 1); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/console-web/examples/users/update-verification.md b/docs/examples/0.9.x/console-web/examples/users/update-verification.md new file mode 100644 index 0000000000..cfacc820ef --- /dev/null +++ b/docs/examples/0.9.x/console-web/examples/users/update-verification.md @@ -0,0 +1,14 @@ +let sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.users.updateVerification('[USER_ID]', false); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/create-recovery.md b/docs/examples/0.9.x/server-cli/examples/account/create-recovery.md new file mode 100644 index 0000000000..c241c27b69 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/create-recovery.md @@ -0,0 +1 @@ +appwrite account createRecovery --email="email@example.com" --url="https://example.com" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/create-verification.md b/docs/examples/0.9.x/server-cli/examples/account/create-verification.md new file mode 100644 index 0000000000..2533119784 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/create-verification.md @@ -0,0 +1 @@ +appwrite account createVerification --url="https://example.com" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/delete-session.md b/docs/examples/0.9.x/server-cli/examples/account/delete-session.md new file mode 100644 index 0000000000..a992f348b0 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/delete-session.md @@ -0,0 +1 @@ +appwrite account deleteSession --sessionId="[SESSION_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-cli/examples/account/delete-sessions.md new file mode 100644 index 0000000000..f7b16456bf --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/delete-sessions.md @@ -0,0 +1 @@ +appwrite account deleteSessions \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/delete.md b/docs/examples/0.9.x/server-cli/examples/account/delete.md new file mode 100644 index 0000000000..833cccdbc1 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/delete.md @@ -0,0 +1 @@ +appwrite account delete \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/get-logs.md b/docs/examples/0.9.x/server-cli/examples/account/get-logs.md new file mode 100644 index 0000000000..4edd9a9eb0 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/get-logs.md @@ -0,0 +1 @@ +appwrite account getLogs \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/get-prefs.md b/docs/examples/0.9.x/server-cli/examples/account/get-prefs.md new file mode 100644 index 0000000000..d59515a4da --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/get-prefs.md @@ -0,0 +1 @@ +appwrite account getPrefs \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/get-session.md b/docs/examples/0.9.x/server-cli/examples/account/get-session.md new file mode 100644 index 0000000000..2326cd8f48 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/get-session.md @@ -0,0 +1 @@ +appwrite account getSession --sessionId="[SESSION_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/get-sessions.md b/docs/examples/0.9.x/server-cli/examples/account/get-sessions.md new file mode 100644 index 0000000000..f75c3ebf13 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/get-sessions.md @@ -0,0 +1 @@ +appwrite account getSessions \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/get.md b/docs/examples/0.9.x/server-cli/examples/account/get.md new file mode 100644 index 0000000000..12cdfd9ad7 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/get.md @@ -0,0 +1 @@ +appwrite account get \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/update-email.md b/docs/examples/0.9.x/server-cli/examples/account/update-email.md new file mode 100644 index 0000000000..f3cfb31c32 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/update-email.md @@ -0,0 +1 @@ +appwrite account updateEmail --email="email@example.com" --password="password" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/update-name.md b/docs/examples/0.9.x/server-cli/examples/account/update-name.md new file mode 100644 index 0000000000..4887590f15 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/update-name.md @@ -0,0 +1 @@ +appwrite account updateName --name="[NAME]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/update-password.md b/docs/examples/0.9.x/server-cli/examples/account/update-password.md new file mode 100644 index 0000000000..53f36a090e --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/update-password.md @@ -0,0 +1 @@ +appwrite account updatePassword --password="password" --oldPassword="password" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/update-prefs.md b/docs/examples/0.9.x/server-cli/examples/account/update-prefs.md new file mode 100644 index 0000000000..58a8718d32 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/update-prefs.md @@ -0,0 +1 @@ +appwrite account updatePrefs --prefs="{}" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/update-recovery.md b/docs/examples/0.9.x/server-cli/examples/account/update-recovery.md new file mode 100644 index 0000000000..0226ea7587 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/update-recovery.md @@ -0,0 +1 @@ +appwrite account updateRecovery --userId="[USER_ID]" --secret="[SECRET]" --password="password" --passwordAgain="password" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/account/update-verification.md b/docs/examples/0.9.x/server-cli/examples/account/update-verification.md new file mode 100644 index 0000000000..2d84267ba4 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/account/update-verification.md @@ -0,0 +1 @@ +appwrite account updateVerification --userId="[USER_ID]" --secret="[SECRET]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-cli/examples/avatars/get-browser.md new file mode 100644 index 0000000000..8582e551d1 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/avatars/get-browser.md @@ -0,0 +1 @@ +appwrite avatars getBrowser --code="aa" --width="0" --height="0" --quality="0" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-cli/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..3a7ae5b479 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/avatars/get-credit-card.md @@ -0,0 +1 @@ +appwrite avatars getCreditCard --code="amex" --width="0" --height="0" --quality="0" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-cli/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..76a0b80d84 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/avatars/get-favicon.md @@ -0,0 +1 @@ +appwrite avatars getFavicon --url="https://example.com" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-cli/examples/avatars/get-flag.md new file mode 100644 index 0000000000..fb3e0c7a3b --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/avatars/get-flag.md @@ -0,0 +1 @@ +appwrite avatars getFlag --code="af" --width="0" --height="0" --quality="0" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/avatars/get-image.md b/docs/examples/0.9.x/server-cli/examples/avatars/get-image.md new file mode 100644 index 0000000000..6e5df2dcb9 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/avatars/get-image.md @@ -0,0 +1 @@ +appwrite avatars getImage --url="https://example.com" --width="0" --height="0" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-cli/examples/avatars/get-initials.md new file mode 100644 index 0000000000..33e115d890 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/avatars/get-initials.md @@ -0,0 +1 @@ +appwrite avatars getInitials --name="[NAME]" --width="0" --height="0" --color="" --background="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-cli/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..4a611afd55 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/avatars/get-q-r.md @@ -0,0 +1 @@ +appwrite avatars getQR --text="[TEXT]" --size="0" --margin="0" --download="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/create-collection.md b/docs/examples/0.9.x/server-cli/examples/database/create-collection.md new file mode 100644 index 0000000000..0812e0527d --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/create-collection.md @@ -0,0 +1 @@ +appwrite database createCollection --name="[NAME]" --read="" --write="" --rules="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/create-document.md b/docs/examples/0.9.x/server-cli/examples/database/create-document.md new file mode 100644 index 0000000000..038fd026bb --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/create-document.md @@ -0,0 +1 @@ +appwrite database createDocument --collectionId="[COLLECTION_ID]" --data="{}" --read="" --write="" --parentDocument="[PARENT_DOCUMENT]" --parentProperty="" --parentPropertyType="assign" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/delete-collection.md b/docs/examples/0.9.x/server-cli/examples/database/delete-collection.md new file mode 100644 index 0000000000..80b86c9d26 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/delete-collection.md @@ -0,0 +1 @@ +appwrite database deleteCollection --collectionId="[COLLECTION_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/delete-document.md b/docs/examples/0.9.x/server-cli/examples/database/delete-document.md new file mode 100644 index 0000000000..eea04ee980 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/delete-document.md @@ -0,0 +1 @@ +appwrite database deleteDocument --collectionId="[COLLECTION_ID]" --documentId="[DOCUMENT_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/get-collection.md b/docs/examples/0.9.x/server-cli/examples/database/get-collection.md new file mode 100644 index 0000000000..4998df1c2d --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/get-collection.md @@ -0,0 +1 @@ +appwrite database getCollection --collectionId="[COLLECTION_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/get-document.md b/docs/examples/0.9.x/server-cli/examples/database/get-document.md new file mode 100644 index 0000000000..c12399274f --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/get-document.md @@ -0,0 +1 @@ +appwrite database getDocument --collectionId="[COLLECTION_ID]" --documentId="[DOCUMENT_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/list-collections.md b/docs/examples/0.9.x/server-cli/examples/database/list-collections.md new file mode 100644 index 0000000000..4e0c1fec03 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/list-collections.md @@ -0,0 +1 @@ +appwrite database listCollections --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/list-documents.md b/docs/examples/0.9.x/server-cli/examples/database/list-documents.md new file mode 100644 index 0000000000..716d3127ba --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/list-documents.md @@ -0,0 +1 @@ +appwrite database listDocuments --collectionId="[COLLECTION_ID]" --filters="" --limit="0" --offset="0" --orderField="[ORDER_FIELD]" --orderType="DESC" --orderCast="int" --search="[SEARCH]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/update-collection.md b/docs/examples/0.9.x/server-cli/examples/database/update-collection.md new file mode 100644 index 0000000000..30ce19390b --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/update-collection.md @@ -0,0 +1 @@ +appwrite database updateCollection --collectionId="[COLLECTION_ID]" --name="[NAME]" --read="" --write="" --rules="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/database/update-document.md b/docs/examples/0.9.x/server-cli/examples/database/update-document.md new file mode 100644 index 0000000000..2ddf035e5d --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/database/update-document.md @@ -0,0 +1 @@ +appwrite database updateDocument --collectionId="[COLLECTION_ID]" --documentId="[DOCUMENT_ID]" --data="{}" --read="" --write="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/create-execution.md b/docs/examples/0.9.x/server-cli/examples/functions/create-execution.md new file mode 100644 index 0000000000..83bd8dd11e --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/create-execution.md @@ -0,0 +1 @@ +appwrite functions createExecution --functionId="[FUNCTION_ID]" --data="[DATA]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/create-tag.md b/docs/examples/0.9.x/server-cli/examples/functions/create-tag.md new file mode 100644 index 0000000000..142101df77 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/create-tag.md @@ -0,0 +1 @@ +appwrite functions createTag --functionId="[FUNCTION_ID]" --command="[COMMAND]" --code="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/create.md b/docs/examples/0.9.x/server-cli/examples/functions/create.md new file mode 100644 index 0000000000..a8c791034d --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/create.md @@ -0,0 +1 @@ +appwrite functions create --name="[NAME]" --execute="" --runtime="java-11" --vars="{}" --events="" --schedule="" --timeout="1" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-cli/examples/functions/delete-tag.md new file mode 100644 index 0000000000..e5d26de019 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/delete-tag.md @@ -0,0 +1 @@ +appwrite functions deleteTag --functionId="[FUNCTION_ID]" --tagId="[TAG_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/delete.md b/docs/examples/0.9.x/server-cli/examples/functions/delete.md new file mode 100644 index 0000000000..dc98427314 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/delete.md @@ -0,0 +1 @@ +appwrite functions delete --functionId="[FUNCTION_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/get-execution.md b/docs/examples/0.9.x/server-cli/examples/functions/get-execution.md new file mode 100644 index 0000000000..a1abfeea20 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/get-execution.md @@ -0,0 +1 @@ +appwrite functions getExecution --functionId="[FUNCTION_ID]" --executionId="[EXECUTION_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/get-tag.md b/docs/examples/0.9.x/server-cli/examples/functions/get-tag.md new file mode 100644 index 0000000000..8d99bf1727 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/get-tag.md @@ -0,0 +1 @@ +appwrite functions getTag --functionId="[FUNCTION_ID]" --tagId="[TAG_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/get.md b/docs/examples/0.9.x/server-cli/examples/functions/get.md new file mode 100644 index 0000000000..bf1374a71e --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/get.md @@ -0,0 +1 @@ +appwrite functions get --functionId="[FUNCTION_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/list-executions.md b/docs/examples/0.9.x/server-cli/examples/functions/list-executions.md new file mode 100644 index 0000000000..0894620156 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/list-executions.md @@ -0,0 +1 @@ +appwrite functions listExecutions --functionId="[FUNCTION_ID]" --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/list-tags.md b/docs/examples/0.9.x/server-cli/examples/functions/list-tags.md new file mode 100644 index 0000000000..7dde13b540 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/list-tags.md @@ -0,0 +1 @@ +appwrite functions listTags --functionId="[FUNCTION_ID]" --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/list.md b/docs/examples/0.9.x/server-cli/examples/functions/list.md new file mode 100644 index 0000000000..57db25bdaa --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/list.md @@ -0,0 +1 @@ +appwrite functions list --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/update-tag.md b/docs/examples/0.9.x/server-cli/examples/functions/update-tag.md new file mode 100644 index 0000000000..98cf2cb403 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/update-tag.md @@ -0,0 +1 @@ +appwrite functions updateTag --functionId="[FUNCTION_ID]" --tag="[TAG]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/functions/update.md b/docs/examples/0.9.x/server-cli/examples/functions/update.md new file mode 100644 index 0000000000..ee574f0b1e --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/functions/update.md @@ -0,0 +1 @@ +appwrite functions update --functionId="[FUNCTION_ID]" --name="[NAME]" --execute="" --vars="{}" --events="" --schedule="" --timeout="1" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-cli/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..909fce4586 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-anti-virus.md @@ -0,0 +1 @@ +appwrite health getAntiVirus \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-cache.md b/docs/examples/0.9.x/server-cli/examples/health/get-cache.md new file mode 100644 index 0000000000..01da772653 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-cache.md @@ -0,0 +1 @@ +appwrite health getCache \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-d-b.md b/docs/examples/0.9.x/server-cli/examples/health/get-d-b.md new file mode 100644 index 0000000000..1d9f0b89f6 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-d-b.md @@ -0,0 +1 @@ +appwrite health getDB \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-cli/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..5a7e78d981 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-queue-certificates.md @@ -0,0 +1 @@ +appwrite health getQueueCertificates \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-cli/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..899afe296e --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-queue-functions.md @@ -0,0 +1 @@ +appwrite health getQueueFunctions \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-cli/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..3a9475b846 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-queue-logs.md @@ -0,0 +1 @@ +appwrite health getQueueLogs \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-cli/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..70140520a7 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-queue-tasks.md @@ -0,0 +1 @@ +appwrite health getQueueTasks \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-cli/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..0ae52fd969 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-queue-usage.md @@ -0,0 +1 @@ +appwrite health getQueueUsage \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-cli/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..3778c0774b --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-queue-webhooks.md @@ -0,0 +1 @@ +appwrite health getQueueWebhooks \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-cli/examples/health/get-storage-local.md new file mode 100644 index 0000000000..6afeb240cc --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-storage-local.md @@ -0,0 +1 @@ +appwrite health getStorageLocal \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get-time.md b/docs/examples/0.9.x/server-cli/examples/health/get-time.md new file mode 100644 index 0000000000..dc3ddf9a6d --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get-time.md @@ -0,0 +1 @@ +appwrite health getTime \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/health/get.md b/docs/examples/0.9.x/server-cli/examples/health/get.md new file mode 100644 index 0000000000..3893cdc26d --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/health/get.md @@ -0,0 +1 @@ +appwrite health get \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/locale/get-continents.md b/docs/examples/0.9.x/server-cli/examples/locale/get-continents.md new file mode 100644 index 0000000000..e5d5f0404a --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/locale/get-continents.md @@ -0,0 +1 @@ +appwrite locale getContinents \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-cli/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..0ad58879b5 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/locale/get-countries-e-u.md @@ -0,0 +1 @@ +appwrite locale getCountriesEU \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-cli/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..5129fc1dba --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/locale/get-countries-phones.md @@ -0,0 +1 @@ +appwrite locale getCountriesPhones \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/locale/get-countries.md b/docs/examples/0.9.x/server-cli/examples/locale/get-countries.md new file mode 100644 index 0000000000..57d336476e --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/locale/get-countries.md @@ -0,0 +1 @@ +appwrite locale getCountries \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-cli/examples/locale/get-currencies.md new file mode 100644 index 0000000000..77626e4d39 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/locale/get-currencies.md @@ -0,0 +1 @@ +appwrite locale getCurrencies \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/locale/get-languages.md b/docs/examples/0.9.x/server-cli/examples/locale/get-languages.md new file mode 100644 index 0000000000..763d9860f3 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/locale/get-languages.md @@ -0,0 +1 @@ +appwrite locale getLanguages \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/locale/get.md b/docs/examples/0.9.x/server-cli/examples/locale/get.md new file mode 100644 index 0000000000..ece703af0e --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/locale/get.md @@ -0,0 +1 @@ +appwrite locale get \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/storage/create-file.md b/docs/examples/0.9.x/server-cli/examples/storage/create-file.md new file mode 100644 index 0000000000..c17f8ffa4c --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/storage/create-file.md @@ -0,0 +1 @@ +appwrite storage createFile --file="" --read="" --write="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/storage/delete-file.md b/docs/examples/0.9.x/server-cli/examples/storage/delete-file.md new file mode 100644 index 0000000000..c283465523 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/storage/delete-file.md @@ -0,0 +1 @@ +appwrite storage deleteFile --fileId="[FILE_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-cli/examples/storage/get-file-download.md new file mode 100644 index 0000000000..d12c1a5dc7 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/storage/get-file-download.md @@ -0,0 +1 @@ +appwrite storage getFileDownload --fileId="[FILE_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-cli/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..ebbccd7653 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/storage/get-file-preview.md @@ -0,0 +1 @@ +appwrite storage getFilePreview --fileId="[FILE_ID]" --width="0" --height="0" --gravity="center" --quality="0" --borderWidth="0" --borderColor="" --borderRadius="0" --opacity="0" --rotation="0" --background="" --output="jpg" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-cli/examples/storage/get-file-view.md new file mode 100644 index 0000000000..0e6ad00ca4 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/storage/get-file-view.md @@ -0,0 +1 @@ +appwrite storage getFileView --fileId="[FILE_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/storage/get-file.md b/docs/examples/0.9.x/server-cli/examples/storage/get-file.md new file mode 100644 index 0000000000..aa77084795 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/storage/get-file.md @@ -0,0 +1 @@ +appwrite storage getFile --fileId="[FILE_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/storage/list-files.md b/docs/examples/0.9.x/server-cli/examples/storage/list-files.md new file mode 100644 index 0000000000..414f11c0ff --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/storage/list-files.md @@ -0,0 +1 @@ +appwrite storage listFiles --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/storage/update-file.md b/docs/examples/0.9.x/server-cli/examples/storage/update-file.md new file mode 100644 index 0000000000..76c2f8197b --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/storage/update-file.md @@ -0,0 +1 @@ +appwrite storage updateFile --fileId="[FILE_ID]" --read="" --write="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/create-membership.md b/docs/examples/0.9.x/server-cli/examples/teams/create-membership.md new file mode 100644 index 0000000000..9237e1b204 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/create-membership.md @@ -0,0 +1 @@ +appwrite teams createMembership --teamId="[TEAM_ID]" --email="email@example.com" --roles="" --url="https://example.com" --name="[NAME]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/create.md b/docs/examples/0.9.x/server-cli/examples/teams/create.md new file mode 100644 index 0000000000..b110aa3553 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/create.md @@ -0,0 +1 @@ +appwrite teams create --name="[NAME]" --roles="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-cli/examples/teams/delete-membership.md new file mode 100644 index 0000000000..8181ff1040 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/delete-membership.md @@ -0,0 +1 @@ +appwrite teams deleteMembership --teamId="[TEAM_ID]" --membershipId="[MEMBERSHIP_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/delete.md b/docs/examples/0.9.x/server-cli/examples/teams/delete.md new file mode 100644 index 0000000000..5c0ba25b16 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/delete.md @@ -0,0 +1 @@ +appwrite teams delete --teamId="[TEAM_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-cli/examples/teams/get-memberships.md new file mode 100644 index 0000000000..06e464fc16 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/get-memberships.md @@ -0,0 +1 @@ +appwrite teams getMemberships --teamId="[TEAM_ID]" --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/get.md b/docs/examples/0.9.x/server-cli/examples/teams/get.md new file mode 100644 index 0000000000..76f43d8676 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/get.md @@ -0,0 +1 @@ +appwrite teams get --teamId="[TEAM_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/list.md b/docs/examples/0.9.x/server-cli/examples/teams/list.md new file mode 100644 index 0000000000..c6feea1a05 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/list.md @@ -0,0 +1 @@ +appwrite teams list --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-cli/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..9bce996b45 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/update-membership-roles.md @@ -0,0 +1 @@ +appwrite teams updateMembershipRoles --teamId="[TEAM_ID]" --membershipId="[MEMBERSHIP_ID]" --roles="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-cli/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..b03234b6c7 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/update-membership-status.md @@ -0,0 +1 @@ +appwrite teams updateMembershipStatus --teamId="[TEAM_ID]" --membershipId="[MEMBERSHIP_ID]" --userId="[USER_ID]" --secret="[SECRET]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/teams/update.md b/docs/examples/0.9.x/server-cli/examples/teams/update.md new file mode 100644 index 0000000000..5b09b372cb --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/teams/update.md @@ -0,0 +1 @@ +appwrite teams update --teamId="[TEAM_ID]" --name="[NAME]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/create.md b/docs/examples/0.9.x/server-cli/examples/users/create.md new file mode 100644 index 0000000000..e74f1a6787 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/create.md @@ -0,0 +1 @@ +appwrite users create --email="email@example.com" --password="password" --name="[NAME]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/delete-session.md b/docs/examples/0.9.x/server-cli/examples/users/delete-session.md new file mode 100644 index 0000000000..6351dd5eb9 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/delete-session.md @@ -0,0 +1 @@ +appwrite users deleteSession --userId="[USER_ID]" --sessionId="[SESSION_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-cli/examples/users/delete-sessions.md new file mode 100644 index 0000000000..8a4b2943b3 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/delete-sessions.md @@ -0,0 +1 @@ +appwrite users deleteSessions --userId="[USER_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/delete.md b/docs/examples/0.9.x/server-cli/examples/users/delete.md new file mode 100644 index 0000000000..ff703d9df7 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/delete.md @@ -0,0 +1 @@ +appwrite users delete --userId="[USER_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/get-logs.md b/docs/examples/0.9.x/server-cli/examples/users/get-logs.md new file mode 100644 index 0000000000..51a419e61f --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/get-logs.md @@ -0,0 +1 @@ +appwrite users getLogs --userId="[USER_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/get-prefs.md b/docs/examples/0.9.x/server-cli/examples/users/get-prefs.md new file mode 100644 index 0000000000..2dcfc3f630 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/get-prefs.md @@ -0,0 +1 @@ +appwrite users getPrefs --userId="[USER_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/get-sessions.md b/docs/examples/0.9.x/server-cli/examples/users/get-sessions.md new file mode 100644 index 0000000000..b2ca904554 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/get-sessions.md @@ -0,0 +1 @@ +appwrite users getSessions --userId="[USER_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/get.md b/docs/examples/0.9.x/server-cli/examples/users/get.md new file mode 100644 index 0000000000..7a2ae344fb --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/get.md @@ -0,0 +1 @@ +appwrite users get --userId="[USER_ID]" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/list.md b/docs/examples/0.9.x/server-cli/examples/users/list.md new file mode 100644 index 0000000000..0274387578 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/list.md @@ -0,0 +1 @@ +appwrite users list --search="[SEARCH]" --limit="0" --offset="0" --orderType="ASC" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/update-prefs.md b/docs/examples/0.9.x/server-cli/examples/users/update-prefs.md new file mode 100644 index 0000000000..bafac2e8c5 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/update-prefs.md @@ -0,0 +1 @@ +appwrite users updatePrefs --userId="[USER_ID]" --prefs="{}" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/update-status.md b/docs/examples/0.9.x/server-cli/examples/users/update-status.md new file mode 100644 index 0000000000..5ab984176a --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/update-status.md @@ -0,0 +1 @@ +appwrite users updateStatus --userId="[USER_ID]" --status="1" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-cli/examples/users/update-verification.md b/docs/examples/0.9.x/server-cli/examples/users/update-verification.md new file mode 100644 index 0000000000..d0d2f6ce02 --- /dev/null +++ b/docs/examples/0.9.x/server-cli/examples/users/update-verification.md @@ -0,0 +1 @@ +appwrite users updateVerification --userId="[USER_ID]" --emailVerification="" \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/create-recovery.md b/docs/examples/0.9.x/server-dart/examples/account/create-recovery.md new file mode 100644 index 0000000000..1d6c7fca9e --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/create-recovery.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.createRecovery( + email: 'email@example.com', + url: 'https://example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/create-verification.md b/docs/examples/0.9.x/server-dart/examples/account/create-verification.md new file mode 100644 index 0000000000..a46c1cf519 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/create-verification.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.createVerification( + url: 'https://example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/delete-session.md b/docs/examples/0.9.x/server-dart/examples/account/delete-session.md new file mode 100644 index 0000000000..7e2c59b629 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/delete-session.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.deleteSession( + sessionId: '[SESSION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-dart/examples/account/delete-sessions.md new file mode 100644 index 0000000000..8647d09fa7 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/delete-sessions.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.deleteSessions(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/delete.md b/docs/examples/0.9.x/server-dart/examples/account/delete.md new file mode 100644 index 0000000000..d468b5cfc0 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/delete.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.delete(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/get-logs.md b/docs/examples/0.9.x/server-dart/examples/account/get-logs.md new file mode 100644 index 0000000000..19be8d78fd --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/get-logs.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.getLogs(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/get-prefs.md b/docs/examples/0.9.x/server-dart/examples/account/get-prefs.md new file mode 100644 index 0000000000..911e868115 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/get-prefs.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.getPrefs(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/get-session.md b/docs/examples/0.9.x/server-dart/examples/account/get-session.md new file mode 100644 index 0000000000..ef78a5291d --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/get-session.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.getSession( + sessionId: '[SESSION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/get-sessions.md b/docs/examples/0.9.x/server-dart/examples/account/get-sessions.md new file mode 100644 index 0000000000..40051a967d --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/get-sessions.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.getSessions(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/get.md b/docs/examples/0.9.x/server-dart/examples/account/get.md new file mode 100644 index 0000000000..040dad642f --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/get.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.get(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/update-email.md b/docs/examples/0.9.x/server-dart/examples/account/update-email.md new file mode 100644 index 0000000000..85b5950bc5 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/update-email.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.updateEmail( + email: 'email@example.com', + password: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/update-name.md b/docs/examples/0.9.x/server-dart/examples/account/update-name.md new file mode 100644 index 0000000000..026206d169 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/update-name.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.updateName( + name: '[NAME]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/update-password.md b/docs/examples/0.9.x/server-dart/examples/account/update-password.md new file mode 100644 index 0000000000..dec459c686 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/update-password.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.updatePassword( + password: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/update-prefs.md b/docs/examples/0.9.x/server-dart/examples/account/update-prefs.md new file mode 100644 index 0000000000..8bcb83e7db --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/update-prefs.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.updatePrefs( + prefs: {}, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/update-recovery.md b/docs/examples/0.9.x/server-dart/examples/account/update-recovery.md new file mode 100644 index 0000000000..5840fbec70 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/update-recovery.md @@ -0,0 +1,26 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.updateRecovery( + userId: '[USER_ID]', + secret: '[SECRET]', + password: 'password', + passwordAgain: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/account/update-verification.md b/docs/examples/0.9.x/server-dart/examples/account/update-verification.md new file mode 100644 index 0000000000..c970793640 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/account/update-verification.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Account account = Account(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = account.updateVerification( + userId: '[USER_ID]', + secret: '[SECRET]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-dart/examples/avatars/get-browser.md new file mode 100644 index 0000000000..c924ae43c8 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/avatars/get-browser.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = avatars.getBrowser( + code: 'aa', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-dart/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..5d01d690dd --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/avatars/get-credit-card.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = avatars.getCreditCard( + code: 'amex', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-dart/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..3308f5c59a --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/avatars/get-favicon.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = avatars.getFavicon( + url: 'https://example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-dart/examples/avatars/get-flag.md new file mode 100644 index 0000000000..5da4aaf219 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/avatars/get-flag.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = avatars.getFlag( + code: 'af', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/avatars/get-image.md b/docs/examples/0.9.x/server-dart/examples/avatars/get-image.md new file mode 100644 index 0000000000..196c6dedb5 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/avatars/get-image.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = avatars.getImage( + url: 'https://example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-dart/examples/avatars/get-initials.md new file mode 100644 index 0000000000..c40a54b712 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/avatars/get-initials.md @@ -0,0 +1,22 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = avatars.getInitials( + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-dart/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..bef31b345f --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/avatars/get-q-r.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Avatars avatars = Avatars(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = avatars.getQR( + text: '[TEXT]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/create-collection.md b/docs/examples/0.9.x/server-dart/examples/database/create-collection.md new file mode 100644 index 0000000000..c060effb3d --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/create-collection.md @@ -0,0 +1,26 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.createCollection( + name: '[NAME]', + read: [], + write: [], + rules: [], + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/create-document.md b/docs/examples/0.9.x/server-dart/examples/database/create-document.md new file mode 100644 index 0000000000..4983401987 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/create-document.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.createDocument( + collectionId: '[COLLECTION_ID]', + data: {}, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/delete-collection.md b/docs/examples/0.9.x/server-dart/examples/database/delete-collection.md new file mode 100644 index 0000000000..6543cc1491 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/delete-collection.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.deleteCollection( + collectionId: '[COLLECTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/delete-document.md b/docs/examples/0.9.x/server-dart/examples/database/delete-document.md new file mode 100644 index 0000000000..89204f6d81 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/delete-document.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.deleteDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/get-collection.md b/docs/examples/0.9.x/server-dart/examples/database/get-collection.md new file mode 100644 index 0000000000..6b0cb526ca --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/get-collection.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.getCollection( + collectionId: '[COLLECTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/get-document.md b/docs/examples/0.9.x/server-dart/examples/database/get-document.md new file mode 100644 index 0000000000..efe007aadf --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/get-document.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.getDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/list-collections.md b/docs/examples/0.9.x/server-dart/examples/database/list-collections.md new file mode 100644 index 0000000000..aecd08a54a --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/list-collections.md @@ -0,0 +1,22 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.listCollections( + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/list-documents.md b/docs/examples/0.9.x/server-dart/examples/database/list-documents.md new file mode 100644 index 0000000000..9323fd34be --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/list-documents.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.listDocuments( + collectionId: '[COLLECTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/update-collection.md b/docs/examples/0.9.x/server-dart/examples/database/update-collection.md new file mode 100644 index 0000000000..3fdd21903f --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/update-collection.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.updateCollection( + collectionId: '[COLLECTION_ID]', + name: '[NAME]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/database/update-document.md b/docs/examples/0.9.x/server-dart/examples/database/update-document.md new file mode 100644 index 0000000000..b2c78752e5 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/database/update-document.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Database database = Database(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = database.updateDocument( + collectionId: '[COLLECTION_ID]', + documentId: '[DOCUMENT_ID]', + data: {}, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/create-execution.md b/docs/examples/0.9.x/server-dart/examples/functions/create-execution.md new file mode 100644 index 0000000000..572b54ffd5 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/create-execution.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.createExecution( + functionId: '[FUNCTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/create-tag.md b/docs/examples/0.9.x/server-dart/examples/functions/create-tag.md new file mode 100644 index 0000000000..a7350fd7b1 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/create-tag.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.createTag( + functionId: '[FUNCTION_ID]', + command: '[COMMAND]', + code: await MultipartFile.fromFile('./path-to-files/image.jpg', 'image.jpg'), + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/create.md b/docs/examples/0.9.x/server-dart/examples/functions/create.md new file mode 100644 index 0000000000..f1cb9ae975 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/create.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.create( + name: '[NAME]', + execute: [], + runtime: 'java-11', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-dart/examples/functions/delete-tag.md new file mode 100644 index 0000000000..2dc621cc43 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/delete-tag.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.deleteTag( + functionId: '[FUNCTION_ID]', + tagId: '[TAG_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/delete.md b/docs/examples/0.9.x/server-dart/examples/functions/delete.md new file mode 100644 index 0000000000..36694658cd --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/delete.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.delete( + functionId: '[FUNCTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/get-execution.md b/docs/examples/0.9.x/server-dart/examples/functions/get-execution.md new file mode 100644 index 0000000000..7854e7f7c4 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/get-execution.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.getExecution( + functionId: '[FUNCTION_ID]', + executionId: '[EXECUTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/get-tag.md b/docs/examples/0.9.x/server-dart/examples/functions/get-tag.md new file mode 100644 index 0000000000..3d12d91262 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/get-tag.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.getTag( + functionId: '[FUNCTION_ID]', + tagId: '[TAG_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/get.md b/docs/examples/0.9.x/server-dart/examples/functions/get.md new file mode 100644 index 0000000000..261ffef362 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/get.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.get( + functionId: '[FUNCTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/list-executions.md b/docs/examples/0.9.x/server-dart/examples/functions/list-executions.md new file mode 100644 index 0000000000..a0af0d161e --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/list-executions.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.listExecutions( + functionId: '[FUNCTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/list-tags.md b/docs/examples/0.9.x/server-dart/examples/functions/list-tags.md new file mode 100644 index 0000000000..5d13f6a7d6 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/list-tags.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.listTags( + functionId: '[FUNCTION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/list.md b/docs/examples/0.9.x/server-dart/examples/functions/list.md new file mode 100644 index 0000000000..a530d00fbb --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/list.md @@ -0,0 +1,22 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.list( + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/update-tag.md b/docs/examples/0.9.x/server-dart/examples/functions/update-tag.md new file mode 100644 index 0000000000..5e2284a298 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/update-tag.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.updateTag( + functionId: '[FUNCTION_ID]', + tag: '[TAG]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/functions/update.md b/docs/examples/0.9.x/server-dart/examples/functions/update.md new file mode 100644 index 0000000000..d1845b771d --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/functions/update.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Functions functions = Functions(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = functions.update( + functionId: '[FUNCTION_ID]', + name: '[NAME]', + execute: [], + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-dart/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..dd5bbdc1cb --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-anti-virus.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getAntiVirus(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-cache.md b/docs/examples/0.9.x/server-dart/examples/health/get-cache.md new file mode 100644 index 0000000000..322939d74e --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-cache.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getCache(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-d-b.md b/docs/examples/0.9.x/server-dart/examples/health/get-d-b.md new file mode 100644 index 0000000000..e3447550eb --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-d-b.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getDB(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-dart/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..7c605154a6 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-queue-certificates.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getQueueCertificates(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-dart/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..c06cda9185 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-queue-functions.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getQueueFunctions(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-dart/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..807a04fb11 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-queue-logs.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getQueueLogs(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-dart/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..a33ae976a0 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-queue-tasks.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getQueueTasks(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-dart/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..b504a8efc5 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-queue-usage.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getQueueUsage(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-dart/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..7c159ac8cd --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-queue-webhooks.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getQueueWebhooks(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-dart/examples/health/get-storage-local.md new file mode 100644 index 0000000000..7f172bf86c --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-storage-local.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getStorageLocal(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get-time.md b/docs/examples/0.9.x/server-dart/examples/health/get-time.md new file mode 100644 index 0000000000..65861d3cc3 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get-time.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.getTime(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/health/get.md b/docs/examples/0.9.x/server-dart/examples/health/get.md new file mode 100644 index 0000000000..0c9d39218e --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/health/get.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Health health = Health(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = health.get(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/locale/get-continents.md b/docs/examples/0.9.x/server-dart/examples/locale/get-continents.md new file mode 100644 index 0000000000..2daced78b6 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/locale/get-continents.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = locale.getContinents(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-dart/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..7b04a49487 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/locale/get-countries-e-u.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = locale.getCountriesEU(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-dart/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..57138a6b75 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/locale/get-countries-phones.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = locale.getCountriesPhones(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/locale/get-countries.md b/docs/examples/0.9.x/server-dart/examples/locale/get-countries.md new file mode 100644 index 0000000000..2bf758adca --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/locale/get-countries.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = locale.getCountries(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-dart/examples/locale/get-currencies.md new file mode 100644 index 0000000000..c8a415de4c --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/locale/get-currencies.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = locale.getCurrencies(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/locale/get-languages.md b/docs/examples/0.9.x/server-dart/examples/locale/get-languages.md new file mode 100644 index 0000000000..b9ae6655a3 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/locale/get-languages.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = locale.getLanguages(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/locale/get.md b/docs/examples/0.9.x/server-dart/examples/locale/get.md new file mode 100644 index 0000000000..d290063060 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/locale/get.md @@ -0,0 +1,21 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Locale locale = Locale(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = locale.get(); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/storage/create-file.md b/docs/examples/0.9.x/server-dart/examples/storage/create-file.md new file mode 100644 index 0000000000..ed0805be5e --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/storage/create-file.md @@ -0,0 +1,24 @@ +import 'dart:io'; +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = storage.createFile( + file: await MultipartFile.fromFile('./path-to-files/image.jpg', 'image.jpg'), + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/storage/delete-file.md b/docs/examples/0.9.x/server-dart/examples/storage/delete-file.md new file mode 100644 index 0000000000..ae76fe6f87 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/storage/delete-file.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = storage.deleteFile( + fileId: '[FILE_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-dart/examples/storage/get-file-download.md new file mode 100644 index 0000000000..1601fccd94 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/storage/get-file-download.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = storage.getFileDownload( + fileId: '[FILE_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-dart/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..2c88ef408e --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/storage/get-file-preview.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = storage.getFilePreview( + fileId: '[FILE_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-dart/examples/storage/get-file-view.md new file mode 100644 index 0000000000..27fa91bb05 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/storage/get-file-view.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = storage.getFileView( + fileId: '[FILE_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/storage/get-file.md b/docs/examples/0.9.x/server-dart/examples/storage/get-file.md new file mode 100644 index 0000000000..d4a10369a5 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/storage/get-file.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = storage.getFile( + fileId: '[FILE_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/storage/list-files.md b/docs/examples/0.9.x/server-dart/examples/storage/list-files.md new file mode 100644 index 0000000000..0225695466 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/storage/list-files.md @@ -0,0 +1,22 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = storage.listFiles( + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/storage/update-file.md b/docs/examples/0.9.x/server-dart/examples/storage/update-file.md new file mode 100644 index 0000000000..bc77e7a1d1 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/storage/update-file.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Storage storage = Storage(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = storage.updateFile( + fileId: '[FILE_ID]', + read: [], + write: [], + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/create-membership.md b/docs/examples/0.9.x/server-dart/examples/teams/create-membership.md new file mode 100644 index 0000000000..e3923bd207 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/create-membership.md @@ -0,0 +1,26 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.createMembership( + teamId: '[TEAM_ID]', + email: 'email@example.com', + roles: [], + url: 'https://example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/create.md b/docs/examples/0.9.x/server-dart/examples/teams/create.md new file mode 100644 index 0000000000..339663d9d1 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/create.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.create( + name: '[NAME]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-dart/examples/teams/delete-membership.md new file mode 100644 index 0000000000..28069ad04a --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/delete-membership.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.deleteMembership( + teamId: '[TEAM_ID]', + membershipId: '[MEMBERSHIP_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/delete.md b/docs/examples/0.9.x/server-dart/examples/teams/delete.md new file mode 100644 index 0000000000..a006e8f347 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/delete.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.delete( + teamId: '[TEAM_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-dart/examples/teams/get-memberships.md new file mode 100644 index 0000000000..3a12dc5c2b --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/get-memberships.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.getMemberships( + teamId: '[TEAM_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/get.md b/docs/examples/0.9.x/server-dart/examples/teams/get.md new file mode 100644 index 0000000000..a1bfe8e72c --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/get.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.get( + teamId: '[TEAM_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/list.md b/docs/examples/0.9.x/server-dart/examples/teams/list.md new file mode 100644 index 0000000000..d55e58e36e --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/list.md @@ -0,0 +1,22 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.list( + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-dart/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..e3488768b6 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/update-membership-roles.md @@ -0,0 +1,25 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.updateMembershipRoles( + teamId: '[TEAM_ID]', + membershipId: '[MEMBERSHIP_ID]', + roles: [], + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-dart/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..2a3f1e101e --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/update-membership-status.md @@ -0,0 +1,26 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token + ; + + Future result = teams.updateMembershipStatus( + teamId: '[TEAM_ID]', + membershipId: '[MEMBERSHIP_ID]', + userId: '[USER_ID]', + secret: '[SECRET]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/teams/update.md b/docs/examples/0.9.x/server-dart/examples/teams/update.md new file mode 100644 index 0000000000..22af165502 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/teams/update.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Teams teams = Teams(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = teams.update( + teamId: '[TEAM_ID]', + name: '[NAME]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/create.md b/docs/examples/0.9.x/server-dart/examples/users/create.md new file mode 100644 index 0000000000..18bbbf2d13 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/create.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.create( + email: 'email@example.com', + password: 'password', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/delete-session.md b/docs/examples/0.9.x/server-dart/examples/users/delete-session.md new file mode 100644 index 0000000000..eaa98c17b7 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/delete-session.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.deleteSession( + userId: '[USER_ID]', + sessionId: '[SESSION_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-dart/examples/users/delete-sessions.md new file mode 100644 index 0000000000..8c889aad2b --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/delete-sessions.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.deleteSessions( + userId: '[USER_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/delete.md b/docs/examples/0.9.x/server-dart/examples/users/delete.md new file mode 100644 index 0000000000..b45f398b4a --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/delete.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.delete( + userId: '[USER_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/get-logs.md b/docs/examples/0.9.x/server-dart/examples/users/get-logs.md new file mode 100644 index 0000000000..63eb6b5bcf --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/get-logs.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.getLogs( + userId: '[USER_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/get-prefs.md b/docs/examples/0.9.x/server-dart/examples/users/get-prefs.md new file mode 100644 index 0000000000..e5909422a3 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/get-prefs.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.getPrefs( + userId: '[USER_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/get-sessions.md b/docs/examples/0.9.x/server-dart/examples/users/get-sessions.md new file mode 100644 index 0000000000..ebe44c3eb9 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/get-sessions.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.getSessions( + userId: '[USER_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/get.md b/docs/examples/0.9.x/server-dart/examples/users/get.md new file mode 100644 index 0000000000..be582d52c5 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/get.md @@ -0,0 +1,23 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.get( + userId: '[USER_ID]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/list.md b/docs/examples/0.9.x/server-dart/examples/users/list.md new file mode 100644 index 0000000000..e0ecf7adf3 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/list.md @@ -0,0 +1,22 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.list( + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/update-prefs.md b/docs/examples/0.9.x/server-dart/examples/users/update-prefs.md new file mode 100644 index 0000000000..d148e52f0b --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/update-prefs.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.updatePrefs( + userId: '[USER_ID]', + prefs: {}, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/update-status.md b/docs/examples/0.9.x/server-dart/examples/users/update-status.md new file mode 100644 index 0000000000..ce7ab6ba47 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/update-status.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.updateStatus( + userId: '[USER_ID]', + status: 1, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dart/examples/users/update-verification.md b/docs/examples/0.9.x/server-dart/examples/users/update-verification.md new file mode 100644 index 0000000000..065dfb7f91 --- /dev/null +++ b/docs/examples/0.9.x/server-dart/examples/users/update-verification.md @@ -0,0 +1,24 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +void main() { // Init SDK + Client client = Client(); + Users users = Users(client); + + client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ; + + Future result = users.updateVerification( + userId: '[USER_ID]', + emailVerification: false, + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/create-recovery.md b/docs/examples/0.9.x/server-deno/examples/account/create-recovery.md new file mode 100644 index 0000000000..003dbdfec7 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/create-recovery.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.createRecovery('email@example.com', 'https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/create-verification.md b/docs/examples/0.9.x/server-deno/examples/account/create-verification.md new file mode 100644 index 0000000000..18dec9a9f0 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/create-verification.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.createVerification('https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/delete-session.md b/docs/examples/0.9.x/server-deno/examples/account/delete-session.md new file mode 100644 index 0000000000..6ff639935b --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/delete-session.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.deleteSession('[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-deno/examples/account/delete-sessions.md new file mode 100644 index 0000000000..453c7e418d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/delete-sessions.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.deleteSessions(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/delete.md b/docs/examples/0.9.x/server-deno/examples/account/delete.md new file mode 100644 index 0000000000..9f8bec04a3 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/delete.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.delete(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/get-logs.md b/docs/examples/0.9.x/server-deno/examples/account/get-logs.md new file mode 100644 index 0000000000..43d67078e2 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/get-logs.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.getLogs(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/get-prefs.md b/docs/examples/0.9.x/server-deno/examples/account/get-prefs.md new file mode 100644 index 0000000000..537760c32e --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/get-prefs.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.getPrefs(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/get-session.md b/docs/examples/0.9.x/server-deno/examples/account/get-session.md new file mode 100644 index 0000000000..46c7a5981d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/get-session.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.getSession('[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/get-sessions.md b/docs/examples/0.9.x/server-deno/examples/account/get-sessions.md new file mode 100644 index 0000000000..486a153f0b --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/get-sessions.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.getSessions(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/get.md b/docs/examples/0.9.x/server-deno/examples/account/get.md new file mode 100644 index 0000000000..35453cd3b2 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/get.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.get(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/update-email.md b/docs/examples/0.9.x/server-deno/examples/account/update-email.md new file mode 100644 index 0000000000..12706c4313 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/update-email.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.updateEmail('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/update-name.md b/docs/examples/0.9.x/server-deno/examples/account/update-name.md new file mode 100644 index 0000000000..2ee6aa4f87 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/update-name.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.updateName('[NAME]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/update-password.md b/docs/examples/0.9.x/server-deno/examples/account/update-password.md new file mode 100644 index 0000000000..bf27df4dde --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/update-password.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.updatePassword('password'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/update-prefs.md b/docs/examples/0.9.x/server-deno/examples/account/update-prefs.md new file mode 100644 index 0000000000..f553593ae0 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/update-prefs.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.updatePrefs({}); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/update-recovery.md b/docs/examples/0.9.x/server-deno/examples/account/update-recovery.md new file mode 100644 index 0000000000..6d91d570c2 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/update-recovery.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/account/update-verification.md b/docs/examples/0.9.x/server-deno/examples/account/update-verification.md new file mode 100644 index 0000000000..40ebcdd7c6 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/account/update-verification.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = account.updateVerification('[USER_ID]', '[SECRET]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-deno/examples/avatars/get-browser.md new file mode 100644 index 0000000000..3eb6ff845d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/avatars/get-browser.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = avatars.getBrowser('aa'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-deno/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..0a75b1665d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/avatars/get-credit-card.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = avatars.getCreditCard('amex'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-deno/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..e132db2f5f --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/avatars/get-favicon.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = avatars.getFavicon('https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-deno/examples/avatars/get-flag.md new file mode 100644 index 0000000000..7455538cec --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/avatars/get-flag.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = avatars.getFlag('af'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/avatars/get-image.md b/docs/examples/0.9.x/server-deno/examples/avatars/get-image.md new file mode 100644 index 0000000000..e1d6f7d5f5 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/avatars/get-image.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = avatars.getImage('https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-deno/examples/avatars/get-initials.md new file mode 100644 index 0000000000..36e9b8fa94 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/avatars/get-initials.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = avatars.getInitials(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-deno/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..23d6a60d90 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/avatars/get-q-r.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = avatars.getQR('[TEXT]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/create-collection.md b/docs/examples/0.9.x/server-deno/examples/database/create-collection.md new file mode 100644 index 0000000000..776830943b --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/create-collection.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.createCollection('[NAME]', [], [], []); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/create-document.md b/docs/examples/0.9.x/server-deno/examples/database/create-document.md new file mode 100644 index 0000000000..f9f639b8a2 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/create-document.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.createDocument('[COLLECTION_ID]', {}); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/delete-collection.md b/docs/examples/0.9.x/server-deno/examples/database/delete-collection.md new file mode 100644 index 0000000000..d62c8d0974 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/delete-collection.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.deleteCollection('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/delete-document.md b/docs/examples/0.9.x/server-deno/examples/database/delete-document.md new file mode 100644 index 0000000000..558a4bbe67 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/delete-document.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/get-collection.md b/docs/examples/0.9.x/server-deno/examples/database/get-collection.md new file mode 100644 index 0000000000..0ca917a3c3 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/get-collection.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.getCollection('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/get-document.md b/docs/examples/0.9.x/server-deno/examples/database/get-document.md new file mode 100644 index 0000000000..59ec5e4141 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/get-document.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/list-collections.md b/docs/examples/0.9.x/server-deno/examples/database/list-collections.md new file mode 100644 index 0000000000..0bb6bf1679 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/list-collections.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.listCollections(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/list-documents.md b/docs/examples/0.9.x/server-deno/examples/database/list-documents.md new file mode 100644 index 0000000000..ead202aaa9 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/list-documents.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.listDocuments('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/update-collection.md b/docs/examples/0.9.x/server-deno/examples/database/update-collection.md new file mode 100644 index 0000000000..372deeace8 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/update-collection.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.updateCollection('[COLLECTION_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/database/update-document.md b/docs/examples/0.9.x/server-deno/examples/database/update-document.md new file mode 100644 index 0000000000..de19da7f7d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/database/update-document.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/create-execution.md b/docs/examples/0.9.x/server-deno/examples/functions/create-execution.md new file mode 100644 index 0000000000..0d52be69b6 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/create-execution.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.createExecution('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/create-tag.md b/docs/examples/0.9.x/server-deno/examples/functions/create-tag.md new file mode 100644 index 0000000000..2a486976a5 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/create-tag.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.createTag('[FUNCTION_ID]', '[COMMAND]', new File([fileBlob], 'file.png')); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/create.md b/docs/examples/0.9.x/server-deno/examples/functions/create.md new file mode 100644 index 0000000000..f0daa24c2c --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/create.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.create('[NAME]', [], 'java-11'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-deno/examples/functions/delete-tag.md new file mode 100644 index 0000000000..5961a10295 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/delete-tag.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.deleteTag('[FUNCTION_ID]', '[TAG_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/delete.md b/docs/examples/0.9.x/server-deno/examples/functions/delete.md new file mode 100644 index 0000000000..f2e7947b63 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/delete.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.delete('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/get-execution.md b/docs/examples/0.9.x/server-deno/examples/functions/get-execution.md new file mode 100644 index 0000000000..6fe7289eb9 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/get-execution.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/get-tag.md b/docs/examples/0.9.x/server-deno/examples/functions/get-tag.md new file mode 100644 index 0000000000..dfaaf13bdf --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/get-tag.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.getTag('[FUNCTION_ID]', '[TAG_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/get.md b/docs/examples/0.9.x/server-deno/examples/functions/get.md new file mode 100644 index 0000000000..b6972fc91d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/get.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.get('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/list-executions.md b/docs/examples/0.9.x/server-deno/examples/functions/list-executions.md new file mode 100644 index 0000000000..347f4b7fb1 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/list-executions.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.listExecutions('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/list-tags.md b/docs/examples/0.9.x/server-deno/examples/functions/list-tags.md new file mode 100644 index 0000000000..dd1485e767 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/list-tags.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.listTags('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/list.md b/docs/examples/0.9.x/server-deno/examples/functions/list.md new file mode 100644 index 0000000000..89d2a49a43 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/list.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.list(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/update-tag.md b/docs/examples/0.9.x/server-deno/examples/functions/update-tag.md new file mode 100644 index 0000000000..4674767a83 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/update-tag.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.updateTag('[FUNCTION_ID]', '[TAG]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/functions/update.md b/docs/examples/0.9.x/server-deno/examples/functions/update.md new file mode 100644 index 0000000000..9177529061 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/functions/update.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = functions.update('[FUNCTION_ID]', '[NAME]', []); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-deno/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..ecfc1fa2fa --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-anti-virus.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getAntiVirus(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-cache.md b/docs/examples/0.9.x/server-deno/examples/health/get-cache.md new file mode 100644 index 0000000000..f3e17bda8e --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-cache.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getCache(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-d-b.md b/docs/examples/0.9.x/server-deno/examples/health/get-d-b.md new file mode 100644 index 0000000000..f6ba94a496 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-d-b.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getDB(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-deno/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..9d2e325630 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-queue-certificates.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getQueueCertificates(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-deno/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..c31869c55f --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-queue-functions.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getQueueFunctions(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-deno/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..bb40c7a559 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-queue-logs.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getQueueLogs(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-deno/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..45f69a8ab2 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-queue-tasks.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getQueueTasks(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-deno/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..0a0a001ceb --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-queue-usage.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getQueueUsage(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-deno/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..ddd2735f49 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-queue-webhooks.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getQueueWebhooks(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-deno/examples/health/get-storage-local.md new file mode 100644 index 0000000000..76df5561d7 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-storage-local.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getStorageLocal(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get-time.md b/docs/examples/0.9.x/server-deno/examples/health/get-time.md new file mode 100644 index 0000000000..17de3193cf --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get-time.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.getTime(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/health/get.md b/docs/examples/0.9.x/server-deno/examples/health/get.md new file mode 100644 index 0000000000..ac94e75627 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/health/get.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = health.get(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/locale/get-continents.md b/docs/examples/0.9.x/server-deno/examples/locale/get-continents.md new file mode 100644 index 0000000000..44c18b54f4 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/locale/get-continents.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = locale.getContinents(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-deno/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..f14e4353ff --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/locale/get-countries-e-u.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = locale.getCountriesEU(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-deno/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..b23eff3dac --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/locale/get-countries-phones.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = locale.getCountriesPhones(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/locale/get-countries.md b/docs/examples/0.9.x/server-deno/examples/locale/get-countries.md new file mode 100644 index 0000000000..2f3facd7e8 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/locale/get-countries.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = locale.getCountries(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-deno/examples/locale/get-currencies.md new file mode 100644 index 0000000000..34d4e233ee --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/locale/get-currencies.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = locale.getCurrencies(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/locale/get-languages.md b/docs/examples/0.9.x/server-deno/examples/locale/get-languages.md new file mode 100644 index 0000000000..3fd5d8b8c2 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/locale/get-languages.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = locale.getLanguages(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/locale/get.md b/docs/examples/0.9.x/server-deno/examples/locale/get.md new file mode 100644 index 0000000000..30ca9a22c7 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/locale/get.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = locale.get(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/storage/create-file.md b/docs/examples/0.9.x/server-deno/examples/storage/create-file.md new file mode 100644 index 0000000000..d9aa29e915 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/storage/create-file.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = storage.createFile(new File([fileBlob], 'file.png')); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/storage/delete-file.md b/docs/examples/0.9.x/server-deno/examples/storage/delete-file.md new file mode 100644 index 0000000000..2826b4cecb --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/storage/delete-file.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = storage.deleteFile('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-deno/examples/storage/get-file-download.md new file mode 100644 index 0000000000..0df365854d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/storage/get-file-download.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = storage.getFileDownload('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-deno/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..886b2d566d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/storage/get-file-preview.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = storage.getFilePreview('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-deno/examples/storage/get-file-view.md new file mode 100644 index 0000000000..ce6e6b4eff --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/storage/get-file-view.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = storage.getFileView('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/storage/get-file.md b/docs/examples/0.9.x/server-deno/examples/storage/get-file.md new file mode 100644 index 0000000000..109dac8c5d --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/storage/get-file.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = storage.getFile('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/storage/list-files.md b/docs/examples/0.9.x/server-deno/examples/storage/list-files.md new file mode 100644 index 0000000000..5d34518e5a --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/storage/list-files.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = storage.listFiles(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/storage/update-file.md b/docs/examples/0.9.x/server-deno/examples/storage/update-file.md new file mode 100644 index 0000000000..78ee82d38f --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/storage/update-file.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = storage.updateFile('[FILE_ID]', [], []); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/create-membership.md b/docs/examples/0.9.x/server-deno/examples/teams/create-membership.md new file mode 100644 index 0000000000..b85e811d65 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/create-membership.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/create.md b/docs/examples/0.9.x/server-deno/examples/teams/create.md new file mode 100644 index 0000000000..055cd9fe9f --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/create.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.create('[NAME]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-deno/examples/teams/delete-membership.md new file mode 100644 index 0000000000..94e60ae03a --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/delete-membership.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/delete.md b/docs/examples/0.9.x/server-deno/examples/teams/delete.md new file mode 100644 index 0000000000..4b1e0bddfc --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/delete.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.delete('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-deno/examples/teams/get-memberships.md new file mode 100644 index 0000000000..467101c956 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/get-memberships.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.getMemberships('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/get.md b/docs/examples/0.9.x/server-deno/examples/teams/get.md new file mode 100644 index 0000000000..435391a63a --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/get.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.get('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/list.md b/docs/examples/0.9.x/server-deno/examples/teams/list.md new file mode 100644 index 0000000000..6d00f6df54 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/list.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.list(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-deno/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..3337aa0a3a --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/update-membership-roles.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-deno/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..784f1a0349 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/update-membership-status.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + + +let promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/teams/update.md b/docs/examples/0.9.x/server-deno/examples/teams/update.md new file mode 100644 index 0000000000..9d73002f5c --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/teams/update.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = teams.update('[TEAM_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/create.md b/docs/examples/0.9.x/server-deno/examples/users/create.md new file mode 100644 index 0000000000..9b5f914631 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/create.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.create('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/delete-session.md b/docs/examples/0.9.x/server-deno/examples/users/delete-session.md new file mode 100644 index 0000000000..e04024e5a2 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/delete-session.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.deleteSession('[USER_ID]', '[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-deno/examples/users/delete-sessions.md new file mode 100644 index 0000000000..89dec44e39 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/delete-sessions.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.deleteSessions('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/delete.md b/docs/examples/0.9.x/server-deno/examples/users/delete.md new file mode 100644 index 0000000000..9de2296c4c --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/delete.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.delete('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/get-logs.md b/docs/examples/0.9.x/server-deno/examples/users/get-logs.md new file mode 100644 index 0000000000..5770e84525 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/get-logs.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.getLogs('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/get-prefs.md b/docs/examples/0.9.x/server-deno/examples/users/get-prefs.md new file mode 100644 index 0000000000..033c56f3db --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/get-prefs.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.getPrefs('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/get-sessions.md b/docs/examples/0.9.x/server-deno/examples/users/get-sessions.md new file mode 100644 index 0000000000..15f0b53c5c --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/get-sessions.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.getSessions('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/get.md b/docs/examples/0.9.x/server-deno/examples/users/get.md new file mode 100644 index 0000000000..acee263e2f --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/get.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.get('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/list.md b/docs/examples/0.9.x/server-deno/examples/users/list.md new file mode 100644 index 0000000000..c986039946 --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/list.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.list(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/update-prefs.md b/docs/examples/0.9.x/server-deno/examples/users/update-prefs.md new file mode 100644 index 0000000000..4e88ed567a --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/update-prefs.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.updatePrefs('[USER_ID]', {}); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/update-status.md b/docs/examples/0.9.x/server-deno/examples/users/update-status.md new file mode 100644 index 0000000000..6a7171ccdb --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/update-status.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.updateStatus('[USER_ID]', 1); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-deno/examples/users/update-verification.md b/docs/examples/0.9.x/server-deno/examples/users/update-verification.md new file mode 100644 index 0000000000..4859b2c7eb --- /dev/null +++ b/docs/examples/0.9.x/server-deno/examples/users/update-verification.md @@ -0,0 +1,21 @@ +import * as sdk from "https://deno.land/x/appwrite/mod.ts"; + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + + +let promise = users.updateVerification('[USER_ID]', false); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/create-recovery.md b/docs/examples/0.9.x/server-dotnet/examples/account/create-recovery.md new file mode 100644 index 0000000000..7752d551a3 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/create-recovery.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.CreateRecovery("email@example.com", "https://example.com"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/create-verification.md b/docs/examples/0.9.x/server-dotnet/examples/account/create-verification.md new file mode 100644 index 0000000000..39f0a97ee9 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/create-verification.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.CreateVerification("https://example.com"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/delete-session.md b/docs/examples/0.9.x/server-dotnet/examples/account/delete-session.md new file mode 100644 index 0000000000..be205da934 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/delete-session.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.DeleteSession("[SESSION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-dotnet/examples/account/delete-sessions.md new file mode 100644 index 0000000000..481a358cc4 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/delete-sessions.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.DeleteSessions(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/delete.md b/docs/examples/0.9.x/server-dotnet/examples/account/delete.md new file mode 100644 index 0000000000..02d2e426a1 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/delete.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.Delete(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/get-logs.md b/docs/examples/0.9.x/server-dotnet/examples/account/get-logs.md new file mode 100644 index 0000000000..c209904101 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/get-logs.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.GetLogs(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/get-prefs.md b/docs/examples/0.9.x/server-dotnet/examples/account/get-prefs.md new file mode 100644 index 0000000000..9d8bc74933 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/get-prefs.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.GetPrefs(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/get-session.md b/docs/examples/0.9.x/server-dotnet/examples/account/get-session.md new file mode 100644 index 0000000000..ed03cb4e4d --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/get-session.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.GetSession("[SESSION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/get-sessions.md b/docs/examples/0.9.x/server-dotnet/examples/account/get-sessions.md new file mode 100644 index 0000000000..5de12297c0 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/get-sessions.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.GetSessions(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/get.md b/docs/examples/0.9.x/server-dotnet/examples/account/get.md new file mode 100644 index 0000000000..faa62f8912 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/get.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.Get(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/update-email.md b/docs/examples/0.9.x/server-dotnet/examples/account/update-email.md new file mode 100644 index 0000000000..986014864b --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/update-email.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.UpdateEmail("email@example.com", "password"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/update-name.md b/docs/examples/0.9.x/server-dotnet/examples/account/update-name.md new file mode 100644 index 0000000000..d0de774e22 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/update-name.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.UpdateName("[NAME]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/update-password.md b/docs/examples/0.9.x/server-dotnet/examples/account/update-password.md new file mode 100644 index 0000000000..9eba5426c0 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/update-password.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.UpdatePassword("password"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/0.9.x/server-dotnet/examples/account/update-prefs.md new file mode 100644 index 0000000000..c9d3f16605 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/update-prefs.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.UpdatePrefs([object]); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/update-recovery.md b/docs/examples/0.9.x/server-dotnet/examples/account/update-recovery.md new file mode 100644 index 0000000000..83c75881bf --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/update-recovery.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.UpdateRecovery("[USER_ID]", "[SECRET]", "password", "password"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/account/update-verification.md b/docs/examples/0.9.x/server-dotnet/examples/account/update-verification.md new file mode 100644 index 0000000000..88ef9b02f8 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/account/update-verification.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Account account = new Account(client); + +HttpResponseMessage result = await account.UpdateVerification("[USER_ID]", "[SECRET]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-browser.md new file mode 100644 index 0000000000..ebfa129d45 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-browser.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Avatars avatars = new Avatars(client); + +string result = await avatars.GetBrowser("aa"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..5eb207ca49 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-credit-card.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Avatars avatars = new Avatars(client); + +string result = await avatars.GetCreditCard("amex"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..7035838b24 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-favicon.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Avatars avatars = new Avatars(client); + +string result = await avatars.GetFavicon("https://example.com"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-flag.md new file mode 100644 index 0000000000..ec6b97124e --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-flag.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Avatars avatars = new Avatars(client); + +string result = await avatars.GetFlag("af"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/avatars/get-image.md b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-image.md new file mode 100644 index 0000000000..4217579f34 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-image.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Avatars avatars = new Avatars(client); + +string result = await avatars.GetImage("https://example.com"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-initials.md new file mode 100644 index 0000000000..5f47fba322 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-initials.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Avatars avatars = new Avatars(client); + +string result = await avatars.GetInitials(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..69ae088c1b --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/avatars/get-q-r.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Avatars avatars = new Avatars(client); + +string result = await avatars.GetQR("[TEXT]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/create-collection.md b/docs/examples/0.9.x/server-dotnet/examples/database/create-collection.md new file mode 100644 index 0000000000..21540744bc --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/create-collection.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.CreateCollection("[NAME]", [List], [List], [List]); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/create-document.md b/docs/examples/0.9.x/server-dotnet/examples/database/create-document.md new file mode 100644 index 0000000000..561d457213 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/create-document.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.CreateDocument("[COLLECTION_ID]", [object]); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/delete-collection.md b/docs/examples/0.9.x/server-dotnet/examples/database/delete-collection.md new file mode 100644 index 0000000000..9abdd5cb81 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/delete-collection.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.DeleteCollection("[COLLECTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/delete-document.md b/docs/examples/0.9.x/server-dotnet/examples/database/delete-document.md new file mode 100644 index 0000000000..18389e138c --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/delete-document.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.DeleteDocument("[COLLECTION_ID]", "[DOCUMENT_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/get-collection.md b/docs/examples/0.9.x/server-dotnet/examples/database/get-collection.md new file mode 100644 index 0000000000..4d917a7c03 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/get-collection.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.GetCollection("[COLLECTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/get-document.md b/docs/examples/0.9.x/server-dotnet/examples/database/get-document.md new file mode 100644 index 0000000000..5eb0a3740f --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/get-document.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.GetDocument("[COLLECTION_ID]", "[DOCUMENT_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/list-collections.md b/docs/examples/0.9.x/server-dotnet/examples/database/list-collections.md new file mode 100644 index 0000000000..edde1a33dd --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/list-collections.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.ListCollections(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/list-documents.md b/docs/examples/0.9.x/server-dotnet/examples/database/list-documents.md new file mode 100644 index 0000000000..9ccb2471fc --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/list-documents.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.ListDocuments("[COLLECTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/update-collection.md b/docs/examples/0.9.x/server-dotnet/examples/database/update-collection.md new file mode 100644 index 0000000000..d6e9c58719 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/update-collection.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.UpdateCollection("[COLLECTION_ID]", "[NAME]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/database/update-document.md b/docs/examples/0.9.x/server-dotnet/examples/database/update-document.md new file mode 100644 index 0000000000..7689065812 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/database/update-document.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Database database = new Database(client); + +HttpResponseMessage result = await database.UpdateDocument("[COLLECTION_ID]", "[DOCUMENT_ID]", [object]); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/create-execution.md b/docs/examples/0.9.x/server-dotnet/examples/functions/create-execution.md new file mode 100644 index 0000000000..4844317ee7 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/create-execution.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.CreateExecution("[FUNCTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/create-tag.md b/docs/examples/0.9.x/server-dotnet/examples/functions/create-tag.md new file mode 100644 index 0000000000..39e7461236 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/create-tag.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.CreateTag("[FUNCTION_ID]", "[COMMAND]", new File("./path-to-files/image.jpg")); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/create.md b/docs/examples/0.9.x/server-dotnet/examples/functions/create.md new file mode 100644 index 0000000000..3f66b4ab55 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/create.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.Create("[NAME]", [List], "java-11"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-dotnet/examples/functions/delete-tag.md new file mode 100644 index 0000000000..859a9e8aec --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/delete-tag.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.DeleteTag("[FUNCTION_ID]", "[TAG_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/delete.md b/docs/examples/0.9.x/server-dotnet/examples/functions/delete.md new file mode 100644 index 0000000000..e7ef51f09b --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/delete.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.Delete("[FUNCTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/get-execution.md b/docs/examples/0.9.x/server-dotnet/examples/functions/get-execution.md new file mode 100644 index 0000000000..f18a8fb7b2 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/get-execution.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.GetExecution("[FUNCTION_ID]", "[EXECUTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/get-tag.md b/docs/examples/0.9.x/server-dotnet/examples/functions/get-tag.md new file mode 100644 index 0000000000..900864abab --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/get-tag.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.GetTag("[FUNCTION_ID]", "[TAG_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/get.md b/docs/examples/0.9.x/server-dotnet/examples/functions/get.md new file mode 100644 index 0000000000..a92fa25539 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/get.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.Get("[FUNCTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/list-executions.md b/docs/examples/0.9.x/server-dotnet/examples/functions/list-executions.md new file mode 100644 index 0000000000..b9a86cee96 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/list-executions.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.ListExecutions("[FUNCTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/list-tags.md b/docs/examples/0.9.x/server-dotnet/examples/functions/list-tags.md new file mode 100644 index 0000000000..ec1b8722b6 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/list-tags.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.ListTags("[FUNCTION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/list.md b/docs/examples/0.9.x/server-dotnet/examples/functions/list.md new file mode 100644 index 0000000000..1b76f19b45 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/list.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.List(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/update-tag.md b/docs/examples/0.9.x/server-dotnet/examples/functions/update-tag.md new file mode 100644 index 0000000000..b42ef936d1 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/update-tag.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.UpdateTag("[FUNCTION_ID]", "[TAG]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/functions/update.md b/docs/examples/0.9.x/server-dotnet/examples/functions/update.md new file mode 100644 index 0000000000..53db3ed4f1 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/functions/update.md @@ -0,0 +1,13 @@ +using 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 +; + +Functions functions = new Functions(client); + +HttpResponseMessage result = await functions.Update("[FUNCTION_ID]", "[NAME]", [List]); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..b8fcdd6dfd --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-anti-virus.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetAntiVirus(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-cache.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-cache.md new file mode 100644 index 0000000000..9f864ee6e1 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-cache.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetCache(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-d-b.md new file mode 100644 index 0000000000..458f31ce3f --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-d-b.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetDB(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..56d182f4eb --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-certificates.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetQueueCertificates(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..adbba7a04c --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-functions.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetQueueFunctions(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..75173bb202 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-logs.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetQueueLogs(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..6df301b58e --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-tasks.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetQueueTasks(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..2ea5c91510 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-usage.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetQueueUsage(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..b3d9ccd03f --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-queue-webhooks.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetQueueWebhooks(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-storage-local.md new file mode 100644 index 0000000000..d68bc1dac4 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-storage-local.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetStorageLocal(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get-time.md b/docs/examples/0.9.x/server-dotnet/examples/health/get-time.md new file mode 100644 index 0000000000..7a0711c698 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get-time.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.GetTime(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/health/get.md b/docs/examples/0.9.x/server-dotnet/examples/health/get.md new file mode 100644 index 0000000000..f05c8ef92a --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/health/get.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Health health = new Health(client); + +HttpResponseMessage result = await health.Get(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/locale/get-continents.md b/docs/examples/0.9.x/server-dotnet/examples/locale/get-continents.md new file mode 100644 index 0000000000..600bfcdb94 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/locale/get-continents.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Locale locale = new Locale(client); + +HttpResponseMessage result = await locale.GetContinents(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..2ba4e22224 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries-e-u.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Locale locale = new Locale(client); + +HttpResponseMessage result = await locale.GetCountriesEU(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..2630aefd47 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries-phones.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Locale locale = new Locale(client); + +HttpResponseMessage result = await locale.GetCountriesPhones(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries.md b/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries.md new file mode 100644 index 0000000000..46b14dec54 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/locale/get-countries.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Locale locale = new Locale(client); + +HttpResponseMessage result = await locale.GetCountries(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-dotnet/examples/locale/get-currencies.md new file mode 100644 index 0000000000..daecdcf8c6 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/locale/get-currencies.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Locale locale = new Locale(client); + +HttpResponseMessage result = await locale.GetCurrencies(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/locale/get-languages.md b/docs/examples/0.9.x/server-dotnet/examples/locale/get-languages.md new file mode 100644 index 0000000000..ba00b2a4a8 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/locale/get-languages.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Locale locale = new Locale(client); + +HttpResponseMessage result = await locale.GetLanguages(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/locale/get.md b/docs/examples/0.9.x/server-dotnet/examples/locale/get.md new file mode 100644 index 0000000000..7b10a28284 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/locale/get.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Locale locale = new Locale(client); + +HttpResponseMessage result = await locale.Get(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/storage/create-file.md b/docs/examples/0.9.x/server-dotnet/examples/storage/create-file.md new file mode 100644 index 0000000000..5930f887c8 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/storage/create-file.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Storage storage = new Storage(client); + +HttpResponseMessage result = await storage.CreateFile(new File("./path-to-files/image.jpg")); diff --git a/docs/examples/0.9.x/server-dotnet/examples/storage/delete-file.md b/docs/examples/0.9.x/server-dotnet/examples/storage/delete-file.md new file mode 100644 index 0000000000..5a91ecb49b --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/storage/delete-file.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Storage storage = new Storage(client); + +HttpResponseMessage result = await storage.DeleteFile("[FILE_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-download.md new file mode 100644 index 0000000000..0a93cefa49 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-download.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Storage storage = new Storage(client); + +string result = await storage.GetFileDownload("[FILE_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..e89ca27614 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-preview.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Storage storage = new Storage(client); + +string result = await storage.GetFilePreview("[FILE_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-view.md new file mode 100644 index 0000000000..e3fe690d66 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/storage/get-file-view.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Storage storage = new Storage(client); + +string result = await storage.GetFileView("[FILE_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/storage/get-file.md b/docs/examples/0.9.x/server-dotnet/examples/storage/get-file.md new file mode 100644 index 0000000000..1e090bb567 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/storage/get-file.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Storage storage = new Storage(client); + +HttpResponseMessage result = await storage.GetFile("[FILE_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/storage/list-files.md b/docs/examples/0.9.x/server-dotnet/examples/storage/list-files.md new file mode 100644 index 0000000000..bee452dc37 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/storage/list-files.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Storage storage = new Storage(client); + +HttpResponseMessage result = await storage.ListFiles(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/storage/update-file.md b/docs/examples/0.9.x/server-dotnet/examples/storage/update-file.md new file mode 100644 index 0000000000..a4b87be2e6 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/storage/update-file.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Storage storage = new Storage(client); + +HttpResponseMessage result = await storage.UpdateFile("[FILE_ID]", [List], [List]); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/create-membership.md b/docs/examples/0.9.x/server-dotnet/examples/teams/create-membership.md new file mode 100644 index 0000000000..34f34dc10e --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/create-membership.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.CreateMembership("[TEAM_ID]", "email@example.com", [List], "https://example.com"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/create.md b/docs/examples/0.9.x/server-dotnet/examples/teams/create.md new file mode 100644 index 0000000000..ad325dd497 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/create.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.Create("[NAME]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-dotnet/examples/teams/delete-membership.md new file mode 100644 index 0000000000..a50061b503 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/delete-membership.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.DeleteMembership("[TEAM_ID]", "[MEMBERSHIP_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/delete.md b/docs/examples/0.9.x/server-dotnet/examples/teams/delete.md new file mode 100644 index 0000000000..26b780f19a --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/delete.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.Delete("[TEAM_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-dotnet/examples/teams/get-memberships.md new file mode 100644 index 0000000000..8897efadba --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/get-memberships.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.GetMemberships("[TEAM_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/get.md b/docs/examples/0.9.x/server-dotnet/examples/teams/get.md new file mode 100644 index 0000000000..78a3d0cdad --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/get.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.Get("[TEAM_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/list.md b/docs/examples/0.9.x/server-dotnet/examples/teams/list.md new file mode 100644 index 0000000000..b93ba90bd8 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/list.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.List(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-dotnet/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..17ab5e322a --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/update-membership-roles.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.UpdateMembershipRoles("[TEAM_ID]", "[MEMBERSHIP_ID]", [List]); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-dotnet/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..ab47f8a54e --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/update-membership-status.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.UpdateMembershipStatus("[TEAM_ID]", "[MEMBERSHIP_ID]", "[USER_ID]", "[SECRET]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/teams/update.md b/docs/examples/0.9.x/server-dotnet/examples/teams/update.md new file mode 100644 index 0000000000..481c9877d0 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/teams/update.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Teams teams = new Teams(client); + +HttpResponseMessage result = await teams.Update("[TEAM_ID]", "[NAME]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/create.md b/docs/examples/0.9.x/server-dotnet/examples/users/create.md new file mode 100644 index 0000000000..3c3e7d291e --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/create.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.Create("email@example.com", "password"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/delete-session.md b/docs/examples/0.9.x/server-dotnet/examples/users/delete-session.md new file mode 100644 index 0000000000..2fcf7dbe25 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/delete-session.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.DeleteSession("[USER_ID]", "[SESSION_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-dotnet/examples/users/delete-sessions.md new file mode 100644 index 0000000000..b3b9f05292 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/delete-sessions.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.DeleteSessions("[USER_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/delete.md b/docs/examples/0.9.x/server-dotnet/examples/users/delete.md new file mode 100644 index 0000000000..b0eb7ef485 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/delete.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.Delete("[USER_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/get-logs.md b/docs/examples/0.9.x/server-dotnet/examples/users/get-logs.md new file mode 100644 index 0000000000..ca352b4f4d --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/get-logs.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.GetLogs("[USER_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/get-prefs.md b/docs/examples/0.9.x/server-dotnet/examples/users/get-prefs.md new file mode 100644 index 0000000000..2e673a5609 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/get-prefs.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.GetPrefs("[USER_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/get-sessions.md b/docs/examples/0.9.x/server-dotnet/examples/users/get-sessions.md new file mode 100644 index 0000000000..63e98448cd --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/get-sessions.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.GetSessions("[USER_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/get.md b/docs/examples/0.9.x/server-dotnet/examples/users/get.md new file mode 100644 index 0000000000..2448a98692 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/get.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.Get("[USER_ID]"); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/list.md b/docs/examples/0.9.x/server-dotnet/examples/users/list.md new file mode 100644 index 0000000000..06a036d2f9 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/list.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.List(); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/update-prefs.md b/docs/examples/0.9.x/server-dotnet/examples/users/update-prefs.md new file mode 100644 index 0000000000..01f481bf16 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/update-prefs.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.UpdatePrefs("[USER_ID]", [object]); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/update-status.md b/docs/examples/0.9.x/server-dotnet/examples/users/update-status.md new file mode 100644 index 0000000000..de625dd218 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/update-status.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.UpdateStatus("[USER_ID]", 1); diff --git a/docs/examples/0.9.x/server-dotnet/examples/users/update-verification.md b/docs/examples/0.9.x/server-dotnet/examples/users/update-verification.md new file mode 100644 index 0000000000..127cdc9325 --- /dev/null +++ b/docs/examples/0.9.x/server-dotnet/examples/users/update-verification.md @@ -0,0 +1,13 @@ +using Appwrite; + +Client client = new Client(); + +client + .SetEndPoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key +; + +Users users = new Users(client); + +HttpResponseMessage result = await users.UpdateVerification("[USER_ID]", false); diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/create-recovery.md b/docs/examples/0.9.x/server-kotlin/examples/account/create-recovery.md new file mode 100644 index 0000000000..e43eaf8698 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/create-recovery.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.createRecovery( + email = "email@example.com", + url = "https://example.com" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/create-verification.md b/docs/examples/0.9.x/server-kotlin/examples/account/create-verification.md new file mode 100644 index 0000000000..41f34631b6 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/create-verification.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.createVerification( + url = "https://example.com" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/delete-session.md b/docs/examples/0.9.x/server-kotlin/examples/account/delete-session.md new file mode 100644 index 0000000000..11b91b05eb --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/delete-session.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.deleteSession( + sessionId = "[SESSION_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-kotlin/examples/account/delete-sessions.md new file mode 100644 index 0000000000..5ff7c5ce75 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/delete-sessions.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.deleteSessions() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/delete.md b/docs/examples/0.9.x/server-kotlin/examples/account/delete.md new file mode 100644 index 0000000000..a9177b5a29 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/delete.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.delete() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/get-logs.md b/docs/examples/0.9.x/server-kotlin/examples/account/get-logs.md new file mode 100644 index 0000000000..b9ef5458be --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/get-logs.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.getLogs() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/get-prefs.md b/docs/examples/0.9.x/server-kotlin/examples/account/get-prefs.md new file mode 100644 index 0000000000..8d836f1a83 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/get-prefs.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.getPrefs() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/get-session.md b/docs/examples/0.9.x/server-kotlin/examples/account/get-session.md new file mode 100644 index 0000000000..3a3ae1fbb3 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/get-session.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.getSession( + sessionId = "[SESSION_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/get-sessions.md b/docs/examples/0.9.x/server-kotlin/examples/account/get-sessions.md new file mode 100644 index 0000000000..21b26a6c08 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/get-sessions.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.getSessions() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/get.md b/docs/examples/0.9.x/server-kotlin/examples/account/get.md new file mode 100644 index 0000000000..4195939136 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/get.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.get() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/update-email.md b/docs/examples/0.9.x/server-kotlin/examples/account/update-email.md new file mode 100644 index 0000000000..b58849393d --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/update-email.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.updateEmail( + email = "email@example.com", + password = "password" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/update-name.md b/docs/examples/0.9.x/server-kotlin/examples/account/update-name.md new file mode 100644 index 0000000000..c54140f26d --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/update-name.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.updateName( + name = "[NAME]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/update-password.md b/docs/examples/0.9.x/server-kotlin/examples/account/update-password.md new file mode 100644 index 0000000000..3953718593 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/update-password.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.updatePassword( + password = "password", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/update-prefs.md b/docs/examples/0.9.x/server-kotlin/examples/account/update-prefs.md new file mode 100644 index 0000000000..39696911d8 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/update-prefs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.updatePrefs( + prefs = mapOf( "a" to "b" ) + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/update-recovery.md b/docs/examples/0.9.x/server-kotlin/examples/account/update-recovery.md new file mode 100644 index 0000000000..8d2253a5fb --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/update-recovery.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.updateRecovery( + userId = "[USER_ID]", + secret = "[SECRET]", + password = "password", + passwordAgain = "password" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/account/update-verification.md b/docs/examples/0.9.x/server-kotlin/examples/account/update-verification.md new file mode 100644 index 0000000000..f904f6d2ce --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/account/update-verification.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Account + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val account = Account(client) + val response = account.updateVerification( + userId = "[USER_ID]", + secret = "[SECRET]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-browser.md new file mode 100644 index 0000000000..e0a14cfdf5 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-browser.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Avatars + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val avatars = Avatars(client) + val response = avatars.getBrowser( + code = "aa", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..b12e8b1241 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-credit-card.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Avatars + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val avatars = Avatars(client) + val response = avatars.getCreditCard( + code = "amex", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..0fd68bc69f --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-favicon.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Avatars + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val avatars = Avatars(client) + val response = avatars.getFavicon( + url = "https://example.com" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-flag.md new file mode 100644 index 0000000000..0ca7e995d9 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-flag.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Avatars + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val avatars = Avatars(client) + val response = avatars.getFlag( + code = "af", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/avatars/get-image.md b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-image.md new file mode 100644 index 0000000000..21bb003b2d --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-image.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Avatars + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val avatars = Avatars(client) + val response = avatars.getImage( + url = "https://example.com", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-initials.md new file mode 100644 index 0000000000..09913071d3 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-initials.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.services.Avatars + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val avatars = Avatars(client) + val response = avatars.getInitials( + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..c9ae1810a5 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/avatars/get-q-r.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Avatars + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val avatars = Avatars(client) + val response = avatars.getQR( + text = "[TEXT]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/create-collection.md b/docs/examples/0.9.x/server-kotlin/examples/database/create-collection.md new file mode 100644 index 0000000000..e7e09af699 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/create-collection.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.createCollection( + name = "[NAME]", + read = listOf(), + write = listOf(), + rules = listOf() + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/create-document.md b/docs/examples/0.9.x/server-kotlin/examples/database/create-document.md new file mode 100644 index 0000000000..a7ebb7cc70 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/create-document.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.createDocument( + collectionId = "[COLLECTION_ID]", + data = mapOf( "a" to "b" ), + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/delete-collection.md b/docs/examples/0.9.x/server-kotlin/examples/database/delete-collection.md new file mode 100644 index 0000000000..a535003ce8 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/delete-collection.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.deleteCollection( + collectionId = "[COLLECTION_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/delete-document.md b/docs/examples/0.9.x/server-kotlin/examples/database/delete-document.md new file mode 100644 index 0000000000..16f652b822 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/delete-document.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.deleteDocument( + collectionId = "[COLLECTION_ID]", + documentId = "[DOCUMENT_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/get-collection.md b/docs/examples/0.9.x/server-kotlin/examples/database/get-collection.md new file mode 100644 index 0000000000..df4b735c66 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/get-collection.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.getCollection( + collectionId = "[COLLECTION_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/get-document.md b/docs/examples/0.9.x/server-kotlin/examples/database/get-document.md new file mode 100644 index 0000000000..e4fd93ca6e --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/get-document.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.getDocument( + collectionId = "[COLLECTION_ID]", + documentId = "[DOCUMENT_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/list-collections.md b/docs/examples/0.9.x/server-kotlin/examples/database/list-collections.md new file mode 100644 index 0000000000..731fac6a31 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/list-collections.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.listCollections( + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/list-documents.md b/docs/examples/0.9.x/server-kotlin/examples/database/list-documents.md new file mode 100644 index 0000000000..45719af073 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/list-documents.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.listDocuments( + collectionId = "[COLLECTION_ID]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/update-collection.md b/docs/examples/0.9.x/server-kotlin/examples/database/update-collection.md new file mode 100644 index 0000000000..89dab91ab1 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/update-collection.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.updateCollection( + collectionId = "[COLLECTION_ID]", + name = "[NAME]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/database/update-document.md b/docs/examples/0.9.x/server-kotlin/examples/database/update-document.md new file mode 100644 index 0000000000..921a3a4b5f --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/database/update-document.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.services.Database + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val database = Database(client) + val response = database.updateDocument( + collectionId = "[COLLECTION_ID]", + documentId = "[DOCUMENT_ID]", + data = mapOf( "a" to "b" ), + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/create-execution.md b/docs/examples/0.9.x/server-kotlin/examples/functions/create-execution.md new file mode 100644 index 0000000000..eeda8daf3e --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/create-execution.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.createExecution( + functionId = "[FUNCTION_ID]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/create-tag.md b/docs/examples/0.9.x/server-kotlin/examples/functions/create-tag.md new file mode 100644 index 0000000000..5c880ad72b --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/create-tag.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.createTag( + functionId = "[FUNCTION_ID]", + command = "[COMMAND]", + code = File("./path-to-files/image.jpg") + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/create.md b/docs/examples/0.9.x/server-kotlin/examples/functions/create.md new file mode 100644 index 0000000000..443af2396b --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/create.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.create( + name = "[NAME]", + execute = listOf(), + runtime = "java-11", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-kotlin/examples/functions/delete-tag.md new file mode 100644 index 0000000000..c5f13b1751 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/delete-tag.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.deleteTag( + functionId = "[FUNCTION_ID]", + tagId = "[TAG_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/delete.md b/docs/examples/0.9.x/server-kotlin/examples/functions/delete.md new file mode 100644 index 0000000000..40a7e9682f --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/delete.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.delete( + functionId = "[FUNCTION_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/get-execution.md b/docs/examples/0.9.x/server-kotlin/examples/functions/get-execution.md new file mode 100644 index 0000000000..d23e20766e --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/get-execution.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.getExecution( + functionId = "[FUNCTION_ID]", + executionId = "[EXECUTION_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/get-tag.md b/docs/examples/0.9.x/server-kotlin/examples/functions/get-tag.md new file mode 100644 index 0000000000..3a366b4169 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/get-tag.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.getTag( + functionId = "[FUNCTION_ID]", + tagId = "[TAG_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/get.md b/docs/examples/0.9.x/server-kotlin/examples/functions/get.md new file mode 100644 index 0000000000..76a45b6b26 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/get.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.get( + functionId = "[FUNCTION_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/list-executions.md b/docs/examples/0.9.x/server-kotlin/examples/functions/list-executions.md new file mode 100644 index 0000000000..2427a97644 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/list-executions.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.listExecutions( + functionId = "[FUNCTION_ID]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/list-tags.md b/docs/examples/0.9.x/server-kotlin/examples/functions/list-tags.md new file mode 100644 index 0000000000..b84270f45f --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/list-tags.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.listTags( + functionId = "[FUNCTION_ID]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/list.md b/docs/examples/0.9.x/server-kotlin/examples/functions/list.md new file mode 100644 index 0000000000..1fb1f54a3c --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/list.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.list( + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/update-tag.md b/docs/examples/0.9.x/server-kotlin/examples/functions/update-tag.md new file mode 100644 index 0000000000..814a0fb959 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/update-tag.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.updateTag( + functionId = "[FUNCTION_ID]", + tag = "[TAG]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/functions/update.md b/docs/examples/0.9.x/server-kotlin/examples/functions/update.md new file mode 100644 index 0000000000..e8b125fb77 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/functions/update.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.services.Functions + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val functions = Functions(client) + val response = functions.update( + functionId = "[FUNCTION_ID]", + name = "[NAME]", + execute = listOf(), + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..7a13d006c0 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-anti-virus.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getAntiVirus() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-cache.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-cache.md new file mode 100644 index 0000000000..91dda5e06e --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-cache.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getCache() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-d-b.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-d-b.md new file mode 100644 index 0000000000..0a15ff78b4 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-d-b.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getDB() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..4e51cc625e --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-certificates.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getQueueCertificates() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..2f49b8f013 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-functions.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getQueueFunctions() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..0a15075dd7 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-logs.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getQueueLogs() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..c3ff892c04 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-tasks.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getQueueTasks() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..100a13c6f4 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-usage.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getQueueUsage() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..368a4d3cc6 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-queue-webhooks.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getQueueWebhooks() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-storage-local.md new file mode 100644 index 0000000000..809c4a92b9 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-storage-local.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getStorageLocal() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get-time.md b/docs/examples/0.9.x/server-kotlin/examples/health/get-time.md new file mode 100644 index 0000000000..9e2b5a9f89 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get-time.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.getTime() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/health/get.md b/docs/examples/0.9.x/server-kotlin/examples/health/get.md new file mode 100644 index 0000000000..5904493e30 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/health/get.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Health + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val health = Health(client) + val response = health.get() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/locale/get-continents.md b/docs/examples/0.9.x/server-kotlin/examples/locale/get-continents.md new file mode 100644 index 0000000000..946779336b --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/locale/get-continents.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Locale + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val locale = Locale(client) + val response = locale.getContinents() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..70f9a39f74 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries-e-u.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Locale + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val locale = Locale(client) + val response = locale.getCountriesEU() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..ce40ab33c8 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries-phones.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Locale + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val locale = Locale(client) + val response = locale.getCountriesPhones() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries.md b/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries.md new file mode 100644 index 0000000000..1f84f6637c --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/locale/get-countries.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Locale + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val locale = Locale(client) + val response = locale.getCountries() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-kotlin/examples/locale/get-currencies.md new file mode 100644 index 0000000000..19bde5d386 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/locale/get-currencies.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Locale + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val locale = Locale(client) + val response = locale.getCurrencies() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/locale/get-languages.md b/docs/examples/0.9.x/server-kotlin/examples/locale/get-languages.md new file mode 100644 index 0000000000..a41831fe02 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/locale/get-languages.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Locale + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val locale = Locale(client) + val response = locale.getLanguages() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/locale/get.md b/docs/examples/0.9.x/server-kotlin/examples/locale/get.md new file mode 100644 index 0000000000..d630031194 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/locale/get.md @@ -0,0 +1,13 @@ +import io.appwrite.Client +import io.appwrite.services.Locale + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val locale = Locale(client) + val response = locale.get() + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/storage/create-file.md b/docs/examples/0.9.x/server-kotlin/examples/storage/create-file.md new file mode 100644 index 0000000000..36dcb45b60 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/storage/create-file.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Storage + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val storage = Storage(client) + val response = storage.createFile( + file = File("./path-to-files/image.jpg"), + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/storage/delete-file.md b/docs/examples/0.9.x/server-kotlin/examples/storage/delete-file.md new file mode 100644 index 0000000000..c677b22c51 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/storage/delete-file.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Storage + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val storage = Storage(client) + val response = storage.deleteFile( + fileId = "[FILE_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-download.md new file mode 100644 index 0000000000..cdae077560 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-download.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Storage + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val storage = Storage(client) + val response = storage.getFileDownload( + fileId = "[FILE_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..ced1a9e067 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-preview.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Storage + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val storage = Storage(client) + val response = storage.getFilePreview( + fileId = "[FILE_ID]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-view.md new file mode 100644 index 0000000000..a56111fa3f --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/storage/get-file-view.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Storage + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val storage = Storage(client) + val response = storage.getFileView( + fileId = "[FILE_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/storage/get-file.md b/docs/examples/0.9.x/server-kotlin/examples/storage/get-file.md new file mode 100644 index 0000000000..048e49c2c2 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/storage/get-file.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Storage + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val storage = Storage(client) + val response = storage.getFile( + fileId = "[FILE_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/storage/list-files.md b/docs/examples/0.9.x/server-kotlin/examples/storage/list-files.md new file mode 100644 index 0000000000..d746cc4985 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/storage/list-files.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.services.Storage + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val storage = Storage(client) + val response = storage.listFiles( + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/storage/update-file.md b/docs/examples/0.9.x/server-kotlin/examples/storage/update-file.md new file mode 100644 index 0000000000..124f600bc0 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/storage/update-file.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.services.Storage + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val storage = Storage(client) + val response = storage.updateFile( + fileId = "[FILE_ID]", + read = listOf(), + write = listOf() + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/create-membership.md b/docs/examples/0.9.x/server-kotlin/examples/teams/create-membership.md new file mode 100644 index 0000000000..ebdd4f3034 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/create-membership.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.createMembership( + teamId = "[TEAM_ID]", + email = "email@example.com", + roles = listOf(), + url = "https://example.com", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/create.md b/docs/examples/0.9.x/server-kotlin/examples/teams/create.md new file mode 100644 index 0000000000..03eb89272a --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/create.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.create( + name = "[NAME]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-kotlin/examples/teams/delete-membership.md new file mode 100644 index 0000000000..fd5cd7485e --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/delete-membership.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.deleteMembership( + teamId = "[TEAM_ID]", + membershipId = "[MEMBERSHIP_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/delete.md b/docs/examples/0.9.x/server-kotlin/examples/teams/delete.md new file mode 100644 index 0000000000..3806a5e7b8 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/delete.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.delete( + teamId = "[TEAM_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-kotlin/examples/teams/get-memberships.md new file mode 100644 index 0000000000..6dab7104fe --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/get-memberships.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.getMemberships( + teamId = "[TEAM_ID]", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/get.md b/docs/examples/0.9.x/server-kotlin/examples/teams/get.md new file mode 100644 index 0000000000..c8802a7133 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/get.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.get( + teamId = "[TEAM_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/list.md b/docs/examples/0.9.x/server-kotlin/examples/teams/list.md new file mode 100644 index 0000000000..7aff26e811 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/list.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.list( + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-kotlin/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..f76601adc4 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/update-membership-roles.md @@ -0,0 +1,17 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.updateMembershipRoles( + teamId = "[TEAM_ID]", + membershipId = "[MEMBERSHIP_ID]", + roles = listOf() + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-kotlin/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..56b7dc71c3 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/update-membership-status.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + + val teams = Teams(client) + val response = teams.updateMembershipStatus( + teamId = "[TEAM_ID]", + membershipId = "[MEMBERSHIP_ID]", + userId = "[USER_ID]", + secret = "[SECRET]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/teams/update.md b/docs/examples/0.9.x/server-kotlin/examples/teams/update.md new file mode 100644 index 0000000000..a558a35216 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/teams/update.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Teams + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val teams = Teams(client) + val response = teams.update( + teamId = "[TEAM_ID]", + name = "[NAME]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/create.md b/docs/examples/0.9.x/server-kotlin/examples/users/create.md new file mode 100644 index 0000000000..6d207f527e --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/create.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.create( + email = "email@example.com", + password = "password", + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/delete-session.md b/docs/examples/0.9.x/server-kotlin/examples/users/delete-session.md new file mode 100644 index 0000000000..b02b7eda74 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/delete-session.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.deleteSession( + userId = "[USER_ID]", + sessionId = "[SESSION_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-kotlin/examples/users/delete-sessions.md new file mode 100644 index 0000000000..969f5f34b2 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/delete-sessions.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.deleteSessions( + userId = "[USER_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/delete.md b/docs/examples/0.9.x/server-kotlin/examples/users/delete.md new file mode 100644 index 0000000000..7d545cd5fc --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/delete.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.delete( + userId = "[USER_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/get-logs.md b/docs/examples/0.9.x/server-kotlin/examples/users/get-logs.md new file mode 100644 index 0000000000..fa11366102 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/get-logs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.getLogs( + userId = "[USER_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/get-prefs.md b/docs/examples/0.9.x/server-kotlin/examples/users/get-prefs.md new file mode 100644 index 0000000000..681bc0053a --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/get-prefs.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.getPrefs( + userId = "[USER_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/get-sessions.md b/docs/examples/0.9.x/server-kotlin/examples/users/get-sessions.md new file mode 100644 index 0000000000..ba5a48eadd --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/get-sessions.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.getSessions( + userId = "[USER_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/get.md b/docs/examples/0.9.x/server-kotlin/examples/users/get.md new file mode 100644 index 0000000000..85cf8cd484 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/get.md @@ -0,0 +1,15 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.get( + userId = "[USER_ID]" + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/list.md b/docs/examples/0.9.x/server-kotlin/examples/users/list.md new file mode 100644 index 0000000000..4c6f4a8f96 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/list.md @@ -0,0 +1,14 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.list( + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/update-prefs.md b/docs/examples/0.9.x/server-kotlin/examples/users/update-prefs.md new file mode 100644 index 0000000000..27c669b141 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/update-prefs.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.updatePrefs( + userId = "[USER_ID]", + prefs = mapOf( "a" to "b" ) + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/update-status.md b/docs/examples/0.9.x/server-kotlin/examples/users/update-status.md new file mode 100644 index 0000000000..4779ecee67 --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/update-status.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.updateStatus( + userId = "[USER_ID]", + status = 1 + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-kotlin/examples/users/update-verification.md b/docs/examples/0.9.x/server-kotlin/examples/users/update-verification.md new file mode 100644 index 0000000000..0c46ccdf8b --- /dev/null +++ b/docs/examples/0.9.x/server-kotlin/examples/users/update-verification.md @@ -0,0 +1,16 @@ +import io.appwrite.Client +import io.appwrite.services.Users + +suspend fun main() { + val client = Client(context) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + + val users = Users(client) + val response = users.updateVerification( + userId = "[USER_ID]", + emailVerification = false + ) + val json = response.body?.string() +} \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/create-recovery.md b/docs/examples/0.9.x/server-nodejs/examples/account/create-recovery.md new file mode 100644 index 0000000000..8d86e0fbab --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/create-recovery.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.createRecovery('email@example.com', 'https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/create-verification.md b/docs/examples/0.9.x/server-nodejs/examples/account/create-verification.md new file mode 100644 index 0000000000..8ec31eb060 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/create-verification.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.createVerification('https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/delete-session.md b/docs/examples/0.9.x/server-nodejs/examples/account/delete-session.md new file mode 100644 index 0000000000..4bcd2d2ce2 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/delete-session.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.deleteSession('[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-nodejs/examples/account/delete-sessions.md new file mode 100644 index 0000000000..3ccc6556b3 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/delete-sessions.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.deleteSessions(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/delete.md b/docs/examples/0.9.x/server-nodejs/examples/account/delete.md new file mode 100644 index 0000000000..49f9ba03cb --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/delete.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.delete(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/get-logs.md b/docs/examples/0.9.x/server-nodejs/examples/account/get-logs.md new file mode 100644 index 0000000000..dd8e26a045 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/get-logs.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.getLogs(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/get-prefs.md b/docs/examples/0.9.x/server-nodejs/examples/account/get-prefs.md new file mode 100644 index 0000000000..a10879ddd5 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/get-prefs.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.getPrefs(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/get-session.md b/docs/examples/0.9.x/server-nodejs/examples/account/get-session.md new file mode 100644 index 0000000000..c6dac22365 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/get-session.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.getSession('[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/get-sessions.md b/docs/examples/0.9.x/server-nodejs/examples/account/get-sessions.md new file mode 100644 index 0000000000..b25b91cfe6 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/get-sessions.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.getSessions(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/get.md b/docs/examples/0.9.x/server-nodejs/examples/account/get.md new file mode 100644 index 0000000000..862cfd3cd3 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/get.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.get(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/update-email.md b/docs/examples/0.9.x/server-nodejs/examples/account/update-email.md new file mode 100644 index 0000000000..493bad30f5 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/update-email.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.updateEmail('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/update-name.md b/docs/examples/0.9.x/server-nodejs/examples/account/update-name.md new file mode 100644 index 0000000000..ef4b47a3d8 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/update-name.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.updateName('[NAME]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/update-password.md b/docs/examples/0.9.x/server-nodejs/examples/account/update-password.md new file mode 100644 index 0000000000..59db404cc1 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/update-password.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.updatePassword('password'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/0.9.x/server-nodejs/examples/account/update-prefs.md new file mode 100644 index 0000000000..d9c518f1a2 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/update-prefs.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.updatePrefs({}); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/update-recovery.md b/docs/examples/0.9.x/server-nodejs/examples/account/update-recovery.md new file mode 100644 index 0000000000..796c88ad9c --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/update-recovery.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/account/update-verification.md b/docs/examples/0.9.x/server-nodejs/examples/account/update-verification.md new file mode 100644 index 0000000000..1e264ecdc7 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/account/update-verification.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let account = new sdk.Account(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = account.updateVerification('[USER_ID]', '[SECRET]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-browser.md new file mode 100644 index 0000000000..2a670ce08b --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-browser.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = avatars.getBrowser('aa'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..afd38f5a97 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-credit-card.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = avatars.getCreditCard('amex'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..bb347371d4 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-favicon.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = avatars.getFavicon('https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-flag.md new file mode 100644 index 0000000000..db677bc4f8 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-flag.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = avatars.getFlag('af'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-image.md new file mode 100644 index 0000000000..efa871ea63 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-image.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = avatars.getImage('https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-initials.md new file mode 100644 index 0000000000..d6175bff13 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-initials.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = avatars.getInitials(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..e79b3235af --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/avatars/get-q-r.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let avatars = new sdk.Avatars(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = avatars.getQR('[TEXT]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/create-collection.md b/docs/examples/0.9.x/server-nodejs/examples/database/create-collection.md new file mode 100644 index 0000000000..c0207f30f0 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/create-collection.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.createCollection('[NAME]', [], [], []); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/create-document.md b/docs/examples/0.9.x/server-nodejs/examples/database/create-document.md new file mode 100644 index 0000000000..3994127746 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/create-document.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.createDocument('[COLLECTION_ID]', {}); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/delete-collection.md b/docs/examples/0.9.x/server-nodejs/examples/database/delete-collection.md new file mode 100644 index 0000000000..503da98a73 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/delete-collection.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.deleteCollection('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/delete-document.md b/docs/examples/0.9.x/server-nodejs/examples/database/delete-document.md new file mode 100644 index 0000000000..f14c985e83 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/delete-document.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/get-collection.md b/docs/examples/0.9.x/server-nodejs/examples/database/get-collection.md new file mode 100644 index 0000000000..a14ce0d49a --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/get-collection.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.getCollection('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/get-document.md b/docs/examples/0.9.x/server-nodejs/examples/database/get-document.md new file mode 100644 index 0000000000..55cce32b9b --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/get-document.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/list-collections.md b/docs/examples/0.9.x/server-nodejs/examples/database/list-collections.md new file mode 100644 index 0000000000..bacfdb062c --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/list-collections.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.listCollections(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/list-documents.md b/docs/examples/0.9.x/server-nodejs/examples/database/list-documents.md new file mode 100644 index 0000000000..ad02d05e2a --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/list-documents.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.listDocuments('[COLLECTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/update-collection.md b/docs/examples/0.9.x/server-nodejs/examples/database/update-collection.md new file mode 100644 index 0000000000..288792b47d --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/update-collection.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.updateCollection('[COLLECTION_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/database/update-document.md b/docs/examples/0.9.x/server-nodejs/examples/database/update-document.md new file mode 100644 index 0000000000..40e9488a6b --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/database/update-document.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let database = new sdk.Database(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/0.9.x/server-nodejs/examples/functions/create-execution.md new file mode 100644 index 0000000000..895b70cd1b --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/create-execution.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.createExecution('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/create-tag.md b/docs/examples/0.9.x/server-nodejs/examples/functions/create-tag.md new file mode 100644 index 0000000000..7949790f16 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/create-tag.md @@ -0,0 +1,21 @@ +const sdk = require('node-appwrite'); +const fs = require('fs'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.createTag('[FUNCTION_ID]', '[COMMAND]', fs.createReadStream(__dirname + '/file.png'))); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/create.md b/docs/examples/0.9.x/server-nodejs/examples/functions/create.md new file mode 100644 index 0000000000..d4c286cd38 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/create.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.create('[NAME]', [], 'java-11'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-nodejs/examples/functions/delete-tag.md new file mode 100644 index 0000000000..938bb5cc19 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/delete-tag.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.deleteTag('[FUNCTION_ID]', '[TAG_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/delete.md b/docs/examples/0.9.x/server-nodejs/examples/functions/delete.md new file mode 100644 index 0000000000..6f079cb7f7 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/delete.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.delete('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/get-execution.md b/docs/examples/0.9.x/server-nodejs/examples/functions/get-execution.md new file mode 100644 index 0000000000..1e2f5ea88a --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/get-execution.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/get-tag.md b/docs/examples/0.9.x/server-nodejs/examples/functions/get-tag.md new file mode 100644 index 0000000000..a016699a11 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/get-tag.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.getTag('[FUNCTION_ID]', '[TAG_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/get.md b/docs/examples/0.9.x/server-nodejs/examples/functions/get.md new file mode 100644 index 0000000000..620deec88c --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/get.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.get('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/0.9.x/server-nodejs/examples/functions/list-executions.md new file mode 100644 index 0000000000..40c44b12e5 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/list-executions.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.listExecutions('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/list-tags.md b/docs/examples/0.9.x/server-nodejs/examples/functions/list-tags.md new file mode 100644 index 0000000000..c9c043a8b4 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/list-tags.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.listTags('[FUNCTION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/list.md b/docs/examples/0.9.x/server-nodejs/examples/functions/list.md new file mode 100644 index 0000000000..9ecd37237d --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/list.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.list(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/update-tag.md b/docs/examples/0.9.x/server-nodejs/examples/functions/update-tag.md new file mode 100644 index 0000000000..0ea180e1d9 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/update-tag.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.updateTag('[FUNCTION_ID]', '[TAG]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/functions/update.md b/docs/examples/0.9.x/server-nodejs/examples/functions/update.md new file mode 100644 index 0000000000..83e25b9cdc --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/functions/update.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let functions = new sdk.Functions(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = functions.update('[FUNCTION_ID]', '[NAME]', []); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..c08e612bcf --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-anti-virus.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getAntiVirus(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-cache.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-cache.md new file mode 100644 index 0000000000..d19cc8abd5 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-cache.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getCache(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-d-b.md new file mode 100644 index 0000000000..08505367d4 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-d-b.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getDB(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..2eb69e0126 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-certificates.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getQueueCertificates(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..9470e11646 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-functions.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getQueueFunctions(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..10f1cb24e3 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-logs.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getQueueLogs(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..c159f4e6ee --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-tasks.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getQueueTasks(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..6286c741ee --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-usage.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getQueueUsage(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..3a788eb895 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getQueueWebhooks(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-storage-local.md new file mode 100644 index 0000000000..84b8fb47a6 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-storage-local.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getStorageLocal(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get-time.md b/docs/examples/0.9.x/server-nodejs/examples/health/get-time.md new file mode 100644 index 0000000000..563bf2fb52 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get-time.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.getTime(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/health/get.md b/docs/examples/0.9.x/server-nodejs/examples/health/get.md new file mode 100644 index 0000000000..20c3d40801 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/health/get.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let health = new sdk.Health(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = health.get(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/locale/get-continents.md b/docs/examples/0.9.x/server-nodejs/examples/locale/get-continents.md new file mode 100644 index 0000000000..323237b4ab --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/locale/get-continents.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = locale.getContinents(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..fc9170dba4 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries-e-u.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = locale.getCountriesEU(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..42be901677 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries-phones.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = locale.getCountriesPhones(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries.md b/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries.md new file mode 100644 index 0000000000..437c9bb502 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/locale/get-countries.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = locale.getCountries(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-nodejs/examples/locale/get-currencies.md new file mode 100644 index 0000000000..1b7d605760 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/locale/get-currencies.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = locale.getCurrencies(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/locale/get-languages.md b/docs/examples/0.9.x/server-nodejs/examples/locale/get-languages.md new file mode 100644 index 0000000000..b6f45311b3 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/locale/get-languages.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = locale.getLanguages(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/locale/get.md b/docs/examples/0.9.x/server-nodejs/examples/locale/get.md new file mode 100644 index 0000000000..2f2eb95d90 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/locale/get.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let locale = new sdk.Locale(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = locale.get(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/storage/create-file.md b/docs/examples/0.9.x/server-nodejs/examples/storage/create-file.md new file mode 100644 index 0000000000..407e19b98f --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/storage/create-file.md @@ -0,0 +1,21 @@ +const sdk = require('node-appwrite'); +const fs = require('fs'); + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = storage.createFile(fs.createReadStream(__dirname + '/file.png'))); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/storage/delete-file.md b/docs/examples/0.9.x/server-nodejs/examples/storage/delete-file.md new file mode 100644 index 0000000000..9ce0ff7f2e --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/storage/delete-file.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = storage.deleteFile('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-download.md new file mode 100644 index 0000000000..1683ed87e0 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-download.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = storage.getFileDownload('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..771dcd35f0 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-preview.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = storage.getFilePreview('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-view.md new file mode 100644 index 0000000000..83029ecdee --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/storage/get-file-view.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = storage.getFileView('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/storage/get-file.md b/docs/examples/0.9.x/server-nodejs/examples/storage/get-file.md new file mode 100644 index 0000000000..2a76fdf189 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/storage/get-file.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = storage.getFile('[FILE_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/storage/list-files.md b/docs/examples/0.9.x/server-nodejs/examples/storage/list-files.md new file mode 100644 index 0000000000..e11fd95300 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/storage/list-files.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = storage.listFiles(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/storage/update-file.md b/docs/examples/0.9.x/server-nodejs/examples/storage/update-file.md new file mode 100644 index 0000000000..4726169146 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/storage/update-file.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let storage = new sdk.Storage(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = storage.updateFile('[FILE_ID]', [], []); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/0.9.x/server-nodejs/examples/teams/create-membership.md new file mode 100644 index 0000000000..cd17042e58 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/create-membership.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/create.md b/docs/examples/0.9.x/server-nodejs/examples/teams/create.md new file mode 100644 index 0000000000..c0d0611a49 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/create.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.create('[NAME]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-nodejs/examples/teams/delete-membership.md new file mode 100644 index 0000000000..82df7161f8 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/delete-membership.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/delete.md b/docs/examples/0.9.x/server-nodejs/examples/teams/delete.md new file mode 100644 index 0000000000..e833fdfb9b --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/delete.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.delete('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-nodejs/examples/teams/get-memberships.md new file mode 100644 index 0000000000..75cdf38e5c --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/get-memberships.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.getMemberships('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/get.md b/docs/examples/0.9.x/server-nodejs/examples/teams/get.md new file mode 100644 index 0000000000..a51322df27 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/get.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.get('[TEAM_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/list.md b/docs/examples/0.9.x/server-nodejs/examples/teams/list.md new file mode 100644 index 0000000000..259bbd22b2 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/list.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.list(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-nodejs/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..dc78af59f8 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/update-membership-roles.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-nodejs/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..13f8578037 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/update-membership-status.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +let promise = teams.updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/teams/update.md b/docs/examples/0.9.x/server-nodejs/examples/teams/update.md new file mode 100644 index 0000000000..2118e8a90f --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/teams/update.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let teams = new sdk.Teams(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = teams.update('[TEAM_ID]', '[NAME]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/create.md b/docs/examples/0.9.x/server-nodejs/examples/users/create.md new file mode 100644 index 0000000000..83704cbd9d --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/create.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.create('email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/delete-session.md b/docs/examples/0.9.x/server-nodejs/examples/users/delete-session.md new file mode 100644 index 0000000000..22308d4fa6 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/delete-session.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.deleteSession('[USER_ID]', '[SESSION_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-nodejs/examples/users/delete-sessions.md new file mode 100644 index 0000000000..75f8f96bda --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/delete-sessions.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.deleteSessions('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/delete.md b/docs/examples/0.9.x/server-nodejs/examples/users/delete.md new file mode 100644 index 0000000000..3d834c33e3 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/delete.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.delete('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/get-logs.md b/docs/examples/0.9.x/server-nodejs/examples/users/get-logs.md new file mode 100644 index 0000000000..1287b5ef5f --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/get-logs.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.getLogs('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/get-prefs.md b/docs/examples/0.9.x/server-nodejs/examples/users/get-prefs.md new file mode 100644 index 0000000000..088e6b0811 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/get-prefs.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.getPrefs('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/get-sessions.md b/docs/examples/0.9.x/server-nodejs/examples/users/get-sessions.md new file mode 100644 index 0000000000..f5ad029ebe --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/get-sessions.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.getSessions('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/get.md b/docs/examples/0.9.x/server-nodejs/examples/users/get.md new file mode 100644 index 0000000000..5b91577284 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/get.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.get('[USER_ID]'); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/list.md b/docs/examples/0.9.x/server-nodejs/examples/users/list.md new file mode 100644 index 0000000000..0bc83b06bf --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/list.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.list(); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/update-prefs.md b/docs/examples/0.9.x/server-nodejs/examples/users/update-prefs.md new file mode 100644 index 0000000000..7d1011d6be --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/update-prefs.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.updatePrefs('[USER_ID]', {}); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/update-status.md b/docs/examples/0.9.x/server-nodejs/examples/users/update-status.md new file mode 100644 index 0000000000..2d1cba5838 --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/update-status.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.updateStatus('[USER_ID]', 1); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-nodejs/examples/users/update-verification.md b/docs/examples/0.9.x/server-nodejs/examples/users/update-verification.md new file mode 100644 index 0000000000..c8185bf5cc --- /dev/null +++ b/docs/examples/0.9.x/server-nodejs/examples/users/update-verification.md @@ -0,0 +1,20 @@ +const sdk = require('node-appwrite'); + +// Init SDK +let client = new sdk.Client(); + +let users = new sdk.Users(client); + +client + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +let promise = users.updateVerification('[USER_ID]', false); + +promise.then(function (response) { + console.log(response); +}, function (error) { + console.log(error); +}); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/create-recovery.md b/docs/examples/0.9.x/server-php/examples/account/create-recovery.md new file mode 100644 index 0000000000..65823e5104 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/create-recovery.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->createRecovery('email@example.com', 'https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/create-verification.md b/docs/examples/0.9.x/server-php/examples/account/create-verification.md new file mode 100644 index 0000000000..b22d6199a7 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/create-verification.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->createVerification('https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/delete-session.md b/docs/examples/0.9.x/server-php/examples/account/delete-session.md new file mode 100644 index 0000000000..ac04559ca5 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/delete-session.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->deleteSession('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-php/examples/account/delete-sessions.md new file mode 100644 index 0000000000..3aa67f79ce --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/delete-sessions.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->deleteSessions(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/delete.md b/docs/examples/0.9.x/server-php/examples/account/delete.md new file mode 100644 index 0000000000..1ce53d624c --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/delete.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->delete(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/get-logs.md b/docs/examples/0.9.x/server-php/examples/account/get-logs.md new file mode 100644 index 0000000000..2fffafcc2d --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/get-logs.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->getLogs(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/get-prefs.md b/docs/examples/0.9.x/server-php/examples/account/get-prefs.md new file mode 100644 index 0000000000..efa296194f --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/get-prefs.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->getPrefs(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/get-session.md b/docs/examples/0.9.x/server-php/examples/account/get-session.md new file mode 100644 index 0000000000..549f9bed7f --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/get-session.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->getSession('[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/get-sessions.md b/docs/examples/0.9.x/server-php/examples/account/get-sessions.md new file mode 100644 index 0000000000..2855ff4d82 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/get-sessions.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->getSessions(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/get.md b/docs/examples/0.9.x/server-php/examples/account/get.md new file mode 100644 index 0000000000..3fa0ef275e --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/get.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->get(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/update-email.md b/docs/examples/0.9.x/server-php/examples/account/update-email.md new file mode 100644 index 0000000000..72714991d7 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/update-email.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->updateEmail('email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/update-name.md b/docs/examples/0.9.x/server-php/examples/account/update-name.md new file mode 100644 index 0000000000..c7bb1b14ea --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/update-name.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->updateName('[NAME]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/update-password.md b/docs/examples/0.9.x/server-php/examples/account/update-password.md new file mode 100644 index 0000000000..e82279859a --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/update-password.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->updatePassword('password'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/update-prefs.md b/docs/examples/0.9.x/server-php/examples/account/update-prefs.md new file mode 100644 index 0000000000..e1395d9d67 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/update-prefs.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->updatePrefs([]); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/update-recovery.md b/docs/examples/0.9.x/server-php/examples/account/update-recovery.md new file mode 100644 index 0000000000..5379d76d6d --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/update-recovery.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->updateRecovery('[USER_ID]', '[SECRET]', 'password', 'password'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/account/update-verification.md b/docs/examples/0.9.x/server-php/examples/account/update-verification.md new file mode 100644 index 0000000000..ef21c1ec4d --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/account/update-verification.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$account = new Account($client); + +$result = $account->updateVerification('[USER_ID]', '[SECRET]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-php/examples/avatars/get-browser.md new file mode 100644 index 0000000000..795d79157e --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/avatars/get-browser.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$avatars = new Avatars($client); + +$result = $avatars->getBrowser('aa'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-php/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..33879d0179 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/avatars/get-credit-card.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$avatars = new Avatars($client); + +$result = $avatars->getCreditCard('amex'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-php/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..dee19dbf04 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/avatars/get-favicon.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$avatars = new Avatars($client); + +$result = $avatars->getFavicon('https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-php/examples/avatars/get-flag.md new file mode 100644 index 0000000000..d70d7e43ec --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/avatars/get-flag.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$avatars = new Avatars($client); + +$result = $avatars->getFlag('af'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/avatars/get-image.md b/docs/examples/0.9.x/server-php/examples/avatars/get-image.md new file mode 100644 index 0000000000..a46b9fbe37 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/avatars/get-image.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$avatars = new Avatars($client); + +$result = $avatars->getImage('https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-php/examples/avatars/get-initials.md new file mode 100644 index 0000000000..f5e549ace6 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/avatars/get-initials.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$avatars = new Avatars($client); + +$result = $avatars->getInitials(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-php/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..95b5a6d7b3 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/avatars/get-q-r.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$avatars = new Avatars($client); + +$result = $avatars->getQR('[TEXT]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/create-collection.md b/docs/examples/0.9.x/server-php/examples/database/create-collection.md new file mode 100644 index 0000000000..276d5049fe --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/create-collection.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->createCollection('[NAME]', [], [], []); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/create-document.md b/docs/examples/0.9.x/server-php/examples/database/create-document.md new file mode 100644 index 0000000000..51a75aaf30 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/create-document.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->createDocument('[COLLECTION_ID]', []); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/delete-collection.md b/docs/examples/0.9.x/server-php/examples/database/delete-collection.md new file mode 100644 index 0000000000..4018420188 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/delete-collection.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->deleteCollection('[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/delete-document.md b/docs/examples/0.9.x/server-php/examples/database/delete-document.md new file mode 100644 index 0000000000..3ed45d6ee1 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/delete-document.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/get-collection.md b/docs/examples/0.9.x/server-php/examples/database/get-collection.md new file mode 100644 index 0000000000..a088b24bb6 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/get-collection.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->getCollection('[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/get-document.md b/docs/examples/0.9.x/server-php/examples/database/get-document.md new file mode 100644 index 0000000000..d506bd8414 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/get-document.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/list-collections.md b/docs/examples/0.9.x/server-php/examples/database/list-collections.md new file mode 100644 index 0000000000..4f4aa1b775 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/list-collections.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->listCollections(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/list-documents.md b/docs/examples/0.9.x/server-php/examples/database/list-documents.md new file mode 100644 index 0000000000..359da4ce33 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/list-documents.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->listDocuments('[COLLECTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/update-collection.md b/docs/examples/0.9.x/server-php/examples/database/update-collection.md new file mode 100644 index 0000000000..8f9afe1af4 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/update-collection.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->updateCollection('[COLLECTION_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/database/update-document.md b/docs/examples/0.9.x/server-php/examples/database/update-document.md new file mode 100644 index 0000000000..b4c2eac092 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/database/update-document.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$database = new Database($client); + +$result = $database->updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', []); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/create-execution.md b/docs/examples/0.9.x/server-php/examples/functions/create-execution.md new file mode 100644 index 0000000000..422331a0df --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/create-execution.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->createExecution('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/create-tag.md b/docs/examples/0.9.x/server-php/examples/functions/create-tag.md new file mode 100644 index 0000000000..72007a7d4f --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/create-tag.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->createTag('[FUNCTION_ID]', '[COMMAND]', new \CURLFile('/path/to/file.png', 'image/png', 'file.png')); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/create.md b/docs/examples/0.9.x/server-php/examples/functions/create.md new file mode 100644 index 0000000000..644eaf8545 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/create.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->create('[NAME]', [], 'java-11'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-php/examples/functions/delete-tag.md new file mode 100644 index 0000000000..0a47accec9 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/delete-tag.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->deleteTag('[FUNCTION_ID]', '[TAG_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/delete.md b/docs/examples/0.9.x/server-php/examples/functions/delete.md new file mode 100644 index 0000000000..319856522e --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/delete.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->delete('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/get-execution.md b/docs/examples/0.9.x/server-php/examples/functions/get-execution.md new file mode 100644 index 0000000000..b02cfa08f7 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/get-execution.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->getExecution('[FUNCTION_ID]', '[EXECUTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/get-tag.md b/docs/examples/0.9.x/server-php/examples/functions/get-tag.md new file mode 100644 index 0000000000..5cee355f7e --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/get-tag.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->getTag('[FUNCTION_ID]', '[TAG_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/get.md b/docs/examples/0.9.x/server-php/examples/functions/get.md new file mode 100644 index 0000000000..06ddece1ca --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/get.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->get('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/list-executions.md b/docs/examples/0.9.x/server-php/examples/functions/list-executions.md new file mode 100644 index 0000000000..4417fc8860 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/list-executions.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->listExecutions('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/list-tags.md b/docs/examples/0.9.x/server-php/examples/functions/list-tags.md new file mode 100644 index 0000000000..ac652d5647 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/list-tags.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->listTags('[FUNCTION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/list.md b/docs/examples/0.9.x/server-php/examples/functions/list.md new file mode 100644 index 0000000000..3eaa8c567e --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/list.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->list(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/update-tag.md b/docs/examples/0.9.x/server-php/examples/functions/update-tag.md new file mode 100644 index 0000000000..42c74d4f95 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/update-tag.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->updateTag('[FUNCTION_ID]', '[TAG]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/functions/update.md b/docs/examples/0.9.x/server-php/examples/functions/update.md new file mode 100644 index 0000000000..b33ac8abd2 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/functions/update.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$functions = new Functions($client); + +$result = $functions->update('[FUNCTION_ID]', '[NAME]', []); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-php/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..89a5fb2a7a --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-anti-virus.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getAntiVirus(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-cache.md b/docs/examples/0.9.x/server-php/examples/health/get-cache.md new file mode 100644 index 0000000000..e654c26f51 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-cache.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getCache(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-d-b.md b/docs/examples/0.9.x/server-php/examples/health/get-d-b.md new file mode 100644 index 0000000000..2d37991a3d --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-d-b.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getDB(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-php/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..57f2c5793e --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-queue-certificates.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getQueueCertificates(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-php/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..8ff6510e1c --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-queue-functions.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getQueueFunctions(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-php/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..fa723d7391 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-queue-logs.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getQueueLogs(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-php/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..b8f1794a1a --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-queue-tasks.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getQueueTasks(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-php/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..371d02f5b4 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-queue-usage.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getQueueUsage(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-php/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..af48a72d06 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-queue-webhooks.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getQueueWebhooks(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-php/examples/health/get-storage-local.md new file mode 100644 index 0000000000..eba15a1652 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-storage-local.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getStorageLocal(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get-time.md b/docs/examples/0.9.x/server-php/examples/health/get-time.md new file mode 100644 index 0000000000..849f499460 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get-time.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->getTime(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/health/get.md b/docs/examples/0.9.x/server-php/examples/health/get.md new file mode 100644 index 0000000000..9f1ec8970c --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/health/get.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$health = new Health($client); + +$result = $health->get(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/locale/get-continents.md b/docs/examples/0.9.x/server-php/examples/locale/get-continents.md new file mode 100644 index 0000000000..bb099d31f5 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/locale/get-continents.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$locale = new Locale($client); + +$result = $locale->getContinents(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-php/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..87287a5cea --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/locale/get-countries-e-u.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$locale = new Locale($client); + +$result = $locale->getCountriesEU(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-php/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..71a39303da --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/locale/get-countries-phones.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$locale = new Locale($client); + +$result = $locale->getCountriesPhones(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/locale/get-countries.md b/docs/examples/0.9.x/server-php/examples/locale/get-countries.md new file mode 100644 index 0000000000..1c8f863a76 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/locale/get-countries.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$locale = new Locale($client); + +$result = $locale->getCountries(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-php/examples/locale/get-currencies.md new file mode 100644 index 0000000000..b799bf6b80 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/locale/get-currencies.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$locale = new Locale($client); + +$result = $locale->getCurrencies(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/locale/get-languages.md b/docs/examples/0.9.x/server-php/examples/locale/get-languages.md new file mode 100644 index 0000000000..47fdc6eb34 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/locale/get-languages.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$locale = new Locale($client); + +$result = $locale->getLanguages(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/locale/get.md b/docs/examples/0.9.x/server-php/examples/locale/get.md new file mode 100644 index 0000000000..8e11f17689 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/locale/get.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$locale = new Locale($client); + +$result = $locale->get(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/storage/create-file.md b/docs/examples/0.9.x/server-php/examples/storage/create-file.md new file mode 100644 index 0000000000..8c8c8f663d --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/storage/create-file.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$storage = new Storage($client); + +$result = $storage->createFile(new \CURLFile('/path/to/file.png', 'image/png', 'file.png')); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/storage/delete-file.md b/docs/examples/0.9.x/server-php/examples/storage/delete-file.md new file mode 100644 index 0000000000..23d4013d22 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/storage/delete-file.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$storage = new Storage($client); + +$result = $storage->deleteFile('[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-php/examples/storage/get-file-download.md new file mode 100644 index 0000000000..3064481141 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/storage/get-file-download.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$storage = new Storage($client); + +$result = $storage->getFileDownload('[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-php/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..00cb63696b --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/storage/get-file-preview.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$storage = new Storage($client); + +$result = $storage->getFilePreview('[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-php/examples/storage/get-file-view.md new file mode 100644 index 0000000000..07b7ab32ba --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/storage/get-file-view.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$storage = new Storage($client); + +$result = $storage->getFileView('[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/storage/get-file.md b/docs/examples/0.9.x/server-php/examples/storage/get-file.md new file mode 100644 index 0000000000..c8b6495f18 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/storage/get-file.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$storage = new Storage($client); + +$result = $storage->getFile('[FILE_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/storage/list-files.md b/docs/examples/0.9.x/server-php/examples/storage/list-files.md new file mode 100644 index 0000000000..787c38e320 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/storage/list-files.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$storage = new Storage($client); + +$result = $storage->listFiles(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/storage/update-file.md b/docs/examples/0.9.x/server-php/examples/storage/update-file.md new file mode 100644 index 0000000000..7515217b97 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/storage/update-file.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$storage = new Storage($client); + +$result = $storage->updateFile('[FILE_ID]', [], []); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/create-membership.md b/docs/examples/0.9.x/server-php/examples/teams/create-membership.md new file mode 100644 index 0000000000..9c88b1bba5 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/create-membership.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/create.md b/docs/examples/0.9.x/server-php/examples/teams/create.md new file mode 100644 index 0000000000..7b0946bc83 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/create.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->create('[NAME]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-php/examples/teams/delete-membership.md new file mode 100644 index 0000000000..32eb37a709 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/delete-membership.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->deleteMembership('[TEAM_ID]', '[MEMBERSHIP_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/delete.md b/docs/examples/0.9.x/server-php/examples/teams/delete.md new file mode 100644 index 0000000000..394a1940fc --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/delete.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->delete('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-php/examples/teams/get-memberships.md new file mode 100644 index 0000000000..56f6d59063 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/get-memberships.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->getMemberships('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/get.md b/docs/examples/0.9.x/server-php/examples/teams/get.md new file mode 100644 index 0000000000..6f0b705707 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/get.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->get('[TEAM_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/list.md b/docs/examples/0.9.x/server-php/examples/teams/list.md new file mode 100644 index 0000000000..d17bb7689b --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/list.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->list(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-php/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..66dcad785b --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/update-membership-roles.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-php/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..c37e0d408c --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/update-membership-status.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token +; + +$teams = new Teams($client); + +$result = $teams->updateMembershipStatus('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/teams/update.md b/docs/examples/0.9.x/server-php/examples/teams/update.md new file mode 100644 index 0000000000..945001dc36 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/teams/update.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$teams = new Teams($client); + +$result = $teams->update('[TEAM_ID]', '[NAME]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/create.md b/docs/examples/0.9.x/server-php/examples/users/create.md new file mode 100644 index 0000000000..53497b4277 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/create.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->create('email@example.com', 'password'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/delete-session.md b/docs/examples/0.9.x/server-php/examples/users/delete-session.md new file mode 100644 index 0000000000..ead6de7549 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/delete-session.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->deleteSession('[USER_ID]', '[SESSION_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-php/examples/users/delete-sessions.md new file mode 100644 index 0000000000..968d788ea7 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/delete-sessions.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->deleteSessions('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/delete.md b/docs/examples/0.9.x/server-php/examples/users/delete.md new file mode 100644 index 0000000000..8a24d63059 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/delete.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->delete('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/get-logs.md b/docs/examples/0.9.x/server-php/examples/users/get-logs.md new file mode 100644 index 0000000000..5602536920 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/get-logs.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->getLogs('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/get-prefs.md b/docs/examples/0.9.x/server-php/examples/users/get-prefs.md new file mode 100644 index 0000000000..1c9978a0fb --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/get-prefs.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->getPrefs('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/get-sessions.md b/docs/examples/0.9.x/server-php/examples/users/get-sessions.md new file mode 100644 index 0000000000..fef9f1db74 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/get-sessions.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->getSessions('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/get.md b/docs/examples/0.9.x/server-php/examples/users/get.md new file mode 100644 index 0000000000..16c29f9a5a --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/get.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->get('[USER_ID]'); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/list.md b/docs/examples/0.9.x/server-php/examples/users/list.md new file mode 100644 index 0000000000..efce771ea1 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/list.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->list(); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/update-prefs.md b/docs/examples/0.9.x/server-php/examples/users/update-prefs.md new file mode 100644 index 0000000000..9e9141f8a7 --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/update-prefs.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->updatePrefs('[USER_ID]', []); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/update-status.md b/docs/examples/0.9.x/server-php/examples/users/update-status.md new file mode 100644 index 0000000000..060c94042d --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/update-status.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->updateStatus('[USER_ID]', 1); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-php/examples/users/update-verification.md b/docs/examples/0.9.x/server-php/examples/users/update-verification.md new file mode 100644 index 0000000000..5b1f08693a --- /dev/null +++ b/docs/examples/0.9.x/server-php/examples/users/update-verification.md @@ -0,0 +1,16 @@ +setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key +; + +$users = new Users($client); + +$result = $users->updateVerification('[USER_ID]', false); \ No newline at end of file diff --git a/docs/examples/0.9.x/server-python/examples/account/create-recovery.md b/docs/examples/0.9.x/server-python/examples/account/create-recovery.md new file mode 100644 index 0000000000..71026337a4 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/create-recovery.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.create_recovery('email@example.com', 'https://example.com') diff --git a/docs/examples/0.9.x/server-python/examples/account/create-verification.md b/docs/examples/0.9.x/server-python/examples/account/create-verification.md new file mode 100644 index 0000000000..53939ca669 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/create-verification.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.create_verification('https://example.com') diff --git a/docs/examples/0.9.x/server-python/examples/account/delete-session.md b/docs/examples/0.9.x/server-python/examples/account/delete-session.md new file mode 100644 index 0000000000..940367dfcf --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/delete-session.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.delete_session('[SESSION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-python/examples/account/delete-sessions.md new file mode 100644 index 0000000000..317dd043d3 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/delete-sessions.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.delete_sessions() diff --git a/docs/examples/0.9.x/server-python/examples/account/delete.md b/docs/examples/0.9.x/server-python/examples/account/delete.md new file mode 100644 index 0000000000..3ddc987bfe --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/delete.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.delete() diff --git a/docs/examples/0.9.x/server-python/examples/account/get-logs.md b/docs/examples/0.9.x/server-python/examples/account/get-logs.md new file mode 100644 index 0000000000..3ccddc4658 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/get-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.get_logs() diff --git a/docs/examples/0.9.x/server-python/examples/account/get-prefs.md b/docs/examples/0.9.x/server-python/examples/account/get-prefs.md new file mode 100644 index 0000000000..616b1774b9 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/get-prefs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.get_prefs() diff --git a/docs/examples/0.9.x/server-python/examples/account/get-session.md b/docs/examples/0.9.x/server-python/examples/account/get-session.md new file mode 100644 index 0000000000..96fef2e50e --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/get-session.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.get_session('[SESSION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/account/get-sessions.md b/docs/examples/0.9.x/server-python/examples/account/get-sessions.md new file mode 100644 index 0000000000..d35dde2378 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/get-sessions.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.get_sessions() diff --git a/docs/examples/0.9.x/server-python/examples/account/get.md b/docs/examples/0.9.x/server-python/examples/account/get.md new file mode 100644 index 0000000000..f561eb9446 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/get.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.get() diff --git a/docs/examples/0.9.x/server-python/examples/account/update-email.md b/docs/examples/0.9.x/server-python/examples/account/update-email.md new file mode 100644 index 0000000000..d18eed406f --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/update-email.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.update_email('email@example.com', 'password') diff --git a/docs/examples/0.9.x/server-python/examples/account/update-name.md b/docs/examples/0.9.x/server-python/examples/account/update-name.md new file mode 100644 index 0000000000..eec145325a --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/update-name.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.update_name('[NAME]') diff --git a/docs/examples/0.9.x/server-python/examples/account/update-password.md b/docs/examples/0.9.x/server-python/examples/account/update-password.md new file mode 100644 index 0000000000..2e89031dc8 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/update-password.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.update_password('password') diff --git a/docs/examples/0.9.x/server-python/examples/account/update-prefs.md b/docs/examples/0.9.x/server-python/examples/account/update-prefs.md new file mode 100644 index 0000000000..5bf6d7478b --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/update-prefs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.update_prefs({}) diff --git a/docs/examples/0.9.x/server-python/examples/account/update-recovery.md b/docs/examples/0.9.x/server-python/examples/account/update-recovery.md new file mode 100644 index 0000000000..badc07d0af --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/update-recovery.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.update_recovery('[USER_ID]', '[SECRET]', 'password', 'password') diff --git a/docs/examples/0.9.x/server-python/examples/account/update-verification.md b/docs/examples/0.9.x/server-python/examples/account/update-verification.md new file mode 100644 index 0000000000..02d01257c8 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/account/update-verification.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.account import Account + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +account = Account(client) + +result = account.update_verification('[USER_ID]', '[SECRET]') diff --git a/docs/examples/0.9.x/server-python/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-python/examples/avatars/get-browser.md new file mode 100644 index 0000000000..138c0d1b3e --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/avatars/get-browser.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +avatars = Avatars(client) + +result = avatars.get_browser('aa') diff --git a/docs/examples/0.9.x/server-python/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-python/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..83f76aca42 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/avatars/get-credit-card.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +avatars = Avatars(client) + +result = avatars.get_credit_card('amex') diff --git a/docs/examples/0.9.x/server-python/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-python/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..6946080bee --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/avatars/get-favicon.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +avatars = Avatars(client) + +result = avatars.get_favicon('https://example.com') diff --git a/docs/examples/0.9.x/server-python/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-python/examples/avatars/get-flag.md new file mode 100644 index 0000000000..188d6d35bd --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/avatars/get-flag.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +avatars = Avatars(client) + +result = avatars.get_flag('af') diff --git a/docs/examples/0.9.x/server-python/examples/avatars/get-image.md b/docs/examples/0.9.x/server-python/examples/avatars/get-image.md new file mode 100644 index 0000000000..29a6430eab --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/avatars/get-image.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +avatars = Avatars(client) + +result = avatars.get_image('https://example.com') diff --git a/docs/examples/0.9.x/server-python/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-python/examples/avatars/get-initials.md new file mode 100644 index 0000000000..0c300af5da --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/avatars/get-initials.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +avatars = Avatars(client) + +result = avatars.get_initials() diff --git a/docs/examples/0.9.x/server-python/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-python/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..38378e9235 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/avatars/get-q-r.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.avatars import Avatars + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +avatars = Avatars(client) + +result = avatars.get_qr('[TEXT]') diff --git a/docs/examples/0.9.x/server-python/examples/database/create-collection.md b/docs/examples/0.9.x/server-python/examples/database/create-collection.md new file mode 100644 index 0000000000..eb704a80a1 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/create-collection.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.create_collection('[NAME]', [], [], []) diff --git a/docs/examples/0.9.x/server-python/examples/database/create-document.md b/docs/examples/0.9.x/server-python/examples/database/create-document.md new file mode 100644 index 0000000000..cde995aa4c --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/create-document.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.create_document('[COLLECTION_ID]', {}) diff --git a/docs/examples/0.9.x/server-python/examples/database/delete-collection.md b/docs/examples/0.9.x/server-python/examples/database/delete-collection.md new file mode 100644 index 0000000000..0e188ade41 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/delete-collection.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.delete_collection('[COLLECTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/database/delete-document.md b/docs/examples/0.9.x/server-python/examples/database/delete-document.md new file mode 100644 index 0000000000..c085547c16 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/delete-document.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.delete_document('[COLLECTION_ID]', '[DOCUMENT_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/database/get-collection.md b/docs/examples/0.9.x/server-python/examples/database/get-collection.md new file mode 100644 index 0000000000..f90f51f48b --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/get-collection.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.get_collection('[COLLECTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/database/get-document.md b/docs/examples/0.9.x/server-python/examples/database/get-document.md new file mode 100644 index 0000000000..79891709d1 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/get-document.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.get_document('[COLLECTION_ID]', '[DOCUMENT_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/database/list-collections.md b/docs/examples/0.9.x/server-python/examples/database/list-collections.md new file mode 100644 index 0000000000..f60d4b90e5 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/list-collections.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.list_collections() diff --git a/docs/examples/0.9.x/server-python/examples/database/list-documents.md b/docs/examples/0.9.x/server-python/examples/database/list-documents.md new file mode 100644 index 0000000000..cecb57d2fa --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/list-documents.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.list_documents('[COLLECTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/database/update-collection.md b/docs/examples/0.9.x/server-python/examples/database/update-collection.md new file mode 100644 index 0000000000..caa5dc62cb --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/update-collection.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.update_collection('[COLLECTION_ID]', '[NAME]') diff --git a/docs/examples/0.9.x/server-python/examples/database/update-document.md b/docs/examples/0.9.x/server-python/examples/database/update-document.md new file mode 100644 index 0000000000..2f4f89fc14 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/database/update-document.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.database import Database + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +database = Database(client) + +result = database.update_document('[COLLECTION_ID]', '[DOCUMENT_ID]', {}) diff --git a/docs/examples/0.9.x/server-python/examples/functions/create-execution.md b/docs/examples/0.9.x/server-python/examples/functions/create-execution.md new file mode 100644 index 0000000000..dc4442cd84 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/create-execution.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.create_execution('[FUNCTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/create-tag.md b/docs/examples/0.9.x/server-python/examples/functions/create-tag.md new file mode 100644 index 0000000000..1995a64c33 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/create-tag.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.create_tag('[FUNCTION_ID]', '[COMMAND]', open('/path/to/file.png', 'rb')) diff --git a/docs/examples/0.9.x/server-python/examples/functions/create.md b/docs/examples/0.9.x/server-python/examples/functions/create.md new file mode 100644 index 0000000000..fd57ebac9e --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/create.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.create('[NAME]', [], 'java-11') diff --git a/docs/examples/0.9.x/server-python/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-python/examples/functions/delete-tag.md new file mode 100644 index 0000000000..a4cb1b7a85 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/delete-tag.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.delete_tag('[FUNCTION_ID]', '[TAG_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/delete.md b/docs/examples/0.9.x/server-python/examples/functions/delete.md new file mode 100644 index 0000000000..52658e8c30 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/delete.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.delete('[FUNCTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/get-execution.md b/docs/examples/0.9.x/server-python/examples/functions/get-execution.md new file mode 100644 index 0000000000..1e101304d3 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/get-execution.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.get_execution('[FUNCTION_ID]', '[EXECUTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/get-tag.md b/docs/examples/0.9.x/server-python/examples/functions/get-tag.md new file mode 100644 index 0000000000..4cded469dd --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/get-tag.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.get_tag('[FUNCTION_ID]', '[TAG_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/get.md b/docs/examples/0.9.x/server-python/examples/functions/get.md new file mode 100644 index 0000000000..0007667da6 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/get.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.get('[FUNCTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/list-executions.md b/docs/examples/0.9.x/server-python/examples/functions/list-executions.md new file mode 100644 index 0000000000..6d75e093f4 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/list-executions.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.list_executions('[FUNCTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/list-tags.md b/docs/examples/0.9.x/server-python/examples/functions/list-tags.md new file mode 100644 index 0000000000..67a81a9d89 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/list-tags.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.list_tags('[FUNCTION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/list.md b/docs/examples/0.9.x/server-python/examples/functions/list.md new file mode 100644 index 0000000000..cc1f04d9c6 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/list.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.list() diff --git a/docs/examples/0.9.x/server-python/examples/functions/update-tag.md b/docs/examples/0.9.x/server-python/examples/functions/update-tag.md new file mode 100644 index 0000000000..7a9da50b2f --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/update-tag.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.update_tag('[FUNCTION_ID]', '[TAG]') diff --git a/docs/examples/0.9.x/server-python/examples/functions/update.md b/docs/examples/0.9.x/server-python/examples/functions/update.md new file mode 100644 index 0000000000..675338185e --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/functions/update.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.functions import Functions + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +functions = Functions(client) + +result = functions.update('[FUNCTION_ID]', '[NAME]', []) diff --git a/docs/examples/0.9.x/server-python/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-python/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..c7628d90ea --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-anti-virus.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_anti_virus() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-cache.md b/docs/examples/0.9.x/server-python/examples/health/get-cache.md new file mode 100644 index 0000000000..57c7939b7f --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-cache.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_cache() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-d-b.md b/docs/examples/0.9.x/server-python/examples/health/get-d-b.md new file mode 100644 index 0000000000..4c2bafec96 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-d-b.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_db() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-python/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..1f87c2758a --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-queue-certificates.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_queue_certificates() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-python/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..3e0b0c01e0 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-queue-functions.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_queue_functions() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-python/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..fdf80c6d82 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-queue-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_queue_logs() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-python/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..17b17a081f --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-queue-tasks.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_queue_tasks() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-python/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..aeb8e83130 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-queue-usage.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_queue_usage() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-python/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..90c4238987 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-queue-webhooks.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_queue_webhooks() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-python/examples/health/get-storage-local.md new file mode 100644 index 0000000000..b06dcef245 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-storage-local.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_storage_local() diff --git a/docs/examples/0.9.x/server-python/examples/health/get-time.md b/docs/examples/0.9.x/server-python/examples/health/get-time.md new file mode 100644 index 0000000000..df68c1a0f9 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get-time.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get_time() diff --git a/docs/examples/0.9.x/server-python/examples/health/get.md b/docs/examples/0.9.x/server-python/examples/health/get.md new file mode 100644 index 0000000000..f3416aef75 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/health/get.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.health import Health + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +health = Health(client) + +result = health.get() diff --git a/docs/examples/0.9.x/server-python/examples/locale/get-continents.md b/docs/examples/0.9.x/server-python/examples/locale/get-continents.md new file mode 100644 index 0000000000..393326ddab --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/locale/get-continents.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +locale = Locale(client) + +result = locale.get_continents() diff --git a/docs/examples/0.9.x/server-python/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-python/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..51178ddd66 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/locale/get-countries-e-u.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +locale = Locale(client) + +result = locale.get_countries_eu() diff --git a/docs/examples/0.9.x/server-python/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-python/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..8c7693a35c --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/locale/get-countries-phones.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +locale = Locale(client) + +result = locale.get_countries_phones() diff --git a/docs/examples/0.9.x/server-python/examples/locale/get-countries.md b/docs/examples/0.9.x/server-python/examples/locale/get-countries.md new file mode 100644 index 0000000000..8a6c7cb1c3 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/locale/get-countries.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +locale = Locale(client) + +result = locale.get_countries() diff --git a/docs/examples/0.9.x/server-python/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-python/examples/locale/get-currencies.md new file mode 100644 index 0000000000..17586de230 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/locale/get-currencies.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +locale = Locale(client) + +result = locale.get_currencies() diff --git a/docs/examples/0.9.x/server-python/examples/locale/get-languages.md b/docs/examples/0.9.x/server-python/examples/locale/get-languages.md new file mode 100644 index 0000000000..292a401f75 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/locale/get-languages.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +locale = Locale(client) + +result = locale.get_languages() diff --git a/docs/examples/0.9.x/server-python/examples/locale/get.md b/docs/examples/0.9.x/server-python/examples/locale/get.md new file mode 100644 index 0000000000..752df0123d --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/locale/get.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.locale import Locale + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +locale = Locale(client) + +result = locale.get() diff --git a/docs/examples/0.9.x/server-python/examples/storage/create-file.md b/docs/examples/0.9.x/server-python/examples/storage/create-file.md new file mode 100644 index 0000000000..4dc76f9c6b --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/storage/create-file.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +storage = Storage(client) + +result = storage.create_file(open('/path/to/file.png', 'rb')) diff --git a/docs/examples/0.9.x/server-python/examples/storage/delete-file.md b/docs/examples/0.9.x/server-python/examples/storage/delete-file.md new file mode 100644 index 0000000000..9379cb8820 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/storage/delete-file.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +storage = Storage(client) + +result = storage.delete_file('[FILE_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-python/examples/storage/get-file-download.md new file mode 100644 index 0000000000..bc815cebbe --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/storage/get-file-download.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +storage = Storage(client) + +result = storage.get_file_download('[FILE_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-python/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..2d14539513 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/storage/get-file-preview.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +storage = Storage(client) + +result = storage.get_file_preview('[FILE_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-python/examples/storage/get-file-view.md new file mode 100644 index 0000000000..7d0b30b376 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/storage/get-file-view.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +storage = Storage(client) + +result = storage.get_file_view('[FILE_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/storage/get-file.md b/docs/examples/0.9.x/server-python/examples/storage/get-file.md new file mode 100644 index 0000000000..e8d1202e27 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/storage/get-file.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +storage = Storage(client) + +result = storage.get_file('[FILE_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/storage/list-files.md b/docs/examples/0.9.x/server-python/examples/storage/list-files.md new file mode 100644 index 0000000000..0e72773fcb --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/storage/list-files.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +storage = Storage(client) + +result = storage.list_files() diff --git a/docs/examples/0.9.x/server-python/examples/storage/update-file.md b/docs/examples/0.9.x/server-python/examples/storage/update-file.md new file mode 100644 index 0000000000..7e1c5f61cd --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/storage/update-file.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.storage import Storage + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +storage = Storage(client) + +result = storage.update_file('[FILE_ID]', [], []) diff --git a/docs/examples/0.9.x/server-python/examples/teams/create-membership.md b/docs/examples/0.9.x/server-python/examples/teams/create-membership.md new file mode 100644 index 0000000000..9e2c832b3c --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/create-membership.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.create_membership('[TEAM_ID]', 'email@example.com', [], 'https://example.com') diff --git a/docs/examples/0.9.x/server-python/examples/teams/create.md b/docs/examples/0.9.x/server-python/examples/teams/create.md new file mode 100644 index 0000000000..1debdc6109 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/create.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.create('[NAME]') diff --git a/docs/examples/0.9.x/server-python/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-python/examples/teams/delete-membership.md new file mode 100644 index 0000000000..50c259a52d --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/delete-membership.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.delete_membership('[TEAM_ID]', '[MEMBERSHIP_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/teams/delete.md b/docs/examples/0.9.x/server-python/examples/teams/delete.md new file mode 100644 index 0000000000..8fb037cd4a --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/delete.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.delete('[TEAM_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-python/examples/teams/get-memberships.md new file mode 100644 index 0000000000..6c6482418b --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/get-memberships.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.get_memberships('[TEAM_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/teams/get.md b/docs/examples/0.9.x/server-python/examples/teams/get.md new file mode 100644 index 0000000000..6c2b404517 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/get.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.get('[TEAM_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/teams/list.md b/docs/examples/0.9.x/server-python/examples/teams/list.md new file mode 100644 index 0000000000..c538aea340 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/list.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.list() diff --git a/docs/examples/0.9.x/server-python/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-python/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..d637dd6e9c --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/update-membership-roles.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.update_membership_roles('[TEAM_ID]', '[MEMBERSHIP_ID]', []) diff --git a/docs/examples/0.9.x/server-python/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-python/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..357d4091c4 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/update-membership-status.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +) + +teams = Teams(client) + +result = teams.update_membership_status('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]') diff --git a/docs/examples/0.9.x/server-python/examples/teams/update.md b/docs/examples/0.9.x/server-python/examples/teams/update.md new file mode 100644 index 0000000000..2b9c222be0 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/teams/update.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.teams import Teams + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +teams = Teams(client) + +result = teams.update('[TEAM_ID]', '[NAME]') diff --git a/docs/examples/0.9.x/server-python/examples/users/create.md b/docs/examples/0.9.x/server-python/examples/users/create.md new file mode 100644 index 0000000000..2cfe228ee0 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/create.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.create('email@example.com', 'password') diff --git a/docs/examples/0.9.x/server-python/examples/users/delete-session.md b/docs/examples/0.9.x/server-python/examples/users/delete-session.md new file mode 100644 index 0000000000..d25cfb3abc --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/delete-session.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.delete_session('[USER_ID]', '[SESSION_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-python/examples/users/delete-sessions.md new file mode 100644 index 0000000000..9b24db1b5c --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/delete-sessions.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.delete_sessions('[USER_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/users/delete.md b/docs/examples/0.9.x/server-python/examples/users/delete.md new file mode 100644 index 0000000000..820eead71f --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/delete.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.delete('[USER_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/users/get-logs.md b/docs/examples/0.9.x/server-python/examples/users/get-logs.md new file mode 100644 index 0000000000..c93ae244c8 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/get-logs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.get_logs('[USER_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/users/get-prefs.md b/docs/examples/0.9.x/server-python/examples/users/get-prefs.md new file mode 100644 index 0000000000..9ef100f9e6 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/get-prefs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.get_prefs('[USER_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/users/get-sessions.md b/docs/examples/0.9.x/server-python/examples/users/get-sessions.md new file mode 100644 index 0000000000..4de3120dfb --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/get-sessions.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.get_sessions('[USER_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/users/get.md b/docs/examples/0.9.x/server-python/examples/users/get.md new file mode 100644 index 0000000000..c11f96e64b --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/get.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.get('[USER_ID]') diff --git a/docs/examples/0.9.x/server-python/examples/users/list.md b/docs/examples/0.9.x/server-python/examples/users/list.md new file mode 100644 index 0000000000..c4a66e42d2 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/list.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.list() diff --git a/docs/examples/0.9.x/server-python/examples/users/update-prefs.md b/docs/examples/0.9.x/server-python/examples/users/update-prefs.md new file mode 100644 index 0000000000..7e0fe7c35a --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/update-prefs.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.update_prefs('[USER_ID]', {}) diff --git a/docs/examples/0.9.x/server-python/examples/users/update-status.md b/docs/examples/0.9.x/server-python/examples/users/update-status.md new file mode 100644 index 0000000000..4d75a4376c --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/update-status.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.update_status('[USER_ID]', 1) diff --git a/docs/examples/0.9.x/server-python/examples/users/update-verification.md b/docs/examples/0.9.x/server-python/examples/users/update-verification.md new file mode 100644 index 0000000000..6923e034d8 --- /dev/null +++ b/docs/examples/0.9.x/server-python/examples/users/update-verification.md @@ -0,0 +1,14 @@ +from appwrite.client import Client +from appwrite.services.users import Users + +client = Client() + +(client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +) + +users = Users(client) + +result = users.update_verification('[USER_ID]', False) diff --git a/docs/examples/0.9.x/server-ruby/examples/account/create-recovery.md b/docs/examples/0.9.x/server-ruby/examples/account/create-recovery.md new file mode 100644 index 0000000000..91f929a994 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/create-recovery.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.create_recovery(email: 'email@example.com', url: 'https://example.com'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/create-verification.md b/docs/examples/0.9.x/server-ruby/examples/account/create-verification.md new file mode 100644 index 0000000000..9ee79d66cf --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/create-verification.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.create_verification(url: 'https://example.com'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/delete-session.md b/docs/examples/0.9.x/server-ruby/examples/account/delete-session.md new file mode 100644 index 0000000000..747fb27fa8 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/delete-session.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.delete_session(session_id: '[SESSION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/delete-sessions.md b/docs/examples/0.9.x/server-ruby/examples/account/delete-sessions.md new file mode 100644 index 0000000000..b4f1654c15 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/delete-sessions.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.delete_sessions(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/delete.md b/docs/examples/0.9.x/server-ruby/examples/account/delete.md new file mode 100644 index 0000000000..376c239f73 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/delete.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.delete(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/get-logs.md b/docs/examples/0.9.x/server-ruby/examples/account/get-logs.md new file mode 100644 index 0000000000..41d5788505 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/get-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.get_logs(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/get-prefs.md b/docs/examples/0.9.x/server-ruby/examples/account/get-prefs.md new file mode 100644 index 0000000000..7224ccfb61 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/get-prefs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.get_prefs(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/get-session.md b/docs/examples/0.9.x/server-ruby/examples/account/get-session.md new file mode 100644 index 0000000000..224f43e902 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/get-session.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.get_session(session_id: '[SESSION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/get-sessions.md b/docs/examples/0.9.x/server-ruby/examples/account/get-sessions.md new file mode 100644 index 0000000000..0136b2a705 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/get-sessions.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.get_sessions(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/get.md b/docs/examples/0.9.x/server-ruby/examples/account/get.md new file mode 100644 index 0000000000..a58f284f5a --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/get.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.get(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/update-email.md b/docs/examples/0.9.x/server-ruby/examples/account/update-email.md new file mode 100644 index 0000000000..d90047bab7 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/update-email.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.update_email(email: 'email@example.com', password: 'password'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/update-name.md b/docs/examples/0.9.x/server-ruby/examples/account/update-name.md new file mode 100644 index 0000000000..e7266ae5ea --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/update-name.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.update_name(name: '[NAME]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/update-password.md b/docs/examples/0.9.x/server-ruby/examples/account/update-password.md new file mode 100644 index 0000000000..babedf5333 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/update-password.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.update_password(password: 'password'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/update-prefs.md b/docs/examples/0.9.x/server-ruby/examples/account/update-prefs.md new file mode 100644 index 0000000000..1a3e72123e --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/update-prefs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.update_prefs(prefs: {}); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/update-recovery.md b/docs/examples/0.9.x/server-ruby/examples/account/update-recovery.md new file mode 100644 index 0000000000..c12c7dad99 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/update-recovery.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.update_recovery(user_id: '[USER_ID]', secret: '[SECRET]', password: 'password', password_again: 'password'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/account/update-verification.md b/docs/examples/0.9.x/server-ruby/examples/account/update-verification.md new file mode 100644 index 0000000000..ffec506481 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/account/update-verification.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +account = Appwrite::Account.new(client); + +response = account.update_verification(user_id: '[USER_ID]', secret: '[SECRET]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/avatars/get-browser.md b/docs/examples/0.9.x/server-ruby/examples/avatars/get-browser.md new file mode 100644 index 0000000000..fc0cfc913f --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/avatars/get-browser.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +avatars = Appwrite::Avatars.new(client); + +response = avatars.get_browser(code: 'aa'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/avatars/get-credit-card.md b/docs/examples/0.9.x/server-ruby/examples/avatars/get-credit-card.md new file mode 100644 index 0000000000..b3763f0846 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/avatars/get-credit-card.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +avatars = Appwrite::Avatars.new(client); + +response = avatars.get_credit_card(code: 'amex'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/avatars/get-favicon.md b/docs/examples/0.9.x/server-ruby/examples/avatars/get-favicon.md new file mode 100644 index 0000000000..2ee4e75789 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/avatars/get-favicon.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +avatars = Appwrite::Avatars.new(client); + +response = avatars.get_favicon(url: 'https://example.com'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/avatars/get-flag.md b/docs/examples/0.9.x/server-ruby/examples/avatars/get-flag.md new file mode 100644 index 0000000000..2e2f01f0f9 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/avatars/get-flag.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +avatars = Appwrite::Avatars.new(client); + +response = avatars.get_flag(code: 'af'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/avatars/get-image.md b/docs/examples/0.9.x/server-ruby/examples/avatars/get-image.md new file mode 100644 index 0000000000..682d6bf9df --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/avatars/get-image.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +avatars = Appwrite::Avatars.new(client); + +response = avatars.get_image(url: 'https://example.com'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/avatars/get-initials.md b/docs/examples/0.9.x/server-ruby/examples/avatars/get-initials.md new file mode 100644 index 0000000000..11878a6da7 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/avatars/get-initials.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +avatars = Appwrite::Avatars.new(client); + +response = avatars.get_initials(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/0.9.x/server-ruby/examples/avatars/get-q-r.md new file mode 100644 index 0000000000..20c9bfd1b4 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/avatars/get-q-r.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +avatars = Appwrite::Avatars.new(client); + +response = avatars.get_qr(text: '[TEXT]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/create-collection.md b/docs/examples/0.9.x/server-ruby/examples/database/create-collection.md new file mode 100644 index 0000000000..0317ed9f05 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/create-collection.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.create_collection(name: '[NAME]', read: [], write: [], rules: []); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/create-document.md b/docs/examples/0.9.x/server-ruby/examples/database/create-document.md new file mode 100644 index 0000000000..3fcdf0498e --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/create-document.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.create_document(collection_id: '[COLLECTION_ID]', data: {}); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/delete-collection.md b/docs/examples/0.9.x/server-ruby/examples/database/delete-collection.md new file mode 100644 index 0000000000..b91c369da7 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/delete-collection.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.delete_collection(collection_id: '[COLLECTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/delete-document.md b/docs/examples/0.9.x/server-ruby/examples/database/delete-document.md new file mode 100644 index 0000000000..6548ec2946 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/delete-document.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.delete_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/get-collection.md b/docs/examples/0.9.x/server-ruby/examples/database/get-collection.md new file mode 100644 index 0000000000..1e54e94c10 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/get-collection.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.get_collection(collection_id: '[COLLECTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/get-document.md b/docs/examples/0.9.x/server-ruby/examples/database/get-document.md new file mode 100644 index 0000000000..3040b82c03 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/get-document.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.get_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/list-collections.md b/docs/examples/0.9.x/server-ruby/examples/database/list-collections.md new file mode 100644 index 0000000000..ec15fe3b08 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/list-collections.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.list_collections(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/list-documents.md b/docs/examples/0.9.x/server-ruby/examples/database/list-documents.md new file mode 100644 index 0000000000..fa33f10ccf --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/list-documents.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.list_documents(collection_id: '[COLLECTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/update-collection.md b/docs/examples/0.9.x/server-ruby/examples/database/update-collection.md new file mode 100644 index 0000000000..67100bb071 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/update-collection.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.update_collection(collection_id: '[COLLECTION_ID]', name: '[NAME]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/database/update-document.md b/docs/examples/0.9.x/server-ruby/examples/database/update-document.md new file mode 100644 index 0000000000..8aa829cffe --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/database/update-document.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +database = Appwrite::Database.new(client); + +response = database.update_document(collection_id: '[COLLECTION_ID]', document_id: '[DOCUMENT_ID]', data: {}); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/create-execution.md b/docs/examples/0.9.x/server-ruby/examples/functions/create-execution.md new file mode 100644 index 0000000000..775b4d7a98 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/create-execution.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.create_execution(function_id: '[FUNCTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/create-tag.md b/docs/examples/0.9.x/server-ruby/examples/functions/create-tag.md new file mode 100644 index 0000000000..95ec699198 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/create-tag.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.create_tag(function_id: '[FUNCTION_ID]', command: '[COMMAND]', code: Appwrite::File.new()); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/create.md b/docs/examples/0.9.x/server-ruby/examples/functions/create.md new file mode 100644 index 0000000000..4befc834d3 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/create.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.create(name: '[NAME]', execute: [], runtime: 'java-11'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/delete-tag.md b/docs/examples/0.9.x/server-ruby/examples/functions/delete-tag.md new file mode 100644 index 0000000000..72e9b00164 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/delete-tag.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.delete_tag(function_id: '[FUNCTION_ID]', tag_id: '[TAG_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/delete.md b/docs/examples/0.9.x/server-ruby/examples/functions/delete.md new file mode 100644 index 0000000000..41a02e994e --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/delete.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.delete(function_id: '[FUNCTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/get-execution.md b/docs/examples/0.9.x/server-ruby/examples/functions/get-execution.md new file mode 100644 index 0000000000..73e2ddd5d6 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/get-execution.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.get_execution(function_id: '[FUNCTION_ID]', execution_id: '[EXECUTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/get-tag.md b/docs/examples/0.9.x/server-ruby/examples/functions/get-tag.md new file mode 100644 index 0000000000..61c78a0d61 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/get-tag.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.get_tag(function_id: '[FUNCTION_ID]', tag_id: '[TAG_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/get.md b/docs/examples/0.9.x/server-ruby/examples/functions/get.md new file mode 100644 index 0000000000..44d89f873b --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/get.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.get(function_id: '[FUNCTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/list-executions.md b/docs/examples/0.9.x/server-ruby/examples/functions/list-executions.md new file mode 100644 index 0000000000..cd7eef772a --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/list-executions.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.list_executions(function_id: '[FUNCTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/list-tags.md b/docs/examples/0.9.x/server-ruby/examples/functions/list-tags.md new file mode 100644 index 0000000000..ea1a613570 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/list-tags.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.list_tags(function_id: '[FUNCTION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/list.md b/docs/examples/0.9.x/server-ruby/examples/functions/list.md new file mode 100644 index 0000000000..6d5a151bba --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/list.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.list(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/update-tag.md b/docs/examples/0.9.x/server-ruby/examples/functions/update-tag.md new file mode 100644 index 0000000000..e95c8fb945 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/update-tag.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.update_tag(function_id: '[FUNCTION_ID]', tag: '[TAG]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/functions/update.md b/docs/examples/0.9.x/server-ruby/examples/functions/update.md new file mode 100644 index 0000000000..a8ec4f359b --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/functions/update.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +functions = Appwrite::Functions.new(client); + +response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', execute: []); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-anti-virus.md b/docs/examples/0.9.x/server-ruby/examples/health/get-anti-virus.md new file mode 100644 index 0000000000..0c83a06cf8 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-anti-virus.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_anti_virus(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-cache.md b/docs/examples/0.9.x/server-ruby/examples/health/get-cache.md new file mode 100644 index 0000000000..6f51fb6e00 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-cache.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_cache(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-d-b.md b/docs/examples/0.9.x/server-ruby/examples/health/get-d-b.md new file mode 100644 index 0000000000..71a13ad9ce --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-d-b.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_db(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-queue-certificates.md b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-certificates.md new file mode 100644 index 0000000000..f758b7c3a4 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-certificates.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_queue_certificates(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-queue-functions.md b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-functions.md new file mode 100644 index 0000000000..653607f79d --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-functions.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_queue_functions(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-queue-logs.md b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-logs.md new file mode 100644 index 0000000000..c6751f7f91 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_queue_logs(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-queue-tasks.md b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-tasks.md new file mode 100644 index 0000000000..c6da38832e --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-tasks.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_queue_tasks(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-queue-usage.md b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-usage.md new file mode 100644 index 0000000000..ed81452d86 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-usage.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_queue_usage(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-queue-webhooks.md b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-webhooks.md new file mode 100644 index 0000000000..9e55ab1d87 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-queue-webhooks.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_queue_webhooks(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-storage-local.md b/docs/examples/0.9.x/server-ruby/examples/health/get-storage-local.md new file mode 100644 index 0000000000..09c47ae437 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-storage-local.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_storage_local(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get-time.md b/docs/examples/0.9.x/server-ruby/examples/health/get-time.md new file mode 100644 index 0000000000..3d72794e93 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get-time.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get_time(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/health/get.md b/docs/examples/0.9.x/server-ruby/examples/health/get.md new file mode 100644 index 0000000000..9496c31b36 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/health/get.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +health = Appwrite::Health.new(client); + +response = health.get(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/locale/get-continents.md b/docs/examples/0.9.x/server-ruby/examples/locale/get-continents.md new file mode 100644 index 0000000000..92f38922e1 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/locale/get-continents.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +locale = Appwrite::Locale.new(client); + +response = locale.get_continents(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/locale/get-countries-e-u.md b/docs/examples/0.9.x/server-ruby/examples/locale/get-countries-e-u.md new file mode 100644 index 0000000000..68e2667dd1 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/locale/get-countries-e-u.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +locale = Appwrite::Locale.new(client); + +response = locale.get_countries_eu(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/locale/get-countries-phones.md b/docs/examples/0.9.x/server-ruby/examples/locale/get-countries-phones.md new file mode 100644 index 0000000000..728a1b3cdc --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/locale/get-countries-phones.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +locale = Appwrite::Locale.new(client); + +response = locale.get_countries_phones(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/locale/get-countries.md b/docs/examples/0.9.x/server-ruby/examples/locale/get-countries.md new file mode 100644 index 0000000000..54975db928 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/locale/get-countries.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +locale = Appwrite::Locale.new(client); + +response = locale.get_countries(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/locale/get-currencies.md b/docs/examples/0.9.x/server-ruby/examples/locale/get-currencies.md new file mode 100644 index 0000000000..4e39b435e1 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/locale/get-currencies.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +locale = Appwrite::Locale.new(client); + +response = locale.get_currencies(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/locale/get-languages.md b/docs/examples/0.9.x/server-ruby/examples/locale/get-languages.md new file mode 100644 index 0000000000..64e74eece0 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/locale/get-languages.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +locale = Appwrite::Locale.new(client); + +response = locale.get_languages(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/locale/get.md b/docs/examples/0.9.x/server-ruby/examples/locale/get.md new file mode 100644 index 0000000000..b390d505c4 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/locale/get.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +locale = Appwrite::Locale.new(client); + +response = locale.get(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/storage/create-file.md b/docs/examples/0.9.x/server-ruby/examples/storage/create-file.md new file mode 100644 index 0000000000..0b71965bca --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/storage/create-file.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +storage = Appwrite::Storage.new(client); + +response = storage.create_file(file: Appwrite::File.new()); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/storage/delete-file.md b/docs/examples/0.9.x/server-ruby/examples/storage/delete-file.md new file mode 100644 index 0000000000..1aa67b3537 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/storage/delete-file.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +storage = Appwrite::Storage.new(client); + +response = storage.delete_file(file_id: '[FILE_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/storage/get-file-download.md b/docs/examples/0.9.x/server-ruby/examples/storage/get-file-download.md new file mode 100644 index 0000000000..777c565d06 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/storage/get-file-download.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +storage = Appwrite::Storage.new(client); + +response = storage.get_file_download(file_id: '[FILE_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/storage/get-file-preview.md b/docs/examples/0.9.x/server-ruby/examples/storage/get-file-preview.md new file mode 100644 index 0000000000..48be3a044e --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/storage/get-file-preview.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +storage = Appwrite::Storage.new(client); + +response = storage.get_file_preview(file_id: '[FILE_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/storage/get-file-view.md b/docs/examples/0.9.x/server-ruby/examples/storage/get-file-view.md new file mode 100644 index 0000000000..a3dc012098 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/storage/get-file-view.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +storage = Appwrite::Storage.new(client); + +response = storage.get_file_view(file_id: '[FILE_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/storage/get-file.md b/docs/examples/0.9.x/server-ruby/examples/storage/get-file.md new file mode 100644 index 0000000000..203a4dff7c --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/storage/get-file.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +storage = Appwrite::Storage.new(client); + +response = storage.get_file(file_id: '[FILE_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/storage/list-files.md b/docs/examples/0.9.x/server-ruby/examples/storage/list-files.md new file mode 100644 index 0000000000..a148da78f9 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/storage/list-files.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +storage = Appwrite::Storage.new(client); + +response = storage.list_files(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/storage/update-file.md b/docs/examples/0.9.x/server-ruby/examples/storage/update-file.md new file mode 100644 index 0000000000..36d5049816 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/storage/update-file.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +storage = Appwrite::Storage.new(client); + +response = storage.update_file(file_id: '[FILE_ID]', read: [], write: []); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/create-membership.md b/docs/examples/0.9.x/server-ruby/examples/teams/create-membership.md new file mode 100644 index 0000000000..fc0a249361 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/create-membership.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.create_membership(team_id: '[TEAM_ID]', email: 'email@example.com', roles: [], url: 'https://example.com'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/create.md b/docs/examples/0.9.x/server-ruby/examples/teams/create.md new file mode 100644 index 0000000000..d7f9c2f8c0 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/create.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.create(name: '[NAME]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/delete-membership.md b/docs/examples/0.9.x/server-ruby/examples/teams/delete-membership.md new file mode 100644 index 0000000000..960261ddc5 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/delete-membership.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.delete_membership(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/delete.md b/docs/examples/0.9.x/server-ruby/examples/teams/delete.md new file mode 100644 index 0000000000..d28907f741 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/delete.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.delete(team_id: '[TEAM_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/get-memberships.md b/docs/examples/0.9.x/server-ruby/examples/teams/get-memberships.md new file mode 100644 index 0000000000..013d952afc --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/get-memberships.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.get_memberships(team_id: '[TEAM_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/get.md b/docs/examples/0.9.x/server-ruby/examples/teams/get.md new file mode 100644 index 0000000000..1dd4918a12 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/get.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.get(team_id: '[TEAM_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/list.md b/docs/examples/0.9.x/server-ruby/examples/teams/list.md new file mode 100644 index 0000000000..c0cd72a362 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/list.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.list(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/update-membership-roles.md b/docs/examples/0.9.x/server-ruby/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..4fbd42f0cb --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/update-membership-roles.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.update_membership_roles(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]', roles: []); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/update-membership-status.md b/docs/examples/0.9.x/server-ruby/examples/teams/update-membership-status.md new file mode 100644 index 0000000000..24a55540cc --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/update-membership-status.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token +; + +teams = Appwrite::Teams.new(client); + +response = teams.update_membership_status(team_id: '[TEAM_ID]', membership_id: '[MEMBERSHIP_ID]', user_id: '[USER_ID]', secret: '[SECRET]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/teams/update.md b/docs/examples/0.9.x/server-ruby/examples/teams/update.md new file mode 100644 index 0000000000..b7e87a8e09 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/teams/update.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +teams = Appwrite::Teams.new(client); + +response = teams.update(team_id: '[TEAM_ID]', name: '[NAME]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/create.md b/docs/examples/0.9.x/server-ruby/examples/users/create.md new file mode 100644 index 0000000000..0a152ac366 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/create.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.create(email: 'email@example.com', password: 'password'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/delete-session.md b/docs/examples/0.9.x/server-ruby/examples/users/delete-session.md new file mode 100644 index 0000000000..149c7d9293 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/delete-session.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.delete_session(user_id: '[USER_ID]', session_id: '[SESSION_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/delete-sessions.md b/docs/examples/0.9.x/server-ruby/examples/users/delete-sessions.md new file mode 100644 index 0000000000..3f02e08dd1 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/delete-sessions.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.delete_sessions(user_id: '[USER_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/delete.md b/docs/examples/0.9.x/server-ruby/examples/users/delete.md new file mode 100644 index 0000000000..2d86b9e737 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/delete.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.delete(user_id: '[USER_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/get-logs.md b/docs/examples/0.9.x/server-ruby/examples/users/get-logs.md new file mode 100644 index 0000000000..695a77ad27 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/get-logs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.get_logs(user_id: '[USER_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/get-prefs.md b/docs/examples/0.9.x/server-ruby/examples/users/get-prefs.md new file mode 100644 index 0000000000..4a0761e283 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/get-prefs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.get_prefs(user_id: '[USER_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/get-sessions.md b/docs/examples/0.9.x/server-ruby/examples/users/get-sessions.md new file mode 100644 index 0000000000..52f37a4609 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/get-sessions.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.get_sessions(user_id: '[USER_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/get.md b/docs/examples/0.9.x/server-ruby/examples/users/get.md new file mode 100644 index 0000000000..562ac958c3 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/get.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.get(user_id: '[USER_ID]'); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/list.md b/docs/examples/0.9.x/server-ruby/examples/users/list.md new file mode 100644 index 0000000000..096ce859e3 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/list.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.list(); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/update-prefs.md b/docs/examples/0.9.x/server-ruby/examples/users/update-prefs.md new file mode 100644 index 0000000000..2bb2d42e16 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/update-prefs.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.update_prefs(user_id: '[USER_ID]', prefs: {}); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/update-status.md b/docs/examples/0.9.x/server-ruby/examples/users/update-status.md new file mode 100644 index 0000000000..40e80a0a64 --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/update-status.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.update_status(user_id: '[USER_ID]', status: 1); + +puts response \ No newline at end of file diff --git a/docs/examples/0.9.x/server-ruby/examples/users/update-verification.md b/docs/examples/0.9.x/server-ruby/examples/users/update-verification.md new file mode 100644 index 0000000000..c718dc15fd --- /dev/null +++ b/docs/examples/0.9.x/server-ruby/examples/users/update-verification.md @@ -0,0 +1,15 @@ +require 'appwrite' + +client = Appwrite::Client.new() + +client + .set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +; + +users = Appwrite::Users.new(client); + +response = users.update_verification(user_id: '[USER_ID]', email_verification: false); + +puts response \ No newline at end of file From 61d1807a267f63df2c3bdd65cbd222add0719a35 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 1 Jul 2021 23:09:47 +0530 Subject: [PATCH 3/3] feat: review comments --- README.md | 8 ++++---- SECURITY.md | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 164e78acb9..0596bee316 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ [![Build Status](https://img.shields.io/travis/com/appwrite/appwrite?style=flat-square)](https://travis-ci.com/appwrite/appwrite) [![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io) -[**Appwrite 0.9 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-0-8-an-open-source-self-hosted-baas-kda) +[**Appwrite 0.8 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-0-8-an-open-source-self-hosted-baas-kda) Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster. @@ -56,7 +56,7 @@ docker run -it --rm \ --volume /var/run/docker.sock:/var/run/docker.sock \ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ --entrypoint="install" \ - appwrite/appwrite:0.9.0 + appwrite/appwrite:0.8.0 ``` ### Windows @@ -68,7 +68,7 @@ docker run -it --rm ^ --volume //var/run/docker.sock:/var/run/docker.sock ^ --volume "%cd%"/appwrite:/usr/src/code/appwrite:rw ^ --entrypoint="install" ^ - appwrite/appwrite:0.9.0 + appwrite/appwrite:0.8.0 ``` #### PowerShell @@ -78,7 +78,7 @@ docker run -it --rm , --volume /var/run/docker.sock:/var/run/docker.sock , --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw , --entrypoint="install" , - appwrite/appwrite:0.9.0 + appwrite/appwrite:0.8.0 ``` Once the Docker installation completes, go to http://localhost to access the Appwrite console from your browser. Please note that on non-linux native hosts, the server might take a few minutes to start after installation completes. diff --git a/SECURITY.md b/SECURITY.md index dac6cd04e0..66bdeb985f 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -8,7 +8,6 @@ | 0.6.x | :white_check_mark: | | 0.7.x | :white_check_mark: | | 0.8.0 | :white_check_mark: | -| 0.9.0 | :white_check_mark: | ## Reporting a Vulnerability