From 0497a9d5b9566b318aa8883e5abfeb42283dd325 Mon Sep 17 00:00:00 2001 From: choir27 Date: Fri, 16 Aug 2024 15:23:15 -0400 Subject: [PATCH 1/9] docs: remove all instances of .setEndpoint from all code snippet examples --- .../platform/message-templates/+page.markdoc | 4 -- .../platform/permissions/+page.markdoc | 2 - src/routes/docs/apis/graphql/+page.markdoc | 4 -- src/routes/docs/apis/realtime/+page.markdoc | 15 ----- .../ai/integrations/elevenlabs/+page.markdoc | 1 - .../ai/integrations/langchain/+page.markdoc | 3 - .../ai/integrations/lmnt/+page.markdoc | 3 - .../ai/integrations/openai/+page.markdoc | 1 - .../ai/integrations/pinecone/+page.markdoc | 4 -- .../ai/integrations/togetherai/+page.markdoc | 3 - .../image-classification/+page.markdoc | 3 - .../tutorials/music-generation/+page.markdoc | 3 - .../tutorials/object-detection/+page.markdoc | 3 - .../speech-recognition/+page.markdoc | 3 - .../ai/tutorials/text-to-speech/+page.markdoc | 3 - .../docs/products/auth/accounts/+page.markdoc | 8 --- .../products/auth/anonymous/+page.markdoc | 4 -- .../products/auth/custom-token/+page.markdoc | 11 ---- .../products/auth/email-otp/+page.markdoc | 9 --- .../auth/email-password/+page.markdoc | 6 -- .../docs/products/auth/jwt/+page.markdoc | 25 -------- .../docs/products/auth/labels/+page.markdoc | 7 --- .../products/auth/magic-url/+page.markdoc | 2 - .../docs/products/auth/mfa/+page.markdoc | 4 -- .../docs/products/auth/oauth2/+page.markdoc | 12 +--- .../products/auth/phone-sms/+page.markdoc | 8 --- .../products/auth/quick-start/+page.markdoc | 15 ++--- .../auth/server-side-rendering/+page.markdoc | 33 ++++------- .../docs/products/auth/teams/+page.markdoc | 8 --- .../databases/collections/+page.markdoc | 8 --- .../databases/databases/+page.markdoc | 8 --- .../databases/documents/+page.markdoc | 8 --- .../products/databases/order/+page.markdoc | 4 -- .../databases/pagination/+page.markdoc | 8 --- .../products/databases/queries/+page.markdoc | 4 -- .../databases/quick-start/+page.markdoc | 8 --- .../databases/relationships/+page.markdoc | 57 +++++-------------- .../products/functions/develop/+page.markdoc | 24 -------- .../products/functions/examples/+page.markdoc | 6 -- .../products/functions/execute/+page.markdoc | 13 ----- .../products/messaging/apns/+page.markdoc | 8 --- .../docs/products/messaging/fcm/+page.markdoc | 8 --- .../products/messaging/mailgun/+page.markdoc | 15 ----- .../products/messaging/messages/+page.markdoc | 24 -------- .../products/messaging/msg91/+page.markdoc | 16 ------ .../send-email-messages/+page.markdoc | 32 ----------- .../send-push-notifications/+page.markdoc | 8 --- .../messaging/send-sms-messages/+page.markdoc | 32 ----------- .../products/messaging/sendgrid/+page.markdoc | 16 ------ .../products/messaging/smtp/+page.markdoc | 15 ----- .../products/messaging/telesign/+page.markdoc | 16 ------ .../messaging/textmagic/+page.markdoc | 16 ------ .../products/messaging/topics/+page.markdoc | 16 ------ .../products/messaging/twilio/+page.markdoc | 16 ------ .../products/messaging/vonage/+page.markdoc | 16 ------ .../products/storage/buckets/+page.markdoc | 8 --- .../products/storage/images/+page.markdoc | 4 -- .../storage/quick-start/+page.markdoc | 8 --- .../storage/upload-download/+page.markdoc | 20 ------- .../docs/quick-starts/android/+page.markdoc | 1 - .../docs/quick-starts/angular/+page.markdoc | 1 - .../docs/quick-starts/apple/+page.markdoc | 1 - .../docs/quick-starts/dart/+page.markdoc | 2 - .../docs/quick-starts/deno/+page.markdoc | 1 - .../docs/quick-starts/dotnet/+page.markdoc | 1 - .../docs/quick-starts/flutter/+page.markdoc | 1 - .../docs/quick-starts/kotlin/+page.markdoc | 1 - .../docs/quick-starts/nextjs/+page.markdoc | 1 - .../docs/quick-starts/node/+page.markdoc | 1 - .../docs/quick-starts/nuxt/+page.markdoc | 1 - .../docs/quick-starts/php/+page.markdoc | 1 - .../quick-starts/react-native/+page.markdoc | 1 - .../docs/quick-starts/react/+page.markdoc | 1 - .../docs/quick-starts/refine/+page.markdoc | 2 +- .../docs/quick-starts/solid/+page.markdoc | 1 - .../docs/quick-starts/sveltekit/+page.markdoc | 1 - .../docs/quick-starts/swift/+page.markdoc | 1 - .../docs/quick-starts/vue/+page.markdoc | 1 - .../docs/quick-starts/web/+page.markdoc | 2 - .../docs/references/quick-start/+page.markdoc | 16 ------ .../tutorials/android/step-3/+page.markdoc | 1 - .../tutorials/android/step-4/+page.markdoc | 1 - .../tutorials/android/step-6/+page.markdoc | 1 - .../astro-ssr-auth/step-3/+page.markdoc | 2 - .../nextjs-ssr-auth/step-3/+page.markdoc | 2 - .../nuxt-ssr-auth/step-3/+page.markdoc | 2 - .../docs/tutorials/nuxt/step-3/+page.markdoc | 2 +- .../react-native/step-3/+page.markdoc | 1 - .../docs/tutorials/react/step-3/+page.markdoc | 1 - .../tutorials/refine/step-3/+page.markdoc | 2 +- .../sveltekit-csr-auth/step-3/+page.markdoc | 1 - .../sveltekit-ssr-auth/step-3/+page.markdoc | 2 - .../tutorials/sveltekit/step-3/+page.markdoc | 1 - .../docs/tutorials/vue/step-3/+page.markdoc | 1 - 94 files changed, 35 insertions(+), 673 deletions(-) diff --git a/src/routes/docs/advanced/platform/message-templates/+page.markdoc b/src/routes/docs/advanced/platform/message-templates/+page.markdoc index f53c7ecf2f..7310829f69 100644 --- a/src/routes/docs/advanced/platform/message-templates/+page.markdoc +++ b/src/routes/docs/advanced/platform/message-templates/+page.markdoc @@ -130,7 +130,6 @@ const client = new Client(); const account = new Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setLocale('fr') // Your locale ; @@ -152,7 +151,6 @@ void main() { // Init SDK Account account = Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setLocale('fr') // Your locale ; @@ -172,7 +170,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setLocale('fr') // Your locale @@ -185,7 +182,6 @@ val response = account.createVerification('https://example.com') import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setLocale('fr') // Your locale diff --git a/src/routes/docs/advanced/platform/permissions/+page.markdoc b/src/routes/docs/advanced/platform/permissions/+page.markdoc index 13f99a2686..e1f4638875 100644 --- a/src/routes/docs/advanced/platform/permissions/+page.markdoc +++ b/src/routes/docs/advanced/platform/permissions/+page.markdoc @@ -71,7 +71,6 @@ In the following example, we are creating a document that can be read by anyone, import { Client, Databases, Permission, Role } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const databases = new Databases(client); @@ -104,7 +103,6 @@ In the following example, we are creating a document that can be read by members import { Client, Databases, Permission, Role } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const databases = new Databases(client); diff --git a/src/routes/docs/apis/graphql/+page.markdoc b/src/routes/docs/apis/graphql/+page.markdoc index 444c4679bf..68957769fa 100644 --- a/src/routes/docs/apis/graphql/+page.markdoc +++ b/src/routes/docs/apis/graphql/+page.markdoc @@ -233,7 +233,6 @@ Appwrite SDKs also support GraphQL in addition to the REST services. import { Client, Graphql } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your Appwrite Endpoint .setProject(''); // Your project ID const graphql = new Graphql(client); @@ -270,7 +269,6 @@ mutation.then(response => { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your Appwrite Endpoint .setProject(''); // Your project ID final graphql = Graphql(client); @@ -307,7 +305,6 @@ mutation.then((response) { import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let graphql = Graphql(client) @@ -348,7 +345,6 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val graphql = Graphql(client) diff --git a/src/routes/docs/apis/realtime/+page.markdoc b/src/routes/docs/apis/realtime/+page.markdoc index 2e448b9c01..5d52b5aa5b 100644 --- a/src/routes/docs/apis/realtime/+page.markdoc +++ b/src/routes/docs/apis/realtime/+page.markdoc @@ -15,7 +15,6 @@ This lets you build an interactive and responsive user experience by providing i import { Client } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Subscribe to files channel @@ -31,7 +30,6 @@ client.subscribe('files', response => { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final realtime = Realtime(client); @@ -52,7 +50,6 @@ import Appwrite import AppwriteModels let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let realtime = Realtime(client) @@ -71,7 +68,6 @@ import io.appwrite.Client import io.appwrite.services.Realtime val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val realtime = Realtime(client) @@ -117,7 +113,6 @@ In this example we are subscribing to all updates related to our account by usin import { Client } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); client.subscribe('account', response => { @@ -130,7 +125,6 @@ client.subscribe('account', response => { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final realtime = Realtime(client); @@ -148,7 +142,6 @@ import Appwrite import AppwriteModels let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let realtime = Realtime(client) @@ -164,7 +157,6 @@ import io.appwrite.Client import io.appwrite.services.Realtime val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val realtime = Realtime(client) @@ -188,7 +180,6 @@ In this example we are listening to the document A and all files by subscribing import { Client } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); client.subscribe(['collections.A.documents.A', 'files'], response => { @@ -201,7 +192,6 @@ client.subscribe(['collections.A.documents.A', 'files'], response => { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final realtime = Realtime(client); @@ -219,7 +209,6 @@ import Appwrite import AppwriteModels let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let realtime = Realtime(client) @@ -235,7 +224,6 @@ import io.appwrite.Client import io.appwrite.services.Realtime val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val realtime = Realtime(client) @@ -256,7 +244,6 @@ If you no longer want to receive updates from a subscription, you can unsubscrib import { Client } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const unsubscribe = client.subscribe('files', response => { @@ -272,7 +259,6 @@ unsubscribe(); import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final realtime = Realtime(client); @@ -308,7 +294,6 @@ import io.appwrite.Client import io.appwrite.services.Realtime val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val realtime = Realtime(client) diff --git a/src/routes/docs/products/ai/integrations/elevenlabs/+page.markdoc b/src/routes/docs/products/ai/integrations/elevenlabs/+page.markdoc index d005a94c58..04c328cdea 100644 --- a/src/routes/docs/products/ai/integrations/elevenlabs/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/elevenlabs/+page.markdoc @@ -209,7 +209,6 @@ Next add code to validate the body of the request and initialize the Appwrite SD ```js const client = new Client() - .setEndpoint(process.env.APPWRITE_ENDPOINT ?? "https://cloud.appwrite.io/v1") .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/langchain/+page.markdoc b/src/routes/docs/products/ai/integrations/langchain/+page.markdoc index 96faec6f51..44ff60530d 100644 --- a/src/routes/docs/products/ai/integrations/langchain/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/langchain/+page.markdoc @@ -261,9 +261,6 @@ export default class AppwriteService { constructor() { const client = new Client(); client - .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' - ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/lmnt/+page.markdoc b/src/routes/docs/products/ai/integrations/lmnt/+page.markdoc index d95f5fb864..22a33e263f 100644 --- a/src/routes/docs/products/ai/integrations/lmnt/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/lmnt/+page.markdoc @@ -216,10 +216,7 @@ import Speech from 'lmnt-node'; Next, add code to validate the body of the request and initialize the Appwrite SDK also within `main.js` following the previously added GET handler: ```js -const endpoint = process.env.APPWRITE_ENDPOINT ?? "https://cloud.appwrite.io/v1"; - const client = new Client() - .setEndpoint(endpoint) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/openai/+page.markdoc b/src/routes/docs/products/ai/integrations/openai/+page.markdoc index 55c6cfb582..fd3698b34a 100644 --- a/src/routes/docs/products/ai/integrations/openai/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/openai/+page.markdoc @@ -205,7 +205,6 @@ Add code to validate the body of the request and initialize the Appwrite SDK: ```js const client = new Client() - .setEndpoint(process.env.APPWRITE_ENDPOINT ?? "https://cloud.appwrite.io/v1") .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/pinecone/+page.markdoc b/src/routes/docs/products/ai/integrations/pinecone/+page.markdoc index 5a5345a97d..5e9781b969 100644 --- a/src/routes/docs/products/ai/integrations/pinecone/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/pinecone/+page.markdoc @@ -229,10 +229,6 @@ import { Client, Databases, Query } from 'node-appwrite'; export default class AppwriteService { constructor() { const client = new Client(); - client - .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' - ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/integrations/togetherai/+page.markdoc b/src/routes/docs/products/ai/integrations/togetherai/+page.markdoc index 5c31c4ba4b..7e522b1c47 100644 --- a/src/routes/docs/products/ai/integrations/togetherai/+page.markdoc +++ b/src/routes/docs/products/ai/integrations/togetherai/+page.markdoc @@ -285,10 +285,7 @@ let resJson = await response.json(); // Upload image to Appwrite Storage and return URL if (req.body.type === 'image') { - const endpoint = process.env.APPWRITE_ENDPOINT || 'https://cloud.appwrite.io/v1' - const client = new Client() - .setEndpoint(endpoint) .setKey(process.env.APPWRITE_API_KEY) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) diff --git a/src/routes/docs/products/ai/tutorials/image-classification/+page.markdoc b/src/routes/docs/products/ai/tutorials/image-classification/+page.markdoc index 5010790e9c..7491122306 100644 --- a/src/routes/docs/products/ai/tutorials/image-classification/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/image-classification/+page.markdoc @@ -118,9 +118,6 @@ class AppwriteService { constructor() { const client = new Client(); client - .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' - ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/tutorials/music-generation/+page.markdoc b/src/routes/docs/products/ai/tutorials/music-generation/+page.markdoc index 3ae5c2d4f0..7007a17299 100644 --- a/src/routes/docs/products/ai/tutorials/music-generation/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/music-generation/+page.markdoc @@ -57,9 +57,6 @@ class AppwriteService { constructor() { const client = new Client(); client - .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' - ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/tutorials/object-detection/+page.markdoc b/src/routes/docs/products/ai/tutorials/object-detection/+page.markdoc index 3d69021090..060930237e 100644 --- a/src/routes/docs/products/ai/tutorials/object-detection/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/object-detection/+page.markdoc @@ -101,9 +101,6 @@ class AppwriteService { constructor() { const client = new Client(); client - .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' - ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/tutorials/speech-recognition/+page.markdoc b/src/routes/docs/products/ai/tutorials/speech-recognition/+page.markdoc index db12b88885..5fd4cbfeab 100644 --- a/src/routes/docs/products/ai/tutorials/speech-recognition/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/speech-recognition/+page.markdoc @@ -56,9 +56,6 @@ class AppwriteService { constructor() { const client = new Client(); client - .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' - ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/ai/tutorials/text-to-speech/+page.markdoc b/src/routes/docs/products/ai/tutorials/text-to-speech/+page.markdoc index 93b9450135..c143fdfa53 100644 --- a/src/routes/docs/products/ai/tutorials/text-to-speech/+page.markdoc +++ b/src/routes/docs/products/ai/tutorials/text-to-speech/+page.markdoc @@ -57,9 +57,6 @@ class AppwriteService { constructor() { const client = new Client(); client - .setEndpoint( - process.env.APPWRITE_ENDPOINT ?? 'https://cloud.appwrite.io/v1' - ) .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); diff --git a/src/routes/docs/products/auth/accounts/+page.markdoc b/src/routes/docs/products/auth/accounts/+page.markdoc index 8515ea8c2d..a98c6669a5 100644 --- a/src/routes/docs/products/auth/accounts/+page.markdoc +++ b/src/routes/docs/products/auth/accounts/+page.markdoc @@ -31,7 +31,6 @@ Preferences are stored as a key-value JSON object. The maximum allowed size for import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -48,7 +47,6 @@ promise.then(function (response) { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID final account = Account(client); @@ -64,7 +62,6 @@ final user = await account.updatePrefs( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let account = Account(client) @@ -81,7 +78,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val account = Account(client) @@ -115,7 +111,6 @@ After a user's preferences are updated, they can be retrieved using the [get acc import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -132,7 +127,6 @@ promise.then(function (response) { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID final account = Account(client); @@ -144,7 +138,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val account = Account(client) @@ -155,7 +148,6 @@ val prefs = account.getPrefs() import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let account = Account(client) diff --git a/src/routes/docs/products/auth/anonymous/+page.markdoc b/src/routes/docs/products/auth/anonymous/+page.markdoc index 4caa0ba1b4..8f05a98ad3 100644 --- a/src/routes/docs/products/auth/anonymous/+page.markdoc +++ b/src/routes/docs/products/auth/anonymous/+page.markdoc @@ -17,7 +17,6 @@ Create an anonymous session with [Create Anonymous Session](/docs/references/clo import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -34,7 +33,6 @@ promise.then(function (response) { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID final account = Account(client); @@ -45,7 +43,6 @@ final user = await account.createAnonymousSession(); import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let account = Account(client) @@ -57,7 +54,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val account = Account(client) diff --git a/src/routes/docs/products/auth/custom-token/+page.markdoc b/src/routes/docs/products/auth/custom-token/+page.markdoc index 21e4f932f6..32392493e2 100644 --- a/src/routes/docs/products/auth/custom-token/+page.markdoc +++ b/src/routes/docs/products/auth/custom-token/+page.markdoc @@ -17,7 +17,6 @@ Once you have your server endpoint prepared either in an Appwrite Function or a import { Client, Users } from "node-appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID .setKey(''); // Your project API key @@ -32,7 +31,6 @@ use Appwrite\Client; use Appwrite\Users; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your project API key @@ -80,7 +78,6 @@ secret = token['secret'] import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey(''); // Your project API key @@ -94,7 +91,6 @@ const secret = token.secret; import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey(''); // Your project API key @@ -109,7 +105,6 @@ import io.appwrite.Client import io.appwrite.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your project API key @@ -123,7 +118,6 @@ val secret = token.secret import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your project API key @@ -137,7 +131,6 @@ let secret = token.secret using Appwrite; var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your project API key @@ -166,7 +159,6 @@ Once the client receives a token secret, we can use it to authenticate the user import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); @@ -181,7 +173,6 @@ const session = await account.createSession( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final account = Account(client); @@ -195,7 +186,6 @@ final session = await account.createSession( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); let account = Account(client); @@ -211,7 +201,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); val account = Account(client); diff --git a/src/routes/docs/products/auth/email-otp/+page.markdoc b/src/routes/docs/products/auth/email-otp/+page.markdoc index aa80e26fd0..d3c6780f21 100644 --- a/src/routes/docs/products/auth/email-otp/+page.markdoc +++ b/src/routes/docs/products/auth/email-otp/+page.markdoc @@ -30,7 +30,6 @@ Send an an email to initiate the authentication process. A **new account** will import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); @@ -47,7 +46,6 @@ const userId = sessionToken.userId; import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final account = Account(client); @@ -63,7 +61,6 @@ final userId = sessionToken.userId; import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); let account = Account(client); @@ -82,7 +79,6 @@ import io.appwrite.services.Account import io.appwrite.ID val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); val account = Account(client); @@ -117,7 +113,6 @@ After initiating the email OTP authentication process, the returned user ID and import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); @@ -132,7 +127,6 @@ const session = await account.createSession( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final account = Account(client); @@ -146,7 +140,6 @@ final session = await account.createSession( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); let account = Account(client); @@ -162,7 +155,6 @@ import io.appwrite.services.Account import io.appwrite.ID val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); val account = Account(client); @@ -199,7 +191,6 @@ By default, security phrases are disabled. To enable a security phrase in Email import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/docs/products/auth/email-password/+page.markdoc b/src/routes/docs/products/auth/email-password/+page.markdoc index 5734adc221..c778f9c8c8 100644 --- a/src/routes/docs/products/auth/email-password/+page.markdoc +++ b/src/routes/docs/products/auth/email-password/+page.markdoc @@ -14,7 +14,6 @@ You can use the Appwrite Client SDKs to create an account using email and passwo import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -40,7 +39,6 @@ First, send a verification email. Specify a redirect URL which users will be red import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID const account = new Account(client); @@ -62,7 +60,6 @@ Since the secrets are passed in through url params, it will be easiest to perfor import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -88,7 +85,6 @@ After you've created your account, users can be logged in using the Create Email import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -112,7 +108,6 @@ Only redirect URLs to domains added as a platform on your Appwrite Console will import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const promise = account.createRecovery('email@example.com', 'https://example.com'); @@ -130,7 +125,6 @@ After receiving an email with the secret attached to the redirect link, submit a import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const promise = account.updateRecovery( diff --git a/src/routes/docs/products/auth/jwt/+page.markdoc b/src/routes/docs/products/auth/jwt/+page.markdoc index 57a9a79042..842aaaa956 100644 --- a/src/routes/docs/products/auth/jwt/+page.markdoc +++ b/src/routes/docs/products/auth/jwt/+page.markdoc @@ -27,7 +27,6 @@ You can generate a JWT like this on a [Client SDK](/docs/sdks#client). import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -38,7 +37,6 @@ const user = await account.createJWT(); import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID final account = Account(client); @@ -49,7 +47,6 @@ final jwt = await account.createJWT(); import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let account = Account(client) @@ -61,7 +58,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val account = Account(client) @@ -85,7 +81,6 @@ Use JWTs tokens like this in a [Server SDK](/docs/sdks#server). const { Client } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token ``` @@ -94,7 +89,6 @@ const client = new Client() use Appwrite\Client; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token ``` @@ -126,7 +120,6 @@ client = Client.new import { Client } from "https://deno.land/x/appwrite/mod.ts"; let client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token ``` @@ -135,7 +128,6 @@ let client = new Client() import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token ``` @@ -144,7 +136,6 @@ final client = Client() import io.appwrite.Client val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token ``` @@ -153,7 +144,6 @@ val client = Client() import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token ``` @@ -162,7 +152,6 @@ let client = Client() using Appwrite; var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token ``` @@ -194,7 +183,6 @@ If you're authenticated on the client-side as `user-a` and created a JWT `'eyJJ9 const { Client } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token @@ -210,7 +198,6 @@ const documents = await databases.listDocuments( use Appwrite\Client; $client = (new Client()) - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Tokens @@ -263,7 +250,6 @@ documents = databases.list_documents( import { Client } from "https://deno.land/x/appwrite/mod.ts"; let client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token @@ -279,7 +265,6 @@ let documents = await databases.listDocuments( import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token @@ -295,7 +280,6 @@ final documents = await databases.listDocuments( import io.appwrite.Client val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token @@ -311,7 +295,6 @@ val documents = databases.listDocuments( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token @@ -329,7 +312,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token @@ -372,7 +354,6 @@ If the same request is made where the [Server SDK](/docs/sdks#server)'s `client` const { Client } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -389,7 +370,6 @@ const documents = await databases.listDocuments( use Appwrite\Client; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey('98fd4...a2ad2'); // Your secret API key @@ -442,7 +422,6 @@ documents = databases.list_documents( import { Client } from "https://deno.land/x/appwrite/mod.ts"; let client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -458,7 +437,6 @@ let documents = await databases.listDocuments( import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -474,7 +452,6 @@ final documents = await databases.listDocuments( import io.appwrite.Client val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -490,7 +467,6 @@ val documents = databases.listDocuments( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -508,7 +484,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey('98fd4...a2ad2'); // Your secret API key diff --git a/src/routes/docs/products/auth/labels/+page.markdoc b/src/routes/docs/products/auth/labels/+page.markdoc index 07fd955a12..47a05e3c91 100644 --- a/src/routes/docs/products/auth/labels/+page.markdoc +++ b/src/routes/docs/products/auth/labels/+page.markdoc @@ -11,7 +11,6 @@ Labels are a good way to categorize a user to grant them access to resources. Fo const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -37,7 +36,6 @@ use Appwrite\Role; $client = new Client(); $client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -91,7 +89,6 @@ response = users.update_labels( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; let client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -112,7 +109,6 @@ promise.then(function (response) { import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('98fd4...a2ad2'); // Your secret API key @@ -129,7 +125,6 @@ import io.appwrite.Role import io.appwrite.services.Users val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("98fd4...a2ad2") // Your secret API key @@ -145,7 +140,6 @@ val response = users.updateLabels( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("98fd4...a2ad2") // Your secret API key @@ -161,7 +155,6 @@ let response = try await users.updateLabels( using Appwrite; var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("98fd4...a2ad2"); // Your secret API key diff --git a/src/routes/docs/products/auth/magic-url/+page.markdoc b/src/routes/docs/products/auth/magic-url/+page.markdoc index 22b7a035f7..1e6884b27a 100644 --- a/src/routes/docs/products/auth/magic-url/+page.markdoc +++ b/src/routes/docs/products/auth/magic-url/+page.markdoc @@ -15,7 +15,6 @@ Initialize the log in process with the [Create Magic URL Token](/docs/references import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -50,7 +49,6 @@ After receiving your secret from an email, you can create a session. import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/docs/products/auth/mfa/+page.markdoc b/src/routes/docs/products/auth/mfa/+page.markdoc index 985538a2e2..c63493db52 100644 --- a/src/routes/docs/products/auth/mfa/+page.markdoc +++ b/src/routes/docs/products/auth/mfa/+page.markdoc @@ -32,7 +32,6 @@ const account = new Account(client); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; ``` @@ -46,7 +45,6 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; } @@ -56,7 +54,6 @@ void main() { // Init SDK import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let account = Account(client) @@ -68,7 +65,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val account = Account(client) diff --git a/src/routes/docs/products/auth/oauth2/+page.markdoc b/src/routes/docs/products/auth/oauth2/+page.markdoc index e4c2aeb460..964d393aa1 100644 --- a/src/routes/docs/products/auth/oauth2/+page.markdoc +++ b/src/routes/docs/products/auth/oauth2/+page.markdoc @@ -36,7 +36,6 @@ The scope is provider-specific and can be found in the provider's documentation. import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -57,7 +56,6 @@ import 'package:appwrite/appwrite.dart'; import 'package:appwrite/enums.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID final account = Account(client); @@ -105,7 +103,6 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let account = Account(client) @@ -139,7 +136,6 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val account = Account(client) @@ -183,7 +179,6 @@ console.log(session.providerAccessToken); import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID final account = Account(client); @@ -201,7 +196,6 @@ print(session.providerAccessToken); import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) @@ -220,7 +214,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) @@ -272,8 +265,7 @@ promise.then(function (response) { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID + .setProject('5df5acd0d48c2'); // Your project ID Account account = Account(client); @@ -285,7 +277,6 @@ final result = await account.updateSession( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let account = Account(client) @@ -299,7 +290,6 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/src/routes/docs/products/auth/phone-sms/+page.markdoc b/src/routes/docs/products/auth/phone-sms/+page.markdoc index 491d7f5811..20c0aea81d 100644 --- a/src/routes/docs/products/auth/phone-sms/+page.markdoc +++ b/src/routes/docs/products/auth/phone-sms/+page.markdoc @@ -18,7 +18,6 @@ Send an SMS message to initiate the authentication process. A **new account** wi import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); @@ -35,7 +34,6 @@ const userId = token.userId; import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final account = Account(client); @@ -51,7 +49,6 @@ final userId = token.userId; import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); let account = Account(client); @@ -70,7 +67,6 @@ import io.appwrite.services.Account import io.appwrite.ID val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); val account = Account(client); @@ -106,7 +102,6 @@ After initiating the phone authentication process, the returned user ID and secr import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); @@ -121,7 +116,6 @@ const session = await account.createSession( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final account = Account(client); @@ -135,7 +129,6 @@ final session = await account.createSession( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); let account = Account(client); @@ -151,7 +144,6 @@ import io.appwrite.services.Account import io.appwrite.ID val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); val account = Account(client); diff --git a/src/routes/docs/products/auth/quick-start/+page.markdoc b/src/routes/docs/products/auth/quick-start/+page.markdoc index 7ec433c1a8..eedd911089 100644 --- a/src/routes/docs/products/auth/quick-start/+page.markdoc +++ b/src/routes/docs/products/auth/quick-start/+page.markdoc @@ -14,7 +14,6 @@ You can use the Appwrite [Client SDKs](/docs/sdks#client) to create an account u import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -29,8 +28,7 @@ const user = await account.create( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID final account = Account(client); @@ -44,8 +42,7 @@ final user = await account.create( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -61,8 +58,7 @@ import io.appwrite.services.Account import io.appwrite.ID val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID val account = Account(client) @@ -85,8 +81,7 @@ mutation { ```client-react-native import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -501,7 +496,6 @@ class Appwrite { public init() { self.client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") self.account = Account(client) @@ -578,7 +572,6 @@ object Appwrite { fun init(context: Context) { client = Client(context) - .setEndpoint(ENDPOINT) .setProject(PROJECT_ID) } } diff --git a/src/routes/docs/products/auth/server-side-rendering/+page.markdoc b/src/routes/docs/products/auth/server-side-rendering/+page.markdoc index 8bd4ef5bd5..fee8198d0c 100644 --- a/src/routes/docs/products/auth/server-side-rendering/+page.markdoc +++ b/src/routes/docs/products/auth/server-side-rendering/+page.markdoc @@ -58,18 +58,16 @@ The API key should have the following scope in order to perform authentication: import { Client } from "node-appwrite"; // Using the server SDK const adminClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key ``` ```php use Appwrite\Client; use Appwrite\Services\Account; $adminClient = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key ``` @@ -87,8 +85,7 @@ You should create a new client for each request and **never** share the client b {% multicode %} ```server-nodejs const sessionClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const session = req.cookies.session; // Get the session cookie from the request if (session) { @@ -97,8 +94,7 @@ if (session) { ``` ```php $sessionClient = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject(''); // Your project ID $session = $_COOKIE['session']; // Get the session cookie from the request if ($session) { @@ -290,7 +286,6 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -311,7 +306,6 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ; @@ -346,9 +340,8 @@ Create an initial endpoint that redirects the user to the OAuth2 provider's auth import { Client, Account, OAuthProvider } from "node-appwrite"; // Using the server SDK const adminClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID - .setKey(''); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key app.get('/oauth', async (req, res) => { const account = new Account(adminClient); @@ -369,9 +362,8 @@ use Appwrite\Services\Account; use Appwrite\Enums\OAuthProvider; $adminClient = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $account = new Account($adminClient); @@ -420,9 +412,8 @@ use Appwrite\Client; use Appwrite\Services\Account; $adminClient = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID - ->setKey(''); // Your secret API key + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $account = new Account($adminClient); diff --git a/src/routes/docs/products/auth/teams/+page.markdoc b/src/routes/docs/products/auth/teams/+page.markdoc index 004ab97a03..6e4d2d710f 100644 --- a/src/routes/docs/products/auth/teams/+page.markdoc +++ b/src/routes/docs/products/auth/teams/+page.markdoc @@ -24,7 +24,6 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -48,7 +47,6 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.create( @@ -69,7 +67,6 @@ void main() { // Init SDK import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) @@ -85,7 +82,6 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) @@ -112,7 +108,6 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -136,7 +131,6 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; Future result = teams.createMembership( @@ -157,7 +151,6 @@ void main() { // Init SDK import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let teams = Teams(client) @@ -173,7 +166,6 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val teams = Teams(client) diff --git a/src/routes/docs/products/databases/collections/+page.markdoc b/src/routes/docs/products/databases/collections/+page.markdoc index 8188af32d7..59eb42ebb3 100644 --- a/src/routes/docs/products/databases/collections/+page.markdoc +++ b/src/routes/docs/products/databases/collections/+page.markdoc @@ -30,7 +30,6 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -52,7 +51,6 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -75,7 +73,6 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -122,7 +119,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -141,7 +137,6 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -165,7 +160,6 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -183,7 +177,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -207,7 +200,6 @@ databases.createCollection( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/databases/databases/+page.markdoc b/src/routes/docs/products/databases/databases/+page.markdoc index ea8fbe0913..6b37ee2dbd 100644 --- a/src/routes/docs/products/databases/databases/+page.markdoc +++ b/src/routes/docs/products/databases/databases/+page.markdoc @@ -26,7 +26,6 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -48,7 +47,6 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -71,7 +69,6 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -118,7 +115,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -136,7 +132,6 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -159,7 +154,6 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -176,7 +170,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -199,7 +192,6 @@ databases.create( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/databases/documents/+page.markdoc b/src/routes/docs/products/databases/documents/+page.markdoc index c53f58224a..bfada106ce 100644 --- a/src/routes/docs/products/databases/documents/+page.markdoc +++ b/src/routes/docs/products/databases/documents/+page.markdoc @@ -19,7 +19,6 @@ In most use cases, you will create documents programmatically. import { Client, Databases, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const databases = new Databases(client); @@ -42,7 +41,6 @@ import 'package:appwrite/appwrite.dart'; void main() async { final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -65,7 +63,6 @@ import AppwriteModels func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Databases(client) @@ -88,7 +85,6 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val databases = Databases(client) @@ -148,7 +144,6 @@ You can change this through [pagination](/docs/products/databases/pagination). import { Client, Databases, Query } from "appwrite"; const client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") const databases = new Databases(client); @@ -172,7 +167,6 @@ import 'package:appwrite/appwrite.dart'; void main() async { final client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") final databases = Databases(client); @@ -196,7 +190,6 @@ import AppwriteModels func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Databases(client) @@ -221,7 +214,6 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val databases = Databases(client) diff --git a/src/routes/docs/products/databases/order/+page.markdoc b/src/routes/docs/products/databases/order/+page.markdoc index 0304faa926..58056b1fea 100644 --- a/src/routes/docs/products/databases/order/+page.markdoc +++ b/src/routes/docs/products/databases/order/+page.markdoc @@ -17,7 +17,6 @@ you can specify the order of the documents returned using the `Query.orderAsc()` import { Client, Databases, Query } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const databases = new Databases(client); @@ -36,7 +35,6 @@ import 'package:appwrite/appwrite.dart'; void main() async { final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -61,7 +59,6 @@ import AppwriteModels func main() async throws { let client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); let databases = Databases(client) @@ -86,7 +83,6 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(applicationContext) - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); val databases = Databases(client) diff --git a/src/routes/docs/products/databases/pagination/+page.markdoc b/src/routes/docs/products/databases/pagination/+page.markdoc index 93ec2322f6..2e1614aba6 100644 --- a/src/routes/docs/products/databases/pagination/+page.markdoc +++ b/src/routes/docs/products/databases/pagination/+page.markdoc @@ -24,7 +24,6 @@ The `Query.offset()` is number of records you wish to skip before selecting reco import { Client, Databases, Query } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const databases = new Databases(client); @@ -54,7 +53,6 @@ import 'package:appwrite/appwrite.dart'; void main() async { final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -84,7 +82,6 @@ import AppwriteModels func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Databases(client) @@ -115,7 +112,6 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val databases = Databases(client) @@ -160,7 +156,6 @@ Pass the first document's ID into the `Query.cursorBefore(firstId)` query method import { Databases, Query } from "appwrite"; const client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); const databases = new Databases(client); @@ -192,7 +187,6 @@ import 'package:appwrite/appwrite.dart'; void main() async { final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -224,7 +218,6 @@ import AppwriteModels func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Databases(client) @@ -258,7 +251,6 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val databases = Databases(client) diff --git a/src/routes/docs/products/databases/queries/+page.markdoc b/src/routes/docs/products/databases/queries/+page.markdoc index fbacbca8af..ee0169a779 100644 --- a/src/routes/docs/products/databases/queries/+page.markdoc +++ b/src/routes/docs/products/databases/queries/+page.markdoc @@ -310,7 +310,6 @@ You can change this through [pagination](/docs/products/databases/pagination). import { Client, Databases, Query } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const databases = new Databases(client); @@ -329,7 +328,6 @@ import 'package:appwrite/appwrite.dart'; void main() async { final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -354,7 +352,6 @@ import AppwriteModels func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Databases(client) @@ -380,7 +377,6 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(applicationContext) - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); val databases = Databases(client) diff --git a/src/routes/docs/products/databases/quick-start/+page.markdoc b/src/routes/docs/products/databases/quick-start/+page.markdoc index 33a67ebc37..0668b94896 100644 --- a/src/routes/docs/products/databases/quick-start/+page.markdoc +++ b/src/routes/docs/products/databases/quick-start/+page.markdoc @@ -33,7 +33,6 @@ Then, in the `My books` collection, copy the collection ID, and replace `'); const databases = new Databases(client); @@ -56,7 +55,6 @@ import 'package:appwrite/appwrite.dart'; void main() async { final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -79,7 +77,6 @@ import AppwriteModels func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Databases(client) @@ -102,7 +99,6 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val databases = Databases(client) @@ -146,7 +142,6 @@ Like the previous step, replace ``, ``, and`") const databases = new Databases(client); @@ -170,7 +165,6 @@ import 'package:appwrite/appwrite.dart'; void main() async { final client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") final databases = Databases(client); @@ -194,7 +188,6 @@ import AppwriteModels func main() async throws{ let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Databases(client) @@ -219,7 +212,6 @@ import io.appwrite.services.Databases suspend fun main() { val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val databases = Databases(client) diff --git a/src/routes/docs/products/databases/relationships/+page.markdoc b/src/routes/docs/products/databases/relationships/+page.markdoc index bc8f7fb5d5..52386fd877 100644 --- a/src/routes/docs/products/databases/relationships/+page.markdoc +++ b/src/routes/docs/products/databases/relationships/+page.markdoc @@ -87,7 +87,6 @@ A relationship attribute with the key `reviews` is added to the movies collectio const { Client, Databases } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const databases = new Databases(client); @@ -110,8 +109,7 @@ use \Appwrite\Client; use \Appwrite\Services\Databases; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject(''); // Your project ID + ->setProject(''); // Your project ID $databases = new Databases($client); @@ -179,8 +177,7 @@ databases.create_relationship_attribute( import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID + .setProject(""); // Your project ID const databases = new Databases(client); @@ -201,8 +198,7 @@ databases.createRelationshipAttribute( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID final databases = Databases(client); @@ -224,8 +220,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID val databases = Databases(client) @@ -246,8 +241,7 @@ databases.createRelationshipAttribute( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID let databases = Databases(client) @@ -271,7 +265,6 @@ using Appwrite; using Appwrite.Services; var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") .SetProject(""); var databases = new Databases(client); @@ -303,8 +296,7 @@ You can create both the **parent** and **child** at once in a relationship by ne const { Client, Databases, ID } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -327,8 +319,7 @@ await databases.createDocument( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID final databases = Databases(client); @@ -351,8 +342,7 @@ await databases.createDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID let databases = Database(client: client) @@ -377,8 +367,7 @@ import io.appwrite.services.Database import io.appwrite.ID val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID val databases = Database(client) @@ -412,8 +401,7 @@ Here's an example connecting reviews to a movie. const { Client, Databases, ID } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -436,8 +424,7 @@ await databases.createDocument( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID final databases = Databases(client); @@ -460,8 +447,7 @@ await databases.createDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID let databases = Database(client: client) @@ -486,8 +472,7 @@ import io.appwrite.services.Database import io.appwrite.ID val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID val databases = Database(client) @@ -520,8 +505,7 @@ Relationships can be updated by updating the relationship attribute. const { Client, Databases } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -544,7 +528,6 @@ await databases.updateDocument( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -568,7 +551,6 @@ await databases.updateDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Database(client: client) @@ -593,7 +575,6 @@ import io.appwrite.Client import io.appwrite.services.Database val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val databases = Database(client) @@ -639,8 +620,7 @@ If the on-delete behavior is **cascade**, deleting the parent documents also del const { Client, Databases } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -655,7 +635,6 @@ await databases.deleteDocument( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -671,7 +650,6 @@ await databases.deleteDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Database(client: client) @@ -688,7 +666,6 @@ import io.appwrite.Client import io.appwrite.services.Database val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") val databases = Database(client) @@ -715,7 +692,6 @@ You can also provide explicit permissions to the child document if they should b const { Client, Databases, ID } = require('node-appwrite'); const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const databases = new Databases(client); @@ -743,7 +719,6 @@ await databases.createDocument( import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final databases = Databases(client); @@ -771,7 +746,6 @@ await databases.createDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Database(client: client) @@ -799,7 +773,6 @@ databases.createDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Database(client: client) diff --git a/src/routes/docs/products/functions/develop/+page.markdoc b/src/routes/docs/products/functions/develop/+page.markdoc index dd6701b64c..dfa58544e2 100644 --- a/src/routes/docs/products/functions/develop/+page.markdoc +++ b/src/routes/docs/products/functions/develop/+page.markdoc @@ -31,7 +31,6 @@ export default async ({ req, res, log, error }) => { // Why not try the Appwrite SDK? // // const client = new Client() - // .setEndpoint('https://cloud.appwrite.io/v1') // .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) // .setKey(process.env.APPWRITE_API_KEY); @@ -71,7 +70,6 @@ return function ($context) { // // $client = new Client(); // $client - // ->setEndpoint('https://cloud.appwrite.io/v1') // ->setProject(getenv('APPWRITE_FUNCTION_PROJECT_ID')) // ->setKey(getenv('APPWRITE_API_KEY')); @@ -180,7 +178,6 @@ export default ({ req, res, log, error }: any) => { // Why not try the Appwrite SDK? // // const client = new Client() - // .setEndpoint('https://cloud.appwrite.io/v1') // .setProject(Deno.env.get("APPWRITE_FUNCTION_PROJECT_ID")) // .setKey(Deno.env.get("APPWRITE_API_KEY")); @@ -216,7 +213,6 @@ Future main(final context) async { // Why not try the Appwrite SDK? // // final client = Client() - // .setEndpoint('https://cloud.appwrite.io/v1') // .setProject(Platform.environment["APPWRITE_FUNCTION_PROJECT_ID"]) // .setKey(Platform.environment["APPWRITE_API_KEY"]); @@ -256,7 +252,6 @@ class Main { fun main(context: RuntimeContext): RuntimeOutput { // Why not try the Appwrite SDK? // val client = Client() - // .setEndpoint("https://cloud.appwrite.io/v1") // .setProject(System.getenv("APPWRITE_FUNCTION_PROJECT_ID")) // .setKey(System.getenv("APPWRITE_API_KEY")) @@ -299,7 +294,6 @@ public class Main { // Why not try the Appwrite SDK? // // Client client = new Client() - // .setEndpoint("https://cloud.appwrite.io/v1") // .setProject(System.getenv("APPWRITE_FUNCTION_PROJECT_ID")) // .setKey(System.getenv("APPWRITE_API_KEY")); @@ -338,7 +332,6 @@ func main(context: RuntimeContext) async throws -> RuntimeOutput { // Why not try the Appwrite SDK? // // let client = Client() - // .setEndpoint("https://cloud.appwrite.io/v1") // .setProject(ProcessInfo.processInfo.environment["APPWRITE_FUNCTION_PROJECT_ID"]) // .setKey(ProcessInfo.processInfo.environment["APPWRITE_API_KEY"]); @@ -380,7 +373,6 @@ public class Handler { // Why not try the Appwrite SDK? // // var client = new Client() - // .SetEndpoint("https://cloud.appwrite.io/v1") // .SetProject(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_PROJECT_ID")) // .SetKey(Environment.GetEnvironmentVariable("APPWRITE_API_KEY")) @@ -1316,7 +1308,6 @@ import { Client, Databases, ID } from 'node-appwrite'; export default async ({ req, res, log, error }) => { const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); @@ -1349,7 +1340,6 @@ use Appwrite\ID; return function ($context) { $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') ->setProject(getenv('APPWRITE_FUNCTION_PROJECT_ID')) ->setKey(getenv('APPWRITE_API_KEY')); @@ -1433,7 +1423,6 @@ import { Client, Databases, ID } from "https://deno.land/x/appwrite/mod.ts"; export default function ({req, res, error}: any){ const client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(Deno.env.get("APPWRITE_FUNCTION_PROJECT_ID") || "") .setKey(Deno.env.get("APPWRITE_API_KEY") || ""); @@ -1461,7 +1450,6 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Future main(final context) async { final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(Platform.environment['APPWRITE_FUNCTION_PROJECT_ID']) .setKey(Platform.environment['APPWRITE_API_KEY']); @@ -1489,7 +1477,6 @@ import Foundation func main(context: RuntimeContext) async throws -> RuntimeOutput { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(ProcessInfo.processInfo.environment["APPWRITE_FUNCTION_PROJECT_ID"]) .setKey(ProcessInfo.processInfo.environment["APPWRITE_API_KEY"]); @@ -1522,7 +1509,6 @@ namespace DotNetRuntime public async Task Main(RuntimeContext Context) { var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") .SetProject(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_PROJECT_ID")) .SetKey(Environment.GetEnvironmentVariable("APPWRITE_API_KEY")) @@ -1557,7 +1543,6 @@ import java.util.HashMap class Main { fun main(context: RuntimeContext): RuntimeOutput { val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(System.getenv("APPWRITE_FUNCTION_PROJECT_ID")) .setKey(System.getenv("APPWRITE_API_KEY")) @@ -1590,7 +1575,6 @@ import io.appwrite.Client; public class Main { public RuntimeOutput main(RuntimeContext context) throws Exception { Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(System.getenv("APPWRITE_FUNCTION_PROJECT_ID")) .setKey(System.getenv("APPWRITE_API_KEY")); @@ -1628,7 +1612,6 @@ import { Client, Databases, ID } from 'node-appwrite'; export default async ({ req, res, log }) => { const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) if (req.headers['x-appwrite-user-jwt']) { @@ -1666,7 +1649,6 @@ use Appwrite\ID; return function ($context) { $client = new (Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') ->setProject(getenv('APPWRITE_FUNCTION_PROJECT_ID')) if (isset($context->req->headers['x-appwrite-user-jwt'])) { @@ -1759,7 +1741,6 @@ import { Client, Databases, ID } from "https://deno.land/x/appwrite/mod.ts"; export default function ({req, res, error}: any){ const client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(Deno.env.get("APPWRITE_FUNCTION_PROJECT_ID") || "") if (req.headers["x-appwrite-user-jwt"]) { @@ -1792,7 +1773,6 @@ import 'package:dart_appwrite/dart_appwrite.dart'; Future main(final context) async { final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(Platform.environment['APPWRITE_FUNCTION_PROJECT_ID']) if (context.req.headers['x-appwrite-user-jwt'] != null) { @@ -1825,7 +1805,6 @@ import Foundation func main(context: RuntimeContext) async throws -> RuntimeOutput { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(ProcessInfo.processInfo.environment["APPWRITE_FUNCTION_PROJECT_ID"]) if let jwt = context.req.headers["x-appwrite-user-jwt"] { @@ -1863,7 +1842,6 @@ namespace DotNetRuntime public async Task Main(RuntimeContext Context) { var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") .SetProject(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_PROJECT_ID")) if (Context.Req.Headers.ContainsKey("x-appwrite-user-jwt")) { @@ -1903,7 +1881,6 @@ import java.util.HashMap class Main { fun main(context: RuntimeContext): RuntimeOutput { val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(System.getenv("APPWRITE_FUNCTION_PROJECT_ID")) if (context.req.headers["x-appwrite-user-jwt"] != null) { @@ -1941,7 +1918,6 @@ import io.appwrite.Client; public class Main { public RuntimeOutput main(RuntimeContext context) throws Exception { Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(System.getenv("APPWRITE_FUNCTION_PROJECT_ID")) if (context.req.headers.containsKey("x-appwrite-user-jwt")) { diff --git a/src/routes/docs/products/functions/examples/+page.markdoc b/src/routes/docs/products/functions/examples/+page.markdoc index ac82f32ea5..09dedd9570 100644 --- a/src/routes/docs/products/functions/examples/+page.markdoc +++ b/src/routes/docs/products/functions/examples/+page.markdoc @@ -273,7 +273,6 @@ export default async function ({ req, res }) { const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); @@ -364,7 +363,6 @@ return function ($context) { $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') ->setProject(getenv('APPWRITE_FUNCTION_PROJECT_ID')) ->setKey(getenv('APPWRITE_API_KEY')); @@ -412,7 +410,6 @@ Future main(final context) async { } final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(Platform.environment['APPWRITE_FUNCTION_PROJECT_ID']) .setKey(Platform.environment['APPWRITE_API_KEY']); @@ -549,7 +546,6 @@ export default async function ({ req, res }) { const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID) .setKey(process.env.APPWRITE_API_KEY); @@ -658,7 +654,6 @@ return function ($context) { $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') ->setProject(getenv('APPWRITE_FUNCTION_PROJECT_ID')) ->setKey(getenv('APPWRITE_API_KEY')); @@ -758,7 +753,6 @@ Future main(final context) async { }; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(Platform.environment['APPWRITE_FUNCTION_PROJECT_ID']) .setKey(Platform.environment['APPWRITE_API_KEY']); diff --git a/src/routes/docs/products/functions/execute/+page.markdoc b/src/routes/docs/products/functions/execute/+page.markdoc index f9079e2a3b..1a1dd01487 100644 --- a/src/routes/docs/products/functions/execute/+page.markdoc +++ b/src/routes/docs/products/functions/execute/+page.markdoc @@ -54,7 +54,6 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; @@ -81,7 +80,6 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; Future result = functions.createExecution( @@ -105,7 +103,6 @@ void main() { // Init SDK import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let functions = Functions(client) @@ -124,7 +121,6 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val functions = Functions(client) @@ -144,7 +140,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -181,7 +176,6 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; @@ -210,7 +204,6 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; @@ -239,7 +232,6 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ; @@ -304,7 +296,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject(""); // Your project ID var functions = new Functions(client); @@ -325,7 +316,6 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; @@ -352,7 +342,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -381,7 +370,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -408,7 +396,6 @@ functions.createExecution( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let functions = Functions(client) diff --git a/src/routes/docs/products/messaging/apns/+page.markdoc b/src/routes/docs/products/messaging/apns/+page.markdoc index 9041b6d2ab..8be9832303 100644 --- a/src/routes/docs/products/messaging/apns/+page.markdoc +++ b/src/routes/docs/products/messaging/apns/+page.markdoc @@ -110,7 +110,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -134,7 +133,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -158,7 +156,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -229,7 +226,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -254,7 +250,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -283,7 +278,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -313,7 +307,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -341,7 +334,6 @@ messaging.updateAPNSProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/fcm/+page.markdoc b/src/routes/docs/products/messaging/fcm/+page.markdoc index e1b0da3cb1..77907525c3 100644 --- a/src/routes/docs/products/messaging/fcm/+page.markdoc +++ b/src/routes/docs/products/messaging/fcm/+page.markdoc @@ -107,7 +107,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -128,7 +127,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -149,7 +147,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -211,7 +208,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -233,7 +229,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -259,7 +254,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -286,7 +280,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -311,7 +304,6 @@ messaging.updateFCMProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/mailgun/+page.markdoc b/src/routes/docs/products/messaging/mailgun/+page.markdoc index 567f81356b..a49b1da30c 100644 --- a/src/routes/docs/products/messaging/mailgun/+page.markdoc +++ b/src/routes/docs/products/messaging/mailgun/+page.markdoc @@ -94,7 +94,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -110,7 +109,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -126,7 +124,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey('') // Your secret API key ; @@ -175,7 +172,6 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -196,7 +192,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -221,7 +216,6 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key @@ -239,7 +233,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey(""); // Your secret API key @@ -263,7 +256,6 @@ messaging.createEmail( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key @@ -303,7 +295,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -377,7 +368,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey('') // Your secret API key ; @@ -457,7 +447,6 @@ using Appwrite.Models; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -486,7 +475,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -518,7 +506,6 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key @@ -544,7 +531,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey(""); // Your secret API key @@ -575,7 +561,6 @@ messaging.updateSendgridProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key diff --git a/src/routes/docs/products/messaging/messages/+page.markdoc b/src/routes/docs/products/messaging/messages/+page.markdoc index 10f89c6af6..bcf713f61a 100644 --- a/src/routes/docs/products/messaging/messages/+page.markdoc +++ b/src/routes/docs/products/messaging/messages/+page.markdoc @@ -232,7 +232,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -264,7 +263,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -296,7 +294,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -391,7 +388,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -424,7 +420,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -461,7 +456,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -499,7 +493,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -535,7 +528,6 @@ messaging.createPush( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -577,7 +569,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -605,7 +596,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -633,7 +623,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -716,7 +705,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -745,7 +733,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -778,7 +765,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -812,7 +798,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -844,7 +829,6 @@ messaging.createEmail( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -882,7 +866,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -906,7 +889,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -930,7 +912,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -1001,7 +982,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -1026,7 +1006,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -1055,7 +1034,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -1085,7 +1063,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -1113,7 +1090,6 @@ messaging.createSms( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/msg91/+page.markdoc b/src/routes/docs/products/messaging/msg91/+page.markdoc index 4e2bd141bd..d003b9d09a 100644 --- a/src/routes/docs/products/messaging/msg91/+page.markdoc +++ b/src/routes/docs/products/messaging/msg91/+page.markdoc @@ -75,7 +75,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -99,7 +98,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -123,7 +121,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -194,7 +191,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -219,7 +215,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -248,7 +243,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -278,7 +272,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -306,7 +299,6 @@ messaging.createSms( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -351,7 +343,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -374,7 +365,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -397,7 +387,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -465,7 +454,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -489,7 +477,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -517,7 +504,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -546,7 +532,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -573,7 +558,6 @@ messaging.updateMsg91Provider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc index e9b432157f..21c983bf70 100644 --- a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc @@ -45,7 +45,6 @@ You can also implement forms in your app to collect contact information and add const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -64,7 +63,6 @@ const target = await users.createTarget( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token @@ -87,7 +85,6 @@ use Appwrite\Services\Users; use Appwrite\Enums\MessagingProviderType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -153,7 +150,6 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -174,7 +170,6 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -197,7 +192,6 @@ import io.appwrite.services.Users import io.appwrite.enums.MessagingProviderType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -220,7 +214,6 @@ import io.appwrite.services.Users; import io.appwrite.enums.MessagingProviderType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -248,7 +241,6 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -287,7 +279,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -306,7 +297,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -325,7 +315,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -381,7 +370,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -401,7 +389,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -425,7 +412,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -450,7 +436,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -473,7 +458,6 @@ messaging.createTopic( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -499,7 +483,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -527,7 +510,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -555,7 +537,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -638,7 +619,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -667,7 +647,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -700,7 +679,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -734,7 +712,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -766,7 +743,6 @@ messaging.createEmail( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -801,7 +777,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -829,7 +804,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -857,7 +831,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -940,7 +913,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2");// Your secret API key @@ -969,7 +941,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -1002,7 +973,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -1036,7 +1006,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2");// Your secret API key @@ -1068,7 +1037,6 @@ messaging.createEmail( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc index de1ca35a4c..bf3e8a9a20 100644 --- a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc +++ b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc @@ -473,7 +473,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -505,7 +504,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -537,7 +535,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -632,7 +629,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -665,7 +661,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -701,7 +696,6 @@ import io.appwrite.Client import io.appwrite.services.Messaging val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -731,7 +725,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -767,7 +760,6 @@ messaging.createPush( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc index 64e6e69a40..bfa8f626f3 100644 --- a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc @@ -54,7 +54,6 @@ You can also implement forms in your app to collect contact information and add const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -73,7 +72,6 @@ const target = await users.createTarget( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token @@ -96,7 +94,6 @@ use Appwrite\Services\Users; use Appwrite\Enums\MessagingProviderType; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -162,7 +159,6 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -183,7 +179,6 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -206,7 +201,6 @@ import io.appwrite.services.Users import io.appwrite.enums.MessagingProviderType val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -229,7 +223,6 @@ import io.appwrite.services.Users; import io.appwrite.enums.MessagingProviderType; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -257,7 +250,6 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -292,7 +284,6 @@ You can also create topics programmatically using an [Appwrite Server SDK](/docs const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -307,7 +298,6 @@ const topic = await messaging.createTopic( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -325,7 +315,6 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -375,7 +364,6 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -391,7 +379,6 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -408,7 +395,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -425,7 +411,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -448,7 +433,6 @@ messaging.createTopic( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -471,7 +455,6 @@ const sdk = require('node-appwrite'); // Init SDK const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -491,7 +474,6 @@ const message = await messaging.createSms( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -516,7 +498,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -581,7 +562,6 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -602,7 +582,6 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client(); - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -624,7 +603,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -646,7 +624,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -674,7 +651,6 @@ messaging.createSms( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -700,7 +676,6 @@ const sdk = require('node-appwrite'); // Init SDK const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -720,7 +695,6 @@ const message = await messaging.createSms( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -745,7 +719,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -810,7 +783,6 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -831,7 +803,6 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client(); - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key @@ -853,7 +824,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -875,7 +845,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -903,7 +872,6 @@ messaging.createSms( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/sendgrid/+page.markdoc b/src/routes/docs/products/messaging/sendgrid/+page.markdoc index 465ada5e0d..6449398ded 100644 --- a/src/routes/docs/products/messaging/sendgrid/+page.markdoc +++ b/src/routes/docs/products/messaging/sendgrid/+page.markdoc @@ -86,7 +86,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -102,7 +101,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -119,7 +117,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey('') // Your secret API key ; @@ -168,7 +165,6 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -189,7 +185,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -214,7 +209,6 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key @@ -232,7 +226,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey(""); // Your secret API key @@ -256,7 +249,6 @@ messaging.createEmail( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key @@ -296,7 +288,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -321,7 +312,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -346,7 +336,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey('') // Your secret API key ; @@ -420,7 +409,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -446,7 +434,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -476,7 +463,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey(""); // Your secret API key @@ -507,7 +493,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey(""); // Your secret API key @@ -536,7 +521,6 @@ messaging.updateSendgridProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key diff --git a/src/routes/docs/products/messaging/smtp/+page.markdoc b/src/routes/docs/products/messaging/smtp/+page.markdoc index b45cfb126c..ef7f344fcc 100644 --- a/src/routes/docs/products/messaging/smtp/+page.markdoc +++ b/src/routes/docs/products/messaging/smtp/+page.markdoc @@ -96,7 +96,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -112,7 +111,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -128,7 +126,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey('') // Your secret API key ; @@ -177,7 +174,6 @@ using Appwrite.Enums; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -198,7 +194,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -223,7 +218,6 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key @@ -241,7 +235,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey(""); // Your secret API key @@ -265,7 +258,6 @@ messaging.createEmail( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key @@ -305,7 +297,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -379,7 +370,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey('') // Your secret API key ; @@ -459,7 +449,6 @@ using Appwrite.Models; using Appwrite.Enums; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetKey(""); // Your secret API key @@ -488,7 +477,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -520,7 +508,6 @@ import io.appwrite.coroutines.CoroutineCallback import io.appwrite.services.Messaging val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key @@ -546,7 +533,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey(""); // Your secret API key @@ -577,7 +563,6 @@ messaging.updateSendgridProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setKey("") // Your secret API key diff --git a/src/routes/docs/products/messaging/telesign/+page.markdoc b/src/routes/docs/products/messaging/telesign/+page.markdoc index f8dc07bec9..acb24bcf6e 100644 --- a/src/routes/docs/products/messaging/telesign/+page.markdoc +++ b/src/routes/docs/products/messaging/telesign/+page.markdoc @@ -74,7 +74,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -98,7 +97,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -122,7 +120,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -193,7 +190,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -218,7 +214,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -247,7 +242,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -277,7 +271,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -305,7 +298,6 @@ messaging.createSms( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -349,7 +341,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -372,7 +363,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -395,7 +385,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -463,7 +452,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -487,7 +475,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -515,7 +502,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -544,7 +530,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -571,7 +556,6 @@ messaging.updateTelesignProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/textmagic/+page.markdoc b/src/routes/docs/products/messaging/textmagic/+page.markdoc index 455b173dad..c6cb39af40 100644 --- a/src/routes/docs/products/messaging/textmagic/+page.markdoc +++ b/src/routes/docs/products/messaging/textmagic/+page.markdoc @@ -74,7 +74,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -98,7 +97,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -122,7 +120,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -193,7 +190,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -218,7 +214,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -247,7 +242,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -277,7 +271,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -305,7 +298,6 @@ messaging.createSms( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -349,7 +341,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -372,7 +363,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -395,7 +385,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -463,7 +452,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -487,7 +475,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -515,7 +502,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -544,7 +530,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -571,7 +556,6 @@ messaging.updateTextmagicProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/topics/+page.markdoc b/src/routes/docs/products/messaging/topics/+page.markdoc index b7c6fde24f..7bfb8d39fa 100644 --- a/src/routes/docs/products/messaging/topics/+page.markdoc +++ b/src/routes/docs/products/messaging/topics/+page.markdoc @@ -53,7 +53,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -74,7 +73,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -94,7 +92,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -154,7 +151,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -175,7 +171,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -200,7 +195,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -226,7 +220,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -250,7 +243,6 @@ messaging.createTopic( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -295,7 +287,6 @@ If you can't find the targets you'd like to add, see the [targets page](/docs/pr const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token @@ -311,7 +302,6 @@ const subscriber = await messaging.createSubscriber( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token @@ -332,7 +322,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token @@ -385,7 +374,6 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token @@ -402,7 +390,6 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token @@ -420,7 +407,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token @@ -438,7 +424,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token @@ -462,7 +447,6 @@ messaging.createSubscriber( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token diff --git a/src/routes/docs/products/messaging/twilio/+page.markdoc b/src/routes/docs/products/messaging/twilio/+page.markdoc index c11be5db3b..b41b46a591 100644 --- a/src/routes/docs/products/messaging/twilio/+page.markdoc +++ b/src/routes/docs/products/messaging/twilio/+page.markdoc @@ -76,7 +76,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -100,7 +99,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -124,7 +122,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -195,7 +192,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -220,7 +216,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -249,7 +244,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -279,7 +273,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -307,7 +300,6 @@ messaging.createSms( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -349,7 +341,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -372,7 +363,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -395,7 +385,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -463,7 +452,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -487,7 +475,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -515,7 +502,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -544,7 +530,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -571,7 +556,6 @@ messaging.updateTwilioProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/messaging/vonage/+page.markdoc b/src/routes/docs/products/messaging/vonage/+page.markdoc index 517f664c18..7be2d4a6d6 100644 --- a/src/routes/docs/products/messaging/vonage/+page.markdoc +++ b/src/routes/docs/products/messaging/vonage/+page.markdoc @@ -76,7 +76,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -100,7 +99,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -124,7 +122,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -195,7 +192,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -220,7 +216,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -249,7 +244,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -279,7 +273,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -307,7 +300,6 @@ messaging.createSms( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -351,7 +343,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -374,7 +365,6 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -397,7 +387,6 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -465,7 +454,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -489,7 +477,6 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -517,7 +504,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -546,7 +532,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -573,7 +558,6 @@ messaging.updateVonageProvider( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/storage/buckets/+page.markdoc b/src/routes/docs/products/storage/buckets/+page.markdoc index 60836757f0..a2d1f3abe1 100644 --- a/src/routes/docs/products/storage/buckets/+page.markdoc +++ b/src/routes/docs/products/storage/buckets/+page.markdoc @@ -36,7 +36,6 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -58,7 +57,6 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -81,7 +79,6 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -128,7 +125,6 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -146,7 +142,6 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -169,7 +164,6 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -186,7 +180,6 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key @@ -209,7 +202,6 @@ storage.createBucket( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key diff --git a/src/routes/docs/products/storage/images/+page.markdoc b/src/routes/docs/products/storage/images/+page.markdoc index 0e35880e56..2d58184587 100644 --- a/src/routes/docs/products/storage/images/+page.markdoc +++ b/src/routes/docs/products/storage/images/+page.markdoc @@ -47,7 +47,6 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -77,7 +76,6 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file @@ -123,7 +121,6 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFilePreview( @@ -159,7 +156,6 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/src/routes/docs/products/storage/quick-start/+page.markdoc b/src/routes/docs/products/storage/quick-start/+page.markdoc index f81577b26c..cd22513b96 100644 --- a/src/routes/docs/products/storage/quick-start/+page.markdoc +++ b/src/routes/docs/products/storage/quick-start/+page.markdoc @@ -23,7 +23,6 @@ To upload a file, add this to you web, Flutter, Apple, or Android app. import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const storage = new Storage(client); @@ -46,7 +45,6 @@ To upload a file, add this to you web, Flutter, Apple, or Android app. void main() { // Init SDK final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final storage = Storage(client); @@ -63,7 +61,6 @@ To upload a file, add this to you web, Flutter, Apple, or Android app. func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let storage = Storage(client) @@ -84,7 +81,6 @@ To upload a file, add this to you web, Flutter, Apple, or Android app. suspend fun main() { val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val storage = Storage(client) @@ -135,7 +131,6 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -151,7 +146,6 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file @@ -186,7 +180,6 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileDownload( @@ -211,7 +204,6 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/src/routes/docs/products/storage/upload-download/+page.markdoc b/src/routes/docs/products/storage/upload-download/+page.markdoc index 39ebb29b74..1befb36f83 100644 --- a/src/routes/docs/products/storage/upload-download/+page.markdoc +++ b/src/routes/docs/products/storage/upload-download/+page.markdoc @@ -19,7 +19,6 @@ You can also upload files programmatically using our SDKs: import { Client, Storage } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const storage = new Storage(client); @@ -42,7 +41,6 @@ You can also upload files programmatically using our SDKs: void main() { // Init SDK final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final storage = Storage(client); @@ -61,7 +59,6 @@ You can also upload files programmatically using our SDKs: suspend fun main() { val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID val storage = Storage(client) @@ -79,7 +76,6 @@ You can also upload files programmatically using our SDKs: func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let storage = Storage(client) @@ -285,7 +281,6 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -305,7 +300,6 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file @@ -340,7 +334,6 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFile( @@ -365,7 +358,6 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) @@ -392,7 +384,6 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -408,7 +399,6 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file @@ -443,7 +433,6 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileDownload( @@ -468,7 +457,6 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) @@ -495,7 +483,6 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -511,7 +498,6 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file @@ -546,7 +532,6 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFilePreview( @@ -571,7 +556,6 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) @@ -599,7 +583,6 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; @@ -615,7 +598,6 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ; // downloading file @@ -650,7 +632,6 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileView( @@ -675,7 +656,6 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID val storage = Storage(client) diff --git a/src/routes/docs/quick-starts/android/+page.markdoc b/src/routes/docs/quick-starts/android/+page.markdoc index 8d097ff7ac..e7b156849e 100644 --- a/src/routes/docs/quick-starts/android/+page.markdoc +++ b/src/routes/docs/quick-starts/android/+page.markdoc @@ -102,7 +102,6 @@ object Appwrite { fun init(context: Context) { client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("[YOUR_PROJECT_ID]") account = Account(client) diff --git a/src/routes/docs/quick-starts/angular/+page.markdoc b/src/routes/docs/quick-starts/angular/+page.markdoc index 8f3b554542..2659144cb4 100644 --- a/src/routes/docs/quick-starts/angular/+page.markdoc +++ b/src/routes/docs/quick-starts/angular/+page.markdoc @@ -74,7 +74,6 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/quick-starts/apple/+page.markdoc b/src/routes/docs/quick-starts/apple/+page.markdoc index c1ff972790..da3fdd1e60 100644 --- a/src/routes/docs/quick-starts/apple/+page.markdoc +++ b/src/routes/docs/quick-starts/apple/+page.markdoc @@ -110,7 +110,6 @@ class Appwrite { public init() { self.client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("[YOUR_PROJECT_ID]") self.account = Account(client) diff --git a/src/routes/docs/quick-starts/dart/+page.markdoc b/src/routes/docs/quick-starts/dart/+page.markdoc index a2f5ad0245..6f75585d5b 100644 --- a/src/routes/docs/quick-starts/dart/+page.markdoc +++ b/src/routes/docs/quick-starts/dart/+page.markdoc @@ -78,7 +78,6 @@ var client = Client(); Future main() async { client - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") .setKey(""); } @@ -200,7 +199,6 @@ Finally, revisit the `main()` function and call the functions created in previou ```dart Future main() async { client - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") .setKey(""); diff --git a/src/routes/docs/quick-starts/deno/+page.markdoc b/src/routes/docs/quick-starts/deno/+page.markdoc index e91ba8afd0..3e430e54d1 100644 --- a/src/routes/docs/quick-starts/deno/+page.markdoc +++ b/src/routes/docs/quick-starts/deno/+page.markdoc @@ -81,7 +81,6 @@ import { Client, ID, Databases, Models } from "https://deno.land/x/appwrite/mod. const client: Client = new Client(); client - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") .setKey(""); ``` diff --git a/src/routes/docs/quick-starts/dotnet/+page.markdoc b/src/routes/docs/quick-starts/dotnet/+page.markdoc index a88ca6554b..31f85e73c9 100644 --- a/src/routes/docs/quick-starts/dotnet/+page.markdoc +++ b/src/routes/docs/quick-starts/dotnet/+page.markdoc @@ -83,7 +83,6 @@ using Appwrite.Services; var client = new Client(); client - .SetEndpoint("https://cloud.appwrite.io/v1") .SetProject("") .SetKey(""); ``` diff --git a/src/routes/docs/quick-starts/flutter/+page.markdoc b/src/routes/docs/quick-starts/flutter/+page.markdoc index 9782ac1287..119b761594 100644 --- a/src/routes/docs/quick-starts/flutter/+page.markdoc +++ b/src/routes/docs/quick-starts/flutter/+page.markdoc @@ -183,7 +183,6 @@ import 'package:appwrite/models.dart' as models; void main() { WidgetsFlutterBinding.ensureInitialized(); Client client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); Account account = Account(client); diff --git a/src/routes/docs/quick-starts/kotlin/+page.markdoc b/src/routes/docs/quick-starts/kotlin/+page.markdoc index fd99749066..38297e36a6 100644 --- a/src/routes/docs/quick-starts/kotlin/+page.markdoc +++ b/src/routes/docs/quick-starts/kotlin/+page.markdoc @@ -91,7 +91,6 @@ import io.appwrite.models.Collection import kotlinx.coroutines.coroutineScope val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") .setKey(""); ``` diff --git a/src/routes/docs/quick-starts/nextjs/+page.markdoc b/src/routes/docs/quick-starts/nextjs/+page.markdoc index 4b86d8feeb..1d4eec6bf8 100644 --- a/src/routes/docs/quick-starts/nextjs/+page.markdoc +++ b/src/routes/docs/quick-starts/nextjs/+page.markdoc @@ -64,7 +64,6 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/quick-starts/node/+page.markdoc b/src/routes/docs/quick-starts/node/+page.markdoc index c434eb2670..4a905fdd8b 100644 --- a/src/routes/docs/quick-starts/node/+page.markdoc +++ b/src/routes/docs/quick-starts/node/+page.markdoc @@ -76,7 +76,6 @@ const sdk = require("node-appwrite"); const client = new sdk.Client(); client - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") .setKey(""); ``` diff --git a/src/routes/docs/quick-starts/nuxt/+page.markdoc b/src/routes/docs/quick-starts/nuxt/+page.markdoc index 1d43b20e6b..cfb7423de2 100644 --- a/src/routes/docs/quick-starts/nuxt/+page.markdoc +++ b/src/routes/docs/quick-starts/nuxt/+page.markdoc @@ -67,7 +67,6 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/quick-starts/php/+page.markdoc b/src/routes/docs/quick-starts/php/+page.markdoc index df8f42d9b1..27dcfdc35c 100644 --- a/src/routes/docs/quick-starts/php/+page.markdoc +++ b/src/routes/docs/quick-starts/php/+page.markdoc @@ -81,7 +81,6 @@ use Appwrite\ID; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') ->setProject('') ->setKey(''); ``` diff --git a/src/routes/docs/quick-starts/react-native/+page.markdoc b/src/routes/docs/quick-starts/react-native/+page.markdoc index fa9b7cce70..6e125a3d11 100644 --- a/src/routes/docs/quick-starts/react-native/+page.markdoc +++ b/src/routes/docs/quick-starts/react-native/+page.markdoc @@ -99,7 +99,6 @@ let account; client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject('sisyphus') .setPlatform('com.example.my-app'); diff --git a/src/routes/docs/quick-starts/react/+page.markdoc b/src/routes/docs/quick-starts/react/+page.markdoc index 64d3087118..e14af50ff3 100644 --- a/src/routes/docs/quick-starts/react/+page.markdoc +++ b/src/routes/docs/quick-starts/react/+page.markdoc @@ -64,7 +64,6 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/quick-starts/refine/+page.markdoc b/src/routes/docs/quick-starts/refine/+page.markdoc index d280cfa626..93f6218292 100644 --- a/src/routes/docs/quick-starts/refine/+page.markdoc +++ b/src/routes/docs/quick-starts/refine/+page.markdoc @@ -72,7 +72,7 @@ const APPWRITE_PROJECT = ""; // Replace with your project ID const appwriteClient = new Appwrite(); -appwriteClient.setEndpoint(APPWRITE_URL).setProject(APPWRITE_PROJECT); +appwriteClient.setProject(APPWRITE_PROJECT); const account = new Account(appwriteClient); const storage = new Storage(appwriteClient); diff --git a/src/routes/docs/quick-starts/solid/+page.markdoc b/src/routes/docs/quick-starts/solid/+page.markdoc index bc3f9d2fd4..ded13a2d3d 100644 --- a/src/routes/docs/quick-starts/solid/+page.markdoc +++ b/src/routes/docs/quick-starts/solid/+page.markdoc @@ -70,7 +70,6 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/quick-starts/sveltekit/+page.markdoc b/src/routes/docs/quick-starts/sveltekit/+page.markdoc index cbf9d396db..a6930efdf7 100644 --- a/src/routes/docs/quick-starts/sveltekit/+page.markdoc +++ b/src/routes/docs/quick-starts/sveltekit/+page.markdoc @@ -63,7 +63,6 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/quick-starts/swift/+page.markdoc b/src/routes/docs/quick-starts/swift/+page.markdoc index a9d7a8e47b..a93abdb3e4 100644 --- a/src/routes/docs/quick-starts/swift/+page.markdoc +++ b/src/routes/docs/quick-starts/swift/+page.markdoc @@ -85,7 +85,6 @@ import Appwrite import AppwriteModels let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") .setKey("") ``` diff --git a/src/routes/docs/quick-starts/vue/+page.markdoc b/src/routes/docs/quick-starts/vue/+page.markdoc index f177b42129..c7fbdec722 100644 --- a/src/routes/docs/quick-starts/vue/+page.markdoc +++ b/src/routes/docs/quick-starts/vue/+page.markdoc @@ -65,7 +65,6 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/quick-starts/web/+page.markdoc b/src/routes/docs/quick-starts/web/+page.markdoc index 8f16d65f2e..a673b9abe2 100644 --- a/src/routes/docs/quick-starts/web/+page.markdoc +++ b/src/routes/docs/quick-starts/web/+page.markdoc @@ -52,7 +52,6 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account = new Account(client); @@ -73,7 +72,6 @@ import { type Models } from 'appwrite'; const client: Client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); // Replace with your project ID export const account: Account = new Account(client); diff --git a/src/routes/docs/references/quick-start/+page.markdoc b/src/routes/docs/references/quick-start/+page.markdoc index 0a04b76d2a..b402d770bd 100644 --- a/src/routes/docs/references/quick-start/+page.markdoc +++ b/src/routes/docs/references/quick-start/+page.markdoc @@ -96,7 +96,6 @@ import { Client } from "appwrite"; const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; ``` @@ -106,7 +105,6 @@ import 'package:appwrite/appwrite.dart'; Client client = Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID ; ``` @@ -114,14 +112,12 @@ client import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID ``` ```client-android-kotlin import io.appwrite.Client val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID ``` {% /multicode %} @@ -139,7 +135,6 @@ const sdk = require('node-appwrite'); const client = new sdk.Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('') // Your secret JSON Web Token ; @@ -151,7 +146,6 @@ import * as sdk from "https://deno.land/x/appwrite/mod.ts"; let client = new sdk.Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('') // Your secret JSON Web Token ; @@ -164,7 +158,6 @@ use Appwrite\Client; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setJWT('') // Your secret JSON Web Token ; @@ -195,7 +188,6 @@ using Appwrite; using Appwrite.Services; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("") // Your project ID .SetJWT(""); // Your secret JSON Web Token ``` @@ -206,7 +198,6 @@ void main() { // Init SDK Client client = Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setJWT('') // Your secret JSON Web Token ; @@ -217,7 +208,6 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setJWT(""); // Your secret JSON Web Token ``` @@ -226,7 +216,6 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; Client client = new Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setJWT(""); // Your secret JSON Web Token ``` @@ -234,7 +223,6 @@ Client client = new Client() import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID .setJWT("") // Your secret JSON Web Token ``` @@ -262,7 +250,6 @@ The API key should have the following scope in order to perform authentication: import { Client } from "node-appwrite"; // Using the server SDK const adminClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('') // Your project ID .setKey(''); // Your secret API key ``` @@ -271,7 +258,6 @@ use Appwrite\Client; use Appwrite\Services\Account; $adminClient = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject('') // Your project ID ->setKey(''); // Your secret API key @@ -291,7 +277,6 @@ You should create a new client for each request and **never** share the client b {% multicode %} ```server-nodejs const sessionClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const session = req.cookies.session; // Get the session cookie from the request @@ -301,7 +286,6 @@ if (session) { ``` ```php $sessionClient = (new Client()) - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint ->setProject(''); // Your project ID $session = $_COOKIE['session']; // Get the session cookie from the request diff --git a/src/routes/docs/tutorials/android/step-3/+page.markdoc b/src/routes/docs/tutorials/android/step-3/+page.markdoc index 49aae03450..df7fed3687 100644 --- a/src/routes/docs/tutorials/android/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/android/step-3/+page.markdoc @@ -58,7 +58,6 @@ object Appwrite { fun init(context: Context) { client = Client(context) - .setEndpoint(ENDPOINT) .setProject(PROJECT_ID) } } diff --git a/src/routes/docs/tutorials/android/step-4/+page.markdoc b/src/routes/docs/tutorials/android/step-4/+page.markdoc index 4d3f00aa16..4854fd836f 100644 --- a/src/routes/docs/tutorials/android/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/android/step-4/+page.markdoc @@ -72,7 +72,6 @@ object Appwrite { fun init(context: Context) { client = Client(context) - .setEndpoint(ENDPOINT) .setProject(PROJECT_ID) // Add this line 👇 diff --git a/src/routes/docs/tutorials/android/step-6/+page.markdoc b/src/routes/docs/tutorials/android/step-6/+page.markdoc index a43f091652..8f53dfbf16 100644 --- a/src/routes/docs/tutorials/android/step-6/+page.markdoc +++ b/src/routes/docs/tutorials/android/step-6/+page.markdoc @@ -114,7 +114,6 @@ object Appwrite { fun init(context: Context) { client = Client(context) - .setEndpoint(ENDPOINT) .setProject(PROJECT_ID) // Add this line 👇 diff --git a/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc index 5f81819245..c87b52edce 100644 --- a/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc @@ -29,7 +29,6 @@ export const SESSION_COOKIE = "my-custom-session"; // Admin client, used to create new accounts export function createAdminClient() { const client = new Client() - .setEndpoint(import.meta.env.PUBLIC_APPWRITE_ENDPOINT) .setProject(import.meta.env.PUBLIC_APPWRITE_PROJECT) .setKey(import.meta.env.APPWRITE_KEY); // Set the API key here! @@ -44,7 +43,6 @@ export function createAdminClient() { // Session client, used to make requests on behalf of the logged in user export function createSessionClient(request) { const client = new Client() - .setEndpoint(import.meta.env.PUBLIC_APPWRITE_ENDPOINT) .setProject(import.meta.env.PUBLIC_APPWRITE_PROJECT); // Get the session cookie from the request and set the session diff --git a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc index 195a16ff19..d266077b79 100644 --- a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc @@ -17,7 +17,6 @@ import { cookies } from "next/headers"; export async function createSessionClient() { const client = new Client() - .setEndpoint(process.env.NEXT_PUBLIC_APPWRITE_ENDPOINT) .setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT); const session = cookies().get("my-custom-session"); @@ -36,7 +35,6 @@ export async function createSessionClient() { export async function createAdminClient() { const client = new Client() - .setEndpoint(process.env.NEXT_PUBLIC_APPWRITE_ENDPOINT) .setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT) .setKey(process.env.NEXT_APPWRITE_KEY); diff --git a/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc index 512060f7aa..63aaae0566 100644 --- a/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc @@ -25,7 +25,6 @@ export const SESSION_COOKIE = "my-custom-session"; export function createAdminClient() { const client = new Client() - .setEndpoint(process.env.APPWRITE_ENDPOINT!) .setProject(process.env.APPWRITE_PROJECT!) .setKey(process.env.APPWRITE_KEY!); @@ -40,7 +39,6 @@ export function createSessionClient(event) { const config = useRuntimeConfig(event); const client = new Client() - .setEndpoint(config.public.appwriteEndpoint) .setProject(config.public.appwriteProjectId); const session = getCookie(event, SESSION_COOKIE); diff --git a/src/routes/docs/tutorials/nuxt/step-3/+page.markdoc b/src/routes/docs/tutorials/nuxt/step-3/+page.markdoc index a9e0c1e8e7..cfbd3c280a 100644 --- a/src/routes/docs/tutorials/nuxt/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nuxt/step-3/+page.markdoc @@ -66,7 +66,7 @@ const project: string = import.meta.env.VITE_APPWRITE_PROJECT; const client: Client = new Client(); -client.setEndpoint(url).setProject(project); +client.setProject(project); export const account: Account = new Account(client); export const database: Databases = new Databases(client); diff --git a/src/routes/docs/tutorials/react-native/step-3/+page.markdoc b/src/routes/docs/tutorials/react-native/step-3/+page.markdoc index ccb03ba4b6..1605e968bf 100644 --- a/src/routes/docs/tutorials/react-native/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/react-native/step-3/+page.markdoc @@ -50,7 +50,6 @@ import { Client, Databases, Account } from "react-native-appwrite"; const client = new Client(); client - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") // Replace with your project ID .setPlatform('com.example.idea-tracker'); diff --git a/src/routes/docs/tutorials/react/step-3/+page.markdoc b/src/routes/docs/tutorials/react/step-3/+page.markdoc index 20e5a17d7d..c7cd8ff9e2 100644 --- a/src/routes/docs/tutorials/react/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/react/step-3/+page.markdoc @@ -49,7 +49,6 @@ import { Client, Databases, Account } from "appwrite"; const client = new Client(); client - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/tutorials/refine/step-3/+page.markdoc b/src/routes/docs/tutorials/refine/step-3/+page.markdoc index b6d46f3ba6..37fe1cfd45 100644 --- a/src/routes/docs/tutorials/refine/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/refine/step-3/+page.markdoc @@ -51,7 +51,7 @@ const APPWRITE_PROJECT = ""; // Replace with your project ID const appwriteClient = new Appwrite(); -appwriteClient.setEndpoint(APPWRITE_URL).setProject(APPWRITE_PROJECT); +appwriteClient.setProject(APPWRITE_PROJECT); const account = new Account(appwriteClient); const storage = new Storage(appwriteClient); diff --git a/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc index c4f9b3c9af..25b95b7b14 100644 --- a/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc @@ -21,7 +21,6 @@ import { Databases, Account, Client } from "appwrite"; const client = new Client(); client - .setEndpoint(PUBLIC_APPWRITE_ENDPOINT) .setProject(PUBLIC_APPWRITE_PROJECT); const account = new Account(client); diff --git a/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc index 0f64cb66ee..e5c39605e8 100644 --- a/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc @@ -27,7 +27,6 @@ export const SESSION_COOKIE = 'my-custom-session'; export function createAdminClient() { const client = new Client() - .setEndpoint(PUBLIC_APPWRITE_ENDPOINT) .setProject(PUBLIC_APPWRITE_PROJECT) .setKey(APPWRITE_KEY); // Set the Appwrite API key! @@ -41,7 +40,6 @@ export function createAdminClient() { export function createSessionClient(event) { const client = new Client() - .setEndpoint(PUBLIC_APPWRITE_ENDPOINT) .setProject(PUBLIC_APPWRITE_PROJECT); // Extract our custom domain's session cookie from the request diff --git a/src/routes/docs/tutorials/sveltekit/step-3/+page.markdoc b/src/routes/docs/tutorials/sveltekit/step-3/+page.markdoc index c684a9910c..5533575274 100644 --- a/src/routes/docs/tutorials/sveltekit/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit/step-3/+page.markdoc @@ -48,7 +48,6 @@ import { Client, Databases, Account } from "appwrite"; const client = new Client(); client - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); // Replace with your project ID export const account = new Account(client); diff --git a/src/routes/docs/tutorials/vue/step-3/+page.markdoc b/src/routes/docs/tutorials/vue/step-3/+page.markdoc index 09f3a62ead..cf26eb2d65 100644 --- a/src/routes/docs/tutorials/vue/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/vue/step-3/+page.markdoc @@ -48,7 +48,6 @@ import { Client, Databases, Account } from "appwrite"; const client = new Client(); client - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); // Replace with your project ID export const account = new Account(client); From 665d80665034d646830769de418caefedb24f874 Mon Sep 17 00:00:00 2001 From: choir27 Date: Fri, 16 Aug 2024 15:38:11 -0400 Subject: [PATCH 2/9] docs: remove .set_endpoint from all code snippet examples --- .../docs/products/auth/custom-token/+page.markdoc | 2 -- src/routes/docs/products/auth/jwt/+page.markdoc | 12 +++--------- src/routes/docs/products/auth/labels/+page.markdoc | 2 -- .../products/databases/collections/+page.markdoc | 2 -- .../docs/products/databases/databases/+page.markdoc | 2 -- .../products/databases/relationships/+page.markdoc | 2 -- .../docs/products/functions/develop/+page.markdoc | 6 ------ .../docs/products/functions/examples/+page.markdoc | 4 ---- .../docs/products/functions/execute/+page.markdoc | 2 -- .../docs/products/messaging/apns/+page.markdoc | 2 -- src/routes/docs/products/messaging/fcm/+page.markdoc | 2 -- .../docs/products/messaging/mailgun/+page.markdoc | 4 ---- .../docs/products/messaging/messages/+page.markdoc | 6 ------ .../docs/products/messaging/msg91/+page.markdoc | 4 ---- .../messaging/send-email-messages/+page.markdoc | 8 -------- .../messaging/send-push-notifications/+page.markdoc | 2 -- .../messaging/send-sms-messages/+page.markdoc | 8 -------- .../docs/products/messaging/sendgrid/+page.markdoc | 4 ---- .../docs/products/messaging/smtp/+page.markdoc | 4 ---- .../docs/products/messaging/telesign/+page.markdoc | 4 ---- .../docs/products/messaging/textmagic/+page.markdoc | 4 ---- .../docs/products/messaging/topics/+page.markdoc | 4 ---- .../docs/products/messaging/twilio/+page.markdoc | 4 ---- .../docs/products/messaging/vonage/+page.markdoc | 4 ---- .../docs/products/storage/buckets/+page.markdoc | 2 -- src/routes/docs/quick-starts/python/+page.markdoc | 1 - src/routes/docs/quick-starts/ruby/+page.markdoc | 1 - src/routes/docs/references/quick-start/+page.markdoc | 2 -- 28 files changed, 3 insertions(+), 101 deletions(-) diff --git a/src/routes/docs/products/auth/custom-token/+page.markdoc b/src/routes/docs/products/auth/custom-token/+page.markdoc index 32392493e2..2479d5a9ef 100644 --- a/src/routes/docs/products/auth/custom-token/+page.markdoc +++ b/src/routes/docs/products/auth/custom-token/+page.markdoc @@ -47,7 +47,6 @@ from appwrite.users import Users client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your project API key ) @@ -64,7 +63,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your project API key diff --git a/src/routes/docs/products/auth/jwt/+page.markdoc b/src/routes/docs/products/auth/jwt/+page.markdoc index 842aaaa956..6b56cc2de8 100644 --- a/src/routes/docs/products/auth/jwt/+page.markdoc +++ b/src/routes/docs/products/auth/jwt/+page.markdoc @@ -99,7 +99,6 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token ) @@ -111,7 +110,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token ``` @@ -198,7 +196,7 @@ const documents = await databases.listDocuments( use Appwrite\Client; $client = (new Client()) - .setProject('') // Your project ID + .setProject('') // Your project ID .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Tokens $databases = new Databases($client); @@ -215,8 +213,7 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID + .set_project('') # Your project ID .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token ) @@ -234,8 +231,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID + .set_project('') # Your project ID .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token databases = Databases.new(client) @@ -387,7 +383,6 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .set_project('') // Your project ID .set_key('98fd4...a2ad2') // Your secret API key ) @@ -406,7 +401,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('98fd4...a2ad2') # Your secret API key diff --git a/src/routes/docs/products/auth/labels/+page.markdoc b/src/routes/docs/products/auth/labels/+page.markdoc index 47a05e3c91..553cb785d6 100644 --- a/src/routes/docs/products/auth/labels/+page.markdoc +++ b/src/routes/docs/products/auth/labels/+page.markdoc @@ -55,7 +55,6 @@ from appwrite.role import Role client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('98fd4...a2ad2') # Your secret API key ) @@ -73,7 +72,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('98fd4...a2ad2') # Your secret API key diff --git a/src/routes/docs/products/databases/collections/+page.markdoc b/src/routes/docs/products/databases/collections/+page.markdoc index 59eb42ebb3..17c35f91cc 100644 --- a/src/routes/docs/products/databases/collections/+page.markdoc +++ b/src/routes/docs/products/databases/collections/+page.markdoc @@ -88,7 +88,6 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -103,7 +102,6 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/databases/databases/+page.markdoc b/src/routes/docs/products/databases/databases/+page.markdoc index 6b37ee2dbd..49cc2ff583 100644 --- a/src/routes/docs/products/databases/databases/+page.markdoc +++ b/src/routes/docs/products/databases/databases/+page.markdoc @@ -84,7 +84,6 @@ from appwrite.services.databases import Databases client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -99,7 +98,6 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/databases/relationships/+page.markdoc b/src/routes/docs/products/databases/relationships/+page.markdoc index 52386fd877..7104cd5a95 100644 --- a/src/routes/docs/products/databases/relationships/+page.markdoc +++ b/src/routes/docs/products/databases/relationships/+page.markdoc @@ -131,7 +131,6 @@ from appwrite.client import Client from appwrite.services.databases import Databases client = (Client() - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('')) # Your project ID databases = Databases(client) @@ -155,7 +154,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1')# Your API Endpoint .set_project('') # Your project ID databases = Databases.new(client) diff --git a/src/routes/docs/products/functions/develop/+page.markdoc b/src/routes/docs/products/functions/develop/+page.markdoc index dfa58544e2..69eac0218a 100644 --- a/src/routes/docs/products/functions/develop/+page.markdoc +++ b/src/routes/docs/products/functions/develop/+page.markdoc @@ -108,7 +108,6 @@ def main(context): # # client = ( # Client() - # .set_endpoint("https://cloud.appwrite.io/v1") # .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"]) # .set_key(os.environ["APPWRITE_API_KEY"]) # ) @@ -143,7 +142,6 @@ def main(context) # # client = Appwrite::Client.new # client - # .set_endpoint('https://cloud.appwrite.io/v1') # .set_project(ENV['APPWRITE_FUNCTION_PROJECT_ID']) # .set_key(ENV['APPWRITE_API_KEY']) @@ -1370,7 +1368,6 @@ import os def main(context): client = ( Client() - .set_endpoint("https://cloud.appwrite.io/v1") .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"]) .set_key(os.environ["APPWRITE_API_KEY"]) ) @@ -1397,7 +1394,6 @@ include Appwrite def main(context) client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') .set_project(ENV['APPWRITE_FUNCTION_PROJECT_ID']) .set_key(ENV['APPWRITE_API_KEY']) @@ -1684,7 +1680,6 @@ import os def main(context): client = ( Client() - .set_endpoint("https://cloud.appwrite.io/v1") .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"]) ) @@ -1715,7 +1710,6 @@ include Appwrite def main(context) client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') .set_project(ENV['APPWRITE_FUNCTION_PROJECT_ID']) if context.request.headers['x-appwrite-user-jwt'] diff --git a/src/routes/docs/products/functions/examples/+page.markdoc b/src/routes/docs/products/functions/examples/+page.markdoc index 09dedd9570..0c58780cf3 100644 --- a/src/routes/docs/products/functions/examples/+page.markdoc +++ b/src/routes/docs/products/functions/examples/+page.markdoc @@ -314,7 +314,6 @@ def main(context): client = ( Client() - .set_endpoint("https://cloud.appwrite.io/v1") .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"]) .set_key(os.environ["APPWRITE_API_KEY"]) ) @@ -456,7 +455,6 @@ def main(context) client = Appwrite::Client.new() client - .set_endpoint('https://cloud.appwrite.io/v1') .set_project(ENV['APPWRITE_FUNCTION_PROJECT_ID']) .set_key(ENV['APPWRITE_API_KEY']) @@ -598,7 +596,6 @@ def main(context): client = ( Client() - .set_endpoint("https://cloud.appwrite.io/v1") .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"]) .set_key(os.environ["APPWRITE_API_KEY"]) ) @@ -703,7 +700,6 @@ def main(context) client = Appwrite::Client.new() client - .set_endpoint('https://cloud.appwrite.io/v1') .set_project(ENV['APPWRITE_FUNCTION_PROJECT_ID']) .set_key(ENV['APPWRITE_API_KEY']) diff --git a/src/routes/docs/products/functions/execute/+page.markdoc b/src/routes/docs/products/functions/execute/+page.markdoc index 1a1dd01487..9bd78738cd 100644 --- a/src/routes/docs/products/functions/execute/+page.markdoc +++ b/src/routes/docs/products/functions/execute/+page.markdoc @@ -253,7 +253,6 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID ) @@ -274,7 +273,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID functions = Functions.new(client) diff --git a/src/routes/docs/products/messaging/apns/+page.markdoc b/src/routes/docs/products/messaging/apns/+page.markdoc index 8be9832303..fee6b628ea 100644 --- a/src/routes/docs/products/messaging/apns/+page.markdoc +++ b/src/routes/docs/products/messaging/apns/+page.markdoc @@ -179,7 +179,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -202,7 +201,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/fcm/+page.markdoc b/src/routes/docs/products/messaging/fcm/+page.markdoc index 77907525c3..c4c481e18c 100644 --- a/src/routes/docs/products/messaging/fcm/+page.markdoc +++ b/src/routes/docs/products/messaging/fcm/+page.markdoc @@ -167,7 +167,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -187,7 +186,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/mailgun/+page.markdoc b/src/routes/docs/products/messaging/mailgun/+page.markdoc index a49b1da30c..a9e6e0e2a7 100644 --- a/src/routes/docs/products/messaging/mailgun/+page.markdoc +++ b/src/routes/docs/products/messaging/mailgun/+page.markdoc @@ -138,7 +138,6 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key ) @@ -153,7 +152,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key @@ -393,7 +391,6 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key ) @@ -419,7 +416,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key diff --git a/src/routes/docs/products/messaging/messages/+page.markdoc b/src/routes/docs/products/messaging/messages/+page.markdoc index bcf713f61a..cf992e2ba7 100644 --- a/src/routes/docs/products/messaging/messages/+page.markdoc +++ b/src/routes/docs/products/messaging/messages/+page.markdoc @@ -325,7 +325,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -356,7 +355,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -650,7 +648,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -677,7 +674,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -935,7 +931,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -958,7 +953,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/msg91/+page.markdoc b/src/routes/docs/products/messaging/msg91/+page.markdoc index d003b9d09a..41082a913f 100644 --- a/src/routes/docs/products/messaging/msg91/+page.markdoc +++ b/src/routes/docs/products/messaging/msg91/+page.markdoc @@ -144,7 +144,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -167,7 +166,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -409,7 +407,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -431,7 +428,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc index 21c983bf70..5f478d6910 100644 --- a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc @@ -104,7 +104,6 @@ from appwrite.client import Client from appwrite.enums import MessagingProviderType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -126,7 +125,6 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -333,7 +331,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -351,7 +348,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -564,7 +560,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -591,7 +586,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -858,7 +852,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -885,7 +878,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc index bf3e8a9a20..429a6f1d0d 100644 --- a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc +++ b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc @@ -566,7 +566,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -597,7 +596,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc index bfa8f626f3..03ecd76ef7 100644 --- a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc @@ -113,7 +113,6 @@ from appwrite.client import Client from appwrite.enums import MessagingProviderType client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -135,7 +134,6 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -330,7 +328,6 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -347,7 +344,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -518,7 +514,6 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -540,7 +535,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -739,7 +733,6 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -761,7 +754,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/sendgrid/+page.markdoc b/src/routes/docs/products/messaging/sendgrid/+page.markdoc index 6449398ded..057defa7b0 100644 --- a/src/routes/docs/products/messaging/sendgrid/+page.markdoc +++ b/src/routes/docs/products/messaging/sendgrid/+page.markdoc @@ -131,7 +131,6 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key ) @@ -146,7 +145,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key @@ -360,7 +358,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key ) @@ -384,7 +381,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key diff --git a/src/routes/docs/products/messaging/smtp/+page.markdoc b/src/routes/docs/products/messaging/smtp/+page.markdoc index ef7f344fcc..05e7148fe6 100644 --- a/src/routes/docs/products/messaging/smtp/+page.markdoc +++ b/src/routes/docs/products/messaging/smtp/+page.markdoc @@ -140,7 +140,6 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key ) @@ -155,7 +154,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key @@ -395,7 +393,6 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key ) @@ -421,7 +418,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key diff --git a/src/routes/docs/products/messaging/telesign/+page.markdoc b/src/routes/docs/products/messaging/telesign/+page.markdoc index acb24bcf6e..5f6318c6b8 100644 --- a/src/routes/docs/products/messaging/telesign/+page.markdoc +++ b/src/routes/docs/products/messaging/telesign/+page.markdoc @@ -143,7 +143,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -166,7 +165,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -407,7 +405,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -429,7 +426,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/textmagic/+page.markdoc b/src/routes/docs/products/messaging/textmagic/+page.markdoc index c6cb39af40..e9bb3491d0 100644 --- a/src/routes/docs/products/messaging/textmagic/+page.markdoc +++ b/src/routes/docs/products/messaging/textmagic/+page.markdoc @@ -143,7 +143,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -166,7 +165,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -407,7 +405,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -429,7 +426,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/topics/+page.markdoc b/src/routes/docs/products/messaging/topics/+page.markdoc index 7bfb8d39fa..15c306ffce 100644 --- a/src/routes/docs/products/messaging/topics/+page.markdoc +++ b/src/routes/docs/products/messaging/topics/+page.markdoc @@ -112,7 +112,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -131,7 +130,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -338,7 +336,6 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint client.set_project('5df5acd0d48c2') # Your project ID client.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token @@ -356,7 +353,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token diff --git a/src/routes/docs/products/messaging/twilio/+page.markdoc b/src/routes/docs/products/messaging/twilio/+page.markdoc index b41b46a591..3b280e92bf 100644 --- a/src/routes/docs/products/messaging/twilio/+page.markdoc +++ b/src/routes/docs/products/messaging/twilio/+page.markdoc @@ -145,7 +145,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -168,7 +167,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -407,7 +405,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -429,7 +426,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/messaging/vonage/+page.markdoc b/src/routes/docs/products/messaging/vonage/+page.markdoc index 7be2d4a6d6..4ef5fbc9da 100644 --- a/src/routes/docs/products/messaging/vonage/+page.markdoc +++ b/src/routes/docs/products/messaging/vonage/+page.markdoc @@ -145,7 +145,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -168,7 +167,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key @@ -409,7 +407,6 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -431,7 +428,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/products/storage/buckets/+page.markdoc b/src/routes/docs/products/storage/buckets/+page.markdoc index a2d1f3abe1..a395549f21 100644 --- a/src/routes/docs/products/storage/buckets/+page.markdoc +++ b/src/routes/docs/products/storage/buckets/+page.markdoc @@ -94,7 +94,6 @@ from appwrite.services.storage import Storage client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -109,7 +108,6 @@ require 'Appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key diff --git a/src/routes/docs/quick-starts/python/+page.markdoc b/src/routes/docs/quick-starts/python/+page.markdoc index 71979941cd..379570b6dd 100644 --- a/src/routes/docs/quick-starts/python/+page.markdoc +++ b/src/routes/docs/quick-starts/python/+page.markdoc @@ -97,7 +97,6 @@ from appwrite.services.databases import Databases from appwrite.id import ID client = Client() -client.set_endpoint('https://cloud.appwrite.io/v1') client.set_project('') client.set_key('') ``` diff --git a/src/routes/docs/quick-starts/ruby/+page.markdoc b/src/routes/docs/quick-starts/ruby/+page.markdoc index 1f6fa4269c..d1610f0a77 100644 --- a/src/routes/docs/quick-starts/ruby/+page.markdoc +++ b/src/routes/docs/quick-starts/ruby/+page.markdoc @@ -79,7 +79,6 @@ include Appwrite client = Client.new() client - .set_endpoint('https://cloud.appwrite.io/v1') # Your Appwrite Endpoint .set_project('') # Your project ID .set_key('') # Your secret API key ``` diff --git a/src/routes/docs/references/quick-start/+page.markdoc b/src/routes/docs/references/quick-start/+page.markdoc index b402d770bd..df2d57c37b 100644 --- a/src/routes/docs/references/quick-start/+page.markdoc +++ b/src/routes/docs/references/quick-start/+page.markdoc @@ -168,7 +168,6 @@ from appwrite.client import Client client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_jwt('') # Your secret JSON Web Token ) @@ -179,7 +178,6 @@ require 'appwrite' include Appwrite client = Client.new - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint .set_project('') # Your project ID .set_jwt('') # Your secret JSON Web Token ``` From 1906ae208dd82a1d25e4bd31b74754e7157e0db2 Mon Sep 17 00:00:00 2001 From: choir27 Date: Fri, 16 Aug 2024 16:10:46 -0400 Subject: [PATCH 3/9] docs: fix comments to match removal of .setEndpoint --- .../docs/products/auth/oauth2/+page.markdoc | 12 +++--- .../databases/collections/+page.markdoc | 12 +++--- .../databases/databases/+page.markdoc | 12 +++--- .../products/messaging/mailgun/+page.markdoc | 38 +++++++++---------- .../send-email-messages/+page.markdoc | 14 +++---- .../messaging/send-sms-messages/+page.markdoc | 2 +- 6 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/routes/docs/products/auth/oauth2/+page.markdoc b/src/routes/docs/products/auth/oauth2/+page.markdoc index 964d393aa1..af42a458a6 100644 --- a/src/routes/docs/products/auth/oauth2/+page.markdoc +++ b/src/routes/docs/products/auth/oauth2/+page.markdoc @@ -36,7 +36,7 @@ The scope is provider-specific and can be found in the provider's documentation. import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -56,7 +56,7 @@ import 'package:appwrite/appwrite.dart'; import 'package:appwrite/enums.dart'; final client = Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID final account = Account(client); @@ -103,7 +103,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -136,7 +136,7 @@ import io.appwrite.services.Account import io.appwrite.enums.OAuthProvider val client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID val account = Account(client) @@ -179,7 +179,7 @@ console.log(session.providerAccessToken); import 'package:appwrite/appwrite.dart'; final client = Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID final account = Account(client); @@ -290,7 +290,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID val account = Account(client) diff --git a/src/routes/docs/products/databases/collections/+page.markdoc b/src/routes/docs/products/databases/collections/+page.markdoc index 17c35f91cc..9634453ce9 100644 --- a/src/routes/docs/products/databases/collections/+page.markdoc +++ b/src/routes/docs/products/databases/collections/+page.markdoc @@ -102,7 +102,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID + .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key databases = Databases.new(client) @@ -117,7 +117,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key var databases = new Databases(client); @@ -135,7 +135,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -158,7 +158,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key val databases = Databases(client) @@ -175,7 +175,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Databases databases = new Databases(client); @@ -198,7 +198,7 @@ databases.createCollection( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/src/routes/docs/products/databases/databases/+page.markdoc b/src/routes/docs/products/databases/databases/+page.markdoc index 49cc2ff583..ef4a66b619 100644 --- a/src/routes/docs/products/databases/databases/+page.markdoc +++ b/src/routes/docs/products/databases/databases/+page.markdoc @@ -98,7 +98,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID + .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key databases = Databases.new(client) @@ -113,7 +113,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key var databases = new Databases(client); @@ -130,7 +130,7 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -152,7 +152,7 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key val databases = Databases(client) @@ -168,7 +168,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Databases databases = new Databases(client); @@ -190,7 +190,7 @@ databases.create( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let databases = Databases(client) diff --git a/src/routes/docs/products/messaging/mailgun/+page.markdoc b/src/routes/docs/products/messaging/mailgun/+page.markdoc index a9e6e0e2a7..052f1591cd 100644 --- a/src/routes/docs/products/messaging/mailgun/+page.markdoc +++ b/src/routes/docs/products/messaging/mailgun/+page.markdoc @@ -95,7 +95,7 @@ const messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; const message = await messaging.createEmail('', '', ''); @@ -110,7 +110,7 @@ let messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; const message - await messaging.createEmail('', '', ''); @@ -125,7 +125,7 @@ $client = new Client(); $client ->setProject('') // Your project ID - ->setKey('') // Your secret API key + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -139,7 +139,7 @@ client = Client() (client .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -153,7 +153,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -171,7 +171,7 @@ using Appwrite.Enums; var client = new Client() .SetProject("") // Your project ID - .SetKey(""); // Your secret API key + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -191,7 +191,7 @@ void main() { // Init SDK client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -215,7 +215,7 @@ import io.appwrite.services.Messaging val client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -232,7 +232,7 @@ import io.appwrite.services.Messaging; Client client = new Client() .setProject("") // Your project ID - .setKey(""); // Your secret API key + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -255,7 +255,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -294,7 +294,7 @@ const messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; // update provider @@ -367,7 +367,7 @@ $client = new Client(); $client ->setProject('') // Your project ID - ->setKey('') // Your secret API key + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -392,7 +392,7 @@ client = Client() (client .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -417,7 +417,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -444,7 +444,7 @@ using Appwrite.Enums; var client = new Client() .SetProject("") // Your project ID - .SetKey(""); // Your secret API key + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -472,7 +472,7 @@ void main() { // Init SDK client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; Future result = messaging.updateSendgridProvider( @@ -503,7 +503,7 @@ import io.appwrite.services.Messaging val client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -528,7 +528,7 @@ import io.appwrite.services.Messaging; Client client = new Client() .setProject("") // Your project ID - .setKey(""); // Your secret API key + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -558,7 +558,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc index 5f478d6910..89271ade40 100644 --- a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc @@ -46,7 +46,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key const users = new sdk.Users(client); @@ -825,8 +825,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; $messaging = new Messaging($client); @@ -905,8 +905,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2");// Your secret API key + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key var messaging = new Messaging(client); @@ -998,8 +998,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2");// Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc index 03ecd76ef7..8fd31f2e7d 100644 --- a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc @@ -55,7 +55,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key const users = new sdk.Users(client); From 7b4cce4464c5838a88c43a6aeca8afb291e1aee5 Mon Sep 17 00:00:00 2001 From: choir27 Date: Mon, 19 Aug 2024 15:05:43 -0400 Subject: [PATCH 4/9] docs: remove setEndpoint and set_endpoint in blog code snippets --- .../blog/post/accessibility-in-pink-design/+page.markdoc | 3 +-- src/routes/blog/post/ai-crystal-ball/+page.markdoc | 1 - .../post/announcing-two-factor-authentication/+page.markdoc | 1 - .../post/appwrite-1.5-now-available-on-cloud/+page.markdoc | 4 ---- src/routes/blog/post/best-pagination-technique/+page.markdoc | 1 - .../+page.markdoc | 3 +-- src/routes/blog/post/building-init-giveaway-app/+page.markdoc | 2 +- src/routes/blog/post/csr-vs-ssr-with-nextjs/+page.markdoc | 2 -- src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc | 1 - src/routes/blog/post/enhancing-type-safety/+page.markdoc | 1 - src/routes/blog/post/enums-api-design/+page.markdoc | 1 - src/routes/blog/post/image-classification/+page.markdoc | 1 - .../blog/post/improve-ux-passwordless-auth/+page.markdoc | 3 --- .../blog/post/integrate-custom-auth-sveltekit/+page.markdoc | 2 -- .../post/introducing-appwrite-react-native-sdk/+page.markdoc | 1 - .../blog/post/introducing-enum-sdk-support/+page.markdoc | 1 - .../+page.markdoc | 4 ---- src/routes/blog/post/messaging-explained/+page.markdoc | 1 - src/routes/blog/post/oauth-openid/+page.markdoc | 1 - .../blog/post/password-hashing-algorithms/+page.markdoc | 1 - .../blog/post/push-notifications-best-practices/+page.markdoc | 1 - .../+page.markdoc | 1 - .../post/scan-receipts-with-appwrite-functions/+page.markdoc | 2 -- .../blog/post/set-up-google-auth-appwrite-react/+page.markdoc | 1 - src/routes/blog/post/simplify-messaging-twilio/+page.markdoc | 1 - .../+page.markdoc | 2 -- src/routes/blog/post/understand-data-queries/+page.markdoc | 1 - 27 files changed, 3 insertions(+), 41 deletions(-) diff --git a/src/routes/blog/post/accessibility-in-pink-design/+page.markdoc b/src/routes/blog/post/accessibility-in-pink-design/+page.markdoc index d3f429690d..45414c8042 100644 --- a/src/routes/blog/post/accessibility-in-pink-design/+page.markdoc +++ b/src/routes/blog/post/accessibility-in-pink-design/+page.markdoc @@ -51,8 +51,7 @@ Browsers have a default font size that users can change via the browser setting. import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID const account = new Account(client); diff --git a/src/routes/blog/post/ai-crystal-ball/+page.markdoc b/src/routes/blog/post/ai-crystal-ball/+page.markdoc index 9e0e0efd07..72df690664 100644 --- a/src/routes/blog/post/ai-crystal-ball/+page.markdoc +++ b/src/routes/blog/post/ai-crystal-ball/+page.markdoc @@ -135,7 +135,6 @@ import { Client, Account, Databases } from 'appwrite'; import { env } from '$env/dynamic/public'; const client = new Client() - .setEndpoint(env.PUBLIC_APPWRITE_ENDPOINT) .setProject(env.PUBLIC_APPWRITE_PROJECT_ID); export const account = new Account(client); diff --git a/src/routes/blog/post/announcing-two-factor-authentication/+page.markdoc b/src/routes/blog/post/announcing-two-factor-authentication/+page.markdoc index 923b3d9148..8cd99f0ae1 100644 --- a/src/routes/blog/post/announcing-two-factor-authentication/+page.markdoc +++ b/src/routes/blog/post/announcing-two-factor-authentication/+page.markdoc @@ -46,7 +46,6 @@ import { Client, Account } from "appwrite"; const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc b/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc index 9e5442c620..dd8a680f6b 100644 --- a/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc +++ b/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc @@ -37,7 +37,6 @@ Here is what this would look like using Swift. import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -66,7 +65,6 @@ You can send SMS messages using a Server SDK. To send SMS messages immediately, import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key @@ -174,7 +172,6 @@ import { Client, Account } from "appwrite"; const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject(''); // Your project ID const account = new Account(client); @@ -243,7 +240,6 @@ One of the most common examples of SDK Enums is OAuth providers. To log in with import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); diff --git a/src/routes/blog/post/best-pagination-technique/+page.markdoc b/src/routes/blog/post/best-pagination-technique/+page.markdoc index 8af925780f..5bb2497956 100644 --- a/src/routes/blog/post/best-pagination-technique/+page.markdoc +++ b/src/routes/blog/post/best-pagination-technique/+page.markdoc @@ -91,7 +91,6 @@ import { Appwrite, Databases, Query } from "appwrite"; const client = new Appwrite(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('articles-demo'); // Your project ID const databases = new Databases(client); diff --git a/src/routes/blog/post/building-cross-platform-applications-with-react-native/+page.markdoc b/src/routes/blog/post/building-cross-platform-applications-with-react-native/+page.markdoc index ed3e7be412..7e383a2ebd 100644 --- a/src/routes/blog/post/building-cross-platform-applications-with-react-native/+page.markdoc +++ b/src/routes/blog/post/building-cross-platform-applications-with-react-native/+page.markdoc @@ -95,8 +95,7 @@ import { Client, Account, ID } from 'react-native-appwrite'; const client = new Client(); client - .setEndpoint('http://cloud.appwrite.io/v1') // Your Appwrite Endpoint - .setProject('455x34dfkj') // Your project ID + .setProject('455x34dfkj') // Your project ID .setPlatform('com.example.myappwriteapp'); // Your application ID or bundle ID const account = new Account(client); diff --git a/src/routes/blog/post/building-init-giveaway-app/+page.markdoc b/src/routes/blog/post/building-init-giveaway-app/+page.markdoc index 7ea1bc424a..b41078de75 100644 --- a/src/routes/blog/post/building-init-giveaway-app/+page.markdoc +++ b/src/routes/blog/post/building-init-giveaway-app/+page.markdoc @@ -108,7 +108,7 @@ import { APPWRITE_ENDPOINT, APPWRITE_PROJECT } from './constants'; export const client = new Client(); -client.setEndpoint(APPWRITE_ENDPOINT).setProject(APPWRITE_PROJECT); +client.setProject(APPWRITE_PROJECT); export const account = new Account(client); diff --git a/src/routes/blog/post/csr-vs-ssr-with-nextjs/+page.markdoc b/src/routes/blog/post/csr-vs-ssr-with-nextjs/+page.markdoc index af1de63305..d5875de4af 100644 --- a/src/routes/blog/post/csr-vs-ssr-with-nextjs/+page.markdoc +++ b/src/routes/blog/post/csr-vs-ssr-with-nextjs/+page.markdoc @@ -61,7 +61,6 @@ The admin client must be set with an API key that has the necessary scopes in or ```jsx const adminClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject('') .setKey('') ``` @@ -90,7 +89,6 @@ The session client accepts the generated session secret and sets it using the `c ```jsx const sessionClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject('') ``` diff --git a/src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc b/src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc index 70ae430e8c..478aac19ac 100644 --- a/src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc +++ b/src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc @@ -115,7 +115,6 @@ import { PUBLIC_APPWRITE_ENDPOINT, PUBLIC_APPWRITE_PROJECT_ID } from "$env/stati import { Client, Account } from "appwrite"; const client = new Client() - .setEndpoint(PUBLIC_APPWRITE_ENDPOINT) .setProject(PUBLIC_APPWRITE_PROJECT_ID); export const account = new Account(client); diff --git a/src/routes/blog/post/enhancing-type-safety/+page.markdoc b/src/routes/blog/post/enhancing-type-safety/+page.markdoc index fdeb33b6d4..6f8a59bb7b 100644 --- a/src/routes/blog/post/enhancing-type-safety/+page.markdoc +++ b/src/routes/blog/post/enhancing-type-safety/+page.markdoc @@ -69,7 +69,6 @@ With the latest release of Appwrite, we have taken steps to improve type safety import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); diff --git a/src/routes/blog/post/enums-api-design/+page.markdoc b/src/routes/blog/post/enums-api-design/+page.markdoc index 00dce1338b..d66ac0ddff 100644 --- a/src/routes/blog/post/enums-api-design/+page.markdoc +++ b/src/routes/blog/post/enums-api-design/+page.markdoc @@ -78,7 +78,6 @@ With the latest release of Appwrite, we have taken steps to improve type safety import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); diff --git a/src/routes/blog/post/image-classification/+page.markdoc b/src/routes/blog/post/image-classification/+page.markdoc index 6681bdf8f9..f895eb19da 100644 --- a/src/routes/blog/post/image-classification/+page.markdoc +++ b/src/routes/blog/post/image-classification/+page.markdoc @@ -194,7 +194,6 @@ def main(context): client = ( Client() - .set_endpoint("https://cloud.appwrite.io/v1") .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"]) .set_key(os.environ["APPWRITE_API_KEY"]) ) diff --git a/src/routes/blog/post/improve-ux-passwordless-auth/+page.markdoc b/src/routes/blog/post/improve-ux-passwordless-auth/+page.markdoc index aeeb414af7..caaddd212e 100644 --- a/src/routes/blog/post/improve-ux-passwordless-auth/+page.markdoc +++ b/src/routes/blog/post/improve-ux-passwordless-auth/+page.markdoc @@ -73,7 +73,6 @@ First, we initialize the login process by sending an email with the magic URL. I import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); @@ -103,7 +102,6 @@ First, we initialize the login process by sending an email. If the email has nev import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); @@ -138,7 +136,6 @@ First, we initialize the login process by sending an SMS. If the phone number ha import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final account = Account(client); diff --git a/src/routes/blog/post/integrate-custom-auth-sveltekit/+page.markdoc b/src/routes/blog/post/integrate-custom-auth-sveltekit/+page.markdoc index ec189138c9..739b26d783 100644 --- a/src/routes/blog/post/integrate-custom-auth-sveltekit/+page.markdoc +++ b/src/routes/blog/post/integrate-custom-auth-sveltekit/+page.markdoc @@ -89,7 +89,6 @@ const projectId = PUBLIC_APPWRITE_PROJECT_ID; const apiKey = env.APPWRITE_API_KEY; const client = new Client() - .setEndpoint(endpoint) .setProject(projectId) .setKey(apiKey); @@ -182,7 +181,6 @@ const endpoint = PUBLIC_APPWRITE_ENDPOINT; const projectId = PUBLIC_APPWRITE_PROJECT_ID; const client = new Client() - .setEndpoint(endpoint) // Your API Endpoint .setProject(projectId); // Your project ID; export const account = new Account(client); diff --git a/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc b/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc index 0c34e15239..ea4eb38b0d 100644 --- a/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc +++ b/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc @@ -70,7 +70,6 @@ import { Client, Account, ID } from 'react-native-appwrite'; const client = new Client(); client - .setEndpoint('http://cloud.appwrite.io/v1') // Your Appwrite Endpoint .setProject('455x34dfkj') // Your project ID .setPlatform('com.example.myappwriteapp'); // Your application ID or bundle ID diff --git a/src/routes/blog/post/introducing-enum-sdk-support/+page.markdoc b/src/routes/blog/post/introducing-enum-sdk-support/+page.markdoc index 8329c2c2a1..85c2b49fac 100644 --- a/src/routes/blog/post/introducing-enum-sdk-support/+page.markdoc +++ b/src/routes/blog/post/introducing-enum-sdk-support/+page.markdoc @@ -29,7 +29,6 @@ Bringing along benefits such as massively reducing friction when using routes th import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); diff --git a/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc b/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc index 9336d18f1b..998f0337c3 100644 --- a/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc +++ b/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc @@ -75,7 +75,6 @@ The admin client will need to be initialized with an API key in order to bypass import { Client } from "node-appwrite" const adminClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject('') .setKey('') ``` @@ -86,7 +85,6 @@ A session client will allow us to make requests as an authenticated end-user wit ```jsx const sessionClient = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject('') const session = req.cookies.session @@ -117,7 +115,6 @@ import { parseCookie } from "next/dist/compiled/@edge-runtime/cookies"; export function createAdminClient() => { const client = new Client() - .setEndpoint(process.env.PUBLIC_APPWRITE_ENDPOINT) .setProject(process.env.PUBLIC_APPWRITE_PROJECT) .setKey(process.env.APPWRITE_API_KEY) @@ -130,7 +127,6 @@ export function createAdminClient() => { export function createSessionClient(headers) { const client = new Client() - .setEndpoint(process.env.PUBLIC_APPWRITE_ENDPOINT) .setProject(process.env.PUBLIC_APPWRITE_PROJECT) const cookies = parseCookie(headers.get('cookie') ?? '') diff --git a/src/routes/blog/post/messaging-explained/+page.markdoc b/src/routes/blog/post/messaging-explained/+page.markdoc index 545f6e9bb9..262b12a234 100644 --- a/src/routes/blog/post/messaging-explained/+page.markdoc +++ b/src/routes/blog/post/messaging-explained/+page.markdoc @@ -58,7 +58,6 @@ Here’s an example of how you would programmatically send an SMS to a topic usi const sdk = require('node-appwrite'); const client = new sdk.Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/src/routes/blog/post/oauth-openid/+page.markdoc b/src/routes/blog/post/oauth-openid/+page.markdoc index c58238685d..68f8af7281 100644 --- a/src/routes/blog/post/oauth-openid/+page.markdoc +++ b/src/routes/blog/post/oauth-openid/+page.markdoc @@ -94,7 +94,6 @@ Once that is done, you can use any of the Appwrite client SDKs to implement OAut import { Client, Account, OAuthProvider } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); diff --git a/src/routes/blog/post/password-hashing-algorithms/+page.markdoc b/src/routes/blog/post/password-hashing-algorithms/+page.markdoc index 2201a3c2e0..1cc6c80636 100644 --- a/src/routes/blog/post/password-hashing-algorithms/+page.markdoc +++ b/src/routes/blog/post/password-hashing-algorithms/+page.markdoc @@ -80,7 +80,6 @@ Appwrite Authentication also leverages password hashing algorithms to allow deve import { Client, Account, ID } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const account = new Account(client); diff --git a/src/routes/blog/post/push-notifications-best-practices/+page.markdoc b/src/routes/blog/post/push-notifications-best-practices/+page.markdoc index f3189c8c09..a81fa0dd00 100644 --- a/src/routes/blog/post/push-notifications-best-practices/+page.markdoc +++ b/src/routes/blog/post/push-notifications-best-practices/+page.markdoc @@ -62,7 +62,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key diff --git a/src/routes/blog/post/rest-vs-graphql-websockets-which-is-best-for-your-app/+page.markdoc b/src/routes/blog/post/rest-vs-graphql-websockets-which-is-best-for-your-app/+page.markdoc index 9c755573c1..44c4607737 100644 --- a/src/routes/blog/post/rest-vs-graphql-websockets-which-is-best-for-your-app/+page.markdoc +++ b/src/routes/blog/post/rest-vs-graphql-websockets-which-is-best-for-your-app/+page.markdoc @@ -106,7 +106,6 @@ All of the Appwrite client SDKs for Web, Flutter, iOS, or Android come with buil import { Client } from "appwrite"; const client = new Client() - .setEndpoint('') .setProject(''); client.subscribe('account', response => { diff --git a/src/routes/blog/post/scan-receipts-with-appwrite-functions/+page.markdoc b/src/routes/blog/post/scan-receipts-with-appwrite-functions/+page.markdoc index 9cc5e3b185..00ddfa8b61 100644 --- a/src/routes/blog/post/scan-receipts-with-appwrite-functions/+page.markdoc +++ b/src/routes/blog/post/scan-receipts-with-appwrite-functions/+page.markdoc @@ -124,7 +124,6 @@ def main(context): # # client = ( # Client() - # .set_endpoint("https://cloud.appwrite.io/v1") # .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"]) # .set_key(os.environ["APPWRITE_API_KEY"]) # ) @@ -171,7 +170,6 @@ def main(context): client = ( Client() - .set_endpoint("https://cloud.appwrite.io/v1") .set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"]) .set_key(os.environ["APPWRITE_API_KEY"]) ) diff --git a/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc b/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc index 619b448091..fd65c92390 100644 --- a/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc +++ b/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc @@ -100,7 +100,6 @@ import { Client, Account, OAuthProvider } from 'appwrite' const client = new Client() client - .setEndpoint('https://cloud.appwrite.io/v1')// The Appwrite API endpoint .setProject('project-id')// Your Appwrite project IDexport const account = new Account(client) export { OAuthProvider } diff --git a/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc b/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc index c5f2cc7f69..7b45ca0c78 100644 --- a/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc +++ b/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc @@ -79,7 +79,6 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; diff --git a/src/routes/blog/post/swift-101-build-a-library-with-swift-package-manager/+page.markdoc b/src/routes/blog/post/swift-101-build-a-library-with-swift-package-manager/+page.markdoc index a6da03d11c..9920c84396 100644 --- a/src/routes/blog/post/swift-101-build-a-library-with-swift-package-manager/+page.markdoc +++ b/src/routes/blog/post/swift-101-build-a-library-with-swift-package-manager/+page.markdoc @@ -189,14 +189,12 @@ struct FooPackage { static let account = Account(client) public static func login( - endpoint: String, projectId: String, email: String, password: String, completion: @escaping (Result) -> Void ) { client - .setEndpoint(endpoint) .setProject(projectId) account.createSession( diff --git a/src/routes/blog/post/understand-data-queries/+page.markdoc b/src/routes/blog/post/understand-data-queries/+page.markdoc index cb6f008f0a..5effe4edd8 100644 --- a/src/routes/blog/post/understand-data-queries/+page.markdoc +++ b/src/routes/blog/post/understand-data-queries/+page.markdoc @@ -77,7 +77,6 @@ One of the data retrieval APIs the Appwrite Database offers is a list documents import { Client, Databases, Query } from "appwrite"; const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); const databases = new Databases(client); From c93d1fa9e5797b9bedcbdfc581e2c40df9bbbcd8 Mon Sep 17 00:00:00 2001 From: choir27 Date: Mon, 19 Aug 2024 17:34:50 -0400 Subject: [PATCH 5/9] docs: reformat the spacing for code snippet comments to adjust for removal of .setEndpoint/.set_endpoint --- .../+page.markdoc | 2 +- .../+page.markdoc | 2 +- .../platform/message-templates/+page.markdoc | 16 +-- src/routes/docs/apis/graphql/+page.markdoc | 8 +- .../docs/products/auth/accounts/+page.markdoc | 16 +-- .../products/auth/anonymous/+page.markdoc | 8 +- .../products/auth/custom-token/+page.markdoc | 36 +++--- .../products/auth/email-otp/+page.markdoc | 2 +- .../auth/email-password/+page.markdoc | 12 +- .../docs/products/auth/jwt/+page.markdoc | 116 +++++++++--------- .../docs/products/auth/labels/+page.markdoc | 36 +++--- .../products/auth/magic-url/+page.markdoc | 4 +- .../products/auth/quick-start/+page.markdoc | 2 +- .../databases/databases/+page.markdoc | 8 +- .../databases/relationships/+page.markdoc | 8 +- .../send-email-messages/+page.markdoc | 10 +- .../send-push-notifications/+page.markdoc | 32 ++--- .../messaging/send-sms-messages/+page.markdoc | 36 +++--- .../products/messaging/sendgrid/+page.markdoc | 36 +++--- .../products/messaging/smtp/+page.markdoc | 38 +++--- .../products/messaging/topics/+page.markdoc | 58 ++++----- .../products/storage/buckets/+page.markdoc | 20 +-- 22 files changed, 253 insertions(+), 253 deletions(-) diff --git a/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc b/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc index ea4eb38b0d..c8277378b1 100644 --- a/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc +++ b/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc @@ -70,7 +70,7 @@ import { Client, Account, ID } from 'react-native-appwrite'; const client = new Client(); client - .setProject('455x34dfkj') // Your project ID + .setProject('455x34dfkj') // Your project ID .setPlatform('com.example.myappwriteapp'); // Your application ID or bundle ID const account = new Account(client); diff --git a/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc b/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc index fd65c92390..f509c16fa9 100644 --- a/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc +++ b/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc @@ -100,7 +100,7 @@ import { Client, Account, OAuthProvider } from 'appwrite' const client = new Client() client - .setProject('project-id')// Your Appwrite project IDexport const account = new Account(client) + .setProject('project-id') // Your Appwrite project IDexport const account = new Account(client) export { OAuthProvider } ``` diff --git a/src/routes/docs/advanced/platform/message-templates/+page.markdoc b/src/routes/docs/advanced/platform/message-templates/+page.markdoc index 7310829f69..27d56763cf 100644 --- a/src/routes/docs/advanced/platform/message-templates/+page.markdoc +++ b/src/routes/docs/advanced/platform/message-templates/+page.markdoc @@ -130,8 +130,8 @@ const client = new Client(); const account = new Account(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setLocale('fr') // Your locale + .setProject('5df5acd0d48c2') // Your project ID + .setLocale('fr') // Your locale ; const promise = account.createVerification('https://example.com'); @@ -151,8 +151,8 @@ void main() { // Init SDK Account account = Account(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setLocale('fr') // Your locale + .setProject('5df5acd0d48c2') // Your project ID + .setLocale('fr') // Your locale ; Future result = account.createVerification('https://example.com'); @@ -170,8 +170,8 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID - .setLocale('fr') // Your locale + .setProject("5df5acd0d48c2") // Your project ID + .setLocale('fr') // Your locale val account = Account(client) @@ -182,8 +182,8 @@ val response = account.createVerification('https://example.com') import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setLocale('fr') // Your locale + .setProject("5df5acd0d48c2") // Your project ID + .setLocale('fr') // Your locale let account = Account(client) diff --git a/src/routes/docs/apis/graphql/+page.markdoc b/src/routes/docs/apis/graphql/+page.markdoc index 68957769fa..2126de306b 100644 --- a/src/routes/docs/apis/graphql/+page.markdoc +++ b/src/routes/docs/apis/graphql/+page.markdoc @@ -233,7 +233,7 @@ Appwrite SDKs also support GraphQL in addition to the REST services. import { Client, Graphql } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const graphql = new Graphql(client); @@ -269,7 +269,7 @@ mutation.then(response => { import 'package:appwrite/appwrite.dart'; final client = Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID final graphql = Graphql(client); @@ -305,7 +305,7 @@ mutation.then((response) { import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let graphql = Graphql(client) @@ -345,7 +345,7 @@ import io.appwrite.Client import io.appwrite.services.Graphql val client = Client(context) - .setProject("") // Your project ID + .setProject("") // Your project ID val graphql = Graphql(client) diff --git a/src/routes/docs/products/auth/accounts/+page.markdoc b/src/routes/docs/products/auth/accounts/+page.markdoc index a98c6669a5..a7aa94cda8 100644 --- a/src/routes/docs/products/auth/accounts/+page.markdoc +++ b/src/routes/docs/products/auth/accounts/+page.markdoc @@ -31,7 +31,7 @@ Preferences are stored as a key-value JSON object. The maximum allowed size for import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -47,7 +47,7 @@ promise.then(function (response) { import 'package:appwrite/appwrite.dart'; final client = Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID final account = Account(client); @@ -62,7 +62,7 @@ final user = await account.updatePrefs( import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -78,7 +78,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID val account = Account(client) @@ -111,7 +111,7 @@ After a user's preferences are updated, they can be retrieved using the [get acc import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -127,7 +127,7 @@ promise.then(function (response) { import 'package:appwrite/appwrite.dart'; final client = Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID final account = Account(client); @@ -138,7 +138,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setProject("") // Your project ID + .setProject("") // Your project ID val account = Account(client) @@ -148,7 +148,7 @@ val prefs = account.getPrefs() import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/src/routes/docs/products/auth/anonymous/+page.markdoc b/src/routes/docs/products/auth/anonymous/+page.markdoc index 8f05a98ad3..cc250e2d38 100644 --- a/src/routes/docs/products/auth/anonymous/+page.markdoc +++ b/src/routes/docs/products/auth/anonymous/+page.markdoc @@ -17,7 +17,7 @@ Create an anonymous session with [Create Anonymous Session](/docs/references/clo import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -33,7 +33,7 @@ promise.then(function (response) { import 'package:appwrite/appwrite.dart'; final client = Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID final account = Account(client); @@ -43,7 +43,7 @@ final user = await account.createAnonymousSession(); import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -54,7 +54,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/src/routes/docs/products/auth/custom-token/+page.markdoc b/src/routes/docs/products/auth/custom-token/+page.markdoc index 2479d5a9ef..c7f5c7fac4 100644 --- a/src/routes/docs/products/auth/custom-token/+page.markdoc +++ b/src/routes/docs/products/auth/custom-token/+page.markdoc @@ -17,8 +17,8 @@ Once you have your server endpoint prepared either in an Appwrite Function or a import { Client, Users } from "node-appwrite"; const client = new Client() - .setProject(''); // Your project ID - .setKey(''); // Your project API key + .setProject(''); // Your project ID + .setKey(''); // Your project API key const users = new Users(client); @@ -31,8 +31,8 @@ use Appwrite\Client; use Appwrite\Users; $client = (new Client()) - ->setProject('') // Your project ID - ->setKey(''); // Your project API key + ->setProject('') // Your project ID + ->setKey(''); // Your project API key $users = new Users($client); @@ -47,8 +47,8 @@ from appwrite.users import Users client = Client() (client - .set_project('') # Your project ID - .set_key('') # Your project API key + .set_project('') # Your project ID + .set_key('') # Your project API key ) users = Users(client) @@ -63,8 +63,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID - .set_key('') # Your project API key + .set_project('') # Your project ID + .set_key('') # Your project API key users = Users.new(client) @@ -76,8 +76,8 @@ secret = token['secret'] import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; const client = new Client() - .setProject('') // Your project ID - .setKey(''); // Your project API key + .setProject('') // Your project ID + .setKey(''); // Your project API key const users = new Users(client); @@ -89,8 +89,8 @@ const secret = token.secret; import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setProject('') // Your project ID - .setKey(''); // Your project API key + .setProject('') // Your project ID + .setKey(''); // Your project API key final users = Users(client); @@ -103,8 +103,8 @@ import io.appwrite.Client import io.appwrite.Users val client = Client() - .setProject("") // Your project ID - .setKey("") // Your project API key + .setProject("") // Your project ID + .setKey("") // Your project API key val users = Users(client) @@ -116,8 +116,8 @@ val secret = token.secret import Appwrite let client = Client() - .setProject("") // Your project ID - .setKey("") // Your project API key + .setProject("") // Your project ID + .setKey("") // Your project API key let users = Users(client) @@ -129,8 +129,8 @@ let secret = token.secret using Appwrite; var client = new Client() - .SetProject("") // Your project ID - .SetKey(""); // Your project API key + .SetProject("") // Your project ID + .SetKey(""); // Your project API key var users = new Users(client); diff --git a/src/routes/docs/products/auth/email-otp/+page.markdoc b/src/routes/docs/products/auth/email-otp/+page.markdoc index d3c6780f21..ee46edc655 100644 --- a/src/routes/docs/products/auth/email-otp/+page.markdoc +++ b/src/routes/docs/products/auth/email-otp/+page.markdoc @@ -191,7 +191,7 @@ By default, security phrases are disabled. To enable a security phrase in Email import { Client, Account, ID } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/docs/products/auth/email-password/+page.markdoc b/src/routes/docs/products/auth/email-password/+page.markdoc index c778f9c8c8..449415fdf6 100644 --- a/src/routes/docs/products/auth/email-password/+page.markdoc +++ b/src/routes/docs/products/auth/email-password/+page.markdoc @@ -14,7 +14,7 @@ You can use the Appwrite Client SDKs to create an account using email and passwo import { Client, Account, ID } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -39,7 +39,7 @@ First, send a verification email. Specify a redirect URL which users will be red import { Client, Account } from "appwrite"; const client = new Client() - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID const account = new Account(client); @@ -60,7 +60,7 @@ Since the secrets are passed in through url params, it will be easiest to perfor import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -85,7 +85,7 @@ After you've created your account, users can be logged in using the Create Email import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -108,7 +108,7 @@ Only redirect URLs to domains added as a platform on your Appwrite Console will import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const promise = account.createRecovery('email@example.com', 'https://example.com'); @@ -125,7 +125,7 @@ After receiving an email with the secret attached to the redirect link, submit a import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const promise = account.updateRecovery( '[USER_ID]', diff --git a/src/routes/docs/products/auth/jwt/+page.markdoc b/src/routes/docs/products/auth/jwt/+page.markdoc index 6b56cc2de8..78807cdfa6 100644 --- a/src/routes/docs/products/auth/jwt/+page.markdoc +++ b/src/routes/docs/products/auth/jwt/+page.markdoc @@ -27,7 +27,7 @@ You can generate a JWT like this on a [Client SDK](/docs/sdks#client). import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -37,7 +37,7 @@ const user = await account.createJWT(); import 'package:appwrite/appwrite.dart'; final client = Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID final account = Account(client); @@ -47,7 +47,7 @@ final jwt = await account.createJWT(); import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -58,7 +58,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setProject("") // Your project ID + .setProject("") // Your project ID val account = Account(client) @@ -81,16 +81,16 @@ Use JWTs tokens like this in a [Server SDK](/docs/sdks#server). const { Client } = require('node-appwrite'); const client = new Client() - .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setProject('') // Your project ID + .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token ``` ```php use Appwrite\Client; $client = (new Client()) - ->setProject('') // Your project ID - ->setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + ->setProject('') // Your project ID + ->setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token ``` ```python @@ -99,8 +99,8 @@ from appwrite.client import Client client = Client() (client - .set_project('') # Your project ID - .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token + .set_project('') # Your project ID + .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token ) ``` @@ -110,48 +110,48 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID - .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token + .set_project('') # Your project ID + .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token ``` ```deno import { Client } from "https://deno.land/x/appwrite/mod.ts"; let client = new Client() - .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setProject('') // Your project ID + .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token ``` ```dart import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setProject('') // Your project ID + .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token ``` ```kotlin import io.appwrite.Client val client = Client() - .setProject("") // Your project ID - .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token + .setProject("") // Your project ID + .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token ``` ```swift import Appwrite let client = Client() - .setProject("") // Your project ID - .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token + .setProject("") // Your project ID + .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token ``` ```csharp using Appwrite; var client = new Client() - .SetProject("") // Your project ID - .SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token + .SetProject("") // Your project ID + .SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token ``` {% /multicode %} @@ -181,8 +181,8 @@ If you're authenticated on the client-side as `user-a` and created a JWT `'eyJJ9 const { Client } = require('node-appwrite'); const client = new Client() - .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setProject('') // Your project ID + .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token const databases = new sdk.Databases(client); @@ -196,8 +196,8 @@ const documents = await databases.listDocuments( use Appwrite\Client; $client = (new Client()) - .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Tokens + .setProject('') // Your project ID + .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Tokens $databases = new Databases($client); @@ -213,8 +213,8 @@ from appwrite.client import Client client = Client() (client - .set_project('') # Your project ID - .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token + .set_project('') # Your project ID + .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token ) databases = Databases(client) @@ -231,8 +231,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID - .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token + .set_project('') # Your project ID + .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token databases = Databases.new(client) @@ -246,8 +246,8 @@ documents = databases.list_documents( import { Client } from "https://deno.land/x/appwrite/mod.ts"; let client = new Client() - .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setProject('') // Your project ID + .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token let databases = new sdk.Databases(client); @@ -261,8 +261,8 @@ let documents = await databases.listDocuments( import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setProject('') // Your project ID + .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token final databases = Databases(client); @@ -276,8 +276,8 @@ final documents = await databases.listDocuments( import io.appwrite.Client val client = Client() - .setProject("") // Your project ID - .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token + .setProject("") // Your project ID + .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token val databases = Databases(client) @@ -291,8 +291,8 @@ val documents = databases.listDocuments( import Appwrite let client = Client() - .setProject("") // Your project ID - .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token + .setProject("") // Your project ID + .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token let databases = Databases(client) @@ -308,8 +308,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("") // Your project ID - .SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token + .SetProject("") // Your project ID + .SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token var databases = new Databases(client); @@ -350,8 +350,8 @@ If the same request is made where the [Server SDK](/docs/sdks#server)'s `client` const { Client } = require('node-appwrite'); const client = new Client() - .setProject('') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key const databases = new sdk.Databases(client); @@ -366,8 +366,8 @@ const documents = await databases.listDocuments( use Appwrite\Client; $client = (new Client()) - ->setProject('') // Your project ID - ->setKey('98fd4...a2ad2'); // Your secret API key + ->setProject('') // Your project ID + ->setKey('98fd4...a2ad2'); // Your secret API key $databases = new Databases($client); @@ -383,8 +383,8 @@ from appwrite.client import Client client = Client() (client - .set_project('') // Your project ID - .set_key('98fd4...a2ad2') // Your secret API key + .set_project('') // Your project ID + .set_key('98fd4...a2ad2') // Your secret API key ) databases = Databases(client) @@ -401,8 +401,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID - .set_key('98fd4...a2ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('98fd4...a2ad2') # Your secret API key databases = Databases.new(client) @@ -416,8 +416,8 @@ documents = databases.list_documents( import { Client } from "https://deno.land/x/appwrite/mod.ts"; let client = new Client() - .setProject('') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key let databases = new sdk.Databases(client); @@ -431,8 +431,8 @@ let documents = await databases.listDocuments( import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setProject('') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key final databases = Databases(client); @@ -446,8 +446,8 @@ final documents = await databases.listDocuments( import io.appwrite.Client val client = Client() - .setProject("") // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject("") // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key val databases = Databases(client) @@ -461,8 +461,8 @@ val documents = databases.listDocuments( import Appwrite let client = Client() - .setProject("") // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject("") // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key let databases = Databases(client) @@ -478,8 +478,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("") // Your project ID - .SetKey('98fd4...a2ad2'); // Your secret API key + .SetProject("") // Your project ID + .SetKey('98fd4...a2ad2'); // Your secret API key var databases = new Databases(client); diff --git a/src/routes/docs/products/auth/labels/+page.markdoc b/src/routes/docs/products/auth/labels/+page.markdoc index 553cb785d6..a7b89fc0df 100644 --- a/src/routes/docs/products/auth/labels/+page.markdoc +++ b/src/routes/docs/products/auth/labels/+page.markdoc @@ -11,8 +11,8 @@ Labels are a good way to categorize a user to grant them access to resources. Fo const sdk = require('node-appwrite'); const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('5df5acd0d48c2') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key const users = new sdk.Users(client); @@ -36,8 +36,8 @@ use Appwrite\Role; $client = new Client(); $client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('5df5acd0d48c2') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key $users = new Users($client); @@ -55,8 +55,8 @@ from appwrite.role import Role client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('98fd4...a2ad2') # Your secret API key + .set_project('5df5acd0d48c2') # Your project ID + .set_key('98fd4...a2ad2') # Your secret API key ) users = Users(client) @@ -72,8 +72,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('98fd4...a2ad2') # Your secret API key + .set_project('5df5acd0d48c2') # Your project ID + .set_key('98fd4...a2ad2') # Your secret API key users = Users.new(client) @@ -87,8 +87,8 @@ response = users.update_labels( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; let client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('5df5acd0d48c2') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key let users = new sdk.Users(client); @@ -107,8 +107,8 @@ promise.then(function (response) { import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('5df5acd0d48c2') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key final users = Users(client); @@ -123,8 +123,8 @@ import io.appwrite.Role import io.appwrite.services.Users val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("98fd4...a2ad2") // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("98fd4...a2ad2") // Your secret API key val users = Users(client) @@ -138,8 +138,8 @@ val response = users.updateLabels( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("98fd4...a2ad2") // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("98fd4...a2ad2") // Your secret API key let users = Users(client) @@ -153,8 +153,8 @@ let response = try await users.updateLabels( using Appwrite; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("98fd4...a2ad2"); // Your secret API key + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("98fd4...a2ad2"); // Your secret API key var users = new Users(client); diff --git a/src/routes/docs/products/auth/magic-url/+page.markdoc b/src/routes/docs/products/auth/magic-url/+page.markdoc index 1e6884b27a..2090d00a45 100644 --- a/src/routes/docs/products/auth/magic-url/+page.markdoc +++ b/src/routes/docs/products/auth/magic-url/+page.markdoc @@ -15,7 +15,7 @@ Initialize the log in process with the [Create Magic URL Token](/docs/references import { Client, Account, ID } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -49,7 +49,7 @@ After receiving your secret from an email, you can create a session. import { Client, Account } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/docs/products/auth/quick-start/+page.markdoc b/src/routes/docs/products/auth/quick-start/+page.markdoc index eedd911089..ab9b62a7ef 100644 --- a/src/routes/docs/products/auth/quick-start/+page.markdoc +++ b/src/routes/docs/products/auth/quick-start/+page.markdoc @@ -14,7 +14,7 @@ You can use the Appwrite [Client SDKs](/docs/sdks#client) to create an account u import { Client, Account, ID } from "appwrite"; const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/docs/products/databases/databases/+page.markdoc b/src/routes/docs/products/databases/databases/+page.markdoc index ef4a66b619..0a420da594 100644 --- a/src/routes/docs/products/databases/databases/+page.markdoc +++ b/src/routes/docs/products/databases/databases/+page.markdoc @@ -26,7 +26,7 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -47,7 +47,7 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -69,7 +69,7 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -84,7 +84,7 @@ from appwrite.services.databases import Databases client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID + .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) diff --git a/src/routes/docs/products/databases/relationships/+page.markdoc b/src/routes/docs/products/databases/relationships/+page.markdoc index 7104cd5a95..566352c9bd 100644 --- a/src/routes/docs/products/databases/relationships/+page.markdoc +++ b/src/routes/docs/products/databases/relationships/+page.markdoc @@ -87,7 +87,7 @@ A relationship attribute with the key `reviews` is added to the movies collectio const { Client, Databases } = require('node-appwrite'); const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -131,7 +131,7 @@ from appwrite.client import Client from appwrite.services.databases import Databases client = (Client() - .set_project('')) # Your project ID + .set_project('')) # Your project ID databases = Databases(client) @@ -154,7 +154,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID + .set_project('') # Your project ID databases = Databases.new(client) @@ -690,7 +690,7 @@ You can also provide explicit permissions to the child document if they should b const { Client, Databases, ID } = require('node-appwrite'); const client = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); diff --git a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc index 89271ade40..763c792b33 100644 --- a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc @@ -63,8 +63,8 @@ const target = await users.createTarget( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token const users = new sdk.Users(client); @@ -928,7 +928,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); @@ -965,8 +965,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc index 429a6f1d0d..905c16ca94 100644 --- a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc +++ b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc @@ -473,8 +473,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; const messaging = await messaging.createPush( @@ -504,8 +504,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; const messaging = await messaging.createPush( @@ -535,8 +535,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('5df5acd0d48c2') // Your project ID + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; $messaging = new Messaging($client); @@ -596,8 +596,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key messaging = Messaging.new(client) @@ -627,8 +627,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key var messaging = new Messaging(client); @@ -659,8 +659,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('5df5acd0d48c2') // Your project ID + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; Future result = messaging.createPush( @@ -694,8 +694,8 @@ import io.appwrite.Client import io.appwrite.services.Messaging val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key val messaging = Messaging(client) @@ -723,8 +723,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Messaging messaging = new Messaging(client); diff --git a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc index 8fd31f2e7d..2136d2f52f 100644 --- a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc @@ -514,8 +514,8 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('5df5acd0d48c2') # Your project ID +client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key messaging = Messaging(client) @@ -535,8 +535,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key messaging = Messaging.new(client) @@ -556,8 +556,8 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Messaging messaging = new Messaging(client); @@ -597,8 +597,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key val messaging = Messaging(client) @@ -645,8 +645,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let messaging = Messaging(client) @@ -733,8 +733,8 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('5df5acd0d48c2') # Your project ID +client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key messaging = Messaging(client) @@ -754,8 +754,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('5df5acd0d48c2') # Your project ID + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key messaging = Messaging.new(client) @@ -775,8 +775,8 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Messaging messaging = new Messaging(client); @@ -816,8 +816,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key val messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/sendgrid/+page.markdoc b/src/routes/docs/products/messaging/sendgrid/+page.markdoc index 057defa7b0..ee07434e30 100644 --- a/src/routes/docs/products/messaging/sendgrid/+page.markdoc +++ b/src/routes/docs/products/messaging/sendgrid/+page.markdoc @@ -87,7 +87,7 @@ const messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; const message = await messaging.createEmail('', '', ''); @@ -102,7 +102,7 @@ let messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; @@ -118,7 +118,7 @@ $client = new Client(); $client ->setProject('') // Your project ID - ->setKey('') // Your secret API key + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -132,7 +132,7 @@ client = Client() (client .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -146,7 +146,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -164,7 +164,7 @@ using Appwrite.Enums; var client = new Client() .SetProject("") // Your project ID - .SetKey(""); // Your secret API key + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -184,7 +184,7 @@ void main() { // Init SDK client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -208,7 +208,7 @@ import io.appwrite.services.Messaging val client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -225,7 +225,7 @@ import io.appwrite.services.Messaging; Client client = new Client() .setProject("") // Your project ID - .setKey(""); // Your secret API key + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -248,7 +248,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -358,8 +358,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -381,8 +381,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -405,8 +405,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("") // Your project ID - .SetKey(""); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -430,8 +430,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('') // Your project ID - .setKey('') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateSendgridProvider( diff --git a/src/routes/docs/products/messaging/smtp/+page.markdoc b/src/routes/docs/products/messaging/smtp/+page.markdoc index 05e7148fe6..6b642fefbb 100644 --- a/src/routes/docs/products/messaging/smtp/+page.markdoc +++ b/src/routes/docs/products/messaging/smtp/+page.markdoc @@ -97,7 +97,7 @@ const messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; cconst message - await messaging.createEmail('', '', ''); @@ -112,7 +112,7 @@ let messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; const messaging = await messaging.createEmail('', '', ''); @@ -127,7 +127,7 @@ $client = new Client(); $client ->setProject('') // Your project ID - ->setKey('') // Your secret API key + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -141,7 +141,7 @@ client = Client() (client .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -155,7 +155,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -173,7 +173,7 @@ using Appwrite.Enums; var client = new Client() .SetProject("") // Your project ID - .SetKey(""); // Your secret API key + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -193,7 +193,7 @@ void main() { // Init SDK client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -217,7 +217,7 @@ import io.appwrite.services.Messaging val client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -234,7 +234,7 @@ import io.appwrite.services.Messaging; Client client = new Client() .setProject("") // Your project ID - .setKey(""); // Your secret API key + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -257,7 +257,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -296,7 +296,7 @@ const messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; // update provider @@ -369,7 +369,7 @@ $client = new Client(); $client ->setProject('') // Your project ID - ->setKey('') // Your secret API key + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -394,7 +394,7 @@ client = Client() (client .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -419,7 +419,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -446,7 +446,7 @@ using Appwrite.Enums; var client = new Client() .SetProject("") // Your project ID - .SetKey(""); // Your secret API key + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -474,7 +474,7 @@ void main() { // Init SDK client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; Future result = messaging.updateSendgridProvider( @@ -505,7 +505,7 @@ import io.appwrite.services.Messaging val client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -530,7 +530,7 @@ import io.appwrite.services.Messaging; Client client = new Client() .setProject("") // Your project ID - .setKey(""); // Your secret API key + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -560,7 +560,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/topics/+page.markdoc b/src/routes/docs/products/messaging/topics/+page.markdoc index 15c306ffce..496064dd41 100644 --- a/src/routes/docs/products/messaging/topics/+page.markdoc +++ b/src/routes/docs/products/messaging/topics/+page.markdoc @@ -54,7 +54,7 @@ const messaging = new sdk.Messaging(client); client .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; const topic = messaging.createTopic( @@ -93,7 +93,7 @@ $client = new Client(); $client ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; $messaging = new Messaging($client); @@ -113,7 +113,7 @@ client = Client() (client .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) messaging = Messaging(client) @@ -131,7 +131,7 @@ include Appwrite client = Client.new .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key messaging = Messaging.new(client) @@ -149,8 +149,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("5df5acd0d48c2") // Your project ID + .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key var messaging = new Messaging(client); @@ -170,7 +170,7 @@ void main() { // Init SDK client .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; Future result = messaging.createTopic( @@ -193,8 +193,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("5df5acd0d48c2") // Your project ID + .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Messaging messaging = new Messaging(client); @@ -285,8 +285,8 @@ If you can't find the targets you'd like to add, see the [targets page](/docs/pr const sdk = require('node-appwrite'); const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); @@ -300,8 +300,8 @@ const subscriber = await messaging.createSubscriber( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); @@ -320,8 +320,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + ->setProject('5df5acd0d48c2') // Your project ID + ->setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token $messaging = new Messaging($client); @@ -336,8 +336,8 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_project('5df5acd0d48c2') # Your project ID -client.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token +client.set_project('5df5acd0d48c2') # Your project ID +client.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token messaging = Messaging(client) @@ -353,8 +353,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token + .set_project('5df5acd0d48c2') # Your project ID + .set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token messaging = Messaging.new(client) @@ -370,8 +370,8 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token + .SetProject("5df5acd0d48c2") // Your project ID + .SetJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token Messaging messaging = new Messaging(client); @@ -386,8 +386,8 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('5df5acd0d48c2') // Your project ID + .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token Messaging messaging = Messaging(client); @@ -403,8 +403,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token val messaging = new Messaging(client) @@ -420,8 +420,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token Messaging messaging = new Messaging(client); @@ -443,8 +443,8 @@ messaging.createSubscriber( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("5df5acd0d48c2") // Your project ID + .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/src/routes/docs/products/storage/buckets/+page.markdoc b/src/routes/docs/products/storage/buckets/+page.markdoc index a395549f21..5941b10e74 100644 --- a/src/routes/docs/products/storage/buckets/+page.markdoc +++ b/src/routes/docs/products/storage/buckets/+page.markdoc @@ -36,7 +36,7 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -57,7 +57,7 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -79,7 +79,7 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('5df5acd0d48c2') // Your project ID ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -94,7 +94,7 @@ from appwrite.services.storage import Storage client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID + .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key ) @@ -108,7 +108,7 @@ require 'Appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID + .set_project('5df5acd0d48c2') # Your project ID .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key storage = Storage.new(client) @@ -123,7 +123,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("5df5acd0d48c2") // Your project ID .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key var storage = new Storage(client); @@ -140,7 +140,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('5df5acd0d48c2') // Your project ID .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key ; @@ -162,7 +162,7 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key val storage = Storage(client) @@ -178,7 +178,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key Storage storage = new Storage(client); @@ -200,7 +200,7 @@ storage.createBucket( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("5df5acd0d48c2") // Your project ID .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key let storage = Storage(client) From 7e4bec39537b6303725b89ef095207ddd7900b7c Mon Sep 17 00:00:00 2001 From: choir27 Date: Tue, 20 Aug 2024 14:11:38 -0400 Subject: [PATCH 6/9] docs: replace placeholder variables for project_id and api_key for consistency. fix comment formatting to reflect placeholder variables replacement --- .../+page.markdoc | 2 +- .../+page.markdoc | 8 +- .../post/messaging-explained/+page.markdoc | 4 +- .../+page.markdoc | 4 +- .../simplify-messaging-twilio/+page.markdoc | 4 +- .../platform/message-templates/+page.markdoc | 8 +- .../auth/email-password/+page.markdoc | 2 +- .../docs/products/auth/labels/+page.markdoc | 30 ++-- .../docs/products/auth/oauth2/+page.markdoc | 10 +- .../auth/server-side-rendering/+page.markdoc | 4 +- .../docs/products/auth/teams/+page.markdoc | 16 +- .../databases/collections/+page.markdoc | 40 ++--- .../databases/databases/+page.markdoc | 40 ++--- .../products/messaging/apns/+page.markdoc | 40 ++--- .../docs/products/messaging/fcm/+page.markdoc | 40 ++--- .../products/messaging/messages/+page.markdoc | 122 +++++++------- .../products/messaging/msg91/+page.markdoc | 80 ++++----- .../send-email-messages/+page.markdoc | 158 +++++++++--------- .../send-push-notifications/+page.markdoc | 40 ++--- .../messaging/send-sms-messages/+page.markdoc | 158 +++++++++--------- .../products/messaging/telesign/+page.markdoc | 80 ++++----- .../messaging/textmagic/+page.markdoc | 80 ++++----- .../products/messaging/topics/+page.markdoc | 60 +++---- .../products/messaging/twilio/+page.markdoc | 80 ++++----- .../products/messaging/vonage/+page.markdoc | 80 ++++----- .../products/storage/buckets/+page.markdoc | 40 ++--- .../products/storage/images/+page.markdoc | 8 +- .../storage/quick-start/+page.markdoc | 8 +- .../storage/upload-download/+page.markdoc | 32 ++-- 29 files changed, 639 insertions(+), 639 deletions(-) diff --git a/src/routes/blog/post/accessibility-in-pink-design/+page.markdoc b/src/routes/blog/post/accessibility-in-pink-design/+page.markdoc index 45414c8042..99d69443ae 100644 --- a/src/routes/blog/post/accessibility-in-pink-design/+page.markdoc +++ b/src/routes/blog/post/accessibility-in-pink-design/+page.markdoc @@ -51,7 +51,7 @@ Browsers have a default font size that users can change via the browser setting. import { Client, Account } from "appwrite"; const client = new Client() - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID const account = new Account(client); diff --git a/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc b/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc index dd8a680f6b..44e5345d92 100644 --- a/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc +++ b/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc @@ -37,8 +37,8 @@ Here is what this would look like using Swift. import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -65,8 +65,8 @@ You can send SMS messages using a Server SDK. To send SMS messages immediately, import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/blog/post/messaging-explained/+page.markdoc b/src/routes/blog/post/messaging-explained/+page.markdoc index 262b12a234..edfecd3d95 100644 --- a/src/routes/blog/post/messaging-explained/+page.markdoc +++ b/src/routes/blog/post/messaging-explained/+page.markdoc @@ -58,8 +58,8 @@ Here’s an example of how you would programmatically send an SMS to a topic usi const sdk = require('node-appwrite'); const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); . diff --git a/src/routes/blog/post/push-notifications-best-practices/+page.markdoc b/src/routes/blog/post/push-notifications-best-practices/+page.markdoc index a81fa0dd00..b3ed66a251 100644 --- a/src/routes/blog/post/push-notifications-best-practices/+page.markdoc +++ b/src/routes/blog/post/push-notifications-best-practices/+page.markdoc @@ -62,8 +62,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const message = await messaging.createPush( sdk.ID.unique(), // messageId diff --git a/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc b/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc index 7b45ca0c78..49d42b429e 100644 --- a/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc +++ b/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc @@ -79,8 +79,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const promise = await messaging.updateTwilioProvider( diff --git a/src/routes/docs/advanced/platform/message-templates/+page.markdoc b/src/routes/docs/advanced/platform/message-templates/+page.markdoc index 27d56763cf..870c014b6b 100644 --- a/src/routes/docs/advanced/platform/message-templates/+page.markdoc +++ b/src/routes/docs/advanced/platform/message-templates/+page.markdoc @@ -130,7 +130,7 @@ const client = new Client(); const account = new Account(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID .setLocale('fr') // Your locale ; @@ -151,7 +151,7 @@ void main() { // Init SDK Account account = Account(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID .setLocale('fr') // Your locale ; Future result = account.createVerification('https://example.com'); @@ -170,7 +170,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID .setLocale('fr') // Your locale val account = Account(client) @@ -182,7 +182,7 @@ val response = account.createVerification('https://example.com') import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID .setLocale('fr') // Your locale let account = Account(client) diff --git a/src/routes/docs/products/auth/email-password/+page.markdoc b/src/routes/docs/products/auth/email-password/+page.markdoc index 449415fdf6..9269653b8f 100644 --- a/src/routes/docs/products/auth/email-password/+page.markdoc +++ b/src/routes/docs/products/auth/email-password/+page.markdoc @@ -39,7 +39,7 @@ First, send a verification email. Specify a redirect URL which users will be red import { Client, Account } from "appwrite"; const client = new Client() - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID const account = new Account(client); diff --git a/src/routes/docs/products/auth/labels/+page.markdoc b/src/routes/docs/products/auth/labels/+page.markdoc index a7b89fc0df..8e7c96d104 100644 --- a/src/routes/docs/products/auth/labels/+page.markdoc +++ b/src/routes/docs/products/auth/labels/+page.markdoc @@ -11,8 +11,8 @@ Labels are a good way to categorize a user to grant them access to resources. Fo const sdk = require('node-appwrite'); const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const users = new sdk.Users(client); @@ -36,8 +36,8 @@ use Appwrite\Role; $client = new Client(); $client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key $users = new Users($client); @@ -55,7 +55,7 @@ from appwrite.role import Role client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID + .set_project('') # Your project ID .set_key('98fd4...a2ad2') # Your secret API key ) @@ -72,7 +72,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID + .set_project('') # Your project ID .set_key('98fd4...a2ad2') # Your secret API key users = Users.new(client) @@ -87,8 +87,8 @@ response = users.update_labels( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; let client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key let users = new sdk.Users(client); @@ -107,8 +107,8 @@ promise.then(function (response) { import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('98fd4...a2ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key final users = Users(client); @@ -123,8 +123,8 @@ import io.appwrite.Role import io.appwrite.services.Users val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("98fd4...a2ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val users = Users(client) @@ -138,8 +138,8 @@ val response = users.updateLabels( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("98fd4...a2ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) @@ -153,7 +153,7 @@ let response = try await users.updateLabels( using Appwrite; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("") // Your project ID .SetKey("98fd4...a2ad2"); // Your secret API key var users = new Users(client); diff --git a/src/routes/docs/products/auth/oauth2/+page.markdoc b/src/routes/docs/products/auth/oauth2/+page.markdoc index af42a458a6..e737fac06e 100644 --- a/src/routes/docs/products/auth/oauth2/+page.markdoc +++ b/src/routes/docs/products/auth/oauth2/+page.markdoc @@ -196,7 +196,7 @@ print(session.providerAccessToken); import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -214,7 +214,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) @@ -265,7 +265,7 @@ promise.then(function (response) { import 'package:appwrite/appwrite.dart'; final client = Client() - .setProject('5df5acd0d48c2'); // Your project ID + .setProject(''); // Your project ID Account account = Account(client); @@ -277,7 +277,7 @@ final result = await account.updateSession( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -290,7 +290,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val account = Account(client) diff --git a/src/routes/docs/products/auth/server-side-rendering/+page.markdoc b/src/routes/docs/products/auth/server-side-rendering/+page.markdoc index fee8198d0c..4afe8d5fc3 100644 --- a/src/routes/docs/products/auth/server-side-rendering/+page.markdoc +++ b/src/routes/docs/products/auth/server-side-rendering/+page.markdoc @@ -286,7 +286,7 @@ const client = new sdk.Client(); const account = new sdk.Account(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const promise = account.createAnonymousSession(); @@ -306,7 +306,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('') // Your project ID ; $account = new Account($client); diff --git a/src/routes/docs/products/auth/teams/+page.markdoc b/src/routes/docs/products/auth/teams/+page.markdoc index 6e4d2d710f..c601b4acd9 100644 --- a/src/routes/docs/products/auth/teams/+page.markdoc +++ b/src/routes/docs/products/auth/teams/+page.markdoc @@ -24,7 +24,7 @@ const client = new Client(); const teams = new Teams(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const promise = teams.create( @@ -47,7 +47,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; Future result = teams.create( teamId: 'teachers', @@ -67,7 +67,7 @@ void main() { // Init SDK import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) @@ -82,7 +82,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) @@ -108,7 +108,7 @@ const client = new Client(); const teams = new Teams(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const promise = teams.createMembership( @@ -131,7 +131,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; Future result = teams.createMembership( teamId: 'teachers', @@ -151,7 +151,7 @@ void main() { // Init SDK import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) @@ -166,7 +166,7 @@ import io.appwrite.Client import io.appwrite.services.Teams val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val teams = Teams(client) diff --git a/src/routes/docs/products/databases/collections/+page.markdoc b/src/routes/docs/products/databases/collections/+page.markdoc index 9634453ce9..abab983332 100644 --- a/src/routes/docs/products/databases/collections/+page.markdoc +++ b/src/routes/docs/products/databases/collections/+page.markdoc @@ -30,8 +30,8 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const promise = databases.createCollection('', '[COLLECTION_ID]', '[NAME]'); @@ -51,8 +51,8 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; @@ -73,8 +73,8 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $databases = new Databases($client); @@ -88,8 +88,8 @@ from appwrite.services.databases import Databases client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) databases = Databases(client) @@ -102,8 +102,8 @@ require 'Appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key databases = Databases.new(client) @@ -117,8 +117,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var databases = new Databases(client); @@ -135,8 +135,8 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = databases.createCollection( @@ -158,8 +158,8 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val databases = Databases(client) @@ -175,8 +175,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Databases databases = new Databases(client); @@ -198,8 +198,8 @@ databases.createCollection( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/src/routes/docs/products/databases/databases/+page.markdoc b/src/routes/docs/products/databases/databases/+page.markdoc index 0a420da594..7ddc1d4e12 100644 --- a/src/routes/docs/products/databases/databases/+page.markdoc +++ b/src/routes/docs/products/databases/databases/+page.markdoc @@ -26,8 +26,8 @@ const client = new sdk.Client(); const databases = new sdk.Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const promise = databases.create('', '[NAME]'); @@ -47,8 +47,8 @@ let client = new sdk.Client(); let databases = new sdk.Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; @@ -69,8 +69,8 @@ use Appwrite\Services\Databases; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $databases = new Databases($client); @@ -84,8 +84,8 @@ from appwrite.services.databases import Databases client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) databases = Databases(client) @@ -98,8 +98,8 @@ require 'Appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key databases = Databases.new(client) @@ -113,8 +113,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var databases = new Databases(client); @@ -130,8 +130,8 @@ void main() { // Init SDK Databases databases = Databases(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = databases.create( @@ -152,8 +152,8 @@ import io.appwrite.Client import io.appwrite.services.Databases val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val databases = Databases(client) @@ -168,8 +168,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Databases; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Databases databases = new Databases(client); @@ -190,8 +190,8 @@ databases.create( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/src/routes/docs/products/messaging/apns/+page.markdoc b/src/routes/docs/products/messaging/apns/+page.markdoc index fee6b628ea..a616643afd 100644 --- a/src/routes/docs/products/messaging/apns/+page.markdoc +++ b/src/routes/docs/products/messaging/apns/+page.markdoc @@ -110,8 +110,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateAPNSProvider( @@ -133,8 +133,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateAPNSProvider( @@ -156,8 +156,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -179,8 +179,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -201,8 +201,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -224,8 +224,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -248,8 +248,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateAPNSProvider( @@ -276,8 +276,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -305,8 +305,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -332,8 +332,8 @@ messaging.updateAPNSProvider( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/fcm/+page.markdoc b/src/routes/docs/products/messaging/fcm/+page.markdoc index c4c481e18c..5137701cd9 100644 --- a/src/routes/docs/products/messaging/fcm/+page.markdoc +++ b/src/routes/docs/products/messaging/fcm/+page.markdoc @@ -107,8 +107,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateFCMProvider( @@ -127,8 +127,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateFCMProvider( @@ -147,8 +147,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -167,8 +167,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -186,8 +186,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -206,8 +206,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -227,8 +227,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateFCMProvider( @@ -252,8 +252,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -278,8 +278,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -302,8 +302,8 @@ messaging.updateFCMProvider( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/messages/+page.markdoc b/src/routes/docs/products/messaging/messages/+page.markdoc index cf992e2ba7..bc5068a319 100644 --- a/src/routes/docs/products/messaging/messages/+page.markdoc +++ b/src/routes/docs/products/messaging/messages/+page.markdoc @@ -232,8 +232,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createPush( @@ -263,8 +263,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createPush( @@ -294,8 +294,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -325,8 +325,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -355,8 +355,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -386,8 +386,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -418,8 +418,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createPush( @@ -454,8 +454,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -491,8 +491,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -526,8 +526,8 @@ messaging.createPush( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -567,8 +567,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -594,8 +594,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -621,8 +621,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -648,8 +648,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -674,8 +674,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -701,8 +701,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -729,8 +729,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -761,8 +761,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -794,8 +794,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -825,8 +825,8 @@ messaging.createEmail( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -862,8 +862,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -885,8 +885,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -908,8 +908,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -931,8 +931,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -953,8 +953,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -976,8 +976,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -995,13 +995,13 @@ import 'package:dart_appwrite/dart_appwrite.dart'; import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; -void main() { // Init SDK +void main() { // Init SDK Client client = Client(); Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -1028,8 +1028,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -1057,8 +1057,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -1084,8 +1084,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/msg91/+page.markdoc b/src/routes/docs/products/messaging/msg91/+page.markdoc index 41082a913f..777023403a 100644 --- a/src/routes/docs/products/messaging/msg91/+page.markdoc +++ b/src/routes/docs/products/messaging/msg91/+page.markdoc @@ -75,8 +75,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -98,8 +98,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -121,8 +121,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -144,8 +144,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -166,8 +166,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -189,8 +189,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -213,8 +213,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -241,8 +241,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -270,8 +270,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -297,8 +297,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -341,8 +341,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.updateMsg91Provider( @@ -363,8 +363,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.updateMsg91Provider( @@ -385,8 +385,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -407,8 +407,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -428,8 +428,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -450,8 +450,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -473,8 +473,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateMsg91Provider( @@ -500,8 +500,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -528,8 +528,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -554,8 +554,8 @@ messaging.updateMsg91Provider( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc index 763c792b33..88a1a211ae 100644 --- a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc @@ -45,8 +45,8 @@ You can also implement forms in your app to collect contact information and add const sdk = require('node-appwrite'); const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const users = new sdk.Users(client); @@ -63,7 +63,7 @@ const target = await users.createTarget( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token const users = new sdk.Users(client); @@ -85,8 +85,8 @@ use Appwrite\Services\Users; use Appwrite\Enums\MessagingProviderType; $client = (new Client()) - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $users = new Users($client); @@ -104,8 +104,8 @@ from appwrite.client import Client from appwrite.enums import MessagingProviderType client = Client() -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('') # Your project ID +client.set_key('') # Your secret API key users = Users(client) @@ -125,8 +125,8 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key users = Users.new(client) @@ -148,8 +148,8 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Users users = new Users(client); @@ -168,8 +168,8 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key Users users = Users(client); @@ -190,8 +190,8 @@ import io.appwrite.services.Users import io.appwrite.enums.MessagingProviderType val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val users = Users(client) @@ -212,8 +212,8 @@ import io.appwrite.services.Users; import io.appwrite.enums.MessagingProviderType; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Users users = new Users(client); @@ -239,8 +239,8 @@ import Appwrite import AppwriteEnums let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) @@ -277,8 +277,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const topic = await messaging.createTopic( @@ -295,8 +295,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const topic = await messaging.createTopic( @@ -313,8 +313,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -331,8 +331,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -348,8 +348,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -366,8 +366,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -385,8 +385,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createTopic( @@ -408,8 +408,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -432,8 +432,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -454,8 +454,8 @@ messaging.createTopic( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -479,8 +479,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -506,8 +506,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -533,8 +533,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -560,8 +560,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -586,8 +586,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -613,8 +613,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -641,8 +641,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -673,8 +673,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -706,8 +706,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -737,8 +737,8 @@ messaging.createEmail( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -771,8 +771,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -798,8 +798,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -825,8 +825,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -852,8 +852,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -878,8 +878,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -905,8 +905,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -933,8 +933,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -965,8 +965,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -998,8 +998,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -1029,8 +1029,8 @@ messaging.createEmail( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc index 905c16ca94..a5e54058ab 100644 --- a/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc +++ b/src/routes/docs/products/messaging/send-push-notifications/+page.markdoc @@ -473,8 +473,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createPush( @@ -504,8 +504,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createPush( @@ -535,8 +535,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -566,8 +566,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -596,8 +596,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -627,8 +627,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -659,8 +659,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createPush( @@ -694,8 +694,8 @@ import io.appwrite.Client import io.appwrite.services.Messaging val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -723,8 +723,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -758,8 +758,8 @@ messaging.createPush( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc index 2136d2f52f..53c54792b1 100644 --- a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc @@ -54,8 +54,8 @@ You can also implement forms in your app to collect contact information and add const sdk = require('node-appwrite'); const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const users = new sdk.Users(client); @@ -72,7 +72,7 @@ const target = await users.createTarget( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token const users = new sdk.Users(client); @@ -94,8 +94,8 @@ use Appwrite\Services\Users; use Appwrite\Enums\MessagingProviderType; $client = (new Client()) - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $users = new Users($client); @@ -113,8 +113,8 @@ from appwrite.client import Client from appwrite.enums import MessagingProviderType client = Client() -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('') # Your project ID +client.set_key('') # Your secret API key users = Users(client) @@ -134,8 +134,8 @@ include Appwrite include Appwrite::Enums client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key users = Users.new(client) @@ -157,8 +157,8 @@ using Appwrite.Models; using Appwrite.Enums; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Users users = new Users(client); @@ -177,8 +177,8 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key Users users = Users(client); @@ -199,8 +199,8 @@ import io.appwrite.services.Users import io.appwrite.enums.MessagingProviderType val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val users = Users(client) @@ -221,8 +221,8 @@ import io.appwrite.services.Users; import io.appwrite.enums.MessagingProviderType; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Users users = new Users(client); @@ -248,8 +248,8 @@ import Appwrite import AppwriteEnums let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) @@ -282,8 +282,8 @@ You can also create topics programmatically using an [Appwrite Server SDK](/docs const sdk = require('node-appwrite'); const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -296,8 +296,8 @@ const topic = await messaging.createTopic( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -313,8 +313,8 @@ use Appwrite\Client; use Appwrite\Services\Messaging; $client = (new Client()) - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $messaging = new Messaging($client); @@ -328,8 +328,8 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('') # Your project ID +client.set_key('') # Your secret API key messaging = Messaging(client) @@ -344,8 +344,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -360,8 +360,8 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -375,8 +375,8 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key Messaging messaging = Messaging(client); @@ -391,8 +391,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val messaging = new Messaging(client) @@ -407,8 +407,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -429,8 +429,8 @@ messaging.createTopic( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -451,8 +451,8 @@ const sdk = require('node-appwrite'); // Init SDK const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -470,8 +470,8 @@ const message = await messaging.createSms( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -494,8 +494,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $messaging = new Messaging($client); @@ -514,8 +514,8 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('') # Your project ID +client.set_key('') # Your secret API key messaging = Messaging(client) @@ -535,8 +535,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -556,8 +556,8 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -576,8 +576,8 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client(); - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key Messaging messaging = Messaging(client); @@ -597,8 +597,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -618,8 +618,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -645,8 +645,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -670,8 +670,8 @@ const sdk = require('node-appwrite'); // Init SDK const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -689,8 +689,8 @@ const message = await messaging.createSms( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -713,8 +713,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $messaging = new Messaging($client); @@ -733,8 +733,8 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_project('5df5acd0d48c2') # Your project ID -client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key +client.set_project('') # Your project ID +client.set_key('') # Your secret API key messaging = Messaging(client) @@ -754,8 +754,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -775,8 +775,8 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -795,8 +795,8 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client(); - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key + .setProject('') // Your project ID + .setKey(''); // Your secret API key Messaging messaging = Messaging(client); @@ -816,8 +816,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -837,8 +837,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -864,8 +864,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/telesign/+page.markdoc b/src/routes/docs/products/messaging/telesign/+page.markdoc index 5f6318c6b8..008575e273 100644 --- a/src/routes/docs/products/messaging/telesign/+page.markdoc +++ b/src/routes/docs/products/messaging/telesign/+page.markdoc @@ -74,8 +74,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createSms( @@ -97,8 +97,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createSms( @@ -120,8 +120,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -143,8 +143,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -165,8 +165,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -188,8 +188,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -212,8 +212,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -240,8 +240,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -269,8 +269,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -296,8 +296,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -339,8 +339,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTelesignProvider( @@ -361,8 +361,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTelesignProvider( @@ -383,8 +383,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -405,8 +405,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -426,8 +426,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -448,8 +448,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -471,8 +471,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateTelesignProvider( @@ -498,8 +498,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -526,8 +526,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -552,8 +552,8 @@ messaging.updateTelesignProvider( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/textmagic/+page.markdoc b/src/routes/docs/products/messaging/textmagic/+page.markdoc index e9bb3491d0..6850f796a5 100644 --- a/src/routes/docs/products/messaging/textmagic/+page.markdoc +++ b/src/routes/docs/products/messaging/textmagic/+page.markdoc @@ -74,8 +74,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createSms( @@ -97,8 +97,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createSms( @@ -120,8 +120,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -143,8 +143,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -165,8 +165,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -188,8 +188,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -212,8 +212,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -240,8 +240,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -269,8 +269,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -296,8 +296,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -339,8 +339,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTextmagicProvider( @@ -361,8 +361,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTextmagicProvider( @@ -383,8 +383,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -405,8 +405,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -426,8 +426,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -448,8 +448,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -471,8 +471,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateTextmagicProvider( @@ -498,8 +498,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -526,8 +526,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -552,8 +552,8 @@ messaging.updateTextmagicProvider( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/topics/+page.markdoc b/src/routes/docs/products/messaging/topics/+page.markdoc index 496064dd41..b74cf41a6b 100644 --- a/src/routes/docs/products/messaging/topics/+page.markdoc +++ b/src/routes/docs/products/messaging/topics/+page.markdoc @@ -53,8 +53,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const topic = messaging.createTopic( @@ -73,8 +73,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const topic = messaging.createTopic( @@ -92,8 +92,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -112,8 +112,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -130,8 +130,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -149,8 +149,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -169,8 +169,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createTopic( @@ -193,8 +193,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -218,8 +218,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -241,8 +241,8 @@ messaging.createTopic( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -285,7 +285,7 @@ If you can't find the targets you'd like to add, see the [targets page](/docs/pr const sdk = require('node-appwrite'); const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); @@ -300,7 +300,7 @@ const subscriber = await messaging.createSubscriber( import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); @@ -320,7 +320,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('') // Your project ID ->setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token $messaging = new Messaging($client); @@ -336,7 +336,7 @@ from appwrite.client import Client from appwrite.services.messaging import Messaging client = Client() -client.set_project('5df5acd0d48c2') # Your project ID +client.set_project('') # Your project ID client.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token messaging = Messaging(client) @@ -353,7 +353,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID + .set_project('') # Your project ID .set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token messaging = Messaging.new(client) @@ -370,7 +370,7 @@ using Appwrite.Services; using Appwrite.Models; Client client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID + .SetProject("") // Your project ID .SetJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token Messaging messaging = new Messaging(client); @@ -386,7 +386,7 @@ import 'package:dart_appwrite/enums.dart'; import 'package:dart_appwrite/models.dart'; Client client = Client() - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token Messaging messaging = Messaging(client); @@ -403,7 +403,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; val client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token val messaging = new Messaging(client) @@ -420,7 +420,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID .setJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token Messaging messaging = new Messaging(client); @@ -443,7 +443,7 @@ messaging.createSubscriber( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/twilio/+page.markdoc b/src/routes/docs/products/messaging/twilio/+page.markdoc index 3b280e92bf..fb3cd54083 100644 --- a/src/routes/docs/products/messaging/twilio/+page.markdoc +++ b/src/routes/docs/products/messaging/twilio/+page.markdoc @@ -76,8 +76,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -99,8 +99,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -122,8 +122,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -145,8 +145,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -167,8 +167,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -190,8 +190,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -214,8 +214,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -242,8 +242,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -271,8 +271,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -298,8 +298,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -339,8 +339,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTwilioProvider( @@ -361,8 +361,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTwilioProvider( @@ -383,8 +383,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -405,8 +405,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -426,8 +426,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -448,8 +448,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -471,8 +471,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateTwilioProvider( @@ -498,8 +498,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -526,8 +526,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -552,8 +552,8 @@ messaging.updateTwilioProvider( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/vonage/+page.markdoc b/src/routes/docs/products/messaging/vonage/+page.markdoc index 4ef5fbc9da..f825840c1b 100644 --- a/src/routes/docs/products/messaging/vonage/+page.markdoc +++ b/src/routes/docs/products/messaging/vonage/+page.markdoc @@ -76,8 +76,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -99,8 +99,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -122,8 +122,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -145,8 +145,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -167,8 +167,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -190,8 +190,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -214,8 +214,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -242,8 +242,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -271,8 +271,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -298,8 +298,8 @@ messaging.createSms( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -341,8 +341,8 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateVonageProvider( @@ -363,8 +363,8 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateVonageProvider( @@ -385,8 +385,8 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -407,8 +407,8 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -428,8 +428,8 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -450,8 +450,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -473,8 +473,8 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateVonageProvider( @@ -500,8 +500,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -528,8 +528,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -554,8 +554,8 @@ messaging.updateVonageProvider( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/storage/buckets/+page.markdoc b/src/routes/docs/products/storage/buckets/+page.markdoc index 5941b10e74..fb95101ec5 100644 --- a/src/routes/docs/products/storage/buckets/+page.markdoc +++ b/src/routes/docs/products/storage/buckets/+page.markdoc @@ -36,8 +36,8 @@ const client = new sdk.Client(); const storage = new sdk.Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const promise = storage.createBucket('[BUCKET_ID]', '[NAME]'); @@ -57,8 +57,8 @@ let client = new sdk.Client(); let storage = new sdk.Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; @@ -79,8 +79,8 @@ use Appwrite\Services\Storage; $client = new Client(); $client - ->setProject('5df5acd0d48c2') // Your project ID - ->setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $storage = new Storage($client); @@ -94,8 +94,8 @@ from appwrite.services.storage import Storage client = Client() (client - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key ) storage = Storage(client) @@ -108,8 +108,8 @@ require 'Appwrite' include Appwrite client = Client.new - .set_project('5df5acd0d48c2') # Your project ID - .set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key + .set_project('') # Your project ID + .set_key('') # Your secret API key storage = Storage.new(client) @@ -123,8 +123,8 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("5df5acd0d48c2") // Your project ID - .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var storage = new Storage(client); @@ -140,8 +140,8 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID - .setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = storage.createBucket( @@ -162,8 +162,8 @@ import io.appwrite.Client import io.appwrite.services.Storage val client = Client(context) - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key val storage = Storage(client) @@ -178,8 +178,8 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Storage; Client client = new Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key + .setProject("") // Your project ID + .setKey(""); // Your secret API key Storage storage = new Storage(client); @@ -200,8 +200,8 @@ storage.createBucket( import Appwrite let client = Client() - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let storage = Storage(client) diff --git a/src/routes/docs/products/storage/images/+page.markdoc b/src/routes/docs/products/storage/images/+page.markdoc index 2d58184587..59f5b9d04f 100644 --- a/src/routes/docs/products/storage/images/+page.markdoc +++ b/src/routes/docs/products/storage/images/+page.markdoc @@ -47,7 +47,7 @@ const client = new Client(); const storage = new Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFilePreview( @@ -76,7 +76,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFilePreview( @@ -121,7 +121,7 @@ import Appwrite func main() async throws { let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFilePreview( bucketId: "photos", // bucket ID @@ -156,7 +156,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/src/routes/docs/products/storage/quick-start/+page.markdoc b/src/routes/docs/products/storage/quick-start/+page.markdoc index cd22513b96..fe4c5951d8 100644 --- a/src/routes/docs/products/storage/quick-start/+page.markdoc +++ b/src/routes/docs/products/storage/quick-start/+page.markdoc @@ -131,7 +131,7 @@ const client = new Client(); const storage = new Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); @@ -146,7 +146,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFileDownload( @@ -180,7 +180,7 @@ import Appwrite func main() async throws { let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileDownload( bucketId: "[BUCKET_ID]", @@ -204,7 +204,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) diff --git a/src/routes/docs/products/storage/upload-download/+page.markdoc b/src/routes/docs/products/storage/upload-download/+page.markdoc index 1befb36f83..1a8c75c719 100644 --- a/src/routes/docs/products/storage/upload-download/+page.markdoc +++ b/src/routes/docs/products/storage/upload-download/+page.markdoc @@ -281,7 +281,7 @@ const client = new Client(); const storage = new Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const promise = storage.getFile('[BUCKET_ID]', '[FILE_ID]'); @@ -300,7 +300,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFile( @@ -334,7 +334,7 @@ import Appwrite func main() async throws { let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFile( bucketId: "[BUCKET_ID]", @@ -358,7 +358,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) @@ -384,7 +384,7 @@ const client = new Client(); const storage = new Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); @@ -399,7 +399,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFileDownload( @@ -433,7 +433,7 @@ import Appwrite func main() async throws { let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileDownload( bucketId: "[BUCKET_ID]", @@ -457,7 +457,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) @@ -483,7 +483,7 @@ const client = new Client(); const storage = new Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); @@ -498,7 +498,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFilePreview( @@ -532,7 +532,7 @@ import Appwrite func main() async throws { let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFilePreview( bucketId: "[BUCKET_ID]", @@ -556,7 +556,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) @@ -583,7 +583,7 @@ const client = new Client(); const storage = new Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); @@ -598,7 +598,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFileView( @@ -632,7 +632,7 @@ import Appwrite func main() async throws { let client = Client() - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileView( bucketId: "[BUCKET_ID]", @@ -656,7 +656,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) val client = Client(applicationContext) - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID val storage = Storage(client) From ec8baf19dee0e5f8b091b9f49bbdc4aa81fa2358 Mon Sep 17 00:00:00 2001 From: choir27 Date: Tue, 27 Aug 2024 15:02:12 -0400 Subject: [PATCH 7/9] update YOUR_PROJECT_ID to PROJECT_ID --- .../+page.markdoc | 1 - .../blog/post/ai-crystal-ball/+page.markdoc | 1 - .../+page.markdoc | 2 +- .../+page.markdoc | 2 +- .../building-init-giveaway-app/+page.markdoc | 5 +-- .../email-otp-auth-sveltekit/+page.markdoc | 3 +- .../+page.markdoc | 7 ++-- .../+page.markdoc | 5 +-- .../+page.markdoc | 4 +-- .../+page.markdoc | 2 +- .../+page.markdoc | 1 - .../docs/products/auth/mfa/+page.markdoc | 8 ++--- .../products/auth/quick-start/+page.markdoc | 4 +-- .../auth/server-side-rendering/+page.markdoc | 14 ++++---- .../products/functions/execute/+page.markdoc | 30 ++++++++-------- .../products/messaging/sendgrid/+page.markdoc | 20 +++++------ .../docs/quick-starts/android/+page.markdoc | 4 +-- .../docs/quick-starts/angular/+page.markdoc | 4 +-- .../docs/quick-starts/apple/+page.markdoc | 4 +-- .../docs/quick-starts/dart/+page.markdoc | 6 ++-- .../docs/quick-starts/deno/+page.markdoc | 4 +-- .../docs/quick-starts/dotnet/+page.markdoc | 4 +-- .../docs/quick-starts/flutter/+page.markdoc | 4 +-- .../docs/quick-starts/kotlin/+page.markdoc | 4 +-- .../docs/quick-starts/nextjs/+page.markdoc | 4 +-- .../docs/quick-starts/node/+page.markdoc | 4 +-- .../docs/quick-starts/nuxt/+page.markdoc | 4 +-- .../docs/quick-starts/php/+page.markdoc | 4 +-- .../docs/quick-starts/python/+page.markdoc | 4 +-- .../quick-starts/react-native/+page.markdoc | 2 +- .../docs/quick-starts/react/+page.markdoc | 4 +-- .../docs/quick-starts/refine/+page.markdoc | 3 +- .../docs/quick-starts/ruby/+page.markdoc | 4 +-- .../docs/quick-starts/solid/+page.markdoc | 4 +-- .../docs/quick-starts/sveltekit/+page.markdoc | 4 +-- .../docs/quick-starts/swift/+page.markdoc | 4 +-- .../docs/quick-starts/vue/+page.markdoc | 4 +-- .../docs/quick-starts/web/+page.markdoc | 4 +-- .../docs/references/quick-start/+page.markdoc | 36 +++++++++---------- .../non-interactive/+page.markdoc | 4 +++ .../tutorials/android/step-3/+page.markdoc | 4 +-- .../tutorials/android/step-4/+page.markdoc | 3 +- .../astro-ssr-auth/step-3/+page.markdoc | 5 ++- .../astro-ssr-auth/step-4/+page.markdoc | 1 - .../nextjs-ssr-auth/step-3/+page.markdoc | 5 ++- .../nuxt-ssr-auth/step-3/+page.markdoc | 4 +-- .../sveltekit-csr-auth/step-3/+page.markdoc | 4 +-- .../sveltekit-ssr-auth/step-3/+page.markdoc | 7 ++-- .../stripe-payments/+page.markdoc | 2 +- 49 files changed, 126 insertions(+), 145 deletions(-) diff --git a/src/routes/blog/post/add-a-search-function-to-your-app/+page.markdoc b/src/routes/blog/post/add-a-search-function-to-your-app/+page.markdoc index 53b7052bc6..bbbc2cccc9 100644 --- a/src/routes/blog/post/add-a-search-function-to-your-app/+page.markdoc +++ b/src/routes/blog/post/add-a-search-function-to-your-app/+page.markdoc @@ -21,7 +21,6 @@ Meilisearch is a flexible and powerful user-focused search engine that can be ad To use the function, you need the following set of keys: - `APPWRITE_KEY` - API Key to talk to Appwrite backend APIs.To generate API Keys you can follow the documentation [here](https://appwrite.io/docs/getting-started-for-server#apiKey) -- `APPWRITE_ENDPOINT` - To get the Appwrite endpoint, you need to go to [Appwrite](https://cloud.appwrite.io/) and find it under “Settings” - `APPWRITE_DATABASE_ID` - The ID of the Appwrite database that contains the collection to sync. You can find the documentation [here](https://appwrite.io/docs/databases). - `APPWRITE_COLLECTION_ID` - The ID of the collection in the Appwrite database to sync. diff --git a/src/routes/blog/post/ai-crystal-ball/+page.markdoc b/src/routes/blog/post/ai-crystal-ball/+page.markdoc index 72df690664..0e004808a5 100644 --- a/src/routes/blog/post/ai-crystal-ball/+page.markdoc +++ b/src/routes/blog/post/ai-crystal-ball/+page.markdoc @@ -120,7 +120,6 @@ npm i appwrite openai Lastly, we must create a `.env` file at the root of the directory and add the following: ```bash -PUBLIC_APPWRITE_ENDPOINT= PUBLIC_APPWRITE_PROJECT_ID= PUBLIC_APPWRITE_DATABASE_ID= PUBLIC_APPWRITE_COLLECTION_ID_GITHUBDATA= diff --git a/src/routes/blog/post/announcing-two-factor-authentication/+page.markdoc b/src/routes/blog/post/announcing-two-factor-authentication/+page.markdoc index 8cd99f0ae1..ed513463fa 100644 --- a/src/routes/blog/post/announcing-two-factor-authentication/+page.markdoc +++ b/src/routes/blog/post/announcing-two-factor-authentication/+page.markdoc @@ -46,7 +46,7 @@ import { Client, Account } from "appwrite"; const client = new Client(); client - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc b/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc index 44e5345d92..32270109ab 100644 --- a/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc +++ b/src/routes/blog/post/appwrite-1.5-now-available-on-cloud/+page.markdoc @@ -172,7 +172,7 @@ import { Client, Account } from "appwrite"; const client = new Client(); client - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/blog/post/building-init-giveaway-app/+page.markdoc b/src/routes/blog/post/building-init-giveaway-app/+page.markdoc index b41078de75..1e719414df 100644 --- a/src/routes/blog/post/building-init-giveaway-app/+page.markdoc +++ b/src/routes/blog/post/building-init-giveaway-app/+page.markdoc @@ -88,9 +88,6 @@ We then entered the application directory, installed the Appwrite Web SDK and Pi ```js // ./src/lib/constants.js - -export const APPWRITE_ENDPOINT = 'https://cloud.appwrite.io/v1'; - export const APPWRITE_PROJECT = ''; export const DATABASE_NAME = ''; @@ -104,7 +101,7 @@ After the constants were added, we could now set up the Appwrite SDK. // ./src/lib/appwrite.js import { Account, Client, Databases } from 'appwrite'; -import { APPWRITE_ENDPOINT, APPWRITE_PROJECT } from './constants'; +import { APPWRITE_PROJECT } from './constants'; export const client = new Client(); diff --git a/src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc b/src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc index 478aac19ac..7243146187 100644 --- a/src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc +++ b/src/routes/blog/post/email-otp-auth-sveltekit/+page.markdoc @@ -96,7 +96,6 @@ npm i Also, create a file `.env` in the root directory and add your Appwrite API endpoint and project ID. ``` -PUBLIC_APPWRITE_ENDPOINT= PUBLIC_APPWRITE_PROJECT_ID= ``` @@ -111,7 +110,7 @@ npm i appwrite As soon as that’s done, we can start preparing our application logic. For that, visit the `src/lib` directory and create a file `appwrite.js`. Add the following code to the same. ```js -import { PUBLIC_APPWRITE_ENDPOINT, PUBLIC_APPWRITE_PROJECT_ID } from "$env/static/public"; +import { PUBLIC_APPWRITE_PROJECT_ID } from "$env/static/public"; import { Client, Account } from "appwrite"; const client = new Client() diff --git a/src/routes/blog/post/integrate-custom-auth-sveltekit/+page.markdoc b/src/routes/blog/post/integrate-custom-auth-sveltekit/+page.markdoc index 739b26d783..3b3ac79e10 100644 --- a/src/routes/blog/post/integrate-custom-auth-sveltekit/+page.markdoc +++ b/src/routes/blog/post/integrate-custom-auth-sveltekit/+page.markdoc @@ -64,7 +64,6 @@ npm i Next, we shall create a `.env` file at the root of the directory and add the following: ```bash -PUBLIC_APPWRITE_ENDPOINT= PUBLIC_APPWRITE_PROJECT_ID= APPWRITE_API_KEY= ``` @@ -81,10 +80,9 @@ We will then develop our API route `/auth` by creating a file `./src/routes/auth ```js import { Client, Users, ID, Query } from 'node-appwrite'; -import { PUBLIC_APPWRITE_ENDPOINT, PUBLIC_APPWRITE_PROJECT_ID } from '$env/static/public'; // Gets the public environment variables shared with the client +import { PUBLIC_APPWRITE_PROJECT_ID } from '$env/static/public'; // Gets the public environment variables shared with the client import { env } from '$env/dynamic/private'; // Gets the private server-only environment variable -const endpoint = PUBLIC_APPWRITE_ENDPOINT; const projectId = PUBLIC_APPWRITE_PROJECT_ID; const apiKey = env.APPWRITE_API_KEY; @@ -175,9 +173,8 @@ npm i appwrite ```js import { Client, Account } from 'appwrite'; -import { PUBLIC_APPWRITE_ENDPOINT, PUBLIC_APPWRITE_PROJECT_ID } from '$env/static/public'; +import { PUBLIC_APPWRITE_PROJECT_ID } from '$env/static/public'; -const endpoint = PUBLIC_APPWRITE_ENDPOINT; const projectId = PUBLIC_APPWRITE_PROJECT_ID; const client = new Client() diff --git a/src/routes/blog/post/integrate-sql-nosql-vector-graph-or-any-database-into-your-appwrite-project/+page.markdoc b/src/routes/blog/post/integrate-sql-nosql-vector-graph-or-any-database-into-your-appwrite-project/+page.markdoc index 20b81e8686..fa793db1ac 100644 --- a/src/routes/blog/post/integrate-sql-nosql-vector-graph-or-any-database-into-your-appwrite-project/+page.markdoc +++ b/src/routes/blog/post/integrate-sql-nosql-vector-graph-or-any-database-into-your-appwrite-project/+page.markdoc @@ -42,7 +42,7 @@ let client; export default async ({ req, res, log, error }) => { // Connect to database if(!client) { - const { PGHOST, PGDATABASE, PGUSER, PGPASSWORD, ENDPOINT_ID } = process.env; + const { PGHOST, PGDATABASE, PGUSER, PGPASSWORD } = process.env; client = postgres({ host: PGHOST, database: PGDATABASE, @@ -50,9 +50,6 @@ export default async ({ req, res, log, error }) => { password: PGPASSWORD, port: 5432, ssl: 'require', - connection: { - options: `project=${ENDPOINT_ID}`, - }, }); } diff --git a/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc b/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc index 998f0337c3..382b45785c 100644 --- a/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc +++ b/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc @@ -75,7 +75,7 @@ The admin client will need to be initialized with an API key in order to bypass import { Client } from "node-appwrite" const adminClient = new Client() - .setProject('') + .setProject('') .setKey('') ``` @@ -85,7 +85,7 @@ A session client will allow us to make requests as an authenticated end-user wit ```jsx const sessionClient = new Client() - .setProject('') + .setProject('') const session = req.cookies.session diff --git a/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc b/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc index f509c16fa9..06cc4ae2a8 100644 --- a/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc +++ b/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc @@ -105,7 +105,7 @@ export { OAuthProvider } ``` -In the `appwrite.js` file, the `Client` object, used to interact with Appwrite services, is initialized with the Appwrite API endpoint and your project ID. The `account` object is created using the client to interact with the Appwrite account service, while the `OAuthProvider` is an enum that contains the OAuth2 providers supported by Appwrite. We are exporting it from this file so you don't have to import both from `appwrite` and `appwrite.js` when you need to use both account and OAuthProvider in a component. +In the `appwrite.js` file, the `Client` object, used to interact with Appwrite services, is initialized with your project ID. The `account` object is created using the client to interact with the Appwrite account service, while the `OAuthProvider` is an enum that contains the OAuth2 providers supported by Appwrite. We are exporting it from this file so you don't have to import both from `appwrite` and `appwrite.js` when you need to use both account and OAuthProvider in a component. # Create authentication functions diff --git a/src/routes/blog/post/swift-101-build-a-library-with-swift-package-manager/+page.markdoc b/src/routes/blog/post/swift-101-build-a-library-with-swift-package-manager/+page.markdoc index 4a68bd1dee..96b317bf41 100644 --- a/src/routes/blog/post/swift-101-build-a-library-with-swift-package-manager/+page.markdoc +++ b/src/routes/blog/post/swift-101-build-a-library-with-swift-package-manager/+page.markdoc @@ -254,7 +254,6 @@ With the package added as a dependency, we can now use the function we defined e import FooPackage FooPackage.login( - endpoint: "http://localhost/v1", projectId: "6bfgh45fng3", email: "test@test.test", password: "password" diff --git a/src/routes/docs/products/auth/mfa/+page.markdoc b/src/routes/docs/products/auth/mfa/+page.markdoc index c63493db52..d46d6b9ad5 100644 --- a/src/routes/docs/products/auth/mfa/+page.markdoc +++ b/src/routes/docs/products/auth/mfa/+page.markdoc @@ -32,7 +32,7 @@ const account = new Account(client); const avatars = new Avatars(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; ``` @@ -45,7 +45,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; } ``` @@ -54,7 +54,7 @@ void main() { // Init SDK import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let account = Account(client) let avatars = Avatars(client) @@ -65,7 +65,7 @@ import io.appwrite.Client import io.appwrite.services.Account val client = Client(context) - .setProject("") // Your project ID + .setProject("") // Your project ID val account = Account(client) val avatars = Avatars(client) diff --git a/src/routes/docs/products/auth/quick-start/+page.markdoc b/src/routes/docs/products/auth/quick-start/+page.markdoc index ab9b62a7ef..5ada5d6a3b 100644 --- a/src/routes/docs/products/auth/quick-start/+page.markdoc +++ b/src/routes/docs/products/auth/quick-start/+page.markdoc @@ -496,7 +496,7 @@ class Appwrite { public init() { self.client = Client() - .setProject("") + .setProject("") self.account = Account(client) } @@ -566,7 +566,7 @@ You can find a version of this example in the [Appwrite Android tutorial](/docs/ object Appwrite { private const val ENDPOINT = "https://cloud.appwrite.io/v1" - private const val PROJECT_ID = "" + private const val PROJECT_ID = "" private lateinit var client: Client diff --git a/src/routes/docs/products/auth/server-side-rendering/+page.markdoc b/src/routes/docs/products/auth/server-side-rendering/+page.markdoc index 4afe8d5fc3..1567a27b88 100644 --- a/src/routes/docs/products/auth/server-side-rendering/+page.markdoc +++ b/src/routes/docs/products/auth/server-side-rendering/+page.markdoc @@ -58,7 +58,7 @@ The API key should have the following scope in order to perform authentication: import { Client } from "node-appwrite"; // Using the server SDK const adminClient = new Client() - .setProject('') // Your project ID + .setProject('') // Your project ID .setKey(''); // Your secret API key ``` ```php @@ -66,7 +66,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $adminClient = (new Client()) - ->setProject('') // Your project ID + ->setProject('') // Your project ID ->setKey(''); // Your secret API key @@ -85,7 +85,7 @@ You should create a new client for each request and **never** share the client b {% multicode %} ```server-nodejs const sessionClient = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const session = req.cookies.session; // Get the session cookie from the request if (session) { @@ -94,7 +94,7 @@ if (session) { ``` ```php $sessionClient = (new Client()) - ->setProject(''); // Your project ID + ->setProject(''); // Your project ID $session = $_COOKIE['session']; // Get the session cookie from the request if ($session) { @@ -340,7 +340,7 @@ Create an initial endpoint that redirects the user to the OAuth2 provider's auth import { Client, Account, OAuthProvider } from "node-appwrite"; // Using the server SDK const adminClient = new Client() - .setProject('') // Your project ID + .setProject('') // Your project ID .setKey(''); // Your secret API key app.get('/oauth', async (req, res) => { @@ -362,7 +362,7 @@ use Appwrite\Services\Account; use Appwrite\Enums\OAuthProvider; $adminClient = (new Client()) - ->setProject('') // Your project ID + ->setProject('') // Your project ID ->setKey(''); // Your secret API key $account = new Account($adminClient); @@ -412,7 +412,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $adminClient = (new Client()) - ->setProject('') // Your project ID + ->setProject('') // Your project ID ->setKey(''); // Your secret API key $account = new Account($adminClient); diff --git a/src/routes/docs/products/functions/execute/+page.markdoc b/src/routes/docs/products/functions/execute/+page.markdoc index 4ab558f15b..c9eb9081d7 100644 --- a/src/routes/docs/products/functions/execute/+page.markdoc +++ b/src/routes/docs/products/functions/execute/+page.markdoc @@ -54,7 +54,7 @@ const client = new Client(); const functions = new Functions(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; const promise = functions.createExecution( @@ -80,7 +80,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; Future result = functions.createExecution( functionId: '', @@ -103,7 +103,7 @@ void main() { // Init SDK import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let functions = Functions(client) @@ -121,7 +121,7 @@ import io.appwrite.Client import io.appwrite.services.Functions val client = Client(context) - .setProject("") // Your project ID + .setProject("") // Your project ID val functions = Functions(client) @@ -140,7 +140,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client(context) - .setProject(""); // Your project ID + .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -176,7 +176,7 @@ const client = new sdk.Client(); const functions = new sdk.Functions(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; const promise = functions.createExecution( @@ -204,7 +204,7 @@ let client = new sdk.Client(); let functions = new sdk.Functions(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; const promise = functions.createExecution( @@ -232,7 +232,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setProject('') // Your project ID + ->setProject('') // Your project ID ; $functions = new Functions($client); @@ -253,7 +253,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_project('') # Your project ID + .set_project('') # Your project ID ) functions = Functions(client) @@ -273,7 +273,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID + .set_project('') # Your project ID functions = Functions.new(client) @@ -294,7 +294,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject(""); // Your project ID + .SetProject(""); // Your project ID var functions = new Functions(client); @@ -314,7 +314,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; Future result = functions.createExecution( @@ -340,7 +340,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setProject(""); // Your project ID + .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -368,7 +368,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Functions; Client client = new Client() - .setProject(""); // Your project ID + .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -394,7 +394,7 @@ functions.createExecution( import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID let functions = Functions(client) diff --git a/src/routes/docs/products/messaging/sendgrid/+page.markdoc b/src/routes/docs/products/messaging/sendgrid/+page.markdoc index ee07434e30..3fa201a35f 100644 --- a/src/routes/docs/products/messaging/sendgrid/+page.markdoc +++ b/src/routes/docs/products/messaging/sendgrid/+page.markdoc @@ -286,7 +286,7 @@ const client = new sdk.Client(); const messaging = new sdk.Messaging(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -310,7 +310,7 @@ let client = new sdk.Client(); let messaging = new sdk.Messaging(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -334,7 +334,7 @@ use Appwrite\Services\Messaging; $client = new Client(); $client - ->setProject('') // Your project ID + ->setProject('') // Your project ID ->setKey('') // Your secret API key ; @@ -358,7 +358,7 @@ from appwrite.services.messaging import Messaging client = Client() (client - .set_project('') # Your project ID + .set_project('') # Your project ID .set_key('') # Your secret API key ) @@ -381,7 +381,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID + .set_project('') # Your project ID .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -405,7 +405,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetProject("") // Your project ID + .SetProject("") // Your project ID .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -430,7 +430,7 @@ void main() { // Init SDK Messaging messaging = Messaging(client); client - .setProject('') // Your project ID + .setProject('') // Your project ID .setKey('') // Your secret API key ; @@ -459,7 +459,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("") // Your project ID + .setProject("") // Your project ID .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -489,7 +489,7 @@ import io.appwrite.coroutines.CoroutineCallback; import io.appwrite.services.Messaging; Client client = new Client() - .setProject("") // Your project ID + .setProject("") // Your project ID .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -517,7 +517,7 @@ messaging.updateSendgridProvider( import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/quick-starts/android/+page.markdoc b/src/routes/docs/quick-starts/android/+page.markdoc index e7b156849e..29894b535f 100644 --- a/src/routes/docs/quick-starts/android/+page.markdoc +++ b/src/routes/docs/quick-starts/android/+page.markdoc @@ -85,7 +85,7 @@ Find your project's ID in the **Settings** page. ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `Appwrite.kt` and add the following code to it, replacing `[YOUR_PROJECT_ID]` with your project ID. +Create a new file `Appwrite.kt` and add the following code to it, replacing `[PROJECT_ID]` with your project ID. ```kotlin package @@ -102,7 +102,7 @@ object Appwrite { fun init(context: Context) { client = Client(context) - .setProject("[YOUR_PROJECT_ID]") + .setProject("[PROJECT_ID]") account = Account(client) } diff --git a/src/routes/docs/quick-starts/angular/+page.markdoc b/src/routes/docs/quick-starts/angular/+page.markdoc index 2659144cb4..4c3db32299 100644 --- a/src/routes/docs/quick-starts/angular/+page.markdoc +++ b/src/routes/docs/quick-starts/angular/+page.markdoc @@ -66,7 +66,7 @@ Find your project's ID in the **Settings** page. {% only_light %} ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `src/lib/appwrite.ts` and add the following code to it, replace `` with your project ID. +Create a new file `src/lib/appwrite.ts` and add the following code to it, replace `` with your project ID. ```client-web import { Client, Account} from 'appwrite'; @@ -74,7 +74,7 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; diff --git a/src/routes/docs/quick-starts/apple/+page.markdoc b/src/routes/docs/quick-starts/apple/+page.markdoc index da3fdd1e60..f5d03b24f8 100644 --- a/src/routes/docs/quick-starts/apple/+page.markdoc +++ b/src/routes/docs/quick-starts/apple/+page.markdoc @@ -97,7 +97,7 @@ Find your project's ID in the **Settings** page. {% only_light %} ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `Appwrite.swift` and add the following code to it, replacing `[YOUR_PROJECT_ID]` with your project ID. +Create a new file `Appwrite.swift` and add the following code to it, replacing `[PROJECT_ID]` with your project ID. ```swift import Foundation @@ -110,7 +110,7 @@ class Appwrite { public init() { self.client = Client() - .setProject("[YOUR_PROJECT_ID]") + .setProject("[PROJECT_ID]") self.account = Account(client) } diff --git a/src/routes/docs/quick-starts/dart/+page.markdoc b/src/routes/docs/quick-starts/dart/+page.markdoc index 6f75585d5b..f6e451826c 100644 --- a/src/routes/docs/quick-starts/dart/+page.markdoc +++ b/src/routes/docs/quick-starts/dart/+page.markdoc @@ -69,7 +69,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Keys** button to find the API key that was created earlier. -Open `bin/my_app.dart` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open `bin/my_app.dart` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```dart import 'package:dart_appwrite/dart_appwrite.dart'; @@ -78,7 +78,7 @@ var client = Client(); Future main() async { client - .setProject("") + .setProject("") .setKey(""); } ``` @@ -199,7 +199,7 @@ Finally, revisit the `main()` function and call the functions created in previou ```dart Future main() async { client - .setProject("") + .setProject("") .setKey(""); await prepareDatabase(); diff --git a/src/routes/docs/quick-starts/deno/+page.markdoc b/src/routes/docs/quick-starts/deno/+page.markdoc index 3e430e54d1..102da476c3 100644 --- a/src/routes/docs/quick-starts/deno/+page.markdoc +++ b/src/routes/docs/quick-starts/deno/+page.markdoc @@ -73,7 +73,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open `mod.ts` in your IDE and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open `mod.ts` in your IDE and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```ts import { Client, ID, Databases, Models } from "https://deno.land/x/appwrite/mod.ts"; @@ -81,7 +81,7 @@ import { Client, ID, Databases, Models } from "https://deno.land/x/appwrite/mod. const client: Client = new Client(); client - .setProject("") + .setProject("") .setKey(""); ``` diff --git a/src/routes/docs/quick-starts/dotnet/+page.markdoc b/src/routes/docs/quick-starts/dotnet/+page.markdoc index 31f85e73c9..cdb87a185d 100644 --- a/src/routes/docs/quick-starts/dotnet/+page.markdoc +++ b/src/routes/docs/quick-starts/dotnet/+page.markdoc @@ -73,7 +73,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open the file `Program.cs` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open the file `Program.cs` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```csharp using Appwrite; @@ -83,7 +83,7 @@ using Appwrite.Services; var client = new Client(); client - .SetProject("") + .SetProject("") .SetKey(""); ``` diff --git a/src/routes/docs/quick-starts/flutter/+page.markdoc b/src/routes/docs/quick-starts/flutter/+page.markdoc index 119b761594..ae14d54b2b 100644 --- a/src/routes/docs/quick-starts/flutter/+page.markdoc +++ b/src/routes/docs/quick-starts/flutter/+page.markdoc @@ -172,7 +172,7 @@ Find your project's ID in the **Settings** page. {% only_light %} ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open the generated `lib/main.dart` and add the following code to it, replace `` with your project ID. +Open the generated `lib/main.dart` and add the following code to it, replace `` with your project ID. This imports and initializes Appwrite. ```dart @@ -183,7 +183,7 @@ import 'package:appwrite/models.dart' as models; void main() { WidgetsFlutterBinding.ensureInitialized(); Client client = Client() - .setProject(""); + .setProject(""); Account account = Account(client); runApp(MaterialApp( diff --git a/src/routes/docs/quick-starts/kotlin/+page.markdoc b/src/routes/docs/quick-starts/kotlin/+page.markdoc index 38297e36a6..7ac47558b9 100644 --- a/src/routes/docs/quick-starts/kotlin/+page.markdoc +++ b/src/routes/docs/quick-starts/kotlin/+page.markdoc @@ -80,7 +80,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open the file `Main.kt` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open the file `Main.kt` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```kotlin import io.appwrite.Client @@ -91,7 +91,7 @@ import io.appwrite.models.Collection import kotlinx.coroutines.coroutineScope val client = Client() - .setProject("") + .setProject("") .setKey(""); ``` diff --git a/src/routes/docs/quick-starts/nextjs/+page.markdoc b/src/routes/docs/quick-starts/nextjs/+page.markdoc index 1d4eec6bf8..ad5a05e3bd 100644 --- a/src/routes/docs/quick-starts/nextjs/+page.markdoc +++ b/src/routes/docs/quick-starts/nextjs/+page.markdoc @@ -56,7 +56,7 @@ Find your project's ID in the **Settings** page. ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `app/appwrite.js` and add the following code to it, replace `` with your project ID. +Create a new file `app/appwrite.js` and add the following code to it, replace `` with your project ID. ```client-web import { Client, Account } from 'appwrite'; @@ -64,7 +64,7 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; diff --git a/src/routes/docs/quick-starts/node/+page.markdoc b/src/routes/docs/quick-starts/node/+page.markdoc index 4a905fdd8b..bf96f5e5b1 100644 --- a/src/routes/docs/quick-starts/node/+page.markdoc +++ b/src/routes/docs/quick-starts/node/+page.markdoc @@ -68,7 +68,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `app.js` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Create a new file `app.js` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```js const sdk = require("node-appwrite"); @@ -76,7 +76,7 @@ const sdk = require("node-appwrite"); const client = new sdk.Client(); client - .setProject("") + .setProject("") .setKey(""); ``` diff --git a/src/routes/docs/quick-starts/nuxt/+page.markdoc b/src/routes/docs/quick-starts/nuxt/+page.markdoc index cfb7423de2..5ba180f867 100644 --- a/src/routes/docs/quick-starts/nuxt/+page.markdoc +++ b/src/routes/docs/quick-starts/nuxt/+page.markdoc @@ -59,7 +59,7 @@ Find your project's ID in the **Settings** page. ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `utils/appwrite.js` and add the following code to it, replace `` with your project ID. +Create a new file `utils/appwrite.js` and add the following code to it, replace `` with your project ID. ```client-web import { Client, Account} from 'appwrite'; @@ -67,7 +67,7 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; diff --git a/src/routes/docs/quick-starts/php/+page.markdoc b/src/routes/docs/quick-starts/php/+page.markdoc index 27dcfdc35c..add38539ad 100644 --- a/src/routes/docs/quick-starts/php/+page.markdoc +++ b/src/routes/docs/quick-starts/php/+page.markdoc @@ -68,7 +68,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `index.php` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Create a new file `index.php` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```php setProject('') + ->setProject('') ->setKey(''); ``` diff --git a/src/routes/docs/quick-starts/python/+page.markdoc b/src/routes/docs/quick-starts/python/+page.markdoc index 379570b6dd..00b6f74fa8 100644 --- a/src/routes/docs/quick-starts/python/+page.markdoc +++ b/src/routes/docs/quick-starts/python/+page.markdoc @@ -89,7 +89,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open `my_app.py` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open `my_app.py` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```py from appwrite.client import Client @@ -97,7 +97,7 @@ from appwrite.services.databases import Databases from appwrite.id import ID client = Client() -client.set_project('') +client.set_project('') client.set_key('') ``` diff --git a/src/routes/docs/quick-starts/react-native/+page.markdoc b/src/routes/docs/quick-starts/react-native/+page.markdoc index 6e125a3d11..bf1eac2e55 100644 --- a/src/routes/docs/quick-starts/react-native/+page.markdoc +++ b/src/routes/docs/quick-starts/react-native/+page.markdoc @@ -84,7 +84,7 @@ Find your project's ID in the **Settings** page. ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open `App.js` and add the following code to it, replace `` with your project ID and `` with your application id or package name. +Open `App.js` and add the following code to it, replace `` with your project ID and `` with your application id or package name. This imports and initializes Appwrite and defines some basic authentication methods. diff --git a/src/routes/docs/quick-starts/react/+page.markdoc b/src/routes/docs/quick-starts/react/+page.markdoc index e14af50ff3..b827916ef9 100644 --- a/src/routes/docs/quick-starts/react/+page.markdoc +++ b/src/routes/docs/quick-starts/react/+page.markdoc @@ -56,7 +56,7 @@ Find your project's ID in the **Settings** page. {% only_light %} ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `src/lib/appwrite.js` and add the following code to it, replace `` with your project ID. +Create a new file `src/lib/appwrite.js` and add the following code to it, replace `` with your project ID. ```client-web import { Client, Account} from 'appwrite'; @@ -64,7 +64,7 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; diff --git a/src/routes/docs/quick-starts/refine/+page.markdoc b/src/routes/docs/quick-starts/refine/+page.markdoc index 93f6218292..13cc63ebb0 100644 --- a/src/routes/docs/quick-starts/refine/+page.markdoc +++ b/src/routes/docs/quick-starts/refine/+page.markdoc @@ -67,8 +67,7 @@ Navigate to `src/utility/appwriteClient.ts` and add your API credentials. ```ts import { Account, Appwrite, Storage } from "@refinedev/appwrite"; -const APPWRITE_URL = ''; // Replace with your Appwrite API Endpoint -const APPWRITE_PROJECT = ""; // Replace with your project ID +const APPWRITE_PROJECT = ""; // Replace with your project ID const appwriteClient = new Appwrite(); diff --git a/src/routes/docs/quick-starts/ruby/+page.markdoc b/src/routes/docs/quick-starts/ruby/+page.markdoc index d1610f0a77..c7d9905a74 100644 --- a/src/routes/docs/quick-starts/ruby/+page.markdoc +++ b/src/routes/docs/quick-starts/ruby/+page.markdoc @@ -68,7 +68,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `app.rb` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Create a new file `app.rb` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```ruby # Initialize the Appwrite client @@ -79,7 +79,7 @@ include Appwrite client = Client.new() client - .set_project('') # Your project ID + .set_project('') # Your project ID .set_key('') # Your secret API key ``` diff --git a/src/routes/docs/quick-starts/solid/+page.markdoc b/src/routes/docs/quick-starts/solid/+page.markdoc index ded13a2d3d..54f351265c 100644 --- a/src/routes/docs/quick-starts/solid/+page.markdoc +++ b/src/routes/docs/quick-starts/solid/+page.markdoc @@ -62,7 +62,7 @@ Find your project's ID in the **Settings** page. ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `src/lib/appwrite.js` and add the following code to it, replace `` with your project ID. +Create a new file `src/lib/appwrite.js` and add the following code to it, replace `` with your project ID. ```client-web import { Client, Account } from 'appwrite'; @@ -70,7 +70,7 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; diff --git a/src/routes/docs/quick-starts/sveltekit/+page.markdoc b/src/routes/docs/quick-starts/sveltekit/+page.markdoc index a6930efdf7..c79d50d0da 100644 --- a/src/routes/docs/quick-starts/sveltekit/+page.markdoc +++ b/src/routes/docs/quick-starts/sveltekit/+page.markdoc @@ -55,7 +55,7 @@ Find your project's ID in the **Settings** page. {% only_light %} ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `src/lib/appwrite.js` and add the following code to it, replace `` with your project ID. +Create a new file `src/lib/appwrite.js` and add the following code to it, replace `` with your project ID. ```client-web import { Client, Account } from 'appwrite'; @@ -63,7 +63,7 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; diff --git a/src/routes/docs/quick-starts/swift/+page.markdoc b/src/routes/docs/quick-starts/swift/+page.markdoc index a93abdb3e4..87691aaa30 100644 --- a/src/routes/docs/quick-starts/swift/+page.markdoc +++ b/src/routes/docs/quick-starts/swift/+page.markdoc @@ -77,7 +77,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open the file `main.swift` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open the file `main.swift` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```swift import Foundation @@ -85,7 +85,7 @@ import Appwrite import AppwriteModels let client = Client() - .setProject("") + .setProject("") .setKey("") ``` diff --git a/src/routes/docs/quick-starts/vue/+page.markdoc b/src/routes/docs/quick-starts/vue/+page.markdoc index c7fbdec722..b349891a83 100644 --- a/src/routes/docs/quick-starts/vue/+page.markdoc +++ b/src/routes/docs/quick-starts/vue/+page.markdoc @@ -57,7 +57,7 @@ Find your project's ID in the **Settings** page. ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `src/lib/appwrite.js` and add the following code to it, replace `` with your project ID. +Create a new file `src/lib/appwrite.js` and add the following code to it, replace `` with your project ID. ```client-web import { Client, Account} from 'appwrite'; @@ -65,7 +65,7 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; diff --git a/src/routes/docs/quick-starts/web/+page.markdoc b/src/routes/docs/quick-starts/web/+page.markdoc index a673b9abe2..d39f1b3f1a 100644 --- a/src/routes/docs/quick-starts/web/+page.markdoc +++ b/src/routes/docs/quick-starts/web/+page.markdoc @@ -52,7 +52,7 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; @@ -72,7 +72,7 @@ import { type Models } from 'appwrite'; const client: Client = new Client(); client - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account: Account = new Account(client); export const database: Databases = new Databases(client); diff --git a/src/routes/docs/references/quick-start/+page.markdoc b/src/routes/docs/references/quick-start/+page.markdoc index dea0f497d1..9f3b7ee151 100644 --- a/src/routes/docs/references/quick-start/+page.markdoc +++ b/src/routes/docs/references/quick-start/+page.markdoc @@ -96,7 +96,7 @@ import { Client } from "appwrite"; const client = new Client(); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; ``` ```client-flutter @@ -105,20 +105,20 @@ import 'package:appwrite/appwrite.dart'; Client client = Client(); client - .setProject('') // Your project ID + .setProject('') // Your project ID ; ``` ```client-apple import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID ``` ```client-android-kotlin import io.appwrite.Client val client = Client(context) - .setProject("") // Your project ID + .setProject("") // Your project ID ``` {% /multicode %} {% /tabsitem %} @@ -135,7 +135,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client(); client - .setProject('') // Your project ID + .setProject('') // Your project ID .setJWT('') // Your secret JSON Web Token ; ``` @@ -146,7 +146,7 @@ import * as sdk from "https://deno.land/x/appwrite/mod.ts"; let client = new sdk.Client(); client - .setProject('') // Your project ID + .setProject('') // Your project ID .setJWT('') // Your secret JSON Web Token ; ``` @@ -158,7 +158,7 @@ use Appwrite\Client; $client = new Client(); $client - ->setProject('') // Your project ID + ->setProject('') // Your project ID ->setJWT('') // Your secret JSON Web Token ; ``` @@ -168,7 +168,7 @@ from appwrite.client import Client client = Client() (client - .set_project('') # Your project ID + .set_project('') # Your project ID .set_jwt('') # Your secret JSON Web Token ) ``` @@ -178,7 +178,7 @@ require 'appwrite' include Appwrite client = Client.new - .set_project('') # Your project ID + .set_project('') # Your project ID .set_jwt('') # Your secret JSON Web Token ``` ```csharp @@ -186,7 +186,7 @@ using Appwrite; using Appwrite.Services; var client = new Client() - .SetProject("") // Your project ID + .SetProject("") // Your project ID .SetJWT(""); // Your secret JSON Web Token ``` ```dart @@ -196,7 +196,7 @@ void main() { // Init SDK Client client = Client(); client - .setProject('') // Your project ID + .setProject('') // Your project ID .setJWT('') // Your secret JSON Web Token ; } @@ -206,7 +206,7 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; Client client = new Client() - .setProject("") // Your project ID + .setProject("") // Your project ID .setJWT(""); // Your secret JSON Web Token ``` ```java @@ -214,14 +214,14 @@ import io.appwrite.Client; import io.appwrite.coroutines.CoroutineCallback; Client client = new Client() - .setProject("") // Your project ID + .setProject("") // Your project ID .setJWT(""); // Your secret JSON Web Token ``` ```swift import Appwrite let client = Client() - .setProject("") // Your project ID + .setProject("") // Your project ID .setJWT("") // Your secret JSON Web Token ``` {% /multicode %} @@ -248,7 +248,7 @@ The API key should have the following scope in order to perform authentication: import { Client } from "node-appwrite"; // Using the server SDK const adminClient = new Client() - .setProject('') // Your project ID + .setProject('') // Your project ID .setKey(''); // Your secret API key ``` ```php @@ -256,7 +256,7 @@ use Appwrite\Client; use Appwrite\Services\Account; $adminClient = (new Client()) - ->setProject('') // Your project ID + ->setProject('') // Your project ID ->setKey(''); // Your secret API key @@ -275,7 +275,7 @@ You should create a new client for each request and **never** share the client b {% multicode %} ```server-nodejs const sessionClient = new Client() - .setProject(''); // Your project ID + .setProject(''); // Your project ID const session = req.cookies.session; // Get the session cookie from the request if (session) { @@ -284,7 +284,7 @@ if (session) { ``` ```php $sessionClient = (new Client()) - ->setProject(''); // Your project ID + ->setProject(''); // Your project ID $session = $_COOKIE['session']; // Get the session cookie from the request if ($session) { diff --git a/src/routes/docs/tooling/command-line/non-interactive/+page.markdoc b/src/routes/docs/tooling/command-line/non-interactive/+page.markdoc index d8467e8cef..eac60f3454 100644 --- a/src/routes/docs/tooling/command-line/non-interactive/+page.markdoc +++ b/src/routes/docs/tooling/command-line/non-interactive/+page.markdoc @@ -8,7 +8,11 @@ The Appwrite CLI can be used in a non-interactive and headless manner, without s ```sh appwrite client \ --endpoint https://cloud.appwrite.io/v1 \ +<<<<<<< Updated upstream --project-id [YOUR_PROJECT_ID] \ +======= + --projectId [PROJECT_ID] \ +>>>>>>> Stashed changes --key YOUR_API_KEY ``` diff --git a/src/routes/docs/tutorials/android/step-3/+page.markdoc b/src/routes/docs/tutorials/android/step-3/+page.markdoc index df7fed3687..38d6bf1ddf 100644 --- a/src/routes/docs/tutorials/android/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/android/step-3/+page.markdoc @@ -42,7 +42,7 @@ To use Appwrite in our Android app, we'll need to find our project ID. Find your Create a new file `services/Appwrite.kt` to hold our Appwrite related code. Only one instance of the `Client` class should be created per app. -Add the following code to it, replacing `` with your project ID. +Add the following code to it, replacing `` with your project ID. ```kotlin package .services @@ -52,7 +52,7 @@ import io.appwrite.Client object Appwrite { private const val ENDPOINT = "https://cloud.appwrite.io/v1" - private const val PROJECT_ID = "" + private const val PROJECT_ID = "" private lateinit var client: Client diff --git a/src/routes/docs/tutorials/android/step-4/+page.markdoc b/src/routes/docs/tutorials/android/step-4/+page.markdoc index 4854fd836f..f4897bfd72 100644 --- a/src/routes/docs/tutorials/android/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/android/step-4/+page.markdoc @@ -62,8 +62,7 @@ Look for `// Add this line 👇` to find where the changes made here. ```kotlin object Appwrite { - private const val ENDPOINT = "https://cloud.appwrite.io/v1" - private const val PROJECT_ID = "" + private const val PROJECT_ID = "" private lateinit var client: Client diff --git a/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc index c87b52edce..67b2050298 100644 --- a/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc @@ -75,17 +75,16 @@ function parseCookies(cookies) { # Environment variables {% #environment-variables %} -`import.meta.env.APPWRITE_KEY`, `import.meta.env.PUBLIC_APPWRITE_ENDPOINT` and `import.meta.env.PUBLIC_APPWRITE_PROJECT` are environment variables that are exported in your project's [.env file](https://kit.Astro.dev/docs/modules#$env-dynamic-public). +`import.meta.env.APPWRITE_KEY` and `import.meta.env.PUBLIC_APPWRITE_PROJECT` are environment variables that are exported in your project's [.env file](https://kit.Astro.dev/docs/modules#$env-dynamic-public). For example, your `.env` might look something similar to this. ```env APPWRITE_KEY= -PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 PUBLIC_APPWRITE_PROJECT= ``` -The `PUBLIC_APPWRITE_ENDPOINT` is the endpoint of your Appwrite project, and the `PUBLIC_APPWRITE_PROJECT` is the ID of the project you want to use. +The `PUBLIC_APPWRITE_PROJECT` is the ID of the project you want to use. You can get the values for these variables from the Appwrite console. {% only_dark %} diff --git a/src/routes/docs/tutorials/astro-ssr-auth/step-4/+page.markdoc b/src/routes/docs/tutorials/astro-ssr-auth/step-4/+page.markdoc index 0fb8ec6832..2a846258db 100644 --- a/src/routes/docs/tutorials/astro-ssr-auth/step-4/+page.markdoc +++ b/src/routes/docs/tutorials/astro-ssr-auth/step-4/+page.markdoc @@ -39,7 +39,6 @@ declare namespace App { } interface ImportMetaEnv { - readonly PUBLIC_APPWRITE_ENDPOINT: string; readonly PUBLIC_APPWRITE_PROJECT: string; readonly APPWRITE_KEY: string; } diff --git a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc index d266077b79..0c18351034 100644 --- a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc @@ -56,17 +56,16 @@ Doing so could create security vulnerabilities. # Environment variables {% #environment-variables %} -`NEXT_APPWRITE_KEY`, `NEXT_PUBLIC_APPWRITE_ENDPOINT` and `NEXT_PUBLIC_APPWRITE_PROJECT` are environment variables that are exported in your project's [.env file](https://kit.svelte.dev/docs/modules#$env-dynamic-public). +`NEXT_APPWRITE_KEY` and `NEXT_PUBLIC_APPWRITE_PROJECT` are environment variables that are exported in your project's [.env file](https://kit.svelte.dev/docs/modules#$env-dynamic-public). For example, your `.env` might look something similar to this. ```env NEXT_APPWRITE_KEY= -NEXT_PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 NEXT_PUBLIC_APPWRITE_PROJECT= ``` -The `NEXT_PUBLIC_APPWRITE_ENDPOINT` is the endpoint of your appwrite instance , and the `NEXT_PUBLIC_APPWRITE_PROJECT` is the ID of the project you want to use. +The `NEXT_PUBLIC_APPWRITE_PROJECT` is the ID of the project you want to use. You can get the values for these variables from the Appwrite console. {% only_dark %} ![Create project screen](/images/docs/quick-starts/dark/create-project.png) diff --git a/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc index 63aaae0566..8d69e7d1b2 100644 --- a/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc @@ -61,7 +61,6 @@ export default defineNuxtConfig({ runtimeConfig: { appwriteKey: process.env.APPWRITE_KEY, public: { - appwriteEndpoint: process.env.PUBLIC_APPWRITE_ENDPOINT, appwriteProjectId: process.env.PUBLIC_APPWRITE_PROJECT, }, }, @@ -70,7 +69,7 @@ export default defineNuxtConfig({ Now you can use `.env` files to set the environment variables for your project. Retrieve the values for these variables from the Appwrite console. -The `PUBLIC_APPWRITE_ENDPOINT` is the endpoint of your Appwrite project, and the `PUBLIC_APPWRITE_PROJECT` is the ID of the project you want to use. +The `PUBLIC_APPWRITE_PROJECT` is the ID of the project you want to use. You can get the values for these variables from the Appwrite console. {% only_dark %} @@ -101,6 +100,5 @@ For example, your `.env` might look something similar to this. ```env APPWRITE_KEY= -PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 PUBLIC_APPWRITE_PROJECT= ``` diff --git a/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc index 25b95b7b14..f8b5d21cd9 100644 --- a/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit-csr-auth/step-3/+page.markdoc @@ -14,7 +14,6 @@ You can do this by instantiating the services you need in a file like `src/lib/a ```js // src/lib/appwrite.js import { - PUBLIC_APPWRITE_ENDPOINT, PUBLIC_APPWRITE_PROJECT, } from "$env/static/public"; import { Databases, Account, Client } from "appwrite"; @@ -33,12 +32,11 @@ export const appwrite = { }; ``` -`PUBLIC_APPWRITE_ENDPOINT` and `PUBLIC_APPWRITE_PROJECT` are environment variables that are exported in your project's [.env file](https://kit.svelte.dev/docs/modules#$env-dynamic-public). +`PUBLIC_APPWRITE_PROJECT` are environment variables that are exported in your project's [.env file](https://kit.svelte.dev/docs/modules#$env-dynamic-public). For example, your `.env` might look something similar to this. ```env -PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 PUBLIC_APPWRITE_PROJECT=642sdddf85b440dc7e5bf ``` diff --git a/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc index e5c39605e8..d6482e1758 100644 --- a/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc @@ -21,7 +21,7 @@ Doing so could create security vulnerabilities. // src/lib/server/appwrite.js import { Client, Account } from 'node-appwrite'; import { APPWRITE_KEY } from '$env/static/private'; -import { PUBLIC_APPWRITE_ENDPOINT, PUBLIC_APPWRITE_PROJECT } from '$env/static/public'; +import { PUBLIC_APPWRITE_PROJECT } from '$env/static/public'; export const SESSION_COOKIE = 'my-custom-session'; @@ -61,17 +61,16 @@ export function createSessionClient(event) { # Environment variables {% #environment-variables %} -`APPWRITE_KEY`, `PUBLIC_APPWRITE_ENDPOINT` and `PUBLIC_APPWRITE_PROJECT_ID` are environment variables that are exported in your project's [.env file](https://kit.svelte.dev/docs/modules#$env-dynamic-public). +`APPWRITE_KEY` and `PUBLIC_APPWRITE_PROJECT_ID` are environment variables that are exported in your project's [.env file](https://kit.svelte.dev/docs/modules#$env-dynamic-public). For example, your `.env` might look something similar to this. ```text APPWRITE_KEY= -PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 PUBLIC_APPWRITE_PROJECT= ``` -The `PUBLIC_APPWRITE_ENDPOINT` is the endpoint of your Appwrite project, and the `PUBLIC_APPWRITE_PROJECT` is the ID of the project you want to use. +The `PUBLIC_APPWRITE_PROJECT` is the ID of the project you want to use. You can get the values for these variables from the Appwrite console. {% only_dark %} ![Create project screen](/images/docs/quick-starts/dark/create-project.png) diff --git a/src/routes/integrations/stripe-payments/+page.markdoc b/src/routes/integrations/stripe-payments/+page.markdoc index 5d43c4d0ef..e108fb196f 100644 --- a/src/routes/integrations/stripe-payments/+page.markdoc +++ b/src/routes/integrations/stripe-payments/+page.markdoc @@ -61,7 +61,7 @@ Head over to the Appwrite console, navigate to the **Functions** page, click th ![Function template](/images/integrations/stripe-payments/template.png) -During the setup process, click the checkbox to generate an Appwrite API key on completion and add the **Stripe secret key** and **webhook secret** in the **Variables** step. If you are self-hosting Appwrite, click on the **optional variables** dropdown and update the Appwrite endpoint to your instance’s publicly accessible endpoint. +During the setup process, click the checkbox to generate an Appwrite API key on completion and add the **Stripe secret key** and **webhook secret** in the **Variables** step. If you are self-hosting Appwrite, click on the **optional variables** dropdown and add your instance’s publicly accessible endpoint. ![Env variables](/images/integrations/stripe-payments/variables.png) From 01d666a36605dca09679d69e1eef8a38cd39ac94 Mon Sep 17 00:00:00 2001 From: choir27 Date: Tue, 27 Aug 2024 15:36:46 -0400 Subject: [PATCH 8/9] update YOUR_API_KEY placeholder variables --- .../+page.markdoc | 2 +- .../auth/server-side-rendering/+page.markdoc | 4 ++-- .../products/messaging/sendgrid/+page.markdoc | 20 ++++++++-------- .../docs/quick-starts/dart/+page.markdoc | 6 ++--- .../docs/quick-starts/deno/+page.markdoc | 4 ++-- .../docs/quick-starts/dotnet/+page.markdoc | 4 ++-- src/routes/docs/quick-starts/go/+page.markdoc | 2 +- .../docs/quick-starts/kotlin/+page.markdoc | 4 ++-- .../docs/quick-starts/node/+page.markdoc | 4 ++-- .../docs/quick-starts/php/+page.markdoc | 4 ++-- .../docs/quick-starts/python/+page.markdoc | 4 ++-- .../docs/quick-starts/ruby/+page.markdoc | 4 ++-- .../docs/quick-starts/swift/+page.markdoc | 4 ++-- .../docs/references/quick-start/+page.markdoc | 24 +++++++++---------- .../astro-ssr-auth/step-3/+page.markdoc | 2 +- .../nextjs-ssr-auth/step-3/+page.markdoc | 2 +- .../nuxt-ssr-auth/step-3/+page.markdoc | 2 +- .../sveltekit-ssr-auth/step-3/+page.markdoc | 2 +- 18 files changed, 49 insertions(+), 49 deletions(-) diff --git a/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc b/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc index 382b45785c..a6dc08f4dd 100644 --- a/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc +++ b/src/routes/blog/post/introducing-support-for-server-side-rendering/+page.markdoc @@ -76,7 +76,7 @@ import { Client } from "node-appwrite" const adminClient = new Client() .setProject('') - .setKey('') + .setKey('') ``` ### Session Client diff --git a/src/routes/docs/products/auth/server-side-rendering/+page.markdoc b/src/routes/docs/products/auth/server-side-rendering/+page.markdoc index 1567a27b88..f4381e035c 100644 --- a/src/routes/docs/products/auth/server-side-rendering/+page.markdoc +++ b/src/routes/docs/products/auth/server-side-rendering/+page.markdoc @@ -59,7 +59,7 @@ import { Client } from "node-appwrite"; // Using the server SDK const adminClient = new Client() .setProject('') // Your project ID - .setKey(''); // Your secret API key + .setKey(''); // Your secret API key ``` ```php use Appwrite\Client; @@ -67,7 +67,7 @@ use Appwrite\Services\Account; $adminClient = (new Client()) ->setProject('') // Your project ID - ->setKey(''); // Your secret API key + ->setKey(''); // Your secret API key ``` diff --git a/src/routes/docs/products/messaging/sendgrid/+page.markdoc b/src/routes/docs/products/messaging/sendgrid/+page.markdoc index 3fa201a35f..1a98779cd9 100644 --- a/src/routes/docs/products/messaging/sendgrid/+page.markdoc +++ b/src/routes/docs/products/messaging/sendgrid/+page.markdoc @@ -287,7 +287,7 @@ const messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; const provider = await messaging.updateSendgridProvider( @@ -311,7 +311,7 @@ let messaging = new sdk.Messaging(client); client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; const provider = await messaging.updateSendgridProvider( @@ -335,7 +335,7 @@ $client = new Client(); $client ->setProject('') // Your project ID - ->setKey('') // Your secret API key + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -359,7 +359,7 @@ client = Client() (client .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -382,7 +382,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -406,7 +406,7 @@ using Appwrite.Models; var client = new Client() .SetProject("") // Your project ID - .SetKey(""); // Your secret API key + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -431,7 +431,7 @@ void main() { // Init SDK client .setProject('') // Your project ID - .setKey('') // Your secret API key + .setKey('') // Your secret API key ; Future result = messaging.updateSendgridProvider( @@ -460,7 +460,7 @@ import io.appwrite.services.Messaging; Client client = new Client() .setProject("") // Your project ID - .setKey(""); // Your secret API key + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -490,7 +490,7 @@ import io.appwrite.services.Messaging; Client client = new Client() .setProject("") // Your project ID - .setKey(""); // Your secret API key + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -518,7 +518,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setKey("") // Your secret API key + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/quick-starts/dart/+page.markdoc b/src/routes/docs/quick-starts/dart/+page.markdoc index f6e451826c..dd6779a202 100644 --- a/src/routes/docs/quick-starts/dart/+page.markdoc +++ b/src/routes/docs/quick-starts/dart/+page.markdoc @@ -69,7 +69,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Keys** button to find the API key that was created earlier. -Open `bin/my_app.dart` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open `bin/my_app.dart` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```dart import 'package:dart_appwrite/dart_appwrite.dart'; @@ -79,7 +79,7 @@ var client = Client(); Future main() async { client .setProject("") - .setKey(""); + .setKey(""); } ``` @@ -200,7 +200,7 @@ Finally, revisit the `main()` function and call the functions created in previou Future main() async { client .setProject("") - .setKey(""); + .setKey(""); await prepareDatabase(); await Future.delayed(const Duration(seconds: 1)); diff --git a/src/routes/docs/quick-starts/deno/+page.markdoc b/src/routes/docs/quick-starts/deno/+page.markdoc index 102da476c3..6875bb56e3 100644 --- a/src/routes/docs/quick-starts/deno/+page.markdoc +++ b/src/routes/docs/quick-starts/deno/+page.markdoc @@ -73,7 +73,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open `mod.ts` in your IDE and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open `mod.ts` in your IDE and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```ts import { Client, ID, Databases, Models } from "https://deno.land/x/appwrite/mod.ts"; @@ -82,7 +82,7 @@ const client: Client = new Client(); client .setProject("") - .setKey(""); + .setKey(""); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/dotnet/+page.markdoc b/src/routes/docs/quick-starts/dotnet/+page.markdoc index cdb87a185d..3f6f393127 100644 --- a/src/routes/docs/quick-starts/dotnet/+page.markdoc +++ b/src/routes/docs/quick-starts/dotnet/+page.markdoc @@ -73,7 +73,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open the file `Program.cs` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open the file `Program.cs` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```csharp using Appwrite; @@ -84,7 +84,7 @@ var client = new Client(); client .SetProject("") - .SetKey(""); + .SetKey(""); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/go/+page.markdoc b/src/routes/docs/quick-starts/go/+page.markdoc index 8f0df4d3cb..fd634e0f8a 100644 --- a/src/routes/docs/quick-starts/go/+page.markdoc +++ b/src/routes/docs/quick-starts/go/+page.markdoc @@ -71,7 +71,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file called `app.go`, initialize a function, and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. Import the Appwrite dependencies for appwrite, client, databases, and models. +Create a new file called `app.go`, initialize a function, and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. Import the Appwrite dependencies for appwrite, client, databases, and models. ```go package main diff --git a/src/routes/docs/quick-starts/kotlin/+page.markdoc b/src/routes/docs/quick-starts/kotlin/+page.markdoc index 7ac47558b9..8b40eb1e2e 100644 --- a/src/routes/docs/quick-starts/kotlin/+page.markdoc +++ b/src/routes/docs/quick-starts/kotlin/+page.markdoc @@ -80,7 +80,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open the file `Main.kt` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open the file `Main.kt` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```kotlin import io.appwrite.Client @@ -92,7 +92,7 @@ import kotlinx.coroutines.coroutineScope val client = Client() .setProject("") - .setKey(""); + .setKey(""); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/node/+page.markdoc b/src/routes/docs/quick-starts/node/+page.markdoc index bf96f5e5b1..59d9a19ad9 100644 --- a/src/routes/docs/quick-starts/node/+page.markdoc +++ b/src/routes/docs/quick-starts/node/+page.markdoc @@ -68,7 +68,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `app.js` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Create a new file `app.js` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```js const sdk = require("node-appwrite"); @@ -77,7 +77,7 @@ const client = new sdk.Client(); client .setProject("") - .setKey(""); + .setKey(""); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/php/+page.markdoc b/src/routes/docs/quick-starts/php/+page.markdoc index add38539ad..660dad77c8 100644 --- a/src/routes/docs/quick-starts/php/+page.markdoc +++ b/src/routes/docs/quick-starts/php/+page.markdoc @@ -68,7 +68,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `index.php` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Create a new file `index.php` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```php setProject('') - ->setKey(''); + ->setKey(''); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/python/+page.markdoc b/src/routes/docs/quick-starts/python/+page.markdoc index 00b6f74fa8..5e1060d027 100644 --- a/src/routes/docs/quick-starts/python/+page.markdoc +++ b/src/routes/docs/quick-starts/python/+page.markdoc @@ -89,7 +89,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open `my_app.py` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open `my_app.py` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```py from appwrite.client import Client @@ -98,7 +98,7 @@ from appwrite.id import ID client = Client() client.set_project('') -client.set_key('') +client.set_key('') ``` {% /section %} diff --git a/src/routes/docs/quick-starts/ruby/+page.markdoc b/src/routes/docs/quick-starts/ruby/+page.markdoc index c7d9905a74..f9bcbe9ee9 100644 --- a/src/routes/docs/quick-starts/ruby/+page.markdoc +++ b/src/routes/docs/quick-starts/ruby/+page.markdoc @@ -68,7 +68,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Create a new file `app.rb` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Create a new file `app.rb` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```ruby # Initialize the Appwrite client @@ -80,7 +80,7 @@ client = Client.new() client .set_project('') # Your project ID - .set_key('') # Your secret API key + .set_key('') # Your secret API key ``` {% /section %} diff --git a/src/routes/docs/quick-starts/swift/+page.markdoc b/src/routes/docs/quick-starts/swift/+page.markdoc index 87691aaa30..bc0d9a83a0 100644 --- a/src/routes/docs/quick-starts/swift/+page.markdoc +++ b/src/routes/docs/quick-starts/swift/+page.markdoc @@ -77,7 +77,7 @@ Find your project ID in the **Settings** page. Also, click on the **View API Key ![Project settings screen](/images/docs/quick-starts/project-id.png) {% /only_light %} -Open the file `main.swift` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. +Open the file `main.swift` and initialize the Appwrite Client. Replace `` with your project ID and `` with your API key. ```swift import Foundation @@ -86,7 +86,7 @@ import AppwriteModels let client = Client() .setProject("") - .setKey("") + .setKey("") ``` {% /section %} diff --git a/src/routes/docs/references/quick-start/+page.markdoc b/src/routes/docs/references/quick-start/+page.markdoc index 9f3b7ee151..aa4a1fa3f9 100644 --- a/src/routes/docs/references/quick-start/+page.markdoc +++ b/src/routes/docs/references/quick-start/+page.markdoc @@ -136,7 +136,7 @@ const client = new sdk.Client(); client .setProject('') // Your project ID - .setJWT('') // Your secret JSON Web Token + .setJWT('') // Your secret JSON Web Token ; ``` ```deno @@ -147,7 +147,7 @@ let client = new sdk.Client(); client .setProject('') // Your project ID - .setJWT('') // Your secret JSON Web Token + .setJWT('') // Your secret JSON Web Token ; ``` ```php @@ -159,7 +159,7 @@ $client = new Client(); $client ->setProject('') // Your project ID - ->setJWT('') // Your secret JSON Web Token + ->setJWT('') // Your secret JSON Web Token ; ``` ```python @@ -169,7 +169,7 @@ client = Client() (client .set_project('') # Your project ID - .set_jwt('') # Your secret JSON Web Token + .set_jwt('') # Your secret JSON Web Token ) ``` ```ruby @@ -179,7 +179,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_jwt('') # Your secret JSON Web Token + .set_jwt('') # Your secret JSON Web Token ``` ```csharp using Appwrite; @@ -187,7 +187,7 @@ using Appwrite.Services; var client = new Client() .SetProject("") // Your project ID - .SetJWT(""); // Your secret JSON Web Token + .SetJWT(""); // Your secret JSON Web Token ``` ```dart import 'package:dart_appwrite/dart_appwrite.dart'; @@ -197,7 +197,7 @@ void main() { // Init SDK client .setProject('') // Your project ID - .setJWT('') // Your secret JSON Web Token + .setJWT('') // Your secret JSON Web Token ; } ``` @@ -207,7 +207,7 @@ import io.appwrite.coroutines.CoroutineCallback; Client client = new Client() .setProject("") // Your project ID - .setJWT(""); // Your secret JSON Web Token + .setJWT(""); // Your secret JSON Web Token ``` ```java import io.appwrite.Client; @@ -215,14 +215,14 @@ import io.appwrite.coroutines.CoroutineCallback; Client client = new Client() .setProject("") // Your project ID - .setJWT(""); // Your secret JSON Web Token + .setJWT(""); // Your secret JSON Web Token ``` ```swift import Appwrite let client = Client() .setProject("") // Your project ID - .setJWT("") // Your secret JSON Web Token + .setJWT("") // Your secret JSON Web Token ``` {% /multicode %} {% /tabsitem %} @@ -249,7 +249,7 @@ import { Client } from "node-appwrite"; // Using the server SDK const adminClient = new Client() .setProject('') // Your project ID - .setKey(''); // Your secret API key + .setKey(''); // Your secret API key ``` ```php use Appwrite\Client; @@ -257,7 +257,7 @@ use Appwrite\Services\Account; $adminClient = (new Client()) ->setProject('') // Your project ID - ->setKey(''); // Your secret API key + ->setKey(''); // Your secret API key ``` diff --git a/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc index 67b2050298..1f5ed969f2 100644 --- a/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/astro-ssr-auth/step-3/+page.markdoc @@ -80,7 +80,7 @@ function parseCookies(cookies) { For example, your `.env` might look something similar to this. ```env -APPWRITE_KEY= +APPWRITE_KEY= PUBLIC_APPWRITE_PROJECT= ``` diff --git a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc index 0c18351034..43ebb82a64 100644 --- a/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nextjs-ssr-auth/step-3/+page.markdoc @@ -61,7 +61,7 @@ Doing so could create security vulnerabilities. For example, your `.env` might look something similar to this. ```env -NEXT_APPWRITE_KEY= +NEXT_APPWRITE_KEY= NEXT_PUBLIC_APPWRITE_PROJECT= ``` diff --git a/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc index 8d69e7d1b2..fabfe785fe 100644 --- a/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc @@ -99,6 +99,6 @@ For this tutorial you'll need an API key with the following scopes: For example, your `.env` might look something similar to this. ```env -APPWRITE_KEY= +APPWRITE_KEY= PUBLIC_APPWRITE_PROJECT= ``` diff --git a/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc b/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc index d6482e1758..872ad14e18 100644 --- a/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc +++ b/src/routes/docs/tutorials/sveltekit-ssr-auth/step-3/+page.markdoc @@ -66,7 +66,7 @@ export function createSessionClient(event) { For example, your `.env` might look something similar to this. ```text -APPWRITE_KEY= +APPWRITE_KEY= PUBLIC_APPWRITE_PROJECT= ``` From fa51c36c585dfb52c54649b33f805a9d67c8c56a Mon Sep 17 00:00:00 2001 From: choir27 Date: Tue, 27 Aug 2024 15:47:01 -0400 Subject: [PATCH 9/9] update JWT_KEY --- .../docs/products/auth/jwt/+page.markdoc | 38 +++++++++---------- .../products/functions/execute/+page.markdoc | 2 +- .../send-email-messages/+page.markdoc | 2 +- .../messaging/send-sms-messages/+page.markdoc | 2 +- .../products/messaging/topics/+page.markdoc | 20 +++++----- .../docs/references/quick-start/+page.markdoc | 2 +- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/routes/docs/products/auth/jwt/+page.markdoc b/src/routes/docs/products/auth/jwt/+page.markdoc index 78807cdfa6..ec74b07efe 100644 --- a/src/routes/docs/products/auth/jwt/+page.markdoc +++ b/src/routes/docs/products/auth/jwt/+page.markdoc @@ -82,7 +82,7 @@ const { Client } = require('node-appwrite'); const client = new Client() .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token ``` ```php @@ -90,7 +90,7 @@ use Appwrite\Client; $client = (new Client()) ->setProject('') // Your project ID - ->setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + ->setJWT(''); // Your secret JSON Web Token ``` ```python @@ -100,7 +100,7 @@ client = Client() (client .set_project('') # Your project ID - .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token + .set_jwt('') # Your secret JSON Web Token ) ``` @@ -111,7 +111,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token + .set_jwt('') # Your secret JSON Web Token ``` ```deno @@ -119,7 +119,7 @@ import { Client } from "https://deno.land/x/appwrite/mod.ts"; let client = new Client() .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token ``` ```dart @@ -127,7 +127,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token ``` ```kotlin @@ -135,7 +135,7 @@ import io.appwrite.Client val client = Client() .setProject("") // Your project ID - .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token + .setJWT("") // Your secret JSON Web Token ``` ```swift @@ -143,7 +143,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token + .setJWT("") // Your secret JSON Web Token ``` ```csharp @@ -151,7 +151,7 @@ using Appwrite; var client = new Client() .SetProject("") // Your project ID - .SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token + .SetJWT(""); // Your secret JSON Web Token ``` {% /multicode %} @@ -174,7 +174,7 @@ Here's an example collection of birthdays with the following documents. Notice h | bc7fc866ad1e| Laura | 1999-09-22| "read(\"user:user-b\")"| | cc2fc886ad1e| Bob | 1982-05-11| "read(\"user:user-c\")"| -If you're authenticated on the client-side as `user-a` and created a JWT `'eyJJ9.eyJ...886ca'`, you can pass this JWT to a Server SDK on the backend server to fetch only the birthdays `user-a` can read. +If you're authenticated on the client-side as `user-a` and created a JWT `''`, you can pass this JWT to a Server SDK on the backend server to fetch only the birthdays `user-a` can read. {% multicode %} ```js @@ -182,7 +182,7 @@ const { Client } = require('node-appwrite'); const client = new Client() .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token const databases = new sdk.Databases(client); @@ -197,7 +197,7 @@ use Appwrite\Client; $client = (new Client()) .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Tokens + .setJWT(''); // Your secret JSON Web Tokens $databases = new Databases($client); @@ -214,7 +214,7 @@ client = Client() (client .set_project('') # Your project ID - .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token + .set_jwt('') # Your secret JSON Web Token ) databases = Databases(client) @@ -232,7 +232,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_jwt('eyJJ9.eyJ...886ca') # Your secret JSON Web Token + .set_jwt('') # Your secret JSON Web Token databases = Databases.new(client) @@ -247,7 +247,7 @@ import { Client } from "https://deno.land/x/appwrite/mod.ts"; let client = new Client() .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token let databases = new sdk.Databases(client); @@ -262,7 +262,7 @@ import 'package:dart_appwrite/dart_appwrite.dart'; final client = Client() .setProject('') // Your project ID - .setJWT('eyJJ9.eyJ...886ca'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token final databases = Databases(client); @@ -277,7 +277,7 @@ import io.appwrite.Client val client = Client() .setProject("") // Your project ID - .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token + .setJWT("") // Your secret JSON Web Token val databases = Databases(client) @@ -292,7 +292,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token + .setJWT("") // Your secret JSON Web Token let databases = Databases(client) @@ -309,7 +309,7 @@ using Appwrite.Models; var client = new Client() .SetProject("") // Your project ID - .SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token + .SetJWT(""); // Your secret JSON Web Token var databases = new Databases(client); diff --git a/src/routes/docs/products/functions/execute/+page.markdoc b/src/routes/docs/products/functions/execute/+page.markdoc index c9eb9081d7..980f2204ce 100644 --- a/src/routes/docs/products/functions/execute/+page.markdoc +++ b/src/routes/docs/products/functions/execute/+page.markdoc @@ -27,7 +27,7 @@ the request information like request URL, request headers, and request body will ```bash curl -X POST https://64d4d22db370ae41a32e.appwrite.global \ -H "X-Custom-Header: 123" \ --H "x-appwrite-user-jwt: " \ +-H "x-appwrite-user-jwt: " \ -H "Content-Type: application/json" \ -d '{"data":"this is json data"}' ``` diff --git a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc index 88a1a211ae..1e1fd5f937 100644 --- a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc @@ -64,7 +64,7 @@ import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() .setProject('') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token const users = new sdk.Users(client); diff --git a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc index 53c54792b1..b59f72f3b2 100644 --- a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc @@ -73,7 +73,7 @@ import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() .setProject('') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token const users = new sdk.Users(client); diff --git a/src/routes/docs/products/messaging/topics/+page.markdoc b/src/routes/docs/products/messaging/topics/+page.markdoc index 14a1337f83..3154f861ac 100644 --- a/src/routes/docs/products/messaging/topics/+page.markdoc +++ b/src/routes/docs/products/messaging/topics/+page.markdoc @@ -310,7 +310,7 @@ const sdk = require('node-appwrite'); const client = new sdk.Client() .setProject('') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); @@ -325,7 +325,7 @@ import * as sdk from "https://deno.land/x/appwrite/mod.ts"; const client = new sdk.Client() .setProject('') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); @@ -345,7 +345,7 @@ $client = new Client(); $client ->setProject('') // Your project ID - ->setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + ->setJWT(''); // Your secret JSON Web Token $messaging = new Messaging($client); @@ -361,7 +361,7 @@ from appwrite.services.messaging import Messaging client = Client() client.set_project('') # Your project ID -client.set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token +client.set_jwt('') # Your secret JSON Web Token messaging = Messaging(client) @@ -378,7 +378,7 @@ include Appwrite client = Client.new .set_project('') # Your project ID - .set_jwt('eyJhbVCJ9.eyJ...') # Your secret JSON Web Token + .set_jwt('') # Your secret JSON Web Token messaging = Messaging.new(client) @@ -395,7 +395,7 @@ using Appwrite.Models; Client client = new Client() .SetProject("") // Your project ID - .SetJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token + .SetJWT(""); // Your secret JSON Web Token Messaging messaging = new Messaging(client); @@ -411,7 +411,7 @@ import 'package:dart_appwrite/models.dart'; Client client = Client() .setProject('') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setJWT(''); // Your secret JSON Web Token Messaging messaging = Messaging(client); @@ -428,7 +428,7 @@ import io.appwrite.services.Messaging; val client = Client() .setProject("") // Your project ID - .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token + .setJWT("") // Your secret JSON Web Token val messaging = new Messaging(client) @@ -445,7 +445,7 @@ import io.appwrite.services.Messaging; Client client = new Client() .setProject("") // Your project ID - .setJWT("eyJhbVCJ9.eyJ..."); // Your secret JSON Web Token + .setJWT(""); // Your secret JSON Web Token Messaging messaging = new Messaging(client); @@ -468,7 +468,7 @@ import Appwrite let client = Client() .setProject("") // Your project ID - .setJWT("eyJhbVCJ9.eyJ...") // Your secret JSON Web Token + .setJWT("") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/src/routes/docs/references/quick-start/+page.markdoc b/src/routes/docs/references/quick-start/+page.markdoc index aa4a1fa3f9..e0b947a07d 100644 --- a/src/routes/docs/references/quick-start/+page.markdoc +++ b/src/routes/docs/references/quick-start/+page.markdoc @@ -169,7 +169,7 @@ client = Client() (client .set_project('') # Your project ID - .set_jwt('') # Your secret JSON Web Token + .set_jwt('') # Your secret JSON Web Token ) ``` ```ruby