$actionMap = array(
"field_data" => ['
"field_text_data": {},
"field_boolean_data": {},
"field_date_data": {},'
],
);
$eachActionMap1 = array(
"recipient_name" => $nom,
"recipient_email" => $mail,
"action_type" => "SIGN",
"action_id" =>"16183000000061014",
"role" => "Stagiaire",
"verify_recipient" => "false",
"signing_order" => 1,
);
/*$eachActionMap2 = array( "recipient_name" => "Adhara France",
"recipient_email" => "adhare@adhara.fr",
"action_type" => "SIGN",
"action_id" =>"32076000000014006",
"role" => "Centre de Formation",
"verify_recipient" => "false",
var_dump($eachActionMap1);
$fieldList = Array();
$fieldList = $eachActionMap1;
//$fieldList[1] = $eachActionMap2;
var_dump($fieldList);
$actionMap = ["actions" => $fieldList];
$submitMap = array(
"templates" => $actionMap,
);
$parameters = array(
"is_quicksend" => "true",
"data" => $submitMap,
);
var_dump($parameters);
$response = zoho.sign.createUsingTemplate(16183000000061001, $parameters);
return $response;