Hello,
I'm trying to use the JSON RPC API and I've tested the following curl commands for now.
We have LimeSurvey Version 3.16.1+190314 installed.
Code:
curl --data-binary '{"jsonrpc":"2.0","method":"get_session_key","params":["adminuser","password"],"id":1}' -H 'content-type: application/json' https://our.limesurvey/index.php/admin/remotecontrol
curl --data-binary '{"jsonrpc":"2.0","method":"get_session_key","params":{"username":"adminuser","password":"password"},"id":"1"}' -H 'content-type: application/json' https://our.limesurvey/index.php/admin/remotecontrol
Both return:
Code:
{
"error": null,
"id": 1,
"result": {
"status": "Invalid user name or password"
}
}
though I can log into the portal with the adminuser and password.
Is there anything I'm missing?
What is "id":1 (should it be 1? something else?)
Thanks in advance for your reply,
Best,
alex