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 8b4e6de commit ef1dda5
Show file tree
Hide file tree
Showing 78 changed files with 393 additions and 393 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Browsers have a default font size that users can change via the browser setting.
import { Client, Account } from "appwrite";

const client = new Client()
.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

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Now, in your Flutter app, you can use these mock numbers for authentication:
import 'package:appwrite/appwrite.dart';

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

Account account = Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { Client, Account } from "appwrite";
const client = new 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

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ import { Client, Account } from "appwrite";
const client = new 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

const account = new Account(client);
Expand Down Expand Up @@ -243,7 +243,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ import { Appwrite, Databases, Query } from "appwrite";

const client = new Appwrite();
client
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your API Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('articles-demo'); // Your project ID
const databases = new Databases(client);

Expand Down
4 changes: 2 additions & 2 deletions src/routes/blog/post/csr-vs-ssr-with-nextjs/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The admin client must be set with an API key that has the necessary scopes in or

```jsx
const adminClient = new Client()
.setEndpoint('https://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')
.setKey('<API_KEY>')
```
Expand Down Expand Up @@ -90,7 +90,7 @@ The session client accepts the generated session secret and sets it using the `c

```jsx
const sessionClient = new Client()
.setEndpoint('https://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')
```

Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/enhancing-type-safety/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/enums-api-design/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ To define scopes in the Appwrite console, navigate to your function's settings a

```jsx
const client = new Client()
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Hardcoded API endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Hardcoded API endpoint
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
.setKey(process.env.APPWRITE_API_KEY) // Static API key
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down Expand Up @@ -103,7 +103,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down Expand Up @@ -138,7 +138,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

final account = Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Bringing along benefits such as massively reducing friction when using routes th
import { Client, Account, OAuthProvider } from "appwrite";

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

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The admin client will need to be initialized with an API key in order to bypass
import { Client } from "node-appwrite"

const adminClient = new Client()
.setEndpoint('https://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')
.setKey('<YOUR_API_KEY>')
```
Expand All @@ -86,7 +86,7 @@ A session client will allow us to make requests as an authenticated end-user wit

```jsx
const sessionClient = new Client()
.setEndpoint('https://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')

const session = req.cookies.session
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/messaging-explained/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ 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://[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
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import { Client, Account } from 'appwrite'

// Initialize Appwrite client
const client = new Client()
client.setEndpoint('https://[region].cloud.appwrite.io/v1').setProject('<PROJECT_ID>')
client.setEndpoint('https://<REGION>.cloud.appwrite.io/v1').setProject('<PROJECT_ID>')

// Initialize Account
const account = new Account(client)
Expand Down
2 changes: 1 addition & 1 deletion src/routes/blog/post/oauth-openid/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Appwrite Authentication also leverages password hashing algorithms to allow deve
import { Client, Account, ID } from "appwrite";

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

const account = new Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const client = new sdk.Client();
const messaging = new sdk.Messaging(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
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import { Client, Account, OAuthProvider } from 'appwrite'

const client = new Client()
client
.setEndpoint('https://[region].cloud.appwrite.io/v1')// The Appwrite API endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')// The Appwrite API endpoint
.setProject('project-id')// Your Appwrite project IDexport const account = new Account(client)
export { OAuthProvider }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down Expand Up @@ -100,7 +100,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const account = new Account(client);
Expand Down Expand Up @@ -135,7 +135,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

final account = Account(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const client = new sdk.Client();
const messaging = new sdk.Messaging(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/understand-data-queries/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const databases = new Databases(client);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const client = new Client();
const account = new Account(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 All @@ -152,7 +152,7 @@ void main() { // Init SDK
Account account = Account(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/advanced/platform/permissions/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const databases = new Databases(client);
Expand Down Expand Up @@ -104,7 +104,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const databases = new Databases(client);
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 @@ -233,7 +233,7 @@ Appwrite SDKs also support GraphQL in addition to the REST services.
import { Client, Graphql } from "appwrite";

const client = new Client()
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your Appwrite Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your Appwrite Endpoint
.setProject('<PROJECT_ID>'); // Your project ID

const graphql = new Graphql(client);
Expand Down Expand Up @@ -270,7 +270,7 @@ mutation.then(response => {
import 'package:appwrite/appwrite.dart';

final client = Client()
.setEndpoint('https://[region].cloud.appwrite.io/v1') // Your Appwrite Endpoint
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your Appwrite Endpoint
.setProject('<PROJECT_ID>'); // Your project ID

final graphql = Graphql(client);
Expand Down
16 changes: 8 additions & 8 deletions src/routes/docs/apis/realtime/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This lets you build an interactive and responsive user experience by providing i
import { Client } from "appwrite";

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

// Subscribe to files channel
Expand All @@ -31,7 +31,7 @@ client.subscribe('files', response => {
import 'package:appwrite/appwrite.dart';

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

final realtime = Realtime(client);
Expand Down Expand Up @@ -117,7 +117,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

client.subscribe('account', response => {
Expand All @@ -130,7 +130,7 @@ client.subscribe('account', response => {
import 'package:appwrite/appwrite.dart';

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

final realtime = Realtime(client);
Expand Down Expand Up @@ -188,7 +188,7 @@ 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://[region].cloud.appwrite.io/v1')
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

client.subscribe(['collections.A.documents.A', 'files'], response => {
Expand All @@ -201,7 +201,7 @@ client.subscribe(['collections.A.documents.A', 'files'], response => {
import 'package:appwrite/appwrite.dart';

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

final realtime = Realtime(client);
Expand Down Expand Up @@ -256,7 +256,7 @@ If you no longer want to receive updates from a subscription, you can unsubscrib
import { Client } from "appwrite";

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

const unsubscribe = client.subscribe('files', response => {
Expand All @@ -272,7 +272,7 @@ unsubscribe();
import 'package:appwrite/appwrite.dart';

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

final realtime = Realtime(client);
Expand Down
Loading

0 comments on commit ef1dda5

Please sign in to comment.