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

[SOLVED] API POST Issues

More
08 Feb 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 Log in or Create an account to join the conversation.

More
08 Feb 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 Log in or Create an account to join the conversation.

More
08 Feb 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 Log in or Create an account to join the conversation.

More
28 Feb 2025 16:16 #10 by CAIE_guens
Replied by CAIE_guens on topic API POST Issues
HI
with a length of 128, I have the same error message.
If you'll have a full doc, i think I missed somthig.
thanks.
Guenole

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

Moderators: babynusprotion
Time to create page: 0.087 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.