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.
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)
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
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.