WHMCS Node Module
This module allows you to remotely manage your WHMCS installation(s) using Node.
npm install whmcs-js
Reminder: You need to whitelist the IP from which you are making API calls in WHMCS. Otherwise you will get an error.
You can do this under Setup > General Settings > Security. More info
You can remotely identify on the API using two methods: Note that you will always need to declare serverUrl
const config =username: 'api_username'password: 'password_as_md5'serverUrl: '' // Remember to point to the api.php file
You can generate these under Setup > Staff Management > Manage API Credentials. More info
const config =identifier: 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzz'secret: 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzz'serverUrl: '' // Remember to point to the api.php file
Every request returns a Promise with JSON data, so you can do:
const Billing =const myBilling = configconst invoices = await myBilling
See a list of available Modules and their methods here: https://damageesp.github.io/whmcs-js/
Víctor Campos - @DamageESP
Licensed under the Apache license, version 2.0 (the "license"); You may not use this file except in compliance with the license. You may obtain a copy of the license at:
Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "as is" basis, without warranties or conditions of any kind, either express or implied. See the license for the specific language governing permissions and limitations under the license.
Original repository: https://github.com/apocas/node-whmcs