Thank a lot.
ProjeQtOr have an API (REST web service).
The detail is not available in the new user guide.
So they are available in the old user guide.
In an attachment, I sent to you the chapter about the API.
The old user guide is always available in /projector/manual/ProjeQtOr.ppt
Ok thank but this is the only documentation exist? I try to make POST but I don't understand how to make that?
I don't understand how format my json for a POST...
Exactly the same format that you receive wth a GET!
just look at response (bottom of second pri t screen)
error is explicit : data is not encrypted
I'm sorry but i don't understand? Is it possible that you explain me in more details? Thanks a lot! :dry: :dry: :dry:
in the examples in pdf manual, you must replace the string with correct API key when encrypting $data
I'm sorry but I really don't understand without a concrete example, I don't understand the example... 🙁 🙁 🙁
Retreive the API key in user screen corresponding to user used to connect to API.
$apiKey='enter here the API key';
$fullUrl="http://myserver/api/Ticket";
$data='{"id":"1", "name":"name to be changed for Ticket 1"}';
$data=AesCtr::encrypt($data, $apiKey, 256);
$curl = curl_init($fullUrl);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, "projeqtor:projeqtor");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, array('data'=>$data));
$curl_response = curl_exec($curl);
echo $curl_response;
curl_close($curl);
How can I test this with Postman? I don't understand your PHP code...
Thanks a lot
Somebody can help me? 🙁
im having same problem with the post i hope you can give me hund to solve this 🙂


