From bcd866ea1d07bb42097519489bfd830fe271a487 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 2 Sep 2021 12:00:05 +0200 Subject: [PATCH] add docs --- .../account/create-magic-u-r-l-session.md | 48 ++++++++++++++++++ .../account/update-magic-u-r-l-session.md | 49 +++++++++++++++++++ .../account/create-magic-u-r-l-session.md | 26 ++++++++++ .../account/update-magic-u-r-l-session.md | 27 ++++++++++ .../account/create-magic-u-r-l-session.md | 21 ++++++++ .../account/update-magic-u-r-l-session.md | 22 +++++++++ .../examples/storage/create-file.md | 2 +- .../account/create-anonymous-session.md | 2 +- .../examples/account/create-j-w-t.md | 2 +- .../account/create-magic-u-r-l-session.md | 14 ++++++ .../examples/account/create-o-auth2session.md | 2 +- .../examples/account/create-recovery.md | 2 +- .../examples/account/create-session.md | 2 +- .../examples/account/create-verification.md | 2 +- .../client-web/examples/account/create.md | 2 +- .../examples/account/delete-session.md | 2 +- .../examples/account/delete-sessions.md | 2 +- .../client-web/examples/account/delete.md | 2 +- .../client-web/examples/account/get-logs.md | 2 +- .../client-web/examples/account/get-prefs.md | 2 +- .../examples/account/get-session.md | 2 +- .../examples/account/get-sessions.md | 2 +- .../0.10.x/client-web/examples/account/get.md | 2 +- .../examples/account/update-email.md | 2 +- .../account/update-magic-u-r-l-session.md | 14 ++++++ .../examples/account/update-name.md | 2 +- .../examples/account/update-password.md | 2 +- .../examples/account/update-prefs.md | 2 +- .../examples/account/update-recovery.md | 2 +- .../examples/account/update-verification.md | 2 +- .../examples/avatars/get-browser.md | 2 +- .../examples/avatars/get-credit-card.md | 2 +- .../examples/avatars/get-favicon.md | 2 +- .../client-web/examples/avatars/get-flag.md | 2 +- .../client-web/examples/avatars/get-image.md | 2 +- .../examples/avatars/get-initials.md | 2 +- .../client-web/examples/avatars/get-q-r.md | 2 +- .../examples/database/create-document.md | 2 +- .../examples/database/delete-document.md | 2 +- .../examples/database/get-document.md | 2 +- .../examples/database/list-documents.md | 2 +- .../examples/database/update-document.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/functions/get-execution.md | 2 +- .../examples/functions/list-executions.md | 2 +- .../examples/locale/get-continents.md | 2 +- .../examples/locale/get-countries-e-u.md | 2 +- .../examples/locale/get-countries-phones.md | 2 +- .../examples/locale/get-countries.md | 2 +- .../examples/locale/get-currencies.md | 2 +- .../examples/locale/get-languages.md | 2 +- .../0.10.x/client-web/examples/locale/get.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/storage/delete-file.md | 2 +- .../examples/storage/get-file-download.md | 2 +- .../examples/storage/get-file-preview.md | 2 +- .../examples/storage/get-file-view.md | 2 +- .../client-web/examples/storage/get-file.md | 2 +- .../client-web/examples/storage/list-files.md | 2 +- .../examples/storage/update-file.md | 2 +- .../examples/teams/create-membership.md | 2 +- .../client-web/examples/teams/create.md | 2 +- .../examples/teams/delete-membership.md | 2 +- .../client-web/examples/teams/delete.md | 2 +- .../examples/teams/get-memberships.md | 2 +- .../0.10.x/client-web/examples/teams/get.md | 2 +- .../0.10.x/client-web/examples/teams/list.md | 2 +- .../examples/teams/update-membership-roles.md | 2 +- .../teams/update-membership-status.md | 2 +- .../client-web/examples/teams/update.md | 2 +- .../account/create-anonymous-session.md | 2 +- .../examples/account/create-j-w-t.md | 2 +- .../account/create-magic-u-r-l-session.md | 14 ++++++ .../examples/account/create-o-auth2session.md | 2 +- .../examples/account/create-recovery.md | 2 +- .../examples/account/create-session.md | 2 +- .../examples/account/create-verification.md | 2 +- .../console-web/examples/account/create.md | 2 +- .../examples/account/delete-session.md | 2 +- .../examples/account/delete-sessions.md | 2 +- .../console-web/examples/account/delete.md | 2 +- .../console-web/examples/account/get-logs.md | 2 +- .../console-web/examples/account/get-prefs.md | 2 +- .../examples/account/get-session.md | 2 +- .../examples/account/get-sessions.md | 2 +- .../console-web/examples/account/get.md | 2 +- .../examples/account/update-email.md | 2 +- .../account/update-magic-u-r-l-session.md | 14 ++++++ .../examples/account/update-name.md | 2 +- .../examples/account/update-password.md | 2 +- .../examples/account/update-prefs.md | 2 +- .../examples/account/update-recovery.md | 2 +- .../examples/account/update-verification.md | 2 +- .../examples/avatars/get-browser.md | 2 +- .../examples/avatars/get-credit-card.md | 2 +- .../examples/avatars/get-favicon.md | 2 +- .../console-web/examples/avatars/get-flag.md | 2 +- .../console-web/examples/avatars/get-image.md | 2 +- .../examples/avatars/get-initials.md | 2 +- .../console-web/examples/avatars/get-q-r.md | 2 +- .../examples/database/create-collection.md | 2 +- .../examples/database/create-document.md | 2 +- .../examples/database/delete-collection.md | 2 +- .../examples/database/delete-document.md | 2 +- .../examples/database/get-collection.md | 2 +- .../examples/database/get-document.md | 2 +- .../examples/database/list-collections.md | 2 +- .../examples/database/list-documents.md | 2 +- .../examples/database/update-collection.md | 2 +- .../examples/database/update-document.md | 2 +- .../examples/functions/create-execution.md | 2 +- .../examples/functions/create-tag.md | 2 +- .../console-web/examples/functions/create.md | 4 +- .../examples/functions/delete-tag.md | 2 +- .../console-web/examples/functions/delete.md | 2 +- .../examples/functions/get-execution.md | 2 +- .../console-web/examples/functions/get-tag.md | 2 +- .../examples/functions/get-usage.md | 2 +- .../console-web/examples/functions/get.md | 2 +- .../examples/functions/list-executions.md | 2 +- .../examples/functions/list-tags.md | 2 +- .../console-web/examples/functions/list.md | 2 +- .../examples/functions/update-tag.md | 2 +- .../console-web/examples/functions/update.md | 2 +- .../examples/health/get-anti-virus.md | 2 +- .../console-web/examples/health/get-cache.md | 2 +- .../console-web/examples/health/get-d-b.md | 2 +- .../examples/health/get-queue-certificates.md | 2 +- .../examples/health/get-queue-functions.md | 2 +- .../examples/health/get-queue-logs.md | 2 +- .../examples/health/get-queue-tasks.md | 2 +- .../examples/health/get-queue-usage.md | 2 +- .../examples/health/get-queue-webhooks.md | 2 +- .../examples/health/get-storage-local.md | 2 +- .../console-web/examples/health/get-time.md | 2 +- .../0.10.x/console-web/examples/health/get.md | 2 +- .../examples/locale/get-continents.md | 2 +- .../examples/locale/get-countries-e-u.md | 2 +- .../examples/locale/get-countries-phones.md | 2 +- .../examples/locale/get-countries.md | 2 +- .../examples/locale/get-currencies.md | 2 +- .../examples/locale/get-languages.md | 2 +- .../0.10.x/console-web/examples/locale/get.md | 2 +- .../examples/projects/create-domain.md | 2 +- .../examples/projects/create-key.md | 2 +- .../examples/projects/create-platform.md | 2 +- .../examples/projects/create-task.md | 2 +- .../examples/projects/create-webhook.md | 2 +- .../console-web/examples/projects/create.md | 2 +- .../examples/projects/delete-domain.md | 2 +- .../examples/projects/delete-key.md | 2 +- .../examples/projects/delete-platform.md | 2 +- .../examples/projects/delete-task.md | 2 +- .../examples/projects/delete-webhook.md | 2 +- .../console-web/examples/projects/delete.md | 2 +- .../examples/projects/get-domain.md | 2 +- .../console-web/examples/projects/get-key.md | 2 +- .../examples/projects/get-platform.md | 2 +- .../console-web/examples/projects/get-task.md | 2 +- .../examples/projects/get-usage.md | 2 +- .../examples/projects/get-webhook.md | 2 +- .../console-web/examples/projects/get.md | 2 +- .../examples/projects/list-domains.md | 2 +- .../examples/projects/list-keys.md | 2 +- .../examples/projects/list-platforms.md | 2 +- .../examples/projects/list-tasks.md | 2 +- .../examples/projects/list-webhooks.md | 2 +- .../console-web/examples/projects/list.md | 2 +- .../examples/projects/update-auth-limit.md | 2 +- .../examples/projects/update-auth-status.md | 2 +- .../projects/update-domain-verification.md | 2 +- .../examples/projects/update-key.md | 2 +- .../examples/projects/update-o-auth2.md | 2 +- .../examples/projects/update-platform.md | 2 +- .../examples/projects/update-task.md | 2 +- .../examples/projects/update-webhook.md | 2 +- .../console-web/examples/projects/update.md | 2 +- .../examples/storage/create-file.md | 2 +- .../examples/storage/delete-file.md | 2 +- .../examples/storage/get-file-download.md | 2 +- .../examples/storage/get-file-preview.md | 2 +- .../examples/storage/get-file-view.md | 2 +- .../console-web/examples/storage/get-file.md | 2 +- .../examples/storage/list-files.md | 2 +- .../examples/storage/update-file.md | 2 +- .../examples/teams/create-membership.md | 2 +- .../console-web/examples/teams/create.md | 2 +- .../examples/teams/delete-membership.md | 2 +- .../console-web/examples/teams/delete.md | 2 +- .../examples/teams/get-memberships.md | 2 +- .../0.10.x/console-web/examples/teams/get.md | 2 +- .../0.10.x/console-web/examples/teams/list.md | 2 +- .../examples/teams/update-membership-roles.md | 2 +- .../teams/update-membership-status.md | 2 +- .../console-web/examples/teams/update.md | 2 +- .../console-web/examples/users/create.md | 2 +- .../examples/users/delete-session.md | 2 +- .../examples/users/delete-sessions.md | 2 +- .../console-web/examples/users/delete.md | 2 +- .../console-web/examples/users/get-logs.md | 2 +- .../console-web/examples/users/get-prefs.md | 2 +- .../examples/users/get-sessions.md | 2 +- .../0.10.x/console-web/examples/users/get.md | 2 +- .../0.10.x/console-web/examples/users/list.md | 2 +- .../examples/users/update-email.md | 2 +- .../console-web/examples/users/update-name.md | 2 +- .../examples/users/update-password.md | 2 +- .../examples/users/update-prefs.md | 2 +- .../examples/users/update-status.md | 2 +- .../examples/users/update-verification.md | 2 +- .../server-cli/examples/functions/create.md | 2 +- .../examples/functions/create-tag.md | 2 +- .../server-dart/examples/functions/create.md | 2 +- .../examples/storage/create-file.md | 2 +- .../server-deno/examples/functions/create.md | 2 +- .../examples/functions/create.md | 2 +- .../server-kotlin/java/functions/create.md | 2 +- .../server-kotlin/kotlin/functions/create.md | 2 +- .../examples/functions/create.md | 2 +- .../server-php/examples/functions/create.md | 2 +- .../examples/functions/create.md | 2 +- .../server-ruby/examples/functions/create.md | 2 +- 222 files changed, 462 insertions(+), 213 deletions(-) create mode 100644 docs/examples/0.10.x/client-android/java/account/create-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/client-android/java/account/update-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/client-android/kotlin/account/create-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/client-android/kotlin/account/update-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/client-flutter/examples/account/create-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/client-flutter/examples/account/update-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/client-web/examples/account/create-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/client-web/examples/account/update-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/console-web/examples/account/create-magic-u-r-l-session.md create mode 100644 docs/examples/0.10.x/console-web/examples/account/update-magic-u-r-l-session.md diff --git a/docs/examples/0.10.x/client-android/java/account/create-magic-u-r-l-session.md b/docs/examples/0.10.x/client-android/java/account/create-magic-u-r-l-session.md new file mode 100644 index 0000000000..36fc58ab17 --- /dev/null +++ b/docs/examples/0.10.x/client-android/java/account/create-magic-u-r-l-session.md @@ -0,0 +1,48 @@ +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 + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + Client client = new Client(getApplicationContext()) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2"); // Your project ID + + Account account = new Account(client); + + account.createMagicURLSession( + "email@example.com", + new Continuation() { + @NotNull + @Override + public CoroutineContext getContext() { + return EmptyCoroutineContext.INSTANCE; + } + + @Override + public void resumeWith(@NotNull Object o) { + String json = ""; + try { + if (o instanceof Result.Failure) { + Result.Failure failure = (Result.Failure) o; + throw failure.exception; + } else { + Response response = (Response) o; + json = response.body().string(); + } + } catch (Throwable th) { + Log.e("ERROR", th.toString()); + } + } + } + ); + } +} \ No newline at end of file diff --git a/docs/examples/0.10.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/0.10.x/client-android/java/account/update-magic-u-r-l-session.md new file mode 100644 index 0000000000..d0734e18ee --- /dev/null +++ b/docs/examples/0.10.x/client-android/java/account/update-magic-u-r-l-session.md @@ -0,0 +1,49 @@ +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 + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + Client client = new Client(getApplicationContext()) + .setEndpoint("https://[HOSTNAME_OR_IP]/v1") // Your API Endpoint + .setProject("5df5acd0d48c2"); // Your project ID + + Account account = new Account(client); + + account.updateMagicURLSession( + "[USER_ID]", + "[SECRET]" + new Continuation() { + @NotNull + @Override + public CoroutineContext getContext() { + return EmptyCoroutineContext.INSTANCE; + } + + @Override + public void resumeWith(@NotNull Object o) { + String json = ""; + try { + if (o instanceof Result.Failure) { + Result.Failure failure = (Result.Failure) o; + throw failure.exception; + } else { + Response response = (Response) o; + json = response.body().string(); + } + } catch (Throwable th) { + Log.e("ERROR", th.toString()); + } + } + } + ); + } +} \ No newline at end of file diff --git a/docs/examples/0.10.x/client-android/kotlin/account/create-magic-u-r-l-session.md b/docs/examples/0.10.x/client-android/kotlin/account/create-magic-u-r-l-session.md new file mode 100644 index 0000000000..c803d1a0dc --- /dev/null +++ b/docs/examples/0.10.x/client-android/kotlin/account/create-magic-u-r-l-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.createMagicURLSession( + email = "email@example.com", + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.10.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/0.10.x/client-android/kotlin/account/update-magic-u-r-l-session.md new file mode 100644 index 0000000000..3fe1b7c26e --- /dev/null +++ b/docs/examples/0.10.x/client-android/kotlin/account/update-magic-u-r-l-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.updateMagicURLSession( + userId = "[USER_ID]", + secret = "[SECRET]" + ) + val json = response.body?.string() + } + } +} \ No newline at end of file diff --git a/docs/examples/0.10.x/client-flutter/examples/account/create-magic-u-r-l-session.md b/docs/examples/0.10.x/client-flutter/examples/account/create-magic-u-r-l-session.md new file mode 100644 index 0000000000..442ba0d479 --- /dev/null +++ b/docs/examples/0.10.x/client-flutter/examples/account/create-magic-u-r-l-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.createMagicURLSession( + email: 'email@example.com', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.10.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/0.10.x/client-flutter/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 0000000000..96881103b5 --- /dev/null +++ b/docs/examples/0.10.x/client-flutter/examples/account/update-magic-u-r-l-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.updateMagicURLSession( + userId: '[USER_ID]', + secret: '[SECRET]', + ); + + result + .then((response) { + print(response); + }).catchError((error) { + print(error.response); + }); +} diff --git a/docs/examples/0.10.x/client-flutter/examples/storage/create-file.md b/docs/examples/0.10.x/client-flutter/examples/storage/create-file.md index 64c7881124..bc83e806b3 100644 --- a/docs/examples/0.10.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/0.10.x/client-flutter/examples/storage/create-file.md @@ -10,7 +10,7 @@ void main() { // Init SDK .setProject('5df5acd0d48c2') // Your project ID ; Future result = storage.createFile( - file: await MultipartFile.fromFile('./path-to-files/image.jpg', 'image.jpg'), + file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'), ); result diff --git a/docs/examples/0.10.x/client-web/examples/account/create-anonymous-session.md b/docs/examples/0.10.x/client-web/examples/account/create-anonymous-session.md index 2be824e813..8979218e0f 100644 --- a/docs/examples/0.10.x/client-web/examples/account/create-anonymous-session.md +++ b/docs/examples/0.10.x/client-web/examples/account/create-anonymous-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/create-j-w-t.md b/docs/examples/0.10.x/client-web/examples/account/create-j-w-t.md index f868c802d7..cf00356375 100644 --- a/docs/examples/0.10.x/client-web/examples/account/create-j-w-t.md +++ b/docs/examples/0.10.x/client-web/examples/account/create-j-w-t.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/0.10.x/client-web/examples/account/create-magic-u-r-l-session.md new file mode 100644 index 0000000000..8fa3212157 --- /dev/null +++ b/docs/examples/0.10.x/client-web/examples/account/create-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +const sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createMagicURLSession('email@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.10.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/0.10.x/client-web/examples/account/create-o-auth2session.md index 25b02e632e..886a8f8480 100644 --- a/docs/examples/0.10.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/0.10.x/client-web/examples/account/create-o-auth2session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/create-recovery.md b/docs/examples/0.10.x/client-web/examples/account/create-recovery.md index 72130f4de4..f57e926e9b 100644 --- a/docs/examples/0.10.x/client-web/examples/account/create-recovery.md +++ b/docs/examples/0.10.x/client-web/examples/account/create-recovery.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/create-session.md b/docs/examples/0.10.x/client-web/examples/account/create-session.md index 4a7682c13d..f41438306e 100644 --- a/docs/examples/0.10.x/client-web/examples/account/create-session.md +++ b/docs/examples/0.10.x/client-web/examples/account/create-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/create-verification.md b/docs/examples/0.10.x/client-web/examples/account/create-verification.md index 7903384a9f..6a00f1a3e1 100644 --- a/docs/examples/0.10.x/client-web/examples/account/create-verification.md +++ b/docs/examples/0.10.x/client-web/examples/account/create-verification.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/create.md b/docs/examples/0.10.x/client-web/examples/account/create.md index c9ce798b6a..db7a0938bb 100644 --- a/docs/examples/0.10.x/client-web/examples/account/create.md +++ b/docs/examples/0.10.x/client-web/examples/account/create.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/delete-session.md b/docs/examples/0.10.x/client-web/examples/account/delete-session.md index 581e5d132d..b3f46d15a9 100644 --- a/docs/examples/0.10.x/client-web/examples/account/delete-session.md +++ b/docs/examples/0.10.x/client-web/examples/account/delete-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/delete-sessions.md b/docs/examples/0.10.x/client-web/examples/account/delete-sessions.md index d037673eb3..e89ba3087a 100644 --- a/docs/examples/0.10.x/client-web/examples/account/delete-sessions.md +++ b/docs/examples/0.10.x/client-web/examples/account/delete-sessions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/delete.md b/docs/examples/0.10.x/client-web/examples/account/delete.md index d952d77d7a..ad281d7a3c 100644 --- a/docs/examples/0.10.x/client-web/examples/account/delete.md +++ b/docs/examples/0.10.x/client-web/examples/account/delete.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/get-logs.md b/docs/examples/0.10.x/client-web/examples/account/get-logs.md index c53e0446e9..f382d7216c 100644 --- a/docs/examples/0.10.x/client-web/examples/account/get-logs.md +++ b/docs/examples/0.10.x/client-web/examples/account/get-logs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/get-prefs.md b/docs/examples/0.10.x/client-web/examples/account/get-prefs.md index 75835e37fb..99e86d4f1d 100644 --- a/docs/examples/0.10.x/client-web/examples/account/get-prefs.md +++ b/docs/examples/0.10.x/client-web/examples/account/get-prefs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/get-session.md b/docs/examples/0.10.x/client-web/examples/account/get-session.md index 5bc8690b78..79ec93f6e9 100644 --- a/docs/examples/0.10.x/client-web/examples/account/get-session.md +++ b/docs/examples/0.10.x/client-web/examples/account/get-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/get-sessions.md b/docs/examples/0.10.x/client-web/examples/account/get-sessions.md index b4434de336..384e6fa347 100644 --- a/docs/examples/0.10.x/client-web/examples/account/get-sessions.md +++ b/docs/examples/0.10.x/client-web/examples/account/get-sessions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/get.md b/docs/examples/0.10.x/client-web/examples/account/get.md index f0184a8513..cc933152a2 100644 --- a/docs/examples/0.10.x/client-web/examples/account/get.md +++ b/docs/examples/0.10.x/client-web/examples/account/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/update-email.md b/docs/examples/0.10.x/client-web/examples/account/update-email.md index f48fed78bc..e4a68e25c9 100644 --- a/docs/examples/0.10.x/client-web/examples/account/update-email.md +++ b/docs/examples/0.10.x/client-web/examples/account/update-email.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/0.10.x/client-web/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 0000000000..3c00386b7f --- /dev/null +++ b/docs/examples/0.10.x/client-web/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +const sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateMagicURLSession('[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.10.x/client-web/examples/account/update-name.md b/docs/examples/0.10.x/client-web/examples/account/update-name.md index e03e72c4b2..ff782195b1 100644 --- a/docs/examples/0.10.x/client-web/examples/account/update-name.md +++ b/docs/examples/0.10.x/client-web/examples/account/update-name.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/update-password.md b/docs/examples/0.10.x/client-web/examples/account/update-password.md index acb360267e..d551ed726f 100644 --- a/docs/examples/0.10.x/client-web/examples/account/update-password.md +++ b/docs/examples/0.10.x/client-web/examples/account/update-password.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/update-prefs.md b/docs/examples/0.10.x/client-web/examples/account/update-prefs.md index b2d4ff175e..232b77025b 100644 --- a/docs/examples/0.10.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/0.10.x/client-web/examples/account/update-prefs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/update-recovery.md b/docs/examples/0.10.x/client-web/examples/account/update-recovery.md index 33cf1b63c9..6fe36c017e 100644 --- a/docs/examples/0.10.x/client-web/examples/account/update-recovery.md +++ b/docs/examples/0.10.x/client-web/examples/account/update-recovery.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/account/update-verification.md b/docs/examples/0.10.x/client-web/examples/account/update-verification.md index a80e125e30..e3312c5d5b 100644 --- a/docs/examples/0.10.x/client-web/examples/account/update-verification.md +++ b/docs/examples/0.10.x/client-web/examples/account/update-verification.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/avatars/get-browser.md b/docs/examples/0.10.x/client-web/examples/avatars/get-browser.md index 0855209f58..fe0143b818 100644 --- a/docs/examples/0.10.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/0.10.x/client-web/examples/avatars/get-browser.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/0.10.x/client-web/examples/avatars/get-credit-card.md index 1aa595bd65..5477094ca5 100644 --- a/docs/examples/0.10.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/0.10.x/client-web/examples/avatars/get-credit-card.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/avatars/get-favicon.md b/docs/examples/0.10.x/client-web/examples/avatars/get-favicon.md index a945e50bb2..1327bb7384 100644 --- a/docs/examples/0.10.x/client-web/examples/avatars/get-favicon.md +++ b/docs/examples/0.10.x/client-web/examples/avatars/get-favicon.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/avatars/get-flag.md b/docs/examples/0.10.x/client-web/examples/avatars/get-flag.md index 222b388afc..13a90c3075 100644 --- a/docs/examples/0.10.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/0.10.x/client-web/examples/avatars/get-flag.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/avatars/get-image.md b/docs/examples/0.10.x/client-web/examples/avatars/get-image.md index 3f15981c71..82cb205a74 100644 --- a/docs/examples/0.10.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/0.10.x/client-web/examples/avatars/get-image.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/avatars/get-initials.md b/docs/examples/0.10.x/client-web/examples/avatars/get-initials.md index ef04988e2d..a3da13d460 100644 --- a/docs/examples/0.10.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/0.10.x/client-web/examples/avatars/get-initials.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/avatars/get-q-r.md b/docs/examples/0.10.x/client-web/examples/avatars/get-q-r.md index 9d9ee3fea2..c900a63531 100644 --- a/docs/examples/0.10.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/0.10.x/client-web/examples/avatars/get-q-r.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/database/create-document.md b/docs/examples/0.10.x/client-web/examples/database/create-document.md index 0235ba797f..43b13053be 100644 --- a/docs/examples/0.10.x/client-web/examples/database/create-document.md +++ b/docs/examples/0.10.x/client-web/examples/database/create-document.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/database/delete-document.md b/docs/examples/0.10.x/client-web/examples/database/delete-document.md index 79799b6907..557662966d 100644 --- a/docs/examples/0.10.x/client-web/examples/database/delete-document.md +++ b/docs/examples/0.10.x/client-web/examples/database/delete-document.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/database/get-document.md b/docs/examples/0.10.x/client-web/examples/database/get-document.md index b9605dccc6..841157f551 100644 --- a/docs/examples/0.10.x/client-web/examples/database/get-document.md +++ b/docs/examples/0.10.x/client-web/examples/database/get-document.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/database/list-documents.md b/docs/examples/0.10.x/client-web/examples/database/list-documents.md index 14f8a423a1..620137cf8e 100644 --- a/docs/examples/0.10.x/client-web/examples/database/list-documents.md +++ b/docs/examples/0.10.x/client-web/examples/database/list-documents.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/database/update-document.md b/docs/examples/0.10.x/client-web/examples/database/update-document.md index 23b9f49504..b07b2ecac1 100644 --- a/docs/examples/0.10.x/client-web/examples/database/update-document.md +++ b/docs/examples/0.10.x/client-web/examples/database/update-document.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/functions/create-execution.md b/docs/examples/0.10.x/client-web/examples/functions/create-execution.md index 1afc158d87..87dc73a205 100644 --- a/docs/examples/0.10.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/0.10.x/client-web/examples/functions/create-execution.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/functions/get-execution.md b/docs/examples/0.10.x/client-web/examples/functions/get-execution.md index 10a9f814db..a8a0c4a0c8 100644 --- a/docs/examples/0.10.x/client-web/examples/functions/get-execution.md +++ b/docs/examples/0.10.x/client-web/examples/functions/get-execution.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/functions/list-executions.md b/docs/examples/0.10.x/client-web/examples/functions/list-executions.md index f481d71919..82652ddb6c 100644 --- a/docs/examples/0.10.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/0.10.x/client-web/examples/functions/list-executions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/locale/get-continents.md b/docs/examples/0.10.x/client-web/examples/locale/get-continents.md index 1dfdf8013b..f0798a820c 100644 --- a/docs/examples/0.10.x/client-web/examples/locale/get-continents.md +++ b/docs/examples/0.10.x/client-web/examples/locale/get-continents.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/locale/get-countries-e-u.md b/docs/examples/0.10.x/client-web/examples/locale/get-countries-e-u.md index 6b3f210a1e..7bc6aa2d50 100644 --- a/docs/examples/0.10.x/client-web/examples/locale/get-countries-e-u.md +++ b/docs/examples/0.10.x/client-web/examples/locale/get-countries-e-u.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/locale/get-countries-phones.md b/docs/examples/0.10.x/client-web/examples/locale/get-countries-phones.md index f35e2152e4..e92982c1a2 100644 --- a/docs/examples/0.10.x/client-web/examples/locale/get-countries-phones.md +++ b/docs/examples/0.10.x/client-web/examples/locale/get-countries-phones.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/locale/get-countries.md b/docs/examples/0.10.x/client-web/examples/locale/get-countries.md index 53b96375a1..bb12e6ab5f 100644 --- a/docs/examples/0.10.x/client-web/examples/locale/get-countries.md +++ b/docs/examples/0.10.x/client-web/examples/locale/get-countries.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/locale/get-currencies.md b/docs/examples/0.10.x/client-web/examples/locale/get-currencies.md index 57db66401f..3382c2015c 100644 --- a/docs/examples/0.10.x/client-web/examples/locale/get-currencies.md +++ b/docs/examples/0.10.x/client-web/examples/locale/get-currencies.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/locale/get-languages.md b/docs/examples/0.10.x/client-web/examples/locale/get-languages.md index 04e3063ee7..a7fa4a0170 100644 --- a/docs/examples/0.10.x/client-web/examples/locale/get-languages.md +++ b/docs/examples/0.10.x/client-web/examples/locale/get-languages.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/locale/get.md b/docs/examples/0.10.x/client-web/examples/locale/get.md index 469a046dbc..89ade06941 100644 --- a/docs/examples/0.10.x/client-web/examples/locale/get.md +++ b/docs/examples/0.10.x/client-web/examples/locale/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/storage/create-file.md b/docs/examples/0.10.x/client-web/examples/storage/create-file.md index 00864e7320..55d8e413ca 100644 --- a/docs/examples/0.10.x/client-web/examples/storage/create-file.md +++ b/docs/examples/0.10.x/client-web/examples/storage/create-file.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/storage/delete-file.md b/docs/examples/0.10.x/client-web/examples/storage/delete-file.md index c38ab4ba9c..cb2e3fa989 100644 --- a/docs/examples/0.10.x/client-web/examples/storage/delete-file.md +++ b/docs/examples/0.10.x/client-web/examples/storage/delete-file.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/storage/get-file-download.md b/docs/examples/0.10.x/client-web/examples/storage/get-file-download.md index 1323b8b8df..2dc5f6198c 100644 --- a/docs/examples/0.10.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/0.10.x/client-web/examples/storage/get-file-download.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/storage/get-file-preview.md b/docs/examples/0.10.x/client-web/examples/storage/get-file-preview.md index 5ede9fdb93..51ba8236b9 100644 --- a/docs/examples/0.10.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/0.10.x/client-web/examples/storage/get-file-preview.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/storage/get-file-view.md b/docs/examples/0.10.x/client-web/examples/storage/get-file-view.md index 53877ae352..dc59fc3644 100644 --- a/docs/examples/0.10.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/0.10.x/client-web/examples/storage/get-file-view.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/storage/get-file.md b/docs/examples/0.10.x/client-web/examples/storage/get-file.md index a1f94c08a6..348757a4dd 100644 --- a/docs/examples/0.10.x/client-web/examples/storage/get-file.md +++ b/docs/examples/0.10.x/client-web/examples/storage/get-file.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/storage/list-files.md b/docs/examples/0.10.x/client-web/examples/storage/list-files.md index c489a0b46d..f4da49cbf6 100644 --- a/docs/examples/0.10.x/client-web/examples/storage/list-files.md +++ b/docs/examples/0.10.x/client-web/examples/storage/list-files.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/storage/update-file.md b/docs/examples/0.10.x/client-web/examples/storage/update-file.md index 2a2f579b3b..11443b3dbd 100644 --- a/docs/examples/0.10.x/client-web/examples/storage/update-file.md +++ b/docs/examples/0.10.x/client-web/examples/storage/update-file.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/create-membership.md b/docs/examples/0.10.x/client-web/examples/teams/create-membership.md index 78b2d7fa77..68b7f2be17 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/0.10.x/client-web/examples/teams/create-membership.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/create.md b/docs/examples/0.10.x/client-web/examples/teams/create.md index 43205ba888..51271dfd9f 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/create.md +++ b/docs/examples/0.10.x/client-web/examples/teams/create.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/delete-membership.md b/docs/examples/0.10.x/client-web/examples/teams/delete-membership.md index 466b963df2..46916ab1f4 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/delete-membership.md +++ b/docs/examples/0.10.x/client-web/examples/teams/delete-membership.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/delete.md b/docs/examples/0.10.x/client-web/examples/teams/delete.md index 4665ad5773..e04f9f505a 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/delete.md +++ b/docs/examples/0.10.x/client-web/examples/teams/delete.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/get-memberships.md b/docs/examples/0.10.x/client-web/examples/teams/get-memberships.md index 6235ce33f4..c23f190cbe 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/get-memberships.md +++ b/docs/examples/0.10.x/client-web/examples/teams/get-memberships.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/get.md b/docs/examples/0.10.x/client-web/examples/teams/get.md index f4b0f040b1..c05bd59a0b 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/get.md +++ b/docs/examples/0.10.x/client-web/examples/teams/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/list.md b/docs/examples/0.10.x/client-web/examples/teams/list.md index c4229e2400..1e1a974d80 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/list.md +++ b/docs/examples/0.10.x/client-web/examples/teams/list.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/update-membership-roles.md b/docs/examples/0.10.x/client-web/examples/teams/update-membership-roles.md index ee8d7fcb93..1d25e2601e 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/update-membership-roles.md +++ b/docs/examples/0.10.x/client-web/examples/teams/update-membership-roles.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/update-membership-status.md b/docs/examples/0.10.x/client-web/examples/teams/update-membership-status.md index ea68d9bc08..032f162501 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/update-membership-status.md +++ b/docs/examples/0.10.x/client-web/examples/teams/update-membership-status.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/client-web/examples/teams/update.md b/docs/examples/0.10.x/client-web/examples/teams/update.md index bbab80937d..bcf53d1605 100644 --- a/docs/examples/0.10.x/client-web/examples/teams/update.md +++ b/docs/examples/0.10.x/client-web/examples/teams/update.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/create-anonymous-session.md b/docs/examples/0.10.x/console-web/examples/account/create-anonymous-session.md index 2be824e813..8979218e0f 100644 --- a/docs/examples/0.10.x/console-web/examples/account/create-anonymous-session.md +++ b/docs/examples/0.10.x/console-web/examples/account/create-anonymous-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/create-j-w-t.md b/docs/examples/0.10.x/console-web/examples/account/create-j-w-t.md index f868c802d7..cf00356375 100644 --- a/docs/examples/0.10.x/console-web/examples/account/create-j-w-t.md +++ b/docs/examples/0.10.x/console-web/examples/account/create-j-w-t.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/create-magic-u-r-l-session.md b/docs/examples/0.10.x/console-web/examples/account/create-magic-u-r-l-session.md new file mode 100644 index 0000000000..8fa3212157 --- /dev/null +++ b/docs/examples/0.10.x/console-web/examples/account/create-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +const sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.createMagicURLSession('email@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.10.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/0.10.x/console-web/examples/account/create-o-auth2session.md index 25b02e632e..886a8f8480 100644 --- a/docs/examples/0.10.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/0.10.x/console-web/examples/account/create-o-auth2session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/create-recovery.md b/docs/examples/0.10.x/console-web/examples/account/create-recovery.md index 72130f4de4..f57e926e9b 100644 --- a/docs/examples/0.10.x/console-web/examples/account/create-recovery.md +++ b/docs/examples/0.10.x/console-web/examples/account/create-recovery.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/create-session.md b/docs/examples/0.10.x/console-web/examples/account/create-session.md index 4a7682c13d..f41438306e 100644 --- a/docs/examples/0.10.x/console-web/examples/account/create-session.md +++ b/docs/examples/0.10.x/console-web/examples/account/create-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/create-verification.md b/docs/examples/0.10.x/console-web/examples/account/create-verification.md index 7903384a9f..6a00f1a3e1 100644 --- a/docs/examples/0.10.x/console-web/examples/account/create-verification.md +++ b/docs/examples/0.10.x/console-web/examples/account/create-verification.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/create.md b/docs/examples/0.10.x/console-web/examples/account/create.md index c9ce798b6a..db7a0938bb 100644 --- a/docs/examples/0.10.x/console-web/examples/account/create.md +++ b/docs/examples/0.10.x/console-web/examples/account/create.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/delete-session.md b/docs/examples/0.10.x/console-web/examples/account/delete-session.md index 581e5d132d..b3f46d15a9 100644 --- a/docs/examples/0.10.x/console-web/examples/account/delete-session.md +++ b/docs/examples/0.10.x/console-web/examples/account/delete-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/delete-sessions.md b/docs/examples/0.10.x/console-web/examples/account/delete-sessions.md index d037673eb3..e89ba3087a 100644 --- a/docs/examples/0.10.x/console-web/examples/account/delete-sessions.md +++ b/docs/examples/0.10.x/console-web/examples/account/delete-sessions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/delete.md b/docs/examples/0.10.x/console-web/examples/account/delete.md index d952d77d7a..ad281d7a3c 100644 --- a/docs/examples/0.10.x/console-web/examples/account/delete.md +++ b/docs/examples/0.10.x/console-web/examples/account/delete.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/get-logs.md b/docs/examples/0.10.x/console-web/examples/account/get-logs.md index c53e0446e9..f382d7216c 100644 --- a/docs/examples/0.10.x/console-web/examples/account/get-logs.md +++ b/docs/examples/0.10.x/console-web/examples/account/get-logs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/get-prefs.md b/docs/examples/0.10.x/console-web/examples/account/get-prefs.md index 75835e37fb..99e86d4f1d 100644 --- a/docs/examples/0.10.x/console-web/examples/account/get-prefs.md +++ b/docs/examples/0.10.x/console-web/examples/account/get-prefs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/get-session.md b/docs/examples/0.10.x/console-web/examples/account/get-session.md index 5bc8690b78..79ec93f6e9 100644 --- a/docs/examples/0.10.x/console-web/examples/account/get-session.md +++ b/docs/examples/0.10.x/console-web/examples/account/get-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/get-sessions.md b/docs/examples/0.10.x/console-web/examples/account/get-sessions.md index b4434de336..384e6fa347 100644 --- a/docs/examples/0.10.x/console-web/examples/account/get-sessions.md +++ b/docs/examples/0.10.x/console-web/examples/account/get-sessions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/get.md b/docs/examples/0.10.x/console-web/examples/account/get.md index f0184a8513..cc933152a2 100644 --- a/docs/examples/0.10.x/console-web/examples/account/get.md +++ b/docs/examples/0.10.x/console-web/examples/account/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/update-email.md b/docs/examples/0.10.x/console-web/examples/account/update-email.md index f48fed78bc..e4a68e25c9 100644 --- a/docs/examples/0.10.x/console-web/examples/account/update-email.md +++ b/docs/examples/0.10.x/console-web/examples/account/update-email.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/0.10.x/console-web/examples/account/update-magic-u-r-l-session.md new file mode 100644 index 0000000000..3c00386b7f --- /dev/null +++ b/docs/examples/0.10.x/console-web/examples/account/update-magic-u-r-l-session.md @@ -0,0 +1,14 @@ +const sdk = new Appwrite(); + +sdk + .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +let promise = sdk.account.updateMagicURLSession('[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.10.x/console-web/examples/account/update-name.md b/docs/examples/0.10.x/console-web/examples/account/update-name.md index e03e72c4b2..ff782195b1 100644 --- a/docs/examples/0.10.x/console-web/examples/account/update-name.md +++ b/docs/examples/0.10.x/console-web/examples/account/update-name.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/update-password.md b/docs/examples/0.10.x/console-web/examples/account/update-password.md index acb360267e..d551ed726f 100644 --- a/docs/examples/0.10.x/console-web/examples/account/update-password.md +++ b/docs/examples/0.10.x/console-web/examples/account/update-password.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/update-prefs.md b/docs/examples/0.10.x/console-web/examples/account/update-prefs.md index b2d4ff175e..232b77025b 100644 --- a/docs/examples/0.10.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/0.10.x/console-web/examples/account/update-prefs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/update-recovery.md b/docs/examples/0.10.x/console-web/examples/account/update-recovery.md index 33cf1b63c9..6fe36c017e 100644 --- a/docs/examples/0.10.x/console-web/examples/account/update-recovery.md +++ b/docs/examples/0.10.x/console-web/examples/account/update-recovery.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/account/update-verification.md b/docs/examples/0.10.x/console-web/examples/account/update-verification.md index a80e125e30..e3312c5d5b 100644 --- a/docs/examples/0.10.x/console-web/examples/account/update-verification.md +++ b/docs/examples/0.10.x/console-web/examples/account/update-verification.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/avatars/get-browser.md b/docs/examples/0.10.x/console-web/examples/avatars/get-browser.md index 0855209f58..fe0143b818 100644 --- a/docs/examples/0.10.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/0.10.x/console-web/examples/avatars/get-browser.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/0.10.x/console-web/examples/avatars/get-credit-card.md index 1aa595bd65..5477094ca5 100644 --- a/docs/examples/0.10.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/0.10.x/console-web/examples/avatars/get-credit-card.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/avatars/get-favicon.md b/docs/examples/0.10.x/console-web/examples/avatars/get-favicon.md index a945e50bb2..1327bb7384 100644 --- a/docs/examples/0.10.x/console-web/examples/avatars/get-favicon.md +++ b/docs/examples/0.10.x/console-web/examples/avatars/get-favicon.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/avatars/get-flag.md b/docs/examples/0.10.x/console-web/examples/avatars/get-flag.md index 222b388afc..13a90c3075 100644 --- a/docs/examples/0.10.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/0.10.x/console-web/examples/avatars/get-flag.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/avatars/get-image.md b/docs/examples/0.10.x/console-web/examples/avatars/get-image.md index 3f15981c71..82cb205a74 100644 --- a/docs/examples/0.10.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/0.10.x/console-web/examples/avatars/get-image.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/avatars/get-initials.md b/docs/examples/0.10.x/console-web/examples/avatars/get-initials.md index ef04988e2d..a3da13d460 100644 --- a/docs/examples/0.10.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/0.10.x/console-web/examples/avatars/get-initials.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/avatars/get-q-r.md b/docs/examples/0.10.x/console-web/examples/avatars/get-q-r.md index 9d9ee3fea2..c900a63531 100644 --- a/docs/examples/0.10.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/0.10.x/console-web/examples/avatars/get-q-r.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/create-collection.md b/docs/examples/0.10.x/console-web/examples/database/create-collection.md index f9e1f89f1d..b58f231ccf 100644 --- a/docs/examples/0.10.x/console-web/examples/database/create-collection.md +++ b/docs/examples/0.10.x/console-web/examples/database/create-collection.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/create-document.md b/docs/examples/0.10.x/console-web/examples/database/create-document.md index 0235ba797f..43b13053be 100644 --- a/docs/examples/0.10.x/console-web/examples/database/create-document.md +++ b/docs/examples/0.10.x/console-web/examples/database/create-document.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/delete-collection.md b/docs/examples/0.10.x/console-web/examples/database/delete-collection.md index dc3127119b..94ff0a6f06 100644 --- a/docs/examples/0.10.x/console-web/examples/database/delete-collection.md +++ b/docs/examples/0.10.x/console-web/examples/database/delete-collection.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/delete-document.md b/docs/examples/0.10.x/console-web/examples/database/delete-document.md index 79799b6907..557662966d 100644 --- a/docs/examples/0.10.x/console-web/examples/database/delete-document.md +++ b/docs/examples/0.10.x/console-web/examples/database/delete-document.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/get-collection.md b/docs/examples/0.10.x/console-web/examples/database/get-collection.md index e50f15d648..4180a5c7db 100644 --- a/docs/examples/0.10.x/console-web/examples/database/get-collection.md +++ b/docs/examples/0.10.x/console-web/examples/database/get-collection.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/get-document.md b/docs/examples/0.10.x/console-web/examples/database/get-document.md index b9605dccc6..841157f551 100644 --- a/docs/examples/0.10.x/console-web/examples/database/get-document.md +++ b/docs/examples/0.10.x/console-web/examples/database/get-document.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/list-collections.md b/docs/examples/0.10.x/console-web/examples/database/list-collections.md index 899d69b38e..d06151dcee 100644 --- a/docs/examples/0.10.x/console-web/examples/database/list-collections.md +++ b/docs/examples/0.10.x/console-web/examples/database/list-collections.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/list-documents.md b/docs/examples/0.10.x/console-web/examples/database/list-documents.md index 14f8a423a1..620137cf8e 100644 --- a/docs/examples/0.10.x/console-web/examples/database/list-documents.md +++ b/docs/examples/0.10.x/console-web/examples/database/list-documents.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/update-collection.md b/docs/examples/0.10.x/console-web/examples/database/update-collection.md index 94a0fea610..95dbfde57d 100644 --- a/docs/examples/0.10.x/console-web/examples/database/update-collection.md +++ b/docs/examples/0.10.x/console-web/examples/database/update-collection.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/database/update-document.md b/docs/examples/0.10.x/console-web/examples/database/update-document.md index 23b9f49504..b07b2ecac1 100644 --- a/docs/examples/0.10.x/console-web/examples/database/update-document.md +++ b/docs/examples/0.10.x/console-web/examples/database/update-document.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/create-execution.md b/docs/examples/0.10.x/console-web/examples/functions/create-execution.md index 1afc158d87..87dc73a205 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/0.10.x/console-web/examples/functions/create-execution.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/create-tag.md b/docs/examples/0.10.x/console-web/examples/functions/create-tag.md index 94a352d0c0..63414ee25f 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/create-tag.md +++ b/docs/examples/0.10.x/console-web/examples/functions/create-tag.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/create.md b/docs/examples/0.10.x/console-web/examples/functions/create.md index 2ffab7e8ef..dd9277bc19 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/create.md +++ b/docs/examples/0.10.x/console-web/examples/functions/create.md @@ -1,11 +1,11 @@ -let sdk = new Appwrite(); +const 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.0'); +let promise = sdk.functions.create('[NAME]', [], 'dotnet-5.0'); promise.then(function (response) { console.log(response); // Success diff --git a/docs/examples/0.10.x/console-web/examples/functions/delete-tag.md b/docs/examples/0.10.x/console-web/examples/functions/delete-tag.md index 0d8d1e3e57..d363b7536b 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/delete-tag.md +++ b/docs/examples/0.10.x/console-web/examples/functions/delete-tag.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/delete.md b/docs/examples/0.10.x/console-web/examples/functions/delete.md index 2d384eabef..d080c101bf 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/delete.md +++ b/docs/examples/0.10.x/console-web/examples/functions/delete.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/get-execution.md b/docs/examples/0.10.x/console-web/examples/functions/get-execution.md index 10a9f814db..a8a0c4a0c8 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/get-execution.md +++ b/docs/examples/0.10.x/console-web/examples/functions/get-execution.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/get-tag.md b/docs/examples/0.10.x/console-web/examples/functions/get-tag.md index 7aaf25225a..815eb80b56 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/get-tag.md +++ b/docs/examples/0.10.x/console-web/examples/functions/get-tag.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/get-usage.md b/docs/examples/0.10.x/console-web/examples/functions/get-usage.md index 944135904f..3a14e5d0be 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/0.10.x/console-web/examples/functions/get-usage.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/get.md b/docs/examples/0.10.x/console-web/examples/functions/get.md index 6aa6efe82e..eeeee205bd 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/get.md +++ b/docs/examples/0.10.x/console-web/examples/functions/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/list-executions.md b/docs/examples/0.10.x/console-web/examples/functions/list-executions.md index f481d71919..82652ddb6c 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/0.10.x/console-web/examples/functions/list-executions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/list-tags.md b/docs/examples/0.10.x/console-web/examples/functions/list-tags.md index a84c938882..0829d68576 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/list-tags.md +++ b/docs/examples/0.10.x/console-web/examples/functions/list-tags.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/list.md b/docs/examples/0.10.x/console-web/examples/functions/list.md index ef7b3168f3..3002e2d8ee 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/list.md +++ b/docs/examples/0.10.x/console-web/examples/functions/list.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/update-tag.md b/docs/examples/0.10.x/console-web/examples/functions/update-tag.md index 55e9f924f4..0dfa2bfe80 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/update-tag.md +++ b/docs/examples/0.10.x/console-web/examples/functions/update-tag.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/functions/update.md b/docs/examples/0.10.x/console-web/examples/functions/update.md index 11bf7947c9..4243843568 100644 --- a/docs/examples/0.10.x/console-web/examples/functions/update.md +++ b/docs/examples/0.10.x/console-web/examples/functions/update.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-anti-virus.md b/docs/examples/0.10.x/console-web/examples/health/get-anti-virus.md index 15adab27c6..744bb716fe 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-anti-virus.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-anti-virus.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-cache.md b/docs/examples/0.10.x/console-web/examples/health/get-cache.md index ecc44b360f..a087d8db58 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-cache.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-cache.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-d-b.md b/docs/examples/0.10.x/console-web/examples/health/get-d-b.md index 8254e84cdd..fa4810de41 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-d-b.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-d-b.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/0.10.x/console-web/examples/health/get-queue-certificates.md index 149345dd11..9395664549 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-queue-certificates.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-queue-functions.md b/docs/examples/0.10.x/console-web/examples/health/get-queue-functions.md index 6400e4d112..9153497870 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-queue-functions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-queue-logs.md b/docs/examples/0.10.x/console-web/examples/health/get-queue-logs.md index af169df8ae..32b58757a3 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-queue-logs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-queue-tasks.md b/docs/examples/0.10.x/console-web/examples/health/get-queue-tasks.md index bcf52a730d..387c0506d6 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-queue-tasks.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-queue-tasks.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-queue-usage.md b/docs/examples/0.10.x/console-web/examples/health/get-queue-usage.md index 7c74fbe663..b59d11b62b 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-queue-usage.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-queue-usage.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/0.10.x/console-web/examples/health/get-queue-webhooks.md index 6a7e4de02e..8a23b957d7 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-queue-webhooks.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-storage-local.md b/docs/examples/0.10.x/console-web/examples/health/get-storage-local.md index fc7c882e6e..8fb72d9538 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-storage-local.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-storage-local.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get-time.md b/docs/examples/0.10.x/console-web/examples/health/get-time.md index 7f66da8321..49c9848e9b 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get-time.md +++ b/docs/examples/0.10.x/console-web/examples/health/get-time.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/health/get.md b/docs/examples/0.10.x/console-web/examples/health/get.md index d7e278b6a6..b933fb70f0 100644 --- a/docs/examples/0.10.x/console-web/examples/health/get.md +++ b/docs/examples/0.10.x/console-web/examples/health/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/locale/get-continents.md b/docs/examples/0.10.x/console-web/examples/locale/get-continents.md index 1dfdf8013b..f0798a820c 100644 --- a/docs/examples/0.10.x/console-web/examples/locale/get-continents.md +++ b/docs/examples/0.10.x/console-web/examples/locale/get-continents.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/locale/get-countries-e-u.md b/docs/examples/0.10.x/console-web/examples/locale/get-countries-e-u.md index 6b3f210a1e..7bc6aa2d50 100644 --- a/docs/examples/0.10.x/console-web/examples/locale/get-countries-e-u.md +++ b/docs/examples/0.10.x/console-web/examples/locale/get-countries-e-u.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/locale/get-countries-phones.md b/docs/examples/0.10.x/console-web/examples/locale/get-countries-phones.md index f35e2152e4..e92982c1a2 100644 --- a/docs/examples/0.10.x/console-web/examples/locale/get-countries-phones.md +++ b/docs/examples/0.10.x/console-web/examples/locale/get-countries-phones.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/locale/get-countries.md b/docs/examples/0.10.x/console-web/examples/locale/get-countries.md index 53b96375a1..bb12e6ab5f 100644 --- a/docs/examples/0.10.x/console-web/examples/locale/get-countries.md +++ b/docs/examples/0.10.x/console-web/examples/locale/get-countries.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/locale/get-currencies.md b/docs/examples/0.10.x/console-web/examples/locale/get-currencies.md index 57db66401f..3382c2015c 100644 --- a/docs/examples/0.10.x/console-web/examples/locale/get-currencies.md +++ b/docs/examples/0.10.x/console-web/examples/locale/get-currencies.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/locale/get-languages.md b/docs/examples/0.10.x/console-web/examples/locale/get-languages.md index 04e3063ee7..a7fa4a0170 100644 --- a/docs/examples/0.10.x/console-web/examples/locale/get-languages.md +++ b/docs/examples/0.10.x/console-web/examples/locale/get-languages.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/locale/get.md b/docs/examples/0.10.x/console-web/examples/locale/get.md index 469a046dbc..89ade06941 100644 --- a/docs/examples/0.10.x/console-web/examples/locale/get.md +++ b/docs/examples/0.10.x/console-web/examples/locale/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/create-domain.md b/docs/examples/0.10.x/console-web/examples/projects/create-domain.md index b3eb47574b..1382106c03 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/create-domain.md +++ b/docs/examples/0.10.x/console-web/examples/projects/create-domain.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/create-key.md b/docs/examples/0.10.x/console-web/examples/projects/create-key.md index 8da85b7e99..95157eab7b 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/create-key.md +++ b/docs/examples/0.10.x/console-web/examples/projects/create-key.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/create-platform.md b/docs/examples/0.10.x/console-web/examples/projects/create-platform.md index 6d98cb77ba..177fe89e01 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/0.10.x/console-web/examples/projects/create-platform.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/create-task.md b/docs/examples/0.10.x/console-web/examples/projects/create-task.md index 26d1906ce3..c8aa5d5ddc 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/create-task.md +++ b/docs/examples/0.10.x/console-web/examples/projects/create-task.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/create-webhook.md b/docs/examples/0.10.x/console-web/examples/projects/create-webhook.md index 6454e3f9d0..f3a1271d34 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/0.10.x/console-web/examples/projects/create-webhook.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/create.md b/docs/examples/0.10.x/console-web/examples/projects/create.md index fcf809403a..7a9ee54e41 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/create.md +++ b/docs/examples/0.10.x/console-web/examples/projects/create.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/delete-domain.md b/docs/examples/0.10.x/console-web/examples/projects/delete-domain.md index 81b62e5991..53aaa577f7 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/delete-domain.md +++ b/docs/examples/0.10.x/console-web/examples/projects/delete-domain.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/delete-key.md b/docs/examples/0.10.x/console-web/examples/projects/delete-key.md index b74e776b9a..205f357a70 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/delete-key.md +++ b/docs/examples/0.10.x/console-web/examples/projects/delete-key.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/delete-platform.md b/docs/examples/0.10.x/console-web/examples/projects/delete-platform.md index 6ecdf0c20d..3f770290ad 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/delete-platform.md +++ b/docs/examples/0.10.x/console-web/examples/projects/delete-platform.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/delete-task.md b/docs/examples/0.10.x/console-web/examples/projects/delete-task.md index fc9c17334a..bef9466378 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/delete-task.md +++ b/docs/examples/0.10.x/console-web/examples/projects/delete-task.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/delete-webhook.md b/docs/examples/0.10.x/console-web/examples/projects/delete-webhook.md index 8724e9a2cb..5e698f398f 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/delete-webhook.md +++ b/docs/examples/0.10.x/console-web/examples/projects/delete-webhook.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/delete.md b/docs/examples/0.10.x/console-web/examples/projects/delete.md index 737948409c..1396b36b8c 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/delete.md +++ b/docs/examples/0.10.x/console-web/examples/projects/delete.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/get-domain.md b/docs/examples/0.10.x/console-web/examples/projects/get-domain.md index e4eb18e653..f81b67f3ab 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/get-domain.md +++ b/docs/examples/0.10.x/console-web/examples/projects/get-domain.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/get-key.md b/docs/examples/0.10.x/console-web/examples/projects/get-key.md index 6aa54d5690..0780229ecf 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/get-key.md +++ b/docs/examples/0.10.x/console-web/examples/projects/get-key.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/get-platform.md b/docs/examples/0.10.x/console-web/examples/projects/get-platform.md index 4ffc20ed8a..a2229a2c59 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/get-platform.md +++ b/docs/examples/0.10.x/console-web/examples/projects/get-platform.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/get-task.md b/docs/examples/0.10.x/console-web/examples/projects/get-task.md index c910b6ac7c..ca90d37958 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/get-task.md +++ b/docs/examples/0.10.x/console-web/examples/projects/get-task.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/get-usage.md b/docs/examples/0.10.x/console-web/examples/projects/get-usage.md index 2567253dde..db4f2d84f9 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/get-usage.md +++ b/docs/examples/0.10.x/console-web/examples/projects/get-usage.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/get-webhook.md b/docs/examples/0.10.x/console-web/examples/projects/get-webhook.md index 98881e855a..849cf75ee0 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/get-webhook.md +++ b/docs/examples/0.10.x/console-web/examples/projects/get-webhook.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/get.md b/docs/examples/0.10.x/console-web/examples/projects/get.md index 947cf01f6d..3e3e10f023 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/get.md +++ b/docs/examples/0.10.x/console-web/examples/projects/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/list-domains.md b/docs/examples/0.10.x/console-web/examples/projects/list-domains.md index fde48b32c7..f6537d86bf 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/list-domains.md +++ b/docs/examples/0.10.x/console-web/examples/projects/list-domains.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/list-keys.md b/docs/examples/0.10.x/console-web/examples/projects/list-keys.md index 1b04e272b7..1ce0040051 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/list-keys.md +++ b/docs/examples/0.10.x/console-web/examples/projects/list-keys.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/list-platforms.md b/docs/examples/0.10.x/console-web/examples/projects/list-platforms.md index b997f58dc5..7851b80b44 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/list-platforms.md +++ b/docs/examples/0.10.x/console-web/examples/projects/list-platforms.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/list-tasks.md b/docs/examples/0.10.x/console-web/examples/projects/list-tasks.md index f6136ff1ad..bec1208dc8 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/list-tasks.md +++ b/docs/examples/0.10.x/console-web/examples/projects/list-tasks.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/list-webhooks.md b/docs/examples/0.10.x/console-web/examples/projects/list-webhooks.md index 48b509abdc..eef35c531e 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/list-webhooks.md +++ b/docs/examples/0.10.x/console-web/examples/projects/list-webhooks.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/list.md b/docs/examples/0.10.x/console-web/examples/projects/list.md index c66b01a059..2dae186849 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/list.md +++ b/docs/examples/0.10.x/console-web/examples/projects/list.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update-auth-limit.md b/docs/examples/0.10.x/console-web/examples/projects/update-auth-limit.md index 928d9a771e..6798c6fa32 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update-auth-limit.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update-auth-limit.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update-auth-status.md b/docs/examples/0.10.x/console-web/examples/projects/update-auth-status.md index 8092fdb7ad..7e325972b3 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update-auth-status.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update-auth-status.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/0.10.x/console-web/examples/projects/update-domain-verification.md index 33ce20a4cf..c00aea2724 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update-domain-verification.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update-domain-verification.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update-key.md b/docs/examples/0.10.x/console-web/examples/projects/update-key.md index f9e21a54e8..90209de5e1 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update-key.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update-key.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/0.10.x/console-web/examples/projects/update-o-auth2.md index 094a27a311..126a45e425 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update-o-auth2.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update-platform.md b/docs/examples/0.10.x/console-web/examples/projects/update-platform.md index 7371498d8c..17d3773ea9 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update-platform.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update-task.md b/docs/examples/0.10.x/console-web/examples/projects/update-task.md index 446c15f29d..1654c184a4 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update-task.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update-task.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update-webhook.md b/docs/examples/0.10.x/console-web/examples/projects/update-webhook.md index 5a419a768d..cf12bcb209 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update-webhook.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/projects/update.md b/docs/examples/0.10.x/console-web/examples/projects/update.md index 61dee9e300..835779e30f 100644 --- a/docs/examples/0.10.x/console-web/examples/projects/update.md +++ b/docs/examples/0.10.x/console-web/examples/projects/update.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/storage/create-file.md b/docs/examples/0.10.x/console-web/examples/storage/create-file.md index 00864e7320..55d8e413ca 100644 --- a/docs/examples/0.10.x/console-web/examples/storage/create-file.md +++ b/docs/examples/0.10.x/console-web/examples/storage/create-file.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/storage/delete-file.md b/docs/examples/0.10.x/console-web/examples/storage/delete-file.md index c38ab4ba9c..cb2e3fa989 100644 --- a/docs/examples/0.10.x/console-web/examples/storage/delete-file.md +++ b/docs/examples/0.10.x/console-web/examples/storage/delete-file.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/storage/get-file-download.md b/docs/examples/0.10.x/console-web/examples/storage/get-file-download.md index 1323b8b8df..2dc5f6198c 100644 --- a/docs/examples/0.10.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/0.10.x/console-web/examples/storage/get-file-download.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/storage/get-file-preview.md b/docs/examples/0.10.x/console-web/examples/storage/get-file-preview.md index 5ede9fdb93..51ba8236b9 100644 --- a/docs/examples/0.10.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/0.10.x/console-web/examples/storage/get-file-preview.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/storage/get-file-view.md b/docs/examples/0.10.x/console-web/examples/storage/get-file-view.md index 53877ae352..dc59fc3644 100644 --- a/docs/examples/0.10.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/0.10.x/console-web/examples/storage/get-file-view.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/storage/get-file.md b/docs/examples/0.10.x/console-web/examples/storage/get-file.md index a1f94c08a6..348757a4dd 100644 --- a/docs/examples/0.10.x/console-web/examples/storage/get-file.md +++ b/docs/examples/0.10.x/console-web/examples/storage/get-file.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/storage/list-files.md b/docs/examples/0.10.x/console-web/examples/storage/list-files.md index c489a0b46d..f4da49cbf6 100644 --- a/docs/examples/0.10.x/console-web/examples/storage/list-files.md +++ b/docs/examples/0.10.x/console-web/examples/storage/list-files.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/storage/update-file.md b/docs/examples/0.10.x/console-web/examples/storage/update-file.md index 2a2f579b3b..11443b3dbd 100644 --- a/docs/examples/0.10.x/console-web/examples/storage/update-file.md +++ b/docs/examples/0.10.x/console-web/examples/storage/update-file.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/create-membership.md b/docs/examples/0.10.x/console-web/examples/teams/create-membership.md index 78b2d7fa77..68b7f2be17 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/0.10.x/console-web/examples/teams/create-membership.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/create.md b/docs/examples/0.10.x/console-web/examples/teams/create.md index 43205ba888..51271dfd9f 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/create.md +++ b/docs/examples/0.10.x/console-web/examples/teams/create.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/delete-membership.md b/docs/examples/0.10.x/console-web/examples/teams/delete-membership.md index 466b963df2..46916ab1f4 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/delete-membership.md +++ b/docs/examples/0.10.x/console-web/examples/teams/delete-membership.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/delete.md b/docs/examples/0.10.x/console-web/examples/teams/delete.md index 4665ad5773..e04f9f505a 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/delete.md +++ b/docs/examples/0.10.x/console-web/examples/teams/delete.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/get-memberships.md b/docs/examples/0.10.x/console-web/examples/teams/get-memberships.md index 6235ce33f4..c23f190cbe 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/get-memberships.md +++ b/docs/examples/0.10.x/console-web/examples/teams/get-memberships.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/get.md b/docs/examples/0.10.x/console-web/examples/teams/get.md index f4b0f040b1..c05bd59a0b 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/get.md +++ b/docs/examples/0.10.x/console-web/examples/teams/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/list.md b/docs/examples/0.10.x/console-web/examples/teams/list.md index c4229e2400..1e1a974d80 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/list.md +++ b/docs/examples/0.10.x/console-web/examples/teams/list.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/0.10.x/console-web/examples/teams/update-membership-roles.md index ee8d7fcb93..1d25e2601e 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/update-membership-roles.md +++ b/docs/examples/0.10.x/console-web/examples/teams/update-membership-roles.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/update-membership-status.md b/docs/examples/0.10.x/console-web/examples/teams/update-membership-status.md index ea68d9bc08..032f162501 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/update-membership-status.md +++ b/docs/examples/0.10.x/console-web/examples/teams/update-membership-status.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/teams/update.md b/docs/examples/0.10.x/console-web/examples/teams/update.md index bbab80937d..bcf53d1605 100644 --- a/docs/examples/0.10.x/console-web/examples/teams/update.md +++ b/docs/examples/0.10.x/console-web/examples/teams/update.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/create.md b/docs/examples/0.10.x/console-web/examples/users/create.md index c82dd9c7e5..848b26a26b 100644 --- a/docs/examples/0.10.x/console-web/examples/users/create.md +++ b/docs/examples/0.10.x/console-web/examples/users/create.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/delete-session.md b/docs/examples/0.10.x/console-web/examples/users/delete-session.md index 6335b618f0..12e225032f 100644 --- a/docs/examples/0.10.x/console-web/examples/users/delete-session.md +++ b/docs/examples/0.10.x/console-web/examples/users/delete-session.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/delete-sessions.md b/docs/examples/0.10.x/console-web/examples/users/delete-sessions.md index 1a81df33f4..df330210fe 100644 --- a/docs/examples/0.10.x/console-web/examples/users/delete-sessions.md +++ b/docs/examples/0.10.x/console-web/examples/users/delete-sessions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/delete.md b/docs/examples/0.10.x/console-web/examples/users/delete.md index 9f075ceab8..f9cb4c0e0e 100644 --- a/docs/examples/0.10.x/console-web/examples/users/delete.md +++ b/docs/examples/0.10.x/console-web/examples/users/delete.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/get-logs.md b/docs/examples/0.10.x/console-web/examples/users/get-logs.md index 0f1dda2e7b..7ad392a78b 100644 --- a/docs/examples/0.10.x/console-web/examples/users/get-logs.md +++ b/docs/examples/0.10.x/console-web/examples/users/get-logs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/get-prefs.md b/docs/examples/0.10.x/console-web/examples/users/get-prefs.md index f4ae1178bc..f3f5d6a3db 100644 --- a/docs/examples/0.10.x/console-web/examples/users/get-prefs.md +++ b/docs/examples/0.10.x/console-web/examples/users/get-prefs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/get-sessions.md b/docs/examples/0.10.x/console-web/examples/users/get-sessions.md index 6397652d22..f50f5221eb 100644 --- a/docs/examples/0.10.x/console-web/examples/users/get-sessions.md +++ b/docs/examples/0.10.x/console-web/examples/users/get-sessions.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/get.md b/docs/examples/0.10.x/console-web/examples/users/get.md index 25e9cb0aa5..48069a70f2 100644 --- a/docs/examples/0.10.x/console-web/examples/users/get.md +++ b/docs/examples/0.10.x/console-web/examples/users/get.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/list.md b/docs/examples/0.10.x/console-web/examples/users/list.md index 22f4b1f6b5..4a37dd985d 100644 --- a/docs/examples/0.10.x/console-web/examples/users/list.md +++ b/docs/examples/0.10.x/console-web/examples/users/list.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/update-email.md b/docs/examples/0.10.x/console-web/examples/users/update-email.md index 18734e2694..97236c4b7c 100644 --- a/docs/examples/0.10.x/console-web/examples/users/update-email.md +++ b/docs/examples/0.10.x/console-web/examples/users/update-email.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/update-name.md b/docs/examples/0.10.x/console-web/examples/users/update-name.md index 588556caa9..332f076fb6 100644 --- a/docs/examples/0.10.x/console-web/examples/users/update-name.md +++ b/docs/examples/0.10.x/console-web/examples/users/update-name.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/update-password.md b/docs/examples/0.10.x/console-web/examples/users/update-password.md index 5b228a5702..d2647ca200 100644 --- a/docs/examples/0.10.x/console-web/examples/users/update-password.md +++ b/docs/examples/0.10.x/console-web/examples/users/update-password.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/update-prefs.md b/docs/examples/0.10.x/console-web/examples/users/update-prefs.md index 557234cad8..d6abb5914d 100644 --- a/docs/examples/0.10.x/console-web/examples/users/update-prefs.md +++ b/docs/examples/0.10.x/console-web/examples/users/update-prefs.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/update-status.md b/docs/examples/0.10.x/console-web/examples/users/update-status.md index 1b8610108b..516b98bfc9 100644 --- a/docs/examples/0.10.x/console-web/examples/users/update-status.md +++ b/docs/examples/0.10.x/console-web/examples/users/update-status.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/console-web/examples/users/update-verification.md b/docs/examples/0.10.x/console-web/examples/users/update-verification.md index cfacc820ef..a07f9e8433 100644 --- a/docs/examples/0.10.x/console-web/examples/users/update-verification.md +++ b/docs/examples/0.10.x/console-web/examples/users/update-verification.md @@ -1,4 +1,4 @@ -let sdk = new Appwrite(); +const sdk = new Appwrite(); sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint diff --git a/docs/examples/0.10.x/server-cli/examples/functions/create.md b/docs/examples/0.10.x/server-cli/examples/functions/create.md index 7ea5ef8603..e8cd43ea43 100644 --- a/docs/examples/0.10.x/server-cli/examples/functions/create.md +++ b/docs/examples/0.10.x/server-cli/examples/functions/create.md @@ -1,7 +1,7 @@ appwrite functions create \ --name="[NAME]" \ --execute="" \ - --runtime="java-11.0" \ + --runtime="dotnet-5.0" \ --vars="{}" \ --events="" \ --schedule="" \ diff --git a/docs/examples/0.10.x/server-dart/examples/functions/create-tag.md b/docs/examples/0.10.x/server-dart/examples/functions/create-tag.md index a7350fd7b1..3a23bd2d1b 100644 --- a/docs/examples/0.10.x/server-dart/examples/functions/create-tag.md +++ b/docs/examples/0.10.x/server-dart/examples/functions/create-tag.md @@ -13,7 +13,7 @@ void main() { // Init SDK Future result = functions.createTag( functionId: '[FUNCTION_ID]', command: '[COMMAND]', - code: await MultipartFile.fromFile('./path-to-files/image.jpg', 'image.jpg'), + code: await MultipartFile.fromPath('code', './path-to-files/image.jpg', 'image.jpg'), ); result diff --git a/docs/examples/0.10.x/server-dart/examples/functions/create.md b/docs/examples/0.10.x/server-dart/examples/functions/create.md index 4f4c6960f7..810bcbffed 100644 --- a/docs/examples/0.10.x/server-dart/examples/functions/create.md +++ b/docs/examples/0.10.x/server-dart/examples/functions/create.md @@ -13,7 +13,7 @@ void main() { // Init SDK Future result = functions.create( name: '[NAME]', execute: [], - runtime: 'java-11.0', + runtime: 'dotnet-5.0', ); result diff --git a/docs/examples/0.10.x/server-dart/examples/storage/create-file.md b/docs/examples/0.10.x/server-dart/examples/storage/create-file.md index ed0805be5e..15f1f893c2 100644 --- a/docs/examples/0.10.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/0.10.x/server-dart/examples/storage/create-file.md @@ -12,7 +12,7 @@ void main() { // Init SDK ; Future result = storage.createFile( - file: await MultipartFile.fromFile('./path-to-files/image.jpg', 'image.jpg'), + file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'), ); result diff --git a/docs/examples/0.10.x/server-deno/examples/functions/create.md b/docs/examples/0.10.x/server-deno/examples/functions/create.md index 06cec604b7..3012d8d241 100644 --- a/docs/examples/0.10.x/server-deno/examples/functions/create.md +++ b/docs/examples/0.10.x/server-deno/examples/functions/create.md @@ -12,7 +12,7 @@ client ; -let promise = functions.create('[NAME]', [], 'java-11.0'); +let promise = functions.create('[NAME]', [], 'dotnet-5.0'); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.10.x/server-dotnet/examples/functions/create.md b/docs/examples/0.10.x/server-dotnet/examples/functions/create.md index 7c264a418e..cd771bfd66 100644 --- a/docs/examples/0.10.x/server-dotnet/examples/functions/create.md +++ b/docs/examples/0.10.x/server-dotnet/examples/functions/create.md @@ -10,4 +10,4 @@ client Functions functions = new Functions(client); -HttpResponseMessage result = await functions.Create("[NAME]", [List], "java-11.0"); +HttpResponseMessage result = await functions.Create("[NAME]", [List], "dotnet-5.0"); diff --git a/docs/examples/0.10.x/server-kotlin/java/functions/create.md b/docs/examples/0.10.x/server-kotlin/java/functions/create.md index 2cd762a3b5..c81aebd32b 100644 --- a/docs/examples/0.10.x/server-kotlin/java/functions/create.md +++ b/docs/examples/0.10.x/server-kotlin/java/functions/create.md @@ -11,7 +11,7 @@ public void main() { functions.create( name = "[NAME]", execute = listOf(), - runtime = "java-11.0", + runtime = "dotnet-5.0", new Continuation() { @NotNull @Override diff --git a/docs/examples/0.10.x/server-kotlin/kotlin/functions/create.md b/docs/examples/0.10.x/server-kotlin/kotlin/functions/create.md index 34a9ee6eaa..cb6ce87a38 100644 --- a/docs/examples/0.10.x/server-kotlin/kotlin/functions/create.md +++ b/docs/examples/0.10.x/server-kotlin/kotlin/functions/create.md @@ -11,7 +11,7 @@ suspend fun main() { val response = functions.create( name = "[NAME]", execute = listOf(), - runtime = "java-11.0", + runtime = "dotnet-5.0", ) val json = response.body?.string() } \ No newline at end of file diff --git a/docs/examples/0.10.x/server-nodejs/examples/functions/create.md b/docs/examples/0.10.x/server-nodejs/examples/functions/create.md index 72c0244a88..43cf2eca55 100644 --- a/docs/examples/0.10.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/0.10.x/server-nodejs/examples/functions/create.md @@ -11,7 +11,7 @@ client .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; -let promise = functions.create('[NAME]', [], 'java-11.0'); +let promise = functions.create('[NAME]', [], 'dotnet-5.0'); promise.then(function (response) { console.log(response); diff --git a/docs/examples/0.10.x/server-php/examples/functions/create.md b/docs/examples/0.10.x/server-php/examples/functions/create.md index 6302707c30..634041fac7 100644 --- a/docs/examples/0.10.x/server-php/examples/functions/create.md +++ b/docs/examples/0.10.x/server-php/examples/functions/create.md @@ -13,4 +13,4 @@ $client $functions = new Functions($client); -$result = $functions->create('[NAME]', [], 'java-11.0'); \ No newline at end of file +$result = $functions->create('[NAME]', [], 'dotnet-5.0'); \ No newline at end of file diff --git a/docs/examples/0.10.x/server-python/examples/functions/create.md b/docs/examples/0.10.x/server-python/examples/functions/create.md index 632f11c2fd..e0af952762 100644 --- a/docs/examples/0.10.x/server-python/examples/functions/create.md +++ b/docs/examples/0.10.x/server-python/examples/functions/create.md @@ -11,4 +11,4 @@ client = Client() functions = Functions(client) -result = functions.create('[NAME]', [], 'java-11.0') +result = functions.create('[NAME]', [], 'dotnet-5.0') diff --git a/docs/examples/0.10.x/server-ruby/examples/functions/create.md b/docs/examples/0.10.x/server-ruby/examples/functions/create.md index 4dec95bdd3..95e6de5634 100644 --- a/docs/examples/0.10.x/server-ruby/examples/functions/create.md +++ b/docs/examples/0.10.x/server-ruby/examples/functions/create.md @@ -10,6 +10,6 @@ client functions = Appwrite::Functions.new(client); -response = functions.create(name: '[NAME]', execute: [], runtime: 'java-11.0'); +response = functions.create(name: '[NAME]', execute: [], runtime: 'dotnet-5.0'); puts response \ No newline at end of file