File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 22
33[ ![ CI] ( https://github.com/PlanetHoster/ph-node-api/actions/workflows/ci.yml/badge.svg )] ( https://github.com/PlanetHoster/ph-node-api/actions/workflows/ci.yml )
44
5- [ ![ NPM] ( https://nodei.co/npm/@planethoster-oss/api.png )] ( https://nodei.co/npm /@planethoster-oss/api/ )
5+ [ ![ NPM] ( https://nodei.co/npm/@planethoster-oss/api.png )] ( https://www.npmjs.com/package /@planethoster-oss/api )
66
77NodeJS PlanetHoster API integration.
88
99Please refer to the documentation of the [ PlanetHoster API] ( https://apidoc.planethoster.com/ ) for all endpoints details.
1010
1111## Installation
12+
1213```
1314npm install @planethoster-oss/api
1415```
1516
1617## Usage
18+
1719``` javascript
18- const PhNodeApi = require (' @planethoster-oss/api' );
20+ const PhNodeApi = require (" @planethoster-oss/api" );
1921
2022async function testConnection (api ) {
2123 try {
@@ -26,9 +28,9 @@ async function testConnection(api) {
2628}
2729
2830const api = new PhNodeApi ({
29- api_key: ' API_KEY' ,
30- api_user: ' API_USER'
31+ api_key: " API_KEY" ,
32+ api_user: " API_USER" ,
3133});
3234
3335testConnection (api);
34- ```
36+ ```
You can’t perform that action at this time.
0 commit comments