1.0.3 • Published 1 year ago

hcloud-api v1.0.3

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

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago