View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Is that api for projeqtor exists? - Page 2 - ProjeQtOr
 
 

Is that api for projeqtor exists?

More
11 Feb 2016 21:42 #7 by babynus
just look at response (bottom of second pri t screen)
error is explicit : data is not encrypted

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
11 Feb 2016 21:57 #8 by fran_collombon
I'm sorry but i don't understand? Is it possible that you explain me in more details? Thanks a lot! :dry: :dry: :dry:

Please Log in or Create an account to join the conversation.

More
11 Feb 2016 22:16 #9 by babynus
in the examples in pdf manual, you must replace the string with correct API key when encrypting $data

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
11 Feb 2016 22:28 #10 by fran_collombon
I'm sorry but I really don't understand without a concrete example, I don't understand the example... :( :( :(

Please Log in or Create an account to join the conversation.

More
12 Feb 2016 08:36 #11 by babynus
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);

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
12 Feb 2016 09:18 #12 by fran_collombon
How can I test this with Postman? I don't understand your PHP code...
Thanks a lot

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.051 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.