node-appwrite 9.0.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/delete-identity.md +20 -0
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-identities.md +20 -0
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/avatars/get-browser.md +1 -1
- package/docs/examples/avatars/get-credit-card.md +1 -1
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +1 -1
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +1 -1
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +1 -1
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/functions/create-build.md +1 -1
- package/docs/examples/functions/create-deployment.md +2 -2
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-variable.md +1 -1
- package/docs/examples/functions/create.md +1 -1
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/download-deployment.md +20 -0
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +1 -1
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment.md +1 -1
- package/docs/examples/functions/update-variable.md +1 -1
- package/docs/examples/functions/update.md +2 -2
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-pub-sub.md +20 -0
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-queue.md +20 -0
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +20 -0
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +1 -1
- package/docs/examples/storage/get-file-preview.md +1 -1
- package/docs/examples/storage/get-file-view.md +1 -1
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/{update-membership-roles.md → update-membership.md} +2 -2
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +20 -0
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +20 -0
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +20 -0
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/index.d.ts +435 -55
- package/lib/client.js +4 -2
- package/lib/services/account.js +94 -50
- package/lib/services/avatars.js +14 -14
- package/lib/services/databases.js +120 -90
- package/lib/services/functions.js +212 -59
- package/lib/services/graphql.js +4 -4
- package/lib/services/health.js +57 -22
- package/lib/services/locale.js +32 -14
- package/lib/services/storage.js +33 -28
- package/lib/services/teams.js +29 -28
- package/lib/services/users.js +135 -50
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Appwrite Node.js SDK
|
|
2
2
|
|
|
3
3
|

|
|
4
|
-

|
|
5
5
|
[](https://travis-ci.com/appwrite/sdk-generator)
|
|
6
6
|
[](https://twitter.com/appwrite)
|
|
7
7
|
[](https://appwrite.io/discord)
|
|
8
8
|
|
|
9
|
-
**This SDK is compatible with Appwrite server version 1.
|
|
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).**
|
|
10
10
|
|
|
11
11
|
> This is the Node.js SDK for integrating with Appwrite from your Node.js server-side code.
|
|
12
12
|
If you're looking to integrate from the browser, you should check [appwrite/sdk-for-web](https://github.com/appwrite/sdk-for-web)
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -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
|
+
});
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -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
|
+
});
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const account = new sdk.Account(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setJWT('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') // Your secret JSON Web Token
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const avatars = new sdk.Avatars(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const avatars = new sdk.Avatars(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const avatars = new sdk.Avatars(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const avatars = new sdk.Avatars(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const avatars = new sdk.Avatars(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const avatars = new sdk.Avatars(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const avatars = new sdk.Avatars(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|
|
@@ -6,7 +6,7 @@ const client = new sdk.Client();
|
|
|
6
6
|
const databases = new sdk.Databases(client);
|
|
7
7
|
|
|
8
8
|
client
|
|
9
|
-
.setEndpoint('https://
|
|
9
|
+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
|
10
10
|
.setProject('5df5acd0d48c2') // Your project ID
|
|
11
11
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
|
12
12
|
;
|