View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] API POST Issues - Page 2 - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

[SOLVED] API POST Issues

More
08 Fév 2019 15:45 #7 by babynus
Replied by babynus on topic API POST Issues
Look at exemples.
Data miust be passed in json format, encrypted with API key

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
08 Fév 2019 15:51 #8 by CarlC
Replied by CarlC on topic API POST Issues
I read the examples and old user manual but those are all for using the API with PHP code which i don't know so i need to do it another way.
I can successfully use cURL and Invoke-WebRequest (powershell) to GET and POST to other API's but i don't understand why the same methods won't work with Projeqtor.

You mention the data has to be encrypted with the API key but i can't find any documentation or examples which show how to do this - except your PHP example.
If there are other examples i have missed please let me know and i'll have a read through them.

Please Connexion or Create an account to join the conversation.

More
08 Fév 2019 16:08 #9 by CarlC
Replied by CarlC on topic API POST Issues
Figured this out and now have a workable command-line version of cURL which is successfully doing both GET and POST.

I think the problem was a combination of:
1) the wrong key length (i've changed it to 256 instead of 128)
2) JSON data wasn't encrypted quite right (don't know how but i pulled it apart, re-encrypted it and now it works)
3) Wrong credentials used for writing (even though the same username/password worked fine for reading)

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.033 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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