0.0.3 • Published 3 years ago
puh.js v0.0.3
Puh.js
How to use?
const puhapi = require('puh.js');
puhapi.login('y0urN1c370k3n') // Create API token here: https://www.puh.hosting/cp/settings/developer
puhapi.user().removeAllDevices().then((res) => {
console.log(res)
})
Function | Description |
---|---|
login("token") | Login with your API token |
user().getInfo() | Get some information about this account |
user().getServices() | Get a array of products |
user().getService(serviceID) | Get service by ID |
user().getDevices() | Get connected Devices |
user().removeDevice(deviceID) | Remove device by ID (Logout this device) |
user().removeAllDevices() | Remove all devices (Logout all devices from Puhhosting) |
user().getInvoices() | Get a array of the accounts invoices |
user().getInvoices(invoiceID) | Get invoice by ID |
Version log
0.0.1
- Initial Release
0.0.2
- Update this Readme
- Add version checker
0.0.3
- Add invoices