Jump to content

Can't connect to API :/


pavhost

Recommended Posts

Okay so, The IP Is completely whitelisted and I'm having an issue AUTHENTICATING. After miswriting the API Key I noticed it detected that it was wrong, and once fixing it - It went back to the normal fail authentication:

 

C:\Users\Jonathan\development>node app.js

Running Function

ERROR

[Error: WHMCS Error (403): Invalid Access Key]

^C

C:\Users\Jonathan\development>node app.js

Running Function

ERROR

[Error: WHMCS Error (403): Authentication Failed]

 

As you can see, the API Key is write, I checked the user/pass plenty of times and it is not working.

 

I'm using NodeJS With Express,

 

This is my code:

 

var validConfig = {

username: process.env.WHMCS_USER || 'api_username',

password: process.env.WHMCS_KEY || 'password_as_md5',

apiKey: process.env.WHMCS_AK || 'abc123',

serverUrl: process.env.WHMCS_URL || 'http://DOMAINHERE.com/whmcs/includes/api.php'

};

 

var client = new WHMCS(validConfig);

 

 

Using NPM Module WHMCS

var WHMCS = require('whmcs');

 

 

Any ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated