Douglas Ruiz Posted August 26, 2019 Share Posted August 26, 2019 (edited) Hello, i have the WHMCS Licensing Addon, and i need revoke some licenses on a hook. I'm calling at DailyCronJob hook so i tried: $command = 'custom'; $postData = array( 'serviceid' => '1', 'func_name' => 'revoke', ); $adminUsername = 'Admin name'; $results = localAPI($command, $postData, $adminUsername); But it always return False, somebody know how do it? The JS code from Revoke Button on Admin area call "runModuleCommand('custom','revoke')" Edited August 26, 2019 by Douglas Ruiz 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.