2.0.4 • Published 9 months ago

golemio-sdk v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Golemio SDK

NPM Version GitHub License

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

OptionDescription
tokenrequiredThe Golemio API token. Generate your token at api.golemio.cz/api-keys.
serverThe API server to use. Default value is https://api.golemio.cz.
2.0.4

9 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago