@fill-easy/api 1.0.21 → 1.0.22
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 +31 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# Fill Easy API SDK
|
|
2
|
-
|
|
3
|
-
Fill Easy Services API using https://openapi-ts.dev/
|
|
4
|
-
|
|
5
|
-
Read full docs here: https://docs.fill-easy.com
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
import { createApiClient } from "@fill-easy/api"
|
|
11
|
-
|
|
12
|
-
const client = createApiClient({
|
|
13
|
-
baseUrl: "https://sandbox.staging-api.fill-easy.com",
|
|
14
|
-
clientId: "...",
|
|
15
|
-
clientSecret: "...",
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
// Fully typed API calls
|
|
19
|
-
const { data, error } = await client.POST("/iamsmart/v2/request/auth", {
|
|
20
|
-
body: {
|
|
21
|
-
redirect: "https://example.com/callback",
|
|
22
|
-
source: "Android_Chrome",
|
|
23
|
-
},
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
if (error) {
|
|
27
|
-
console.error(error)
|
|
28
|
-
} else {
|
|
29
|
-
console.log(data)
|
|
30
|
-
}
|
|
31
|
-
```
|
|
1
|
+
# Fill Easy API SDK
|
|
2
|
+
|
|
3
|
+
Fill Easy Services API using https://openapi-ts.dev/
|
|
4
|
+
|
|
5
|
+
Read full docs here: https://docs.fill-easy.com
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { createApiClient } from "@fill-easy/api"
|
|
11
|
+
|
|
12
|
+
const client = createApiClient({
|
|
13
|
+
baseUrl: "https://sandbox.staging-api.fill-easy.com",
|
|
14
|
+
clientId: "...",
|
|
15
|
+
clientSecret: "...",
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
// Fully typed API calls
|
|
19
|
+
const { data, error } = await client.POST("/iamsmart/v2/request/auth", {
|
|
20
|
+
body: {
|
|
21
|
+
redirect: "https://example.com/callback",
|
|
22
|
+
source: "Android_Chrome",
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
if (error) {
|
|
27
|
+
console.error(error)
|
|
28
|
+
} else {
|
|
29
|
+
console.log(data)
|
|
30
|
+
}
|
|
31
|
+
```
|