Skip to content

Commit aaea14a

Browse files
Merge pull request #58 from appwrite/dev
feat: release 1.4.x
2 parents 68e46fd + cd35b62 commit aaea14a

File tree

182 files changed

+1515
-582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+1515
-582
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite Node.js SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.3.2-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.4.0-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.3.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-node/releases).**
9+
**This SDK is compatible with Appwrite server version 1.4.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-node/releases).**
1010

1111
> This is the Node.js SDK for integrating with Appwrite from your Node.js server-side code.
1212
If you're looking to integrate from the browser, you should check [appwrite/sdk-for-web](https://github.com/appwrite/sdk-for-web)

docs/examples/account/create-phone-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/create-recovery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/create-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const sdk = require('node-appwrite');
2+
3+
// Init SDK
4+
const client = new sdk.Client();
5+
6+
const account = new sdk.Account(client);
7+
8+
client
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
12+
;
13+
14+
const promise = account.deleteIdentity('[IDENTITY_ID]');
15+
16+
promise.then(function (response) {
17+
console.log(response);
18+
}, function (error) {
19+
console.log(error);
20+
});

docs/examples/account/delete-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/delete-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/get-prefs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/get-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/get.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const sdk = require('node-appwrite');
2+
3+
// Init SDK
4+
const client = new sdk.Client();
5+
6+
const account = new sdk.Account(client);
7+
8+
client
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
12+
;
13+
14+
const promise = account.listIdentities();
15+
16+
promise.then(function (response) {
17+
console.log(response);
18+
}, function (error) {
19+
console.log(error);
20+
});

docs/examples/account/list-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/list-sessions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-email.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-password.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-phone-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-phone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-prefs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-recovery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/account/update-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const account = new sdk.Account(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
1212
;

docs/examples/avatars/get-browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const avatars = new sdk.Avatars(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/avatars/get-credit-card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const avatars = new sdk.Avatars(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/avatars/get-favicon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const avatars = new sdk.Avatars(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/avatars/get-flag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const avatars = new sdk.Avatars(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/avatars/get-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const avatars = new sdk.Avatars(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/avatars/get-initials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const avatars = new sdk.Avatars(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/avatars/get-q-r.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const avatars = new sdk.Avatars(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-boolean-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-collection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-datetime-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-email-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-enum-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-float-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-integer-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

docs/examples/databases/create-ip-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const client = new sdk.Client();
66
const databases = new sdk.Databases(client);
77

88
client
9-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
1010
.setProject('5df5acd0d48c2') // Your project ID
1111
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1212
;

0 commit comments

Comments
 (0)