AstroWay/api v2.74.2 · nl
alle systemen normaal
// sdk · TypeScript

TypeScript SDK voor de AstroWay API

Officiële `@astroway/sdk` — dunne wrapper over `openapi-fetch` (~6 KB runtime). Pad-autocomplete + request-/response-types in uw IDE voor alle {endpoints}-endpoints. Stainless-stijl foutenhierarchie, ingebouwd retry bij 408/409/429/5xx, OIDC + SLSA L3 provenance.

// 01 / install

Installeren

npm install @astroway/sdk

importeren: import { Astroway } from '@astroway/sdk';

// 02 / highlights

Kenmerken

// 03 / first request

Eerste verzoek

import { Astroway } from '@astroway/sdk';

const aw = new Astroway({ apiKey: process.env.ASTROWAY_API_KEY! });

const { data: chart } = await aw.client.POST('/chart', {
  body: {
    date: '1990-07-14',
    time: '14:30:00',
    timezoneOffset: 3,
    latitude: 50.4501,
    longitude: 30.5234,
    houseSystem: 'P',
  },
});

console.log(chart.angles.asc);

Start met TypeScript

10.000 credits gratis per maand. Open-source SDK, gegenereerd vanuit OpenAPI 3.1, altijd synchroon met de backend.

99.9% SLA · betaalde plannen · 30d status →