Skip to content

Shockbyte/whmcs-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whmcs-node

A Typescript/Javascript API wrapper for WHMCS.

Example use

npm i whmcs-node

// typescript
import 'WhmcsApi' from 'whmcs-node';

// javascript
const WhmcsApi = require('whmcs-node').default

const whmcs = new WhmcsApi({
  identifier: "",
  secret: "",
  apiUrl: "https://example.com/billing/includes/api.php"
});

whmcs.tickets.getTicketCounts({})
  .then((data) => console.log(data))
  .catch((err) => console.error(err))