Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

about list_participants (by a nob api user)

  • fdewas
  • fdewas's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #110982 by fdewas
I try to use list_participants api (called on phpfox). Here is the code:

// $surveys = $myJSONRPCClient->list_surveys( $sessionKey );
// foreach($surveys as $survey) {
// echo $survey.'<br/>';
// $participants = $myJSONRPCClient->list_participants( $sessionKey, $survey, 0, 10, true, false );
// foreach($participants as $participant) {
// echo $participant.'<br/>';
// }
// }

i can list surveys by sid
i can print result of $participants with "print_r($participants , null );"
but "echo $participant.'<br/>';" give me no result (blank lines).

What's wrong ??
Please give me a step by step :)
thanks
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose