helpdesk-z / helpdeskz-dev

HelpDeskZ is a free PHP based software which allows you to manage your site's support with a web-based support ticket system.
http://www.helpdeskz.com/
GNU General Public License v2.0
83 stars 64 forks source link

API Creat User #74

Open apocsantos opened 1 month ago

apocsantos commented 1 month ago

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:

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

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