mojomedia Posted October 19, 2015 Share Posted October 19, 2015 Hi All I am trying to integrate WHMCS to an app using Zapier and its asking for a API see below Have no clue how to do this and don’t want to mess things up… any one can help? (will pay) See the image below to get an idea of what is asked… 0 Quote Link to comment Share on other sites More sharing options...
wsa Posted October 19, 2015 Share Posted October 19, 2015 Hi, You can contact me here 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted March 28, 2017 Share Posted March 28, 2017 To create a API Access key, you simply need to configure by adding a line as follows to your configuration.php file in the root WHMCS directory. $api_access_key = 'secret_key_passphrase_goes_here'; Your API Key should comprise of letters and numbers and maybe what ever you would like. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted March 29, 2017 Share Posted March 29, 2017 To create a API Access key, you simply need to configure by adding a line as follows to your configuration.php file in the root WHMCS directory. $api_access_key = 'secret_key_passphrase_goes_here'; Your API Key should comprise of letters and numbers and maybe what ever you would like. and here is the documentation URL for anyone need it: http://docs.whmcs.com/AutoAuth 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted March 29, 2017 Share Posted March 29, 2017 and here is the documentation URL for anyone need it: http://docs.whmcs.com/AutoAuth Thats not the right documentation sentq. AutoAuth and the API use two different keys https://developers.whmcs.com/api/access-control/ is the one for the API 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted March 31, 2017 Share Posted March 31, 2017 here's a little fun function that will help you get the actual key, in case you don't want to have to create the key manually. Save as php file, anywhere is fine <?php function getRandomString($length = 15) { $symb = $_GET['symb']; if (isset($symb)) { $validCharacters = "abcdefghijklmnopqrstuxyvwzABCDEFGHIJKLMNOPQRSTUXYVWZ+-*#&@!?"; } if (!isset($symb)) { $validCharacters = "abcdefghijklmnopqrstuxyvwzABCDEFGHIJKLMNOPQRSTUXYVWZ"; } $validCharNumber = strlen($validCharacters); $result = ""; for ($i = 0; $i < $length; $i++) { $index = mt_rand(0, $validCharNumber - 1); $result .= $validCharacters[$index]; } return $result; } echo getRandomString(); ?> This will exclude most special characters that cause issues , but leave a few in there. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.