Skip to content

Commit

Permalink
feat: update region placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
christyjacob4 committed Nov 5, 2024
1 parent 78d99cb commit 8b4e6de
Show file tree
Hide file tree
Showing 56 changed files with 270 additions and 270 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Here is what this would look like using Swift.
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key

Expand Down Expand Up @@ -66,7 +66,7 @@ You can send SMS messages using a Server SDK. To send SMS messages immediately,
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key

Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/image-classification/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def main(context):

client = (
Client()
.set_endpoint("https://[region].cloud.appwrite.io/v1")
.set_endpoint("https://<REGION>.cloud.appwrite.io/v1")
.set_project(os.environ["APPWRITE_FUNCTION_PROJECT_ID"])
.set_key(os.environ["APPWRITE_API_KEY"])
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ import io.appwrite.Client
import io.appwrite.services.Account

val client = Client(context)
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setLocale('fr') // Your locale

Expand All @@ -185,7 +185,7 @@ val response = account.createVerification('https://example.com')
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setLocale('fr') // Your locale

Expand Down
4 changes: 2 additions & 2 deletions src/routes/docs/apis/graphql/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ mutation.then((response) {
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

let graphql = Graphql(client)
Expand Down Expand Up @@ -348,7 +348,7 @@ import io.appwrite.Client
import io.appwrite.services.Graphql

val client = Client(context)
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

val graphql = Graphql(client)
Expand Down
14 changes: 7 additions & 7 deletions src/routes/docs/apis/realtime/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import Appwrite
import AppwriteModels

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")

let realtime = Realtime(client)
Expand All @@ -71,7 +71,7 @@ import io.appwrite.Client
import io.appwrite.services.Realtime

val client = Client(context)
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")

val realtime = Realtime(client)
Expand Down Expand Up @@ -148,7 +148,7 @@ import Appwrite
import AppwriteModels

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")

let realtime = Realtime(client)
Expand All @@ -164,7 +164,7 @@ import io.appwrite.Client
import io.appwrite.services.Realtime

val client = Client(context)
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")

val realtime = Realtime(client)
Expand Down Expand Up @@ -219,7 +219,7 @@ import Appwrite
import AppwriteModels

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")

let realtime = Realtime(client)
Expand All @@ -235,7 +235,7 @@ import io.appwrite.Client
import io.appwrite.services.Realtime

val client = Client(context)
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")
val realtime = Realtime(client)

Expand Down Expand Up @@ -308,7 +308,7 @@ import io.appwrite.Client
import io.appwrite.services.Realtime

val client = Client(context)
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")

val realtime = Realtime(client)
Expand Down
8 changes: 4 additions & 4 deletions src/routes/docs/products/auth/accounts/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ final user = await account.updatePrefs(
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

let account = Account(client)
Expand All @@ -81,7 +81,7 @@ import io.appwrite.Client
import io.appwrite.services.Account

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

val account = Account(client)
Expand Down Expand Up @@ -144,7 +144,7 @@ import io.appwrite.Client
import io.appwrite.services.Account

val client = Client(context)
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

val account = Account(client)
Expand All @@ -155,7 +155,7 @@ val prefs = account.getPrefs()
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

let account = Account(client)
Expand Down
4 changes: 2 additions & 2 deletions src/routes/docs/products/auth/anonymous/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final user = await account.createAnonymousSession();
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

let account = Account(client)
Expand All @@ -57,7 +57,7 @@ import io.appwrite.Client
import io.appwrite.services.Account

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

val account = Account(client)
Expand Down
10 changes: 5 additions & 5 deletions src/routes/docs/products/auth/custom-token/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ import io.appwrite.Client
import io.appwrite.Users

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey("<API_KEY>") // Your project API key

Expand All @@ -123,7 +123,7 @@ val secret = token.secret
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey("<API_KEY>") // Your project API key

Expand All @@ -137,7 +137,7 @@ let secret = token.secret
using Appwrite;

var client = new Client()
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("<PROJECT_ID>") // Your project ID
.SetKey("<API_KEY>"); // Your project API key

Expand Down Expand Up @@ -195,7 +195,7 @@ final session = await account.createSession(
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>");

let account = Account(client);
Expand All @@ -211,7 +211,7 @@ import io.appwrite.Client
import io.appwrite.services.Account

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>");

val account = Account(client);
Expand Down
8 changes: 4 additions & 4 deletions src/routes/docs/products/auth/email-otp/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final userId = sessionToken.userId;
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>");

let account = Account(client);
Expand All @@ -82,7 +82,7 @@ import io.appwrite.services.Account
import io.appwrite.ID

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>");

val account = Account(client);
Expand Down Expand Up @@ -146,7 +146,7 @@ final session = await account.createSession(
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>");

let account = Account(client);
Expand All @@ -162,7 +162,7 @@ import io.appwrite.services.Account
import io.appwrite.ID

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1")
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>");

val account = Account(client);
Expand Down
22 changes: 11 additions & 11 deletions src/routes/docs/products/auth/jwt/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ final jwt = await account.createJWT();
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

let account = Account(client)
Expand All @@ -61,7 +61,7 @@ import io.appwrite.Client
import io.appwrite.services.Account

val client = Client(context)
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID

val account = Account(client)
Expand Down Expand Up @@ -144,7 +144,7 @@ final client = Client()
import io.appwrite.Client

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
```
Expand All @@ -153,7 +153,7 @@ val client = Client()
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token
```
Expand All @@ -162,7 +162,7 @@ let client = Client()
using Appwrite;

var client = new Client()
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("<PROJECT_ID>") // Your project ID
.SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token
```
Expand Down Expand Up @@ -295,7 +295,7 @@ final documents = await databases.listDocuments(
import io.appwrite.Client

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token

Expand All @@ -311,7 +311,7 @@ val documents = databases.listDocuments(
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setJWT("eyJJ9.eyJ...886ca") // Your secret JSON Web Token

Expand All @@ -329,7 +329,7 @@ using Appwrite.Services;
using Appwrite.Models;

var client = new Client()
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("<PROJECT_ID>") // Your project ID
.SetJWT("eyJJ9.eyJ...886ca"); // Your secret JSON Web Token

Expand Down Expand Up @@ -474,7 +474,7 @@ final documents = await databases.listDocuments(
import io.appwrite.Client

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey('98fd4...a2ad2'); // Your secret API key

Expand All @@ -490,7 +490,7 @@ val documents = databases.listDocuments(
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey('98fd4...a2ad2'); // Your secret API key

Expand All @@ -508,7 +508,7 @@ using Appwrite.Services;
using Appwrite.Models;

var client = new Client()
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("<PROJECT_ID>") // Your project ID
.SetKey('98fd4...a2ad2'); // Your secret API key

Expand Down
6 changes: 3 additions & 3 deletions src/routes/docs/products/auth/labels/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ import io.appwrite.Role
import io.appwrite.services.Users

val client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey("98fd4...a2ad2") // Your secret API key

Expand All @@ -145,7 +145,7 @@ val response = users.updateLabels(
import Appwrite

let client = Client()
.setEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.setProject("<PROJECT_ID>") // Your project ID
.setKey("98fd4...a2ad2") // Your secret API key

Expand All @@ -161,7 +161,7 @@ let response = try await users.updateLabels(
using Appwrite;

var client = new Client()
.SetEndpoint("https://[region].cloud.appwrite.io/v1") // Your API Endpoint
.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("<PROJECT_ID>") // Your project ID
.SetKey("98fd4...a2ad2"); // Your secret API key

Expand Down
Loading

0 comments on commit 8b4e6de

Please sign in to comment.