@qelos/web-sdk 2.0.27 → 3.0.1
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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @qelos/sdk
|
|
2
2
|
|
|
3
|
-
SDK to use
|
|
3
|
+
SDK to use Qelos common API endpoints.
|
|
4
4
|
|
|
5
5
|
Can be used for both backend and frontend applications.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```shell
|
|
10
|
-
npm install @
|
|
10
|
+
npm install @qelos/sdk
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
16
|
// my-sdk.ts
|
|
17
|
-
import
|
|
17
|
+
import QelosSDK from '@qelos/sdk';
|
|
18
18
|
|
|
19
|
-
const sdk = new
|
|
19
|
+
const sdk = new QelosSDK({appUrl: 'https://yourdomain.com', fetch: window.fetch});
|
|
20
20
|
export default sdk;
|
|
21
21
|
```
|
|
22
22
|
**Note:** You can inject a fetch-like function, such as `node-fetch` or any fetch equivalent.
|