Welcome, Guest
Username: Password: Remember me

TOPIC: [LSRC] PHP calling list_participants with extended attributes

[LSRC] PHP calling list_participants with extended attributes 4 months 1 week ago #106482

  • lordzoster
  • lordzoster's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 2
  • Karma: 0
Hallo
I'd need some hint about retrieve the list of participants using LSRC from PHP.

I'm able to retrieve the standard list:
$participants = $myJSONRPCClient->list_participants ( $sessionKey, $survey_id);

But I'm getting error in retrieving extended attributes:
$participants_extParams = array("completed", "usesleft", "sent", "remindersent", "remindercount");
$participants = $myJSONRPCClient->list_participants ( $sessionKey, $survey_id, 0, 1000, true, $participants_extParams);

How is the aAttributes array expected to be?
thanks in advance
Last Edit: 4 months 1 week ago by lordzoster.
The administrator has disabled public write access.

[LSRC] PHP calling list_participants with extended attributes 4 months 3 days ago #106846

  • lordzoster
  • lordzoster's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 2
  • Karma: 0
really noone has idea?
The administrator has disabled public write access.

[LSRC] PHP calling list_participants with extended attributes 4 months 3 days ago #106879

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6236
  • Thank you received: 794
  • Karma: 238
Don't see $aAttributes in the code
github.com/LimeSurvey/LimeSurvey/blob/ma...rol_handle.php#L1797

Outdated doc ?
The administrator has disabled public write access.
The following user(s) said Thank You: lordzoster

[LSRC] PHP calling list_participants with extended attributes 4 months 16 hours ago #106937

  • lordzoster
  • lordzoster's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 2
  • Karma: 0
Thanksalot Denis for the reply and for showing me where the API methods are defined.
And, yes, the doc is quite outdated - I noticed that even in other sections, more end-user-oriented.
And the doc should have the TOC always reachable: when you are in a page you don't have idea how where that page is.
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu
Moderators: ITEd
Time to create page: 0.192 seconds
Donation Image