@fill-easy/api
v1.0.45
Published
Type-safe SDK for Fill Easy API
Downloads
357
Maintainers
Readme
Fill Easy API SDK
Fill Easy Services API using https://openapi-ts.dev/
Read full docs here: https://docs.fill-easy.com
Usage
import { createApiClient } from "@fill-easy/api"
const client = createApiClient({
baseUrl: "https://sandbox.staging-api.fill-easy.com",
clientId: "...",
clientSecret: "...",
})
// Fully typed API calls
const { data, error } = await client.POST("/iamsmart/v2/request/auth", {
body: {
redirect: "https://example.com/callback",
source: "Android_Chrome",
},
})
if (error) {
console.error(error)
} else {
console.log(data)
}