Skip to content

Commit 16c3181

Browse files
committed
Upgraded to support Appwrite 0.7.0
1 parent 22b8b45 commit 16c3181

Some content is hidden

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

88 files changed

+862
-98
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2019 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

README.md

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

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?v=1)
4-
![Version](https://img.shields.io/badge/api%20version-0.6.0-blue.svg?v=1)
4+
![Version](https://img.shields.io/badge/api%20version-0.7.0-blue.svg?v=1)
5+
6+
**This SDK is compatible with Appwrite server version 0.7.0. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-node/releases).**
7+
8+
> This is the Node.js SDK for integrating with Appwrite from your Node.js server-side code.
9+
If you're looking to integrate from the browser, you should check [appwrite/sdk-for-web](https://github.com/appwrite/sdk-for-web)
510

611
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way.
712
Use the Node.js SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
813
For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
914

10-
11-
1215
![Appwrite](https://appwrite.io/images/github.png)
1316

1417
## Installation

docs/examples/avatars/get-browser.md

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

88
client
9+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
910
.setProject('5df5acd0d48c2') // Your project ID
1011
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1112
;

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

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

88
client
9+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
910
.setProject('5df5acd0d48c2') // Your project ID
1011
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1112
;

docs/examples/avatars/get-favicon.md

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

88
client
9+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
910
.setProject('5df5acd0d48c2') // Your project ID
1011
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1112
;

docs/examples/avatars/get-flag.md

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

88
client
9+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
910
.setProject('5df5acd0d48c2') // Your project ID
1011
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1112
;

docs/examples/avatars/get-image.md

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

88
client
9+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
910
.setProject('5df5acd0d48c2') // Your project ID
1011
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1112
;
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+
let client = new sdk.Client();
5+
6+
let avatars = new sdk.Avatars(client);
7+
8+
client
9+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
12+
;
13+
14+
let promise = avatars.getInitials();
15+
16+
promise.then(function (response) {
17+
console.log(response);
18+
}, function (error) {
19+
console.log(error);
20+
});

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

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

88
client
9+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
910
.setProject('5df5acd0d48c2') // Your project ID
1011
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1112
;

docs/examples/database/create-collection.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let client = new sdk.Client();
66
let database = new sdk.Database(client);
77

88
client
9+
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
910
.setProject('5df5acd0d48c2') // Your project ID
1011
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1112
;

0 commit comments

Comments
 (0)