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 bd1cb5829e..fc0cda93b4 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('') // Your project ID const account = new Account(client); 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 9e0e0efd07..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= @@ -135,7 +134,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..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,8 +46,7 @@ import { Client, Account } from "appwrite"; const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .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 9e5442c620..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 @@ -37,9 +37,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -66,9 +65,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -174,8 +172,7 @@ import { Client, Account } from "appwrite"; const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .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 2f4a0364f4..78251edbbc 100644 --- a/src/routes/blog/post/best-pagination-technique/+page.markdoc +++ b/src/routes/blog/post/best-pagination-technique/+page.markdoc @@ -90,7 +90,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..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,11 +101,11 @@ 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(); -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..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,11 +110,10 @@ 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() - .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 fc38b68711..cd579780b2 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..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,15 +80,13 @@ 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; const client = new Client() - .setEndpoint(endpoint) .setProject(projectId) .setKey(apiKey); @@ -176,13 +173,11 @@ 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() - .setEndpoint(endpoint) // Your API Endpoint .setProject(projectId); // Your project ID; export const account = new Account(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-appwrite-react-native-sdk/+page.markdoc b/src/routes/blog/post/introducing-appwrite-react-native-sdk/+page.markdoc index 0c34e15239..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,8 +70,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/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..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 @@ -75,9 +75,8 @@ 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('') + .setProject('') + .setKey('') ``` ### Session Client @@ -86,8 +85,7 @@ 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('') + .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..edfecd3d95 100644 --- a/src/routes/blog/post/messaging-explained/+page.markdoc +++ b/src/routes/blog/post/messaging-explained/+page.markdoc @@ -58,9 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .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/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..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,9 +62,8 @@ 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 + .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/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/set-up-google-auth-appwrite-react/+page.markdoc b/src/routes/blog/post/set-up-google-auth-appwrite-react/+page.markdoc index 619b448091..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 @@ -100,13 +100,12 @@ 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) + .setProject('project-id') // Your Appwrite project IDexport const account = new Account(client) 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/simplify-messaging-twilio/+page.markdoc b/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc index c5f2cc7f69..49d42b429e 100644 --- a/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc +++ b/src/routes/blog/post/simplify-messaging-twilio/+page.markdoc @@ -79,9 +79,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const promise = await messaging.updateTwilioProvider( 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 5d2cf97c7b..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 @@ -187,14 +187,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( @@ -256,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/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); diff --git a/src/routes/docs/advanced/platform/message-templates/+page.markdoc b/src/routes/docs/advanced/platform/message-templates/+page.markdoc index f53c7ecf2f..870c014b6b 100644 --- a/src/routes/docs/advanced/platform/message-templates/+page.markdoc +++ b/src/routes/docs/advanced/platform/message-templates/+page.markdoc @@ -130,9 +130,8 @@ 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 + .setProject('') // Your project ID + .setLocale('fr') // Your locale ; const promise = account.createVerification('https://example.com'); @@ -152,9 +151,8 @@ 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 + .setProject('') // Your project ID + .setLocale('fr') // Your locale ; Future result = account.createVerification('https://example.com'); @@ -172,9 +170,8 @@ 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 + .setProject("") // Your project ID + .setLocale('fr') // Your locale val account = Account(client) @@ -185,9 +182,8 @@ 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 + .setProject("") // Your project ID + .setLocale('fr') // Your locale let account = Account(client) 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..2126de306b 100644 --- a/src/routes/docs/apis/graphql/+page.markdoc +++ b/src/routes/docs/apis/graphql/+page.markdoc @@ -233,8 +233,7 @@ 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 + .setProject(''); // Your project ID const graphql = new Graphql(client); @@ -270,8 +269,7 @@ mutation.then(response => { import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your Appwrite Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID final graphql = Graphql(client); @@ -307,8 +305,7 @@ mutation.then((response) { import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID let graphql = Graphql(client) @@ -348,8 +345,7 @@ 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 + .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 c7f9d5358d..115c090ffe 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 3c907af817..f964cccb7c 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 17bc1ca9b2..3b213f14fd 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 1c880c1e4d..7f01f48d5f 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 e0ad73eaf2..8b1980b3ee 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 ee67414741..0ba30578a8 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 24932c7694..1b07aa80b5 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 ac90913732..ce2fee6a68 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 fc914d72f5..badf705bc3 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..a7aa94cda8 100644 --- a/src/routes/docs/products/auth/accounts/+page.markdoc +++ b/src/routes/docs/products/auth/accounts/+page.markdoc @@ -31,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -48,8 +47,7 @@ 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 + .setProject(''); // Your project ID final account = Account(client); @@ -64,8 +62,7 @@ final user = await account.updatePrefs( 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) @@ -81,8 +78,7 @@ 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 + .setProject("") // Your project ID val account = Account(client) @@ -115,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -132,8 +127,7 @@ 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 + .setProject(''); // Your project ID final account = Account(client); @@ -144,8 +138,7 @@ 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 + .setProject("") // Your project ID val account = Account(client) @@ -155,8 +148,7 @@ val prefs = account.getPrefs() 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) diff --git a/src/routes/docs/products/auth/anonymous/+page.markdoc b/src/routes/docs/products/auth/anonymous/+page.markdoc index 4caa0ba1b4..cc250e2d38 100644 --- a/src/routes/docs/products/auth/anonymous/+page.markdoc +++ b/src/routes/docs/products/auth/anonymous/+page.markdoc @@ -17,8 +17,7 @@ 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 + .setProject(''); // Your project ID const account = new Account(client); @@ -34,8 +33,7 @@ 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 + .setProject(''); // Your project ID final account = Account(client); @@ -45,8 +43,7 @@ final user = await account.createAnonymousSession(); 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) @@ -57,8 +54,7 @@ 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 + .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..c7f5c7fac4 100644 --- a/src/routes/docs/products/auth/custom-token/+page.markdoc +++ b/src/routes/docs/products/auth/custom-token/+page.markdoc @@ -17,9 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - .setKey(''); // Your project API key + .setProject(''); // Your project ID + .setKey(''); // Your project API key const users = new Users(client); @@ -32,9 +31,8 @@ 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 + ->setProject('') // Your project ID + ->setKey(''); // Your project API key $users = new Users($client); @@ -49,9 +47,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your project API key ) users = Users(client) @@ -66,9 +63,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your project API key users = Users.new(client) @@ -80,9 +76,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your project API key const users = new Users(client); @@ -94,9 +89,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your project API key final users = Users(client); @@ -109,9 +103,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your project API key val users = Users(client) @@ -123,9 +116,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your project API key let users = Users(client) @@ -137,9 +129,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your project API key var users = new Users(client); @@ -166,7 +157,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 +171,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 +184,6 @@ final session = await account.createSession( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); let account = Account(client); @@ -211,7 +199,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..ee46edc655 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,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); diff --git a/src/routes/docs/products/auth/jwt/+page.markdoc b/src/routes/docs/products/auth/jwt/+page.markdoc index 57a9a79042..ec74b07efe 100644 --- a/src/routes/docs/products/auth/jwt/+page.markdoc +++ b/src/routes/docs/products/auth/jwt/+page.markdoc @@ -27,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -38,8 +37,7 @@ 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 + .setProject(''); // Your project ID final account = Account(client); @@ -49,8 +47,7 @@ final jwt = await account.createJWT(); 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.Client import io.appwrite.services.Account val client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID val account = Account(client) @@ -85,18 +81,16 @@ 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token ``` ```php 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 + ->setProject('') // Your project ID + ->setJWT(''); // Your secret JSON Web Token ``` ```python @@ -105,9 +99,8 @@ 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 + .set_project('') # Your project ID + .set_jwt('') # Your secret JSON Web Token ) ``` @@ -117,54 +110,48 @@ 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 + .set_project('') # Your project ID + .set_jwt('') # Your secret JSON Web Token ``` ```deno 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token ``` ```dart 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token ``` ```kotlin 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 + .setProject("") // Your project ID + .setJWT("") // Your secret JSON Web Token ``` ```swift 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 + .setProject("") // Your project ID + .setJWT("") // Your secret JSON Web Token ``` ```csharp 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 + .SetProject("") // Your project ID + .SetJWT(""); // Your secret JSON Web Token ``` {% /multicode %} @@ -187,16 +174,15 @@ 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 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token const databases = new sdk.Databases(client); @@ -210,9 +196,8 @@ 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Tokens $databases = new Databases($client); @@ -228,9 +213,8 @@ 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 + .set_project('') # Your project ID + .set_jwt('') # Your secret JSON Web Token ) databases = Databases(client) @@ -247,9 +231,8 @@ 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 + .set_project('') # Your project ID + .set_jwt('') # Your secret JSON Web Token databases = Databases.new(client) @@ -263,9 +246,8 @@ 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token let databases = new sdk.Databases(client); @@ -279,9 +261,8 @@ 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token final databases = Databases(client); @@ -295,9 +276,8 @@ 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 + .setProject("") // Your project ID + .setJWT("") // Your secret JSON Web Token val databases = Databases(client) @@ -311,9 +291,8 @@ 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 + .setProject("") // Your project ID + .setJWT("") // Your secret JSON Web Token let databases = Databases(client) @@ -329,9 +308,8 @@ 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 + .SetProject("") // Your project ID + .SetJWT(""); // Your secret JSON Web Token var databases = new Databases(client); @@ -372,9 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .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); @@ -389,9 +366,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('98fd4...a2ad2'); // Your secret API key $databases = new Databases($client); @@ -407,9 +383,8 @@ 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 + .set_project('') // Your project ID + .set_key('98fd4...a2ad2') // Your secret API key ) databases = Databases(client) @@ -426,9 +401,8 @@ 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 + .set_project('') # Your project ID + .set_key('98fd4...a2ad2') # Your secret API key databases = Databases.new(client) @@ -442,9 +416,8 @@ 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 + .setProject('') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key let databases = new sdk.Databases(client); @@ -458,9 +431,8 @@ 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 + .setProject('') // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key final databases = Databases(client); @@ -474,9 +446,8 @@ 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 + .setProject("") // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key val databases = Databases(client) @@ -490,9 +461,8 @@ 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 + .setProject("") // Your project ID + .setKey('98fd4...a2ad2'); // Your secret API key let databases = Databases(client) @@ -508,9 +478,8 @@ 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 + .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 07fd955a12..8e7c96d104 100644 --- a/src/routes/docs/products/auth/labels/+page.markdoc +++ b/src/routes/docs/products/auth/labels/+page.markdoc @@ -11,9 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .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); @@ -37,9 +36,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key $users = new Users($client); @@ -57,9 +55,8 @@ 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 + .set_project('') # Your project ID + .set_key('98fd4...a2ad2') # Your secret API key ) users = Users(client) @@ -75,9 +72,8 @@ 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 + .set_project('') # Your project ID + .set_key('98fd4...a2ad2') # Your secret API key users = Users.new(client) @@ -91,9 +87,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key let users = new sdk.Users(client); @@ -112,9 +107,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key final users = Users(client); @@ -129,9 +123,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val users = Users(client) @@ -145,9 +138,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) @@ -161,9 +153,8 @@ 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 + .SetProject("") // 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 22b7a035f7..2090d00a45 100644 --- a/src/routes/docs/products/auth/magic-url/+page.markdoc +++ b/src/routes/docs/products/auth/magic-url/+page.markdoc @@ -15,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -50,8 +49,7 @@ 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 + .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..d46d6b9ad5 100644 --- a/src/routes/docs/products/auth/mfa/+page.markdoc +++ b/src/routes/docs/products/auth/mfa/+page.markdoc @@ -32,8 +32,7 @@ const account = new Account(client); const avatars = new Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setProject('') // Your project ID ; ``` @@ -46,8 +45,7 @@ void main() { // Init SDK Avatars avatars = Avatars(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setProject('') // Your project ID ; } ``` @@ -56,8 +54,7 @@ void main() { // Init SDK 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) let avatars = Avatars(client) @@ -68,8 +65,7 @@ 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 + .setProject("") // Your project ID val account = Account(client) val avatars = Avatars(client) diff --git a/src/routes/docs/products/auth/oauth2/+page.markdoc b/src/routes/docs/products/auth/oauth2/+page.markdoc index e4c2aeb460..e737fac06e 100644 --- a/src/routes/docs/products/auth/oauth2/+page.markdoc +++ b/src/routes/docs/products/auth/oauth2/+page.markdoc @@ -36,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const account = new Account(client); @@ -57,8 +56,7 @@ 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 + .setProject(''); // Your project ID final account = Account(client); @@ -105,8 +103,7 @@ import Appwrite import AppwriteEnums let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -139,8 +136,7 @@ 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 + .setProject("") // Your project ID val account = Account(client) @@ -183,8 +179,7 @@ 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 + .setProject(''); // Your project ID final account = Account(client); @@ -201,8 +196,7 @@ print(session.providerAccessToken); import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -220,8 +214,7 @@ 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 + .setProject("") // 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(''); // Your project ID Account account = Account(client); @@ -285,8 +277,7 @@ final result = await account.updateSession( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let account = Account(client) @@ -299,8 +290,7 @@ 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 + .setProject("") // 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 4fa0e4d8c9..ee0170ec1b 100644 --- a/src/routes/docs/products/auth/phone-sms/+page.markdoc +++ b/src/routes/docs/products/auth/phone-sms/+page.markdoc @@ -20,7 +20,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); @@ -37,7 +36,6 @@ const userId = token.userId; import 'package:appwrite/appwrite.dart'; final client = Client() - .setEndpoint('https://cloud.appwrite.io/v1') .setProject(''); final account = Account(client); @@ -53,7 +51,6 @@ final userId = token.userId; import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); let account = Account(client); @@ -72,7 +69,6 @@ import io.appwrite.services.Account import io.appwrite.ID val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); val account = Account(client); @@ -108,7 +104,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); @@ -123,7 +118,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); @@ -137,7 +131,6 @@ final session = await account.createSession( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject(""); let account = Account(client); @@ -153,7 +146,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..5ada5d6a3b 100644 --- a/src/routes/docs/products/auth/quick-start/+page.markdoc +++ b/src/routes/docs/products/auth/quick-start/+page.markdoc @@ -14,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .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,8 +496,7 @@ class Appwrite { public init() { self.client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") - .setProject("") + .setProject("") self.account = Account(client) } @@ -572,13 +566,12 @@ 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 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..f4381e035c 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,8 +286,7 @@ 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 + .setProject('') // Your project ID ; const promise = account.createAnonymousSession(); @@ -311,8 +306,7 @@ use Appwrite\Services\Account; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('5df5acd0d48c2') // Your project ID + ->setProject('') // Your project ID ; $account = new Account($client); @@ -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 15b3bf4de4..4e5db40532 100644 --- a/src/routes/docs/products/auth/teams/+page.markdoc +++ b/src/routes/docs/products/auth/teams/+page.markdoc @@ -24,8 +24,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const promise = teams.create( @@ -48,8 +47,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; Future result = teams.create( teamId: 'teachers', @@ -69,8 +67,7 @@ void main() { // Init SDK import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) @@ -85,8 +82,7 @@ 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 + .setProject("") // Your project ID val teams = Teams(client) @@ -112,8 +108,7 @@ const client = new Client(); const teams = new Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const promise = teams.createMembership( @@ -136,8 +131,7 @@ void main() { // Init SDK Teams teams = Teams(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; Future result = teams.createMembership( teamId: 'teachers', @@ -157,8 +151,7 @@ void main() { // Init SDK import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let teams = Teams(client) @@ -173,8 +166,7 @@ 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 + .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 6020db4226..0186ccfc3b 100644 --- a/src/routes/docs/products/databases/collections/+page.markdoc +++ b/src/routes/docs/products/databases/collections/+page.markdoc @@ -31,9 +31,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const promise = databases.createCollection('', '[COLLECTION_ID]', '[NAME]'); @@ -53,9 +52,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; @@ -76,9 +74,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $databases = new Databases($client); @@ -92,9 +89,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) databases = Databases(client) @@ -107,9 +103,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key databases = Databases.new(client) @@ -123,9 +118,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var databases = new Databases(client); @@ -142,9 +136,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = databases.createCollection( @@ -166,9 +159,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val databases = Databases(client) @@ -184,9 +176,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Databases databases = new Databases(client); @@ -208,9 +199,8 @@ 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 + .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 ea8fbe0913..7ddc1d4e12 100644 --- a/src/routes/docs/products/databases/databases/+page.markdoc +++ b/src/routes/docs/products/databases/databases/+page.markdoc @@ -26,9 +26,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const promise = databases.create('', '[NAME]'); @@ -48,9 +47,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; @@ -71,9 +69,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $databases = new Databases($client); @@ -87,9 +84,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) databases = Databases(client) @@ -102,9 +98,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key databases = Databases.new(client) @@ -118,9 +113,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var databases = new Databases(client); @@ -136,9 +130,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = databases.create( @@ -159,9 +152,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val databases = Databases(client) @@ -176,9 +168,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Databases databases = new Databases(client); @@ -199,9 +190,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) 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..566352c9bd 100644 --- a/src/routes/docs/products/databases/relationships/+page.markdoc +++ b/src/routes/docs/products/databases/relationships/+page.markdoc @@ -87,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .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); @@ -133,8 +131,7 @@ 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 + .set_project('')) # Your project ID databases = Databases(client) @@ -157,8 +154,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 databases = Databases.new(client) @@ -179,8 +175,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 +196,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 +218,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 +239,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 +263,6 @@ using Appwrite; using Appwrite.Services; var client = new Client() - .SetEndpoint("https://cloud.appwrite.io/v1") .SetProject(""); var databases = new Databases(client); @@ -303,8 +294,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 +317,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 +340,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 +365,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 +399,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 +422,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 +445,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 +470,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 +503,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 +526,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 +549,6 @@ await databases.updateDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Database(client: client) @@ -593,7 +573,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 +618,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 +633,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 +648,6 @@ await databases.deleteDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Database(client: client) @@ -688,7 +664,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,8 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID + .setProject(''); // Your project ID const databases = new Databases(client); @@ -743,7 +717,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 +744,6 @@ await databases.createDocument( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") .setProject("") let databases = Database(client: client) @@ -799,7 +771,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 651d0ac299..c6f08644a6 100644 --- a/src/routes/docs/products/functions/develop/+page.markdoc +++ b/src/routes/docs/products/functions/develop/+page.markdoc @@ -268,7 +268,6 @@ Future main(final context) async { // .setProject(Platform.environment['APPWRITE_FUNCTION_PROJECT_ID']) // .setKey(context.req.headers['x-appwrite-key']); - // You can log messages to the console context.log('Hello, Logs!'); diff --git a/src/routes/docs/products/functions/execute/+page.markdoc b/src/routes/docs/products/functions/execute/+page.markdoc index f5dc159036..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"}' ``` @@ -54,8 +54,7 @@ const client = new Client(); const functions = new Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setProject('') // Your project ID ; const promise = functions.createExecution( @@ -81,8 +80,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setProject('') // Your project ID ; Future result = functions.createExecution( functionId: '', @@ -105,8 +103,7 @@ void main() { // Init SDK import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .setProject("") // Your project ID let functions = Functions(client) @@ -124,8 +121,7 @@ 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 + .setProject("") // Your project ID val functions = Functions(client) @@ -144,8 +140,7 @@ 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 + .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -181,8 +176,7 @@ 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 + .setProject('') // Your project ID ; const promise = functions.createExecution( @@ -210,8 +204,7 @@ 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 + .setProject('') // Your project ID ; const promise = functions.createExecution( @@ -239,8 +232,7 @@ use Appwrite\Services\Functions; $client = new Client(); $client - ->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('') // Your project ID + ->setProject('') // Your project ID ; $functions = new Functions($client); @@ -261,8 +253,7 @@ from appwrite.services.functions import Functions client = Client() (client - .set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint - .set_project('') # Your project ID + .set_project('') # Your project ID ) functions = Functions(client) @@ -282,8 +273,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 functions = Functions.new(client) @@ -304,8 +294,7 @@ using Appwrite.Services; using Appwrite.Models; var client = new Client() - .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .SetProject(""); // Your project ID + .SetProject(""); // Your project ID var functions = new Functions(client); @@ -325,8 +314,7 @@ void main() { // Init SDK Functions functions = Functions(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setProject('') // Your project ID ; Future result = functions.createExecution( @@ -352,8 +340,7 @@ 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 + .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -381,8 +368,7 @@ 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 + .setProject(""); // Your project ID Functions functions = new Functions(client); @@ -408,8 +394,7 @@ functions.createExecution( import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .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..a616643afd 100644 --- a/src/routes/docs/products/messaging/apns/+page.markdoc +++ b/src/routes/docs/products/messaging/apns/+page.markdoc @@ -110,9 +110,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateAPNSProvider( @@ -134,9 +133,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateAPNSProvider( @@ -158,9 +156,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -182,9 +179,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -205,9 +201,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -229,9 +224,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -254,9 +248,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateAPNSProvider( @@ -283,9 +276,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -313,9 +305,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -341,9 +332,8 @@ 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 + .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 e1b0da3cb1..5137701cd9 100644 --- a/src/routes/docs/products/messaging/fcm/+page.markdoc +++ b/src/routes/docs/products/messaging/fcm/+page.markdoc @@ -107,9 +107,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateFCMProvider( @@ -128,9 +127,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateFCMProvider( @@ -149,9 +147,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -170,9 +167,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -190,9 +186,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -211,9 +206,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -233,9 +227,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateFCMProvider( @@ -259,9 +252,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -286,9 +278,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -311,9 +302,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/mailgun/+page.markdoc b/src/routes/docs/products/messaging/mailgun/+page.markdoc index 567f81356b..052f1591cd 100644 --- a/src/routes/docs/products/messaging/mailgun/+page.markdoc +++ b/src/routes/docs/products/messaging/mailgun/+page.markdoc @@ -94,9 +94,8 @@ 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 + .setKey('') // Your secret API key ; const message = await messaging.createEmail('', '', ''); @@ -110,9 +109,8 @@ 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 + .setKey('') // Your secret API key ; const message - await messaging.createEmail('', '', ''); @@ -126,9 +124,8 @@ 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 + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -141,9 +138,8 @@ 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 + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -156,9 +152,8 @@ 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 + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -175,9 +170,8 @@ 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 + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -196,9 +190,8 @@ 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 + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -221,9 +214,8 @@ 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 + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -239,9 +231,8 @@ 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 + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -263,9 +254,8 @@ 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 + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -303,9 +293,8 @@ 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 + .setKey('') // Your secret API key ; // update provider @@ -377,9 +366,8 @@ 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 + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -403,9 +391,8 @@ 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 + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -429,9 +416,8 @@ 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 + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -457,9 +443,8 @@ 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 + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -486,9 +471,8 @@ 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 + .setKey('') // Your secret API key ; Future result = messaging.updateSendgridProvider( @@ -518,9 +502,8 @@ 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 + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -544,9 +527,8 @@ 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 + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -575,9 +557,8 @@ 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 + .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 10f89c6af6..bc5068a319 100644 --- a/src/routes/docs/products/messaging/messages/+page.markdoc +++ b/src/routes/docs/products/messaging/messages/+page.markdoc @@ -232,9 +232,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createPush( @@ -264,9 +263,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createPush( @@ -296,9 +294,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -328,9 +325,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -359,9 +355,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -391,9 +386,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -424,9 +418,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createPush( @@ -461,9 +454,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -499,9 +491,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -535,9 +526,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -577,9 +567,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -605,9 +594,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -633,9 +621,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -661,9 +648,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -688,9 +674,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -716,9 +701,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -745,9 +729,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -778,9 +761,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -812,9 +794,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -844,9 +825,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -882,9 +862,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -906,9 +885,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -930,9 +908,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -954,9 +931,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -977,9 +953,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -1001,9 +976,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -1021,14 +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 - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .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( @@ -1055,9 +1028,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -1085,9 +1057,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -1113,9 +1084,8 @@ 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 + .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 4e2bd141bd..777023403a 100644 --- a/src/routes/docs/products/messaging/msg91/+page.markdoc +++ b/src/routes/docs/products/messaging/msg91/+page.markdoc @@ -75,9 +75,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -99,9 +98,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -123,9 +121,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -147,9 +144,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -170,9 +166,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -194,9 +189,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -219,9 +213,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -248,9 +241,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -278,9 +270,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -306,9 +297,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -351,9 +341,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.updateMsg91Provider( @@ -374,9 +363,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.updateMsg91Provider( @@ -397,9 +385,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -420,9 +407,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -442,9 +428,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -465,9 +450,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -489,9 +473,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateMsg91Provider( @@ -517,9 +500,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -546,9 +528,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -573,9 +554,8 @@ 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 + .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 e9b432157f..1e1fd5f937 100644 --- a/src/routes/docs/products/messaging/send-email-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-email-messages/+page.markdoc @@ -45,9 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .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); @@ -64,9 +63,8 @@ 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token const users = new sdk.Users(client); @@ -87,9 +85,8 @@ 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 + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $users = new Users($client); @@ -107,9 +104,8 @@ 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 +client.set_project('') # Your project ID +client.set_key('') # Your secret API key users = Users(client) @@ -129,9 +125,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key users = Users.new(client) @@ -153,9 +148,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Users users = new Users(client); @@ -174,9 +168,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key Users users = Users(client); @@ -197,9 +190,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val users = Users(client) @@ -220,9 +212,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Users users = new Users(client); @@ -248,9 +239,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) @@ -287,9 +277,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const topic = await messaging.createTopic( @@ -306,9 +295,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const topic = await messaging.createTopic( @@ -325,9 +313,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -344,9 +331,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -362,9 +348,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -381,9 +366,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -401,9 +385,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createTopic( @@ -425,9 +408,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -450,9 +432,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -473,9 +454,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -499,9 +479,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -527,9 +506,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -555,9 +533,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -583,9 +560,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -610,9 +586,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -638,9 +613,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -667,9 +641,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -700,9 +673,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -734,9 +706,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -766,9 +737,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -801,9 +771,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -829,9 +798,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message - await messaging.createEmail( @@ -857,9 +825,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -885,9 +852,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -912,9 +878,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -940,9 +905,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -964,14 +928,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 - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .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( @@ -1002,9 +965,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -1036,9 +998,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -1068,9 +1029,8 @@ 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 + .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 de1ca35a4c..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,9 +473,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createPush( @@ -505,9 +504,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createPush( @@ -537,9 +535,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -569,9 +566,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -600,9 +596,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -632,9 +627,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -665,9 +659,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createPush( @@ -701,9 +694,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -731,9 +723,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -767,9 +758,8 @@ 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 + .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 64e6e69a40..b59f72f3b2 100644 --- a/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc +++ b/src/routes/docs/products/messaging/send-sms-messages/+page.markdoc @@ -54,9 +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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .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); @@ -73,9 +72,8 @@ 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token const users = new sdk.Users(client); @@ -96,9 +94,8 @@ 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 + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $users = new Users($client); @@ -116,9 +113,8 @@ 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 +client.set_project('') # Your project ID +client.set_key('') # Your secret API key users = Users(client) @@ -138,9 +134,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key users = Users.new(client) @@ -162,9 +157,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Users users = new Users(client); @@ -183,9 +177,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key Users users = Users(client); @@ -206,9 +199,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val users = Users(client) @@ -229,9 +221,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Users users = new Users(client); @@ -257,9 +248,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) @@ -292,9 +282,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -307,9 +296,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -325,9 +313,8 @@ 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 + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $messaging = new Messaging($client); @@ -341,9 +328,8 @@ 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 +client.set_project('') # Your project ID +client.set_key('') # Your secret API key messaging = Messaging(client) @@ -358,9 +344,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -375,9 +360,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -391,9 +375,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key Messaging messaging = Messaging(client); @@ -408,9 +391,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val messaging = new Messaging(client) @@ -425,9 +407,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -448,9 +429,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -471,9 +451,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -491,9 +470,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -516,9 +494,8 @@ 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 + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $messaging = new Messaging($client); @@ -537,9 +514,8 @@ 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 +client.set_project('') # Your project ID +client.set_key('') # Your secret API key messaging = Messaging(client) @@ -559,9 +535,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -581,9 +556,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -602,9 +576,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key Messaging messaging = Messaging(client); @@ -624,9 +597,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -646,9 +618,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -674,9 +645,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -700,9 +670,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -720,9 +689,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key const messaging = new sdk.Messaging(client); @@ -745,9 +713,8 @@ 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 + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key $messaging = new Messaging($client); @@ -766,9 +733,8 @@ 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 +client.set_project('') # Your project ID +client.set_key('') # Your secret API key messaging = Messaging(client) @@ -788,9 +754,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -810,9 +775,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -831,9 +795,8 @@ 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 + .setProject('') // Your project ID + .setKey(''); // Your secret API key Messaging messaging = Messaging(client); @@ -853,9 +816,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -875,9 +837,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -903,9 +864,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/sendgrid/+page.markdoc b/src/routes/docs/products/messaging/sendgrid/+page.markdoc index 465ada5e0d..1a98779cd9 100644 --- a/src/routes/docs/products/messaging/sendgrid/+page.markdoc +++ b/src/routes/docs/products/messaging/sendgrid/+page.markdoc @@ -86,9 +86,8 @@ 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 + .setKey('') // Your secret API key ; const message = await messaging.createEmail('', '', ''); @@ -102,9 +101,8 @@ 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 + .setKey('') // Your secret API key ; @@ -119,9 +117,8 @@ 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 + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -134,9 +131,8 @@ 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 + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -149,9 +145,8 @@ 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 + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -168,9 +163,8 @@ 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 + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -189,9 +183,8 @@ 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 + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -214,9 +207,8 @@ 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 + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -232,9 +224,8 @@ 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 + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -256,9 +247,8 @@ 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 + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -296,9 +286,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateSendgridProvider( @@ -321,9 +310,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateSendgridProvider( @@ -346,9 +334,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -371,9 +358,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -395,9 +381,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -420,9 +405,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -446,9 +430,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateSendgridProvider( @@ -476,9 +459,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -507,9 +489,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -536,9 +517,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/src/routes/docs/products/messaging/smtp/+page.markdoc b/src/routes/docs/products/messaging/smtp/+page.markdoc index b45cfb126c..6b642fefbb 100644 --- a/src/routes/docs/products/messaging/smtp/+page.markdoc +++ b/src/routes/docs/products/messaging/smtp/+page.markdoc @@ -96,9 +96,8 @@ 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 + .setKey('') // Your secret API key ; cconst message - await messaging.createEmail('', '', ''); @@ -112,9 +111,8 @@ 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 + .setKey('') // Your secret API key ; const messaging = await messaging.createEmail('', '', ''); @@ -128,9 +126,8 @@ 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 + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -143,9 +140,8 @@ 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 + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -158,9 +154,8 @@ 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 + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -177,9 +172,8 @@ 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 + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -198,9 +192,8 @@ 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 + .setKey('') // Your secret API key ; Future result = messaging.createEmail( @@ -223,9 +216,8 @@ 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 + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -241,9 +233,8 @@ 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 + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -265,9 +256,8 @@ 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 + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -305,9 +295,8 @@ 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 + .setKey('') // Your secret API key ; // update provider @@ -379,9 +368,8 @@ 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 + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -405,9 +393,8 @@ 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 + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -431,9 +418,8 @@ 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 + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -459,9 +445,8 @@ 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 + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -488,9 +473,8 @@ 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 + .setKey('') // Your secret API key ; Future result = messaging.updateSendgridProvider( @@ -520,9 +504,8 @@ 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 + .setKey("") // Your secret API key val messaging = Messaging(client) @@ -546,9 +529,8 @@ 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 + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -577,9 +559,8 @@ 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 + .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 f8dc07bec9..008575e273 100644 --- a/src/routes/docs/products/messaging/telesign/+page.markdoc +++ b/src/routes/docs/products/messaging/telesign/+page.markdoc @@ -74,9 +74,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createSms( @@ -98,9 +97,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createSms( @@ -122,9 +120,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -146,9 +143,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -169,9 +165,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -193,9 +188,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -218,9 +212,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -247,9 +240,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -277,9 +269,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -305,9 +296,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -349,9 +339,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTelesignProvider( @@ -372,9 +361,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTelesignProvider( @@ -395,9 +383,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -418,9 +405,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -440,9 +426,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -463,9 +448,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -487,9 +471,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateTelesignProvider( @@ -515,9 +498,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -544,9 +526,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -571,9 +552,8 @@ 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 + .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 455b173dad..6850f796a5 100644 --- a/src/routes/docs/products/messaging/textmagic/+page.markdoc +++ b/src/routes/docs/products/messaging/textmagic/+page.markdoc @@ -74,9 +74,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createSms( @@ -98,9 +97,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const messaging = await messaging.createSms( @@ -122,9 +120,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -146,9 +143,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -169,9 +165,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -193,9 +188,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -218,9 +212,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -247,9 +240,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -277,9 +269,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -305,9 +296,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -349,9 +339,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTextmagicProvider( @@ -372,9 +361,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTextmagicProvider( @@ -395,9 +383,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -418,9 +405,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -440,9 +426,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -463,9 +448,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -487,9 +471,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateTextmagicProvider( @@ -515,9 +498,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -544,9 +526,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -571,9 +552,8 @@ 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 + .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 85a0e4942b..3154f861ac 100644 --- a/src/routes/docs/products/messaging/topics/+page.markdoc +++ b/src/routes/docs/products/messaging/topics/+page.markdoc @@ -53,9 +53,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const topic = messaging.createTopic( @@ -74,9 +73,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const topic = messaging.createTopic( @@ -94,9 +92,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -115,9 +112,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -134,9 +130,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -154,9 +149,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -175,9 +169,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createTopic( @@ -200,9 +193,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -226,9 +218,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -250,9 +241,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -319,9 +309,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() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID - .setJWT('eyJhbVCJ9.eyJ...'); // Your secret JSON Web Token + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); @@ -335,9 +324,8 @@ 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token const messaging = new sdk.Messaging(client); @@ -356,9 +344,8 @@ 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 + ->setProject('') // Your project ID + ->setJWT(''); // Your secret JSON Web Token $messaging = new Messaging($client); @@ -373,9 +360,8 @@ 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 +client.set_project('') # Your project ID +client.set_jwt('') # Your secret JSON Web Token messaging = Messaging(client) @@ -391,9 +377,8 @@ 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 + .set_project('') # Your project ID + .set_jwt('') # Your secret JSON Web Token messaging = Messaging.new(client) @@ -409,9 +394,8 @@ 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 + .SetProject("") // Your project ID + .SetJWT(""); // Your secret JSON Web Token Messaging messaging = new Messaging(client); @@ -426,9 +410,8 @@ 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 + .setProject('') // Your project ID + .setJWT(''); // Your secret JSON Web Token Messaging messaging = Messaging(client); @@ -444,9 +427,8 @@ 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 + .setProject("") // Your project ID + .setJWT("") // Your secret JSON Web Token val messaging = new Messaging(client) @@ -462,9 +444,8 @@ 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 + .setProject("") // Your project ID + .setJWT(""); // Your secret JSON Web Token Messaging messaging = new Messaging(client); @@ -486,9 +467,8 @@ 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 + .setProject("") // Your project ID + .setJWT("") // 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 c11be5db3b..fb3cd54083 100644 --- a/src/routes/docs/products/messaging/twilio/+page.markdoc +++ b/src/routes/docs/products/messaging/twilio/+page.markdoc @@ -76,9 +76,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -100,9 +99,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -124,9 +122,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -148,9 +145,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -171,9 +167,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -195,9 +190,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -220,9 +214,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -249,9 +242,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -279,9 +271,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -307,9 +298,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -349,9 +339,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTwilioProvider( @@ -372,9 +361,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateTwilioProvider( @@ -395,9 +383,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -418,9 +405,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -440,9 +426,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -463,9 +448,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -487,9 +471,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateTwilioProvider( @@ -515,9 +498,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -544,9 +526,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -571,9 +552,8 @@ 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 + .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 517f664c18..f825840c1b 100644 --- a/src/routes/docs/products/messaging/vonage/+page.markdoc +++ b/src/routes/docs/products/messaging/vonage/+page.markdoc @@ -76,9 +76,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -100,9 +99,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const message = await messaging.createSms( @@ -124,9 +122,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -148,9 +145,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -171,9 +167,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -195,9 +190,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -220,9 +214,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.createSms( @@ -249,9 +242,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -279,9 +271,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -307,9 +298,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) @@ -351,9 +341,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateVonageProvider( @@ -374,9 +363,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const provider = await messaging.updateVonageProvider( @@ -397,9 +385,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $messaging = new Messaging($client); @@ -420,9 +407,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) messaging = Messaging(client) @@ -442,9 +428,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key messaging = Messaging.new(client) @@ -465,9 +450,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var messaging = new Messaging(client); @@ -489,9 +473,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = messaging.updateVonageProvider( @@ -517,9 +500,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -546,9 +528,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Messaging messaging = new Messaging(client); @@ -573,9 +554,8 @@ 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 + .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 d61a619227..074360ce38 100644 --- a/src/routes/docs/products/storage/buckets/+page.markdoc +++ b/src/routes/docs/products/storage/buckets/+page.markdoc @@ -36,9 +36,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; const promise = storage.createBucket('[BUCKET_ID]', '[NAME]'); @@ -58,9 +57,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; @@ -81,9 +79,8 @@ 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 + ->setProject('') // Your project ID + ->setKey('') // Your secret API key ; $storage = new Storage($client); @@ -97,9 +94,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ) storage = Storage(client) @@ -112,9 +108,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key storage = Storage.new(client) @@ -128,9 +123,8 @@ 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 + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key var storage = new Storage(client); @@ -146,9 +140,8 @@ 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 + .setProject('') // Your project ID + .setKey('') // Your secret API key ; Future result = storage.createBucket( @@ -169,9 +162,8 @@ 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 + .setProject("") // Your project ID + .setKey("") // Your secret API key val storage = Storage(client) @@ -186,9 +178,8 @@ 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 + .setProject("") // Your project ID + .setKey(""); // Your secret API key Storage storage = new Storage(client); @@ -209,9 +200,8 @@ 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 + .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 0e35880e56..59f5b9d04f 100644 --- a/src/routes/docs/products/storage/images/+page.markdoc +++ b/src/routes/docs/products/storage/images/+page.markdoc @@ -47,8 +47,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFilePreview( @@ -77,8 +76,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFilePreview( @@ -123,8 +121,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFilePreview( bucketId: "photos", // bucket ID @@ -159,8 +156,7 @@ 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 + .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 f81577b26c..fe4c5951d8 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,8 +131,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); @@ -151,8 +146,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFileDownload( @@ -186,8 +180,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileDownload( bucketId: "[BUCKET_ID]", @@ -211,8 +204,7 @@ 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 + .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 39ebb29b74..1a8c75c719 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,8 +281,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const promise = storage.getFile('[BUCKET_ID]', '[FILE_ID]'); @@ -305,8 +300,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFile( @@ -340,8 +334,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFile( bucketId: "[BUCKET_ID]", @@ -365,8 +358,7 @@ 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 + .setProject("") // Your project ID val storage = Storage(client) @@ -392,8 +384,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFileDownload('[BUCKET_ID]', '[FILE_ID]'); @@ -408,8 +399,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFileDownload( @@ -443,8 +433,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileDownload( bucketId: "[BUCKET_ID]", @@ -468,8 +457,7 @@ 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 + .setProject("") // Your project ID val storage = Storage(client) @@ -495,8 +483,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFilePreview('[BUCKET_ID]', '[FILE_ID]'); @@ -511,8 +498,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFilePreview( @@ -546,8 +532,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFilePreview( bucketId: "[BUCKET_ID]", @@ -571,8 +556,7 @@ 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 + .setProject("") // Your project ID val storage = Storage(client) @@ -599,8 +583,7 @@ const client = new Client(); const storage = new Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; const result = storage.getFileView('[BUCKET_ID]', '[FILE_ID]'); @@ -615,8 +598,7 @@ void main() { // Init SDK Storage storage = Storage(client); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2') // Your project ID + .setProject('') // Your project ID ; // downloading file Future result = storage.getFileView( @@ -650,8 +632,7 @@ import Appwrite func main() async throws { let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID let storage = Storage(client) let byteBuffer = try await storage.getFileView( bucketId: "[BUCKET_ID]", @@ -675,8 +656,7 @@ 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 + .setProject("") // 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..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,8 +102,7 @@ object Appwrite { fun init(context: Context) { client = Client(context) - .setEndpoint("https://cloud.appwrite.io/v1") - .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 8f3b554542..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,8 +74,7 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .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 c1ff972790..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,8 +110,7 @@ class Appwrite { public init() { self.client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") - .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 a2f5ad0245..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'; @@ -78,9 +78,8 @@ var client = Client(); Future main() async { client - .setEndpoint("https://cloud.appwrite.io/v1") - .setProject("") - .setKey(""); + .setProject("") + .setKey(""); } ``` @@ -200,9 +199,8 @@ 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(""); + .setProject("") + .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 e91ba8afd0..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"; @@ -81,9 +81,8 @@ 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(""); + .setProject("") + .setKey(""); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/dotnet/+page.markdoc b/src/routes/docs/quick-starts/dotnet/+page.markdoc index a88ca6554b..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; @@ -83,9 +83,8 @@ using Appwrite.Services; var client = new Client(); client - .SetEndpoint("https://cloud.appwrite.io/v1") - .SetProject("") - .SetKey(""); + .SetProject("") + .SetKey(""); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/flutter/+page.markdoc b/src/routes/docs/quick-starts/flutter/+page.markdoc index 9782ac1287..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,8 +183,7 @@ import 'package:appwrite/models.dart' as models; void main() { WidgetsFlutterBinding.ensureInitialized(); Client client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") - .setProject(""); + .setProject(""); Account account = Account(client); runApp(MaterialApp( 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 fd99749066..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 @@ -91,9 +91,8 @@ import io.appwrite.models.Collection import kotlinx.coroutines.coroutineScope val client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") - .setProject("") - .setKey(""); + .setProject("") + .setKey(""); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/nextjs/+page.markdoc b/src/routes/docs/quick-starts/nextjs/+page.markdoc index 4b86d8feeb..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,8 +64,7 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .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 c434eb2670..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"); @@ -76,9 +76,8 @@ const sdk = require("node-appwrite"); const client = new sdk.Client(); client - .setEndpoint("https://cloud.appwrite.io/v1") - .setProject("") - .setKey(""); + .setProject("") + .setKey(""); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/nuxt/+page.markdoc b/src/routes/docs/quick-starts/nuxt/+page.markdoc index 1d43b20e6b..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,8 +67,7 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .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 df8f42d9b1..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 setEndpoint('https://cloud.appwrite.io/v1') - ->setProject('') - ->setKey(''); + ->setProject('') + ->setKey(''); ``` {% /section %} diff --git a/src/routes/docs/quick-starts/python/+page.markdoc b/src/routes/docs/quick-starts/python/+page.markdoc index 71979941cd..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 @@ -97,9 +97,8 @@ 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('') +client.set_project('') +client.set_key('') ``` {% /section %} diff --git a/src/routes/docs/quick-starts/react-native/+page.markdoc b/src/routes/docs/quick-starts/react-native/+page.markdoc index fa9b7cce70..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. @@ -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..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,8 +64,7 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .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 d280cfa626..13cc63ebb0 100644 --- a/src/routes/docs/quick-starts/refine/+page.markdoc +++ b/src/routes/docs/quick-starts/refine/+page.markdoc @@ -67,12 +67,11 @@ 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(); -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/ruby/+page.markdoc b/src/routes/docs/quick-starts/ruby/+page.markdoc index 1f6fa4269c..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 @@ -79,9 +79,8 @@ 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 + .set_project('') # Your project ID + .set_key('') # Your secret API key ``` {% /section %} diff --git a/src/routes/docs/quick-starts/solid/+page.markdoc b/src/routes/docs/quick-starts/solid/+page.markdoc index bc3f9d2fd4..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,8 +70,7 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .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 cbf9d396db..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,8 +63,7 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .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 a9d7a8e47b..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 @@ -85,9 +85,8 @@ import Appwrite import AppwriteModels let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") - .setProject("") - .setKey("") + .setProject("") + .setKey("") ``` {% /section %} diff --git a/src/routes/docs/quick-starts/vue/+page.markdoc b/src/routes/docs/quick-starts/vue/+page.markdoc index f177b42129..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,8 +65,7 @@ import { Client, Account} from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .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 8f16d65f2e..d39f1b3f1a 100644 --- a/src/routes/docs/quick-starts/web/+page.markdoc +++ b/src/routes/docs/quick-starts/web/+page.markdoc @@ -52,8 +52,7 @@ import { Client, Account } from 'appwrite'; export const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .setProject(''); // Replace with your project ID + .setProject(''); // Replace with your project ID export const account = new Account(client); export { ID } from 'appwrite'; @@ -73,8 +72,7 @@ import { type Models } from 'appwrite'; const client: Client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') - .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 2954bd137d..e0b947a07d 100644 --- a/src/routes/docs/references/quick-start/+page.markdoc +++ b/src/routes/docs/references/quick-start/+page.markdoc @@ -96,8 +96,7 @@ import { Client } from "appwrite"; const client = new Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setProject('') // Your project ID ; ``` ```client-flutter @@ -106,23 +105,20 @@ import 'package:appwrite/appwrite.dart'; Client client = Client(); client - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('') // Your project ID + .setProject('') // Your project ID ; ``` ```client-apple import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID + .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 + .setProject("") // Your project ID ``` {% /multicode %} {% /tabsitem %} @@ -139,9 +135,8 @@ 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 + .setProject('') // Your project ID + .setJWT('') // Your secret JSON Web Token ; ``` ```deno @@ -151,9 +146,8 @@ 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 + .setProject('') // Your project ID + .setJWT('') // Your secret JSON Web Token ; ``` ```php @@ -164,9 +158,8 @@ 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 + ->setProject('') // Your project ID + ->setJWT('') // Your secret JSON Web Token ; ``` ```python @@ -175,9 +168,8 @@ 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 + .set_project('') # Your project ID + .set_jwt('') # Your secret JSON Web Token ) ``` ```ruby @@ -186,18 +178,16 @@ 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 + .set_project('') # Your project ID + .set_jwt('') # Your secret JSON Web Token ``` ```csharp 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 + .SetProject("") // Your project ID + .SetJWT(""); // Your secret JSON Web Token ``` ```dart import 'package:dart_appwrite/dart_appwrite.dart'; @@ -206,9 +196,8 @@ 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 + .setProject('') // Your project ID + .setJWT('') // Your secret JSON Web Token ; } ``` @@ -217,26 +206,23 @@ 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 + .setProject("") // Your project ID + .setJWT(""); // Your secret JSON Web Token ``` ```java 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 + .setProject("") // Your project ID + .setJWT(""); // Your secret JSON Web Token ``` ```swift import Appwrite let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - .setJWT("") // Your secret JSON Web Token + .setProject("") // Your project ID + .setJWT("") // Your secret JSON Web Token ``` {% /multicode %} {% /tabsitem %} @@ -262,18 +248,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 ``` @@ -291,8 +275,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) { @@ -301,8 +284,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) { 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 49aae03450..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,13 +52,12 @@ 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 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..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 @@ -72,7 +71,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..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 @@ -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 @@ -77,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 +APPWRITE_KEY= 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 195a16ff19..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 @@ -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); @@ -58,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_APPWRITE_KEY= 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 512060f7aa..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 @@ -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); @@ -63,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, }, }, @@ -72,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 %} @@ -102,7 +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= -PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 +APPWRITE_KEY= PUBLIC_APPWRITE_PROJECT= ``` 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..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,14 +14,12 @@ 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"; const client = new Client(); client - .setEndpoint(PUBLIC_APPWRITE_ENDPOINT) .setProject(PUBLIC_APPWRITE_PROJECT); const account = new Account(client); @@ -34,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 0f64cb66ee..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 @@ -21,13 +21,12 @@ 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'; 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 @@ -63,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 +APPWRITE_KEY= 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/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); 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)