Ive followed the documentation but still no joy. I've created the API Token with the proper permissions, but either get one or the other error:
Falha ao criar o usuário Fatima (fatima).
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
curl: (3) URL rejected: Bad hostname
Hello,
Ive followed the documentation but still no joy. I've created the API Token with the proper permissions, but either get one or the other error:
Even like this:
<?php $api_url = 'https://xxxxxxxx/api/users'; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $api_url, CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Token: xxxxxxxx' ), )); $response = curl_exec($curl); curl_close($curl);
Still no luck it says the resource was moved.
All help is appreciated.
Regards