You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This SDK is compatible with Appwrite server version 0.14.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-web/releases).**
9
+
**This SDK is compatible with Appwrite server version 0.15.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-web/releases).**
10
10
11
11
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. Use the Web SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
12
12
@@ -25,15 +25,15 @@ npm install appwrite --save
25
25
If you're using a bundler (like [Rollup](https://rollupjs.org/) or [webpack](https://webpack.js.org/)), you can import the Appwrite module when you need it:
26
26
27
27
```js
28
-
import { Appwrite } from"appwrite";
28
+
import { Client, Account } from"appwrite";
29
29
```
30
30
31
31
### CDN
32
32
33
33
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
@@ -49,9 +49,9 @@ Initialize your SDK with your Appwrite server API endpoint and project ID which
49
49
50
50
```js
51
51
// Init your Web SDK
52
-
constsdk=newAppwrite();
52
+
constclient=newClient();
53
53
54
-
sdk
54
+
client
55
55
.setEndpoint('http://localhost/v1') // Your Appwrite Endpoint
56
56
.setProject('455x34dfkj') // Your project ID
57
57
;
@@ -61,8 +61,10 @@ sdk
61
61
Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
0 commit comments