2.0.4 • Published 4 months ago
golemio-sdk v2.0.4
Golemio SDK
This is an unofficial TypeScript/Javascript SDK for the API of the Prague data platform Golemio.
The SDK is automatically generated from the OpenAPI specification at https://api.golemio.cz/docs/static/output-gateway/openapi.json using OpenAPI Generator and axios. Checks are made at midnight.
Installation
npm install golemio-sdk
Usage
import { GolemioClient } from "golemio-sdk";
const client = new GolemioClient({
token: "YOUR GOLEMIO TOKEN",
});
const wasteContainers = await client.WasteCollectionV2Api.getWCStations();
// wasteContainers is of type AxiosResponse<GolemioApi.WasteCollectionStationFeatureCollection>
const departureBoard = await client.PublicTransport.PIDDepartureBoardsV2Api.v2PidDepartureboardsGet({
airCondition: true,
names: "Karlovo náměstí",
});
// departureBoard is of type AxiosResponse<GolemioPublicTransportApi.PIDDepartureBoard>
Options
Option | Description | |
---|---|---|
token | required | The Golemio API token. Generate your token at api.golemio.cz/api-keys. |
server | The API server to use. Default value is https://api.golemio.cz . |