aw-api

0.0.13 • Public • Published

ActivityWatch API

ActivityWatch OpenAPI spec and SDK in typescript.

Usage

bun install activitywatch-api
  1. 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

  1. git clone this repo
  2. bun install
  3. code examples/
  4. 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.

Readme

Keywords

none

Package Sidebar

Install

npm i aw-api

Weekly Downloads

168

Version

0.0.13

License

none

Unpacked Size

56.6 kB

Total Files

18

Last publish

Collaborators

  • snomiao