descom Posted January 24, 2020 Share Posted January 24, 2020 Hello, I try this code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://******/api/includes/api.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( [ 'action' => 'GetClients', // See https://developers.whmcs.com/api/authentication 'identifier' => '*****', 'secret' => '*****', 'search' => 'domain', 'responsetype' => 'json', ] ) ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); var_dump($response); But i get this error: {"result":"error","message":"An admin user is required"} My Ip is listed in Api Alloweds Ips and I have whmcs v7.9.1 Whats is the problem? Thanks, Cesar 0 Quote Link to comment Share on other sites More sharing options...
descom Posted January 28, 2020 Author Share Posted January 28, 2020 replaceĀ https://******/api/includes/api.php for this https://******/api.php š¤ 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.