NodeJS PlanetHoster API integration.
Please refer to the documentation of the PlanetHoster API for all endpoints details.
npm install @planethoster-oss/api
constPhNodeApi=require("@planethoster-oss/api");asyncfunctiontestConnection(api){try{console.log(awaitapi.testConnection());}catch(e){console.log(e);}}constapi=newPhNodeApi({api_key: "API_KEY",api_user: "API_USER",});testConnection(api);