1.0.3 • Published 8 months ago
hcloud-api v1.0.3
HCloud API JS Wrapper
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.