1.0.1 • Published 5 months ago

hetzner-sdk-ts v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Hetzner Typescript SDK

About The Project

There are currently a few different SDKs for interacting with the Hetzner API, but none of them were staying up to date using the current OpenAPI definition published on the Hetzner website. This project aims to solve that by using the OpenAPI definition to generate a client on a regular cadence.

Getting Started

To get setup we just need to install the library locally and then we can start defining our states and transitions.

Installation

npm install hetzner-sdk-ts

API

Usage

import { OpenAPI, ServersService } from "hetzner-sdk-ts";

// Set the API key - this will apply globally to all requests
OpenAPI.TOKEN = apiKey;

// Get a list of all servers
const { servers } = await ServersService.listServers();

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

DJ Petersen - @thedjpetersen

Project Link: https://github.com/thedjpetersen/hetzner-sdk-ts

Acknowledgments

1.0.1

5 months ago

1.0.0

5 months ago