@emilgroup/claim-sdk 1.0.1 → 1.7.0
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 +7 -7
- package/git_push.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,27 +17,27 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/claim-sdk@1.0
|
|
20
|
+
npm install @emilgroup/claim-sdk@1.7.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/claim-sdk@1.0
|
|
24
|
+
yarn add @emilgroup/claim-sdk@1.7.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
And then you can import `
|
|
27
|
+
And then you can import `ClaimsApi`.
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
|
-
import {
|
|
30
|
+
import { ClaimsApi } from '@emilgroup/claim-sdk'
|
|
31
31
|
|
|
32
|
-
const claimsApi = new
|
|
32
|
+
const claimsApi = new ClaimsApi();
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `
|
|
35
|
+
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `ClaimsApi`:
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
38
|
async function listClaims(): Promise<Void> {
|
|
39
39
|
try {
|
|
40
|
-
const claimsApi = new
|
|
40
|
+
const claimsApi = new ClaimsApi();
|
|
41
41
|
|
|
42
42
|
await claimsApi.authorize('username', 'password');
|
|
43
43
|
|
package/git_push.sh
CHANGED