ph-node-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

ph-node-api

NPM

NodeJS PlanetHoster API integration.

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

Installation

npm install ph-node-api

Usage

const PhNodeApi = require('ph-node-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);

Readme

Keywords

none

Package Sidebar

Install

npm i ph-node-api

Weekly Downloads

4

Version

1.0.6

License

MIT

Unpacked Size

35.2 kB

Total Files

40

Last publish

Collaborators

  • marcandre-ph