Skip to content

Commit 6d339cf

Browse files
committed
Updated Readme
1 parent 39402eb commit 6d339cf

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

README.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ Initialize your SDK code with your project ID which can be found in your project
5050

5151
```js
5252
// Init your Web SDK
53-
const appwrite = new Appwrite();
53+
const sdk = new Appwrite();
5454

55-
appwrite
55+
sdk
5656
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
5757
.setProject('455x34dfkj') // Your project ID
58-
.setSelfSigned() // Use only on dev mode with a self-signed SSL cert
5958
;
6059
```
6160

@@ -64,35 +63,32 @@ Once your SDK object is set, access any of the Appwrite services and choose any
6463

6564
```js
6665
// Register User
67-
appwrite
68-
.account.create('[email protected]', 'password', 'Jane Doe')
69-
.then(function (response) {
70-
console.log(response);
71-
}, function (error) {
72-
console.log(error);
73-
});
66+
sdk.account.create('[email protected]', 'password', 'Jane Doe')
67+
.then(function (response) {
68+
console.log(response);
69+
}, function (error) {
70+
console.log(error);
71+
});
7472

7573
```
7674

7775
### Full Example
7876
```js
7977
// Init your Web SDK
80-
const appwrite = new Appwrite();
78+
const sdk = new Appwrite();
8179

82-
appwrite
80+
sdk
8381
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
8482
.setProject('455x34dfkj')
85-
.setSelfSigned() // Use only on dev mode with a self-signed SSL cert
8683
;
8784

8885
// Register User
89-
appwrite
90-
.account.create('[email protected]', 'password', 'Jane Doe')
91-
.then(function (response) {
92-
console.log(response);
93-
}, function (error) {
94-
console.log(error);
95-
});
86+
sdk.account.create('[email protected]', 'password', 'Jane Doe')
87+
.then(function (response) {
88+
console.log(response);
89+
}, function (error) {
90+
console.log(error);
91+
});
9692
```
9793

9894
### Learn more

0 commit comments

Comments
 (0)