Virda Agustina Posted April 15, 2021 Share Posted April 15, 2021 when i try to use API GetClients , I get an error "Array ( [result] => error [message] => Invalid administrative identifier ) " . my code : $params = array( 'action' => 'GetClients', 'identifier' => USERNAME, 'secret' => PASSWORD, 'search' => $email, 'limitnum'=> 1, 'responsetype' => 'json', ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, URL_API); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params) ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); $dataClient=json_decode($response,true); print_r($dataClient); 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.