websupport
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Websupport API

npm version npm bundle size npm install size npm downloads

https://rest.websupport.sk/docs/index

  • [x] User management
  • [x] Service management
  • [ ] Invoice management
  • [ ] Ordering new services
  • [x] DNS management
  • [ ] Hosting management
  • [ ] VPS management

How to use:

import { Websupport } from "websupport";

const websupport = new Websupport({
  apiKey: 'YOUR_API_KEY',
  apiSecret: 'YOUR_API_SECRET',
});

const myUser = websupport.user.getOneMine();
console.log("My username:", myUser.login)

in case some endpoints are not implemented yet, you can use it like this

import { Websupport } from "websupport";

const websupport = new Websupport({
  apiKey: 'YOUR_API_KEY',
  apiSecret: 'YOUR_API_SECRET',
});

const apiService = websupport.getApiService();
const myUser = await apiService.get("/user/self")
console.log("My username:", myUser.login)

Readme

Keywords

none

Package Sidebar

Install

npm i websupport

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

110 kB

Total Files

68

Last publish

Collaborators

  • smolkojan