2.0.4 • Published 4 months ago

golemio-sdk v2.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

4 months ago

2.0.3

5 months ago

2.0.2

5 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago