Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const client = //...

const Teams = new Teams(client);

const promise = Teams.create('[Team_ID]', '[NAME]');
const promise = Teams.create('<TEAM_ID>', '[NAME]');
```

## Labels
Expand All @@ -122,7 +122,7 @@ const client = //...

const users = new sdk.Users(client);

const promise = users.updateLabels('[USER_ID]', ['subscriber']);
const promise = users.updateLabels('<USER_ID>', ['subscriber']);
```

### Resources
Expand Down
8 changes: 4 additions & 4 deletions src/routes/docs/apis/graphql/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ import { Client, Graphql } from "appwrite";

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

const graphql = new Graphql(client);

Expand Down Expand Up @@ -271,7 +271,7 @@ import 'package:appwrite/appwrite.dart';

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

final graphql = Graphql(client);

Expand Down Expand Up @@ -309,7 +309,7 @@ import io.appwrite.services.Graphql

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

val graphql = Graphql(client)

Expand Down Expand Up @@ -346,7 +346,7 @@ import Appwrite

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

let graphql = Graphql(client)

Expand Down
30 changes: 15 additions & 15 deletions src/routes/docs/apis/realtime/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Client } from "appwrite";

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

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

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

final realtime = Realtime(client);

Expand All @@ -53,7 +53,7 @@ import AppwriteModels

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

let realtime = Realtime(client)

Expand All @@ -72,7 +72,7 @@ import io.appwrite.services.Realtime

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

val realtime = Realtime(client)

Expand Down Expand Up @@ -118,7 +118,7 @@ import { Client } from "appwrite";

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

client.subscribe('account', response => {
// Callback will be executed on all account events.
Expand All @@ -131,7 +131,7 @@ import 'package:appwrite/appwrite.dart';

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

final realtime = Realtime(client);

Expand All @@ -149,7 +149,7 @@ import AppwriteModels

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

let realtime = Realtime(client)

Expand All @@ -165,7 +165,7 @@ import io.appwrite.services.Realtime

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

val realtime = Realtime(client)

Expand All @@ -189,7 +189,7 @@ import { Client } from "appwrite";

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

client.subscribe(['collections.A.documents.A', 'files'], response => {
// Callback will be executed on changes for documents A and all files.
Expand All @@ -202,7 +202,7 @@ import 'package:appwrite/appwrite.dart';

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

final realtime = Realtime(client);

Expand All @@ -220,7 +220,7 @@ import AppwriteModels

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

let realtime = Realtime(client)

Expand All @@ -236,7 +236,7 @@ import io.appwrite.services.Realtime

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

realtime.subscribe("databases.A.collections.A.documents.A", "files") {
Expand All @@ -257,7 +257,7 @@ import { Client } from "appwrite";

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

const unsubscribe = client.subscribe('files', response => {
// Callback will be executed on changes for all files.
Expand All @@ -273,7 +273,7 @@ import 'package:appwrite/appwrite.dart';

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

final realtime = Realtime(client);

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

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

val realtime = Realtime(client)

Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/products/auth/email-otp/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ let session = try await account.createSession(

```graphql
mutation {
accountcreateSession(userId: "[USER_ID]", secret: "[SECRET]") {
accountcreateSession(userId: "<USER_ID>", secret: "[SECRET]") {
_id
userId
provider
Expand Down
18 changes: 9 additions & 9 deletions src/routes/docs/products/auth/labels/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const client = new sdk.Client()
const users = new sdk.Users(client);

const promise = users.updateLabels(
'[USER_ID]',
'<USER_ID>',
[ 'subscriber' ]
);

Expand All @@ -44,7 +44,7 @@ $client
$users = new Users($client);

$result = $users->updateLabels(
'[USER_ID]',
'<USER_ID>',
[ 'subscriber' ]
);
```
Expand All @@ -65,7 +65,7 @@ client = Client()
users = Users(client)

result = users.update_labels(
'[USER_ID]',
'<USER_ID>',
[ 'subscriber' ]
);
```
Expand All @@ -82,7 +82,7 @@ client = Client.new
users = Users.new(client)

response = users.update_labels(
user_id: '[USER_ID]',
user_id: '<USER_ID>',
labels: [ 'subscriber' ]
);
```
Expand All @@ -98,7 +98,7 @@ let client = new sdk.Client()
let users = new sdk.Users(client);

const promise = users.updateLabels(
'[USER_ID]',
'<USER_ID>',
[ 'subscriber' ]
);

Expand All @@ -119,7 +119,7 @@ final client = Client()
final users = Users(client);

final result = await users.updateLabels(
userId: '[USER_ID]',
userId: '<USER_ID>',
labels: [ 'subscriber' ],
);
```
Expand All @@ -136,7 +136,7 @@ val client = Client()
val users = Users(client)

val response = users.updateLabels(
userId = "[USER_ID]",
userId = "<USER_ID>",
labels = [ 'subscriber' ]
);
```
Expand All @@ -152,7 +152,7 @@ let client = Client()
let users = Users(client)

let response = try await users.updateLabels(
userId: "[USER_ID]",
userId: "<USER_ID>",
labels: [ 'subscriber' ]
);
```
Expand All @@ -168,7 +168,7 @@ var client = new Client()
var users = new Users(client);

var response = await users.UpdateLabels(
userId: "[USER_ID]",
userId: "<USER_ID>",
labels: [ 'subscriber' ]
);
```
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/products/auth/phone-sms/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ let session = try await account.createSession(

```graphql
mutation {
accountcreateSession(userId: "[USER_ID]", secret: "[SECRET]") {
accountcreateSession(userId: "<USER_ID>", secret: "[SECRET]") {
_id
userId
provider
Expand Down
28 changes: 14 additions & 14 deletions src/routes/docs/products/databases/collections/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ client
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;

const promise = databases.createCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]');
const promise = databases.createCollection('<DATABASE_ID>', '[COLLECTION_ID]', '[NAME]');

promise.then(function (response) {
console.log(response);
Expand All @@ -58,7 +58,7 @@ client
;


let promise = databases.createCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]');
let promise = databases.createCollection('<DATABASE_ID>', '[COLLECTION_ID]', '[NAME]');

promise.then(function (response) {
console.log(response);
Expand All @@ -82,7 +82,7 @@ $client

$databases = new Databases($client);

$result = $databases->createCollection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]');
$result = $databases->createCollection('<DATABASE_ID>', '[COLLECTION_ID]', '[NAME]');
```
```python
from appwrite.client import Client
Expand All @@ -98,7 +98,7 @@ client = Client()

databases = Databases(client)

result = databases.create_collection('[DATABASE_ID]', '[COLLECTION_ID]', '[NAME]')
result = databases.create_collection('<DATABASE_ID>', '[COLLECTION_ID]', '[NAME]')
```
```ruby
require 'Appwrite'
Expand All @@ -112,7 +112,7 @@ client = Client.new

databases = Databases.new(client)

response = databases.create_collection(database_id: '[DATABASE_ID]', collection_id: '[COLLECTION_ID]', name: '[NAME]')
response = databases.create_collection(database_id: '<DATABASE_ID>', collection_id: '[COLLECTION_ID]', name: '[NAME]')

puts response.inspect
```
Expand All @@ -129,8 +129,8 @@ var client = new Client()
var databases = new Databases(client);

Collection result = await databases.CreateCollection(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]",
databaseId: "<DATABASE_ID>",
collectionId: "<COLLECTION_ID>",
name: "[NAME]");
```
```dart
Expand All @@ -147,7 +147,7 @@ void main() { // Init SDK
;

Future result = databases.createCollection(
databaseId: '[DATABASE_ID]',
databaseId: '<DATABASE_ID>',
collectionId: '[COLLECTION_ID]',
name: '[NAME]',
);
Expand All @@ -172,8 +172,8 @@ val client = Client(context)
val databases = Databases(client)

val response = databases.createCollection(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
databaseId = "<DATABASE_ID>",
collectionId = "<COLLECTION_ID>",
name = "[NAME]",
)
```
Expand All @@ -190,8 +190,8 @@ Client client = new Client()
Databases databases = new Databases(client);

databases.createCollection(
"[DATABASE_ID]",
"[COLLECTION_ID]",
"<DATABASE_ID>",
"<COLLECTION_ID>",
"[NAME]",
new CoroutineCallback<>((result, error) -> {
if (error != null) {
Expand All @@ -214,8 +214,8 @@ let client = Client()
let databases = Databases(client)

let collection = try await databases.createCollection(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]",
databaseId: "<DATABASE_ID>",
collectionId: "<COLLECTION_ID>",
name: "[NAME]"
)
```
Expand Down
Loading