WHMCS-API
WHMCS API is a client platform made in nodejs for WHMCS
Installation
npm i whmcs-api --save
Initializing
const Client = let init = // Specifying API.php Endpoint "endpoint": "path/to/includes/api.php" // Authentication "identifier":"" "secret":"" // OR "username": "" "password": "" // Other Required Parameters. "accesskey":"" "responsetype":"json" // Change this to break the module :-) const whmcs = init
Calling API
This WHMCS API client uses promise based calling. This is an example.
whmcs
Parameters should contain the API Index's Request Parameter.
Example:
You don't have to specify action parameter. This is how we're gonna specify invoiceid parameter:
whmcs // OR whmcs