Skip to content

PlanetHoster/ph-node-api

Repository files navigation

@planethoster-oss/api

CI

NPM

NodeJS PlanetHoster API integration.

Please refer to the documentation of the PlanetHoster API for all endpoints details.

Installation

npm install @planethoster-oss/api

Usage

const PhNodeApi = require("@planethoster-oss/api");

async function testConnection(api) {
  try {
    console.log(await api.testConnection());
  } catch (e) {
    console.log(e);
  }
}

const api = new PhNodeApi({
  api_key: "API_KEY",
  api_user: "API_USER",
});

testConnection(api);

About

NodeJS PlanetHoster api integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •