@miragon/client-clockin
v0.1.0
Published
Typed client for the [clockIn](https://clockin.de) customer API. Generated from the clockIn OpenAPI spec with `@hey-api/openapi-ts`.
Readme
@miragon/client-clockin
Typed client for the clockIn customer API. Generated from
the clockIn OpenAPI spec with @hey-api/openapi-ts.
npm install @miragon/client-clockinimport { createClockInClient, sdk } from "@miragon/client-clockin"
const client = createClockInClient({
apiToken: process.env.CLOCKIN_API_TOKEN!,
// baseUrl defaults to https://customerapi.clockin.de
})
const activities = await sdk.searchActivities({ client, body: {/* … */} })createClockInClient returns a configured Client (Bearer auth,
throwOnError, responseStyle: "data"). Uses globalThis.fetch.
