Advertisement
Guest User

Untitled

a guest
May 24th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. //Get Session parameters
  2. $myJSONRPCClient = new JsonRPCClient( LS_BASEURL );
  3. $sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );
  4.  
  5. $aParticipantData = array(
  6. 'user'=>array('firstname'=>'Christopher',
  7. 'lastname'=>'hitchens',
  8. 'email'=>'christopher@example.com',
  9. 'language'=>'en',
  10. 'emailstatus'=>'ok'),
  11. );
  12.  
  13. $added_user = $myJSONRPCClient->add_participants($sessionKey, $survey_id, $aParticipantData, 1);
  14. $myJSONRPCClient->release_session_key($sessionKey );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement