@mediahosting/rub-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

rub-api

npm

#Information

The RubApi is the wrapper for the Roeth and Beck RestAPI

Now working routes:

  • account
  • accounting
  • address
  • ddos_alert
  • domain
  • domain/dns
  • domain/handle
  • domain/nameserver
  • domain/price
  • license/plesk
  • news
  • reseller/news
  • teamspeak_instance
  • teamspeak_instance/whitelist
  • ssh_key

Installation

Install the package

$ npm install @mediahosting/rub-api

Usage

The host variable is not required but the apiKey must be specified

import { RubApi } from "@mediahosting/rub-api"

const api = new RubApi({
    host: "https://api.reselling.services/api/v1",
    apiKey: ""
})

api.general.accounting.getBalance()
    .then(value => { console.log(value) })
    .catch(error => { console.error(error) })

Package Sidebar

Install

npm i @mediahosting/rub-api

Weekly Downloads

2

Version

1.0.14

License

Apache-2.0

Unpacked Size

61.6 kB

Total Files

85

Last publish

Collaborators

  • florianrichter