[#119] getEventList asArray invalid Response

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.

Rohail Najam wrote:

I have added my Image please look

Rohail Najam wrote:

I am unable to add the image.

Rohail Najam wrote:

https://ibb.co/jXjkJH

This is the image.

Redmine Admin wrote:

It will be always json but different list types. Please read here Company administration service methods - Company administration service methods - SimplyBook.me

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.

Redmine Admin wrote:

Please check your function params. It should be like in our API explorer. Not named params like you did

Rohail Najam wrote:

It still didn’t work. look

https://ibb.co/kbqjdH

Redmine Admin wrote:

Please use js JSON-RPC lib mentioned in API explorer and do calls exactly like in our example.

Rohail Najam wrote:

It should work without a library. Please ask someone technical to look into this matter. Its simple request using postman.