diff --git a/README.md b/README.md index b3a98ad..5401304 100644 --- a/README.md +++ b/README.md @@ -50,12 +50,11 @@ Initialize your SDK code with your project ID which can be found in your project ```js // Init your Web SDK -const appwrite = new Appwrite(); +const sdk = new Appwrite(); -appwrite +sdk .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint .setProject('455x34dfkj') // Your project ID - .setSelfSigned() // Use only on dev mode with a self-signed SSL cert ; ``` @@ -64,35 +63,32 @@ Once your SDK object is set, access any of the Appwrite services and choose any ```js // Register User -appwrite - .account.create('me@example.com', 'password', 'Jane Doe') - .then(function (response) { - console.log(response); - }, function (error) { - console.log(error); - }); +sdk.account.create('me@example.com', 'password', 'Jane Doe') + .then(function (response) { + console.log(response); + }, function (error) { + console.log(error); + }); ``` ### Full Example ```js // Init your Web SDK -const appwrite = new Appwrite(); +const sdk = new Appwrite(); -appwrite +sdk .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint .setProject('455x34dfkj') - .setSelfSigned() // Use only on dev mode with a self-signed SSL cert ; // Register User -appwrite - .account.create('me@example.com', 'password', 'Jane Doe') - .then(function (response) { - console.log(response); - }, function (error) { - console.log(error); - }); +sdk.account.create('me@example.com', 'password', 'Jane Doe') + .then(function (response) { + console.log(response); + }, function (error) { + console.log(error); + }); ``` ### Learn more