1.0.3 • Published 8 months ago

hcloud-api v1.0.3

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

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago