aw-api
v0.0.13
Published
ActivityWatch OpenAPI spec and SDK in typescript.
Downloads
1,152
Readme
ActivityWatch API
ActivityWatch OpenAPI spec and SDK in typescript.
Usage
bun install activitywatch-api
- save this into ./aw-script.ts
import { ActivityWatchAPI } from "./Api";
const api = new ActivityWatchAPI({
baseUrl: "http://localhost:5600/api",
}).v0
const info = await api.getInfoResource();
console.log(info);
Play with examples
- git clone this repo
bun install
code examples/
bun src/get-info.ts
Reference
This project was created using bun init
in bun v1.1.10. Bun is a fast all-in-one JavaScript runtime.