[LSRC] PHP calling list_participants with extended attributes

More
3 years 3 months ago - 3 years 3 months ago #106482 by lordzoster
lordzoster created the topic: [LSRC] PHP calling list_participants with extended attributes
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: 3 years 3 months ago by lordzoster.

Please Log in to join the conversation.

More
3 years 2 months ago #106846 by lordzoster
lordzoster replied the topic: [LSRC] PHP calling list_participants with extended attributes
really noone has idea?

Please Log in to join the conversation.

More
3 years 2 months ago #106879 by DenisChenu
DenisChenu replied the topic: [LSRC] PHP calling list_participants with extended attributes
Don't see $aAttributes in the code
github.com/LimeSurvey/LimeSurvey/blob/ma...rol_handle.php#L1797

Outdated doc ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: lordzoster

Please Log in to join the conversation.

More
3 years 2 months ago #106937 by lordzoster
lordzoster replied the topic: [LSRC] PHP calling list_participants with extended attributes
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 following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now