1.0.3 • Published 10 months ago

hcloud-api v1.0.3

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

HCloud API JS Wrapper

npm

This package is unofficial. OpenAPI spec used is the unoficial types by Maximilian Köstler.

Installation

npm install hcloud-api

Usage

You can create a client like this:

const client = HCloudClient(process.env.HCLOUD_API_KEY || "");

Example

const client = HCloudClient(process.env.HCLOUD_API_KEY || "");
const { data, error } = await client.listServers<false /* true or false, true if you want it to throw an error on failure */>({
  query: {
    page: 1,
    per_page: 10
  }
})

Endpoints

Supported Endpoints are listed here.

License

Licensed under MIT.

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago