TypeScript Client for sevdesk API (2.0.0)
Install package:
# ✨ Auto-detect
npx nypm install @itplusx/sevdesk-api-ts-client
# npm
npm install @itplusx/sevdesk-api-ts-client
# yarn
yarn add @itplusx/sevdesk-api-ts-client
# pnpm
pnpm add @itplusx/sevdesk-api-ts-client
# bun
bun install @itplusx/sevdesk-api-ts-client
Usage:
ESM (Node.js, Bun)
import { SevdeskApiClient } from '@itplusx/sevdesk-api-ts-client'
const sevdeskApiClient = new SevdeskApiClient({ apiKey: 'your-secret-api-key' })
const basics = await sevdeskApiClient.apis.basicsApi.bookkeepingSystemVersion()
console.log(basics)
CommonJS (Legacy Node.js)
const { SevdeskApiClient } = require('@itplusx/sevdesk-api-ts-client')
const sevdeskApiClient = new SevdeskApiClient({ apiKey: 'your-secret-api-key' })
const basics = await sevdeskApiClient.apis.basicsApi.bookkeepingSystemVersion()
console.log(basics)
local development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Add
SEVDESK_API_KEY=replace-with-your-secret-api-key
to.env
file in project root - Run playground using
pnpm play
- Run interactive tests using
pnpm dev
- Run
sh generate.sh
(docker required) to update client based onhttps://api.sevdesk.de/openapi.yaml
.
Published under the MIT license.
Made by community 💛
🤖 auto updated with automd