1.1.0 • Published 3 months ago
@plugoinc/elepay-client v1.1.0
elepay-client
openapi-fetch
Usage
https://openapi-ts.pages.dev/openapi-fetch/
import createClient from "@plugoinc/elepay-client";
const client = createClient({
baseUrl: "http://example.com",
headers: {
authorization: "foobar",
"Content-Type": "application/json",
},
});
const { data, error } = await client.GET("/blogposts/{post_id}", {
params: {
path: { post_id: "my-post" },
query: { version: 2 },
},
});