It adds a token... that is an entry is made, and a unique token is generated. BUT the firstname, lastname and email are not added. I get the following return:
The second I pressed submit on the post above I realized my issue.
Because we can add multiple participants. I need to go one deeper in the array.
Code:
$pData=array();$pData[]=array('firstname'=>"testFirst",'lastname'=>'testLasy',"email"=>"fake@gmail.com");// and now I can add multiple. $addParticipant=$myJSONRPCClient-add_participants($sessionKey,$survey_id,$pData);