system
February 26, 2018, 1:51pm
1
Migrated from Redmine #119 | Author: Rohail Najam
Status: Closed | Priority: High, I’m very impatient | Created: 2018-02-26
Hello I am using getEventList API and in params i have set “asArray” to true still my response result is a json object instead of array. Tell me if i am doing anything wrong.
system
February 26, 2018, 1:53pm
2
Rohail Najam wrote:
I have added my Image please look
system
February 26, 2018, 1:56pm
3
Rohail Najam wrote:
I am unable to add the image.
system
February 26, 2018, 2:05pm
5
system
February 26, 2018, 2:21pm
6
Rohail Najam wrote:
No you didn’t understand the problem i know the response will be in json but the “result” will be an array.
Look at this. This is the default behavior response.
https://ibb.co/eKGeCc
And i want the following behavior
https://ibb.co/cQqNXc
Please see the attached links. I need to have array like response like the one in the second picture.
system
February 26, 2018, 2:37pm
7
Redmine Admin wrote:
Please check your function params. It should be like in our API explorer. Not named params like you did
system
February 26, 2018, 2:40pm
8
Rohail Najam wrote:
It still didn’t work. look
https://ibb.co/kbqjdH
system
February 26, 2018, 2:42pm
9
Redmine Admin wrote:
Please use js JSON-RPC lib mentioned in API explorer and do calls exactly like in our example.
system
February 26, 2018, 2:47pm
10
Rohail Najam wrote:
It should work without a library. Please ask someone technical to look into this matter. Its simple request using postman.