Hello guys,
I am writing a webservice for my plugin. I am able to retrieve the data I want, but unable to define the correct return description it needs. My output looks like this:
Array
(
[users_courses] => Array
(
[0] => Array
(
[id] => 33
[category] => 1
[sortorder] => 10004
[shortname] => asd
[fullname] => asd
[idnumber] =>
[startdate] => 1484309612
[visible] => 1
[defaultgroupingid] => 0
[groupmode] => 0
[groupmodeforce] => 0
[ctxid] => 687
[ctxpath] => /1/3/687
[ctxdepth] => 3
[ctxlevel] => 50
[ctxinstance] => 33
)
[1] => Array
(
[id] => 3
.....
)
[2] => Array
(
[id] => 32
......
)
)
[user_information] => Array
(
[id] => 3
[auth] => manual
[confirmed] => 1
[policyagreed] => 0
[deleted] => 0
[suspended] => 0
[mnethostid] => 1
[username] => username1
[password] => XXX
[idnumber] =>
[firstname] => First Name 1
[lastname] => Surname 1
[email] => dummy@gmx.se
[emailstop] => 0
.......
)
)
I am unable to create the appropiate "get_user_information_returns"-function and am confused as to when you have to use "external_multiple_structure", "external_single_structure" and arrays.
I have tried many compositions. Most yield a "invalid response value detected"-exception. Some of them came through, but wierdly had no data attached.
Appreciate every help!