as stated in title, using docusign rest api in php develop web app take information form(post) build docusign envelope need signed recipients emails specified in form. except user using app currently, user signing right away.
building request:
$data = array ( 'emailsubject' => 'docusign rest api quickstart sample', 'emailblurb' => 'shows how create , send envelope document.', 'recipients' => array ( 'signers' => array ( 0 => array ( 'email' => $recipientemail1, 'name' => $recipientname1, 'clientuserid' => '1234', 'recipientid' => '1', 'routingorder' => '1', 'tabs' => array ( 'signheretabs' => array ( 0 => array ( 'xposition' => '100', 'yposition' => '600', 'documentid' => '1', 'pagenumber' => '1', 'value' => $recipientname1 ) ), 'datesignedtabs' => array ( 0 => array ( 'xposition' => '250', 'yposition' => '600', 'documentid' => '1', 'pagenumber' => '1' ) ), "texttabs" => array( 0 => array( 'xposition' => '200', 'yposition' => '300', 'documentid' => '1', 'pagenumber' => '1', "tablabel"=> "animal", "value" => $animal ), 1 => array( 'xposition' => '200', 'yposition' => '400', 'documentid' => '1', 'pagenumber' => '1', "tablabel"=> "color", "value" => $color ), 2 => array( 'xposition' => '200', 'yposition' => '500', 'documentid' => '1', 'pagenumber' => '1', "tablabel"=> "number", "value" => $number ) ) ) ), 1 => array ( 'email' => $recipientemail2, 'name' => $recipientname2, 'clientuserid' => '2345', 'recipientid' => '2', 'routingorder' => '2', 'tabs' => array ( 'signheretabs' => array ( 0 => array ( 'xposition' => '200', 'yposition' => '600', 'documentid' => '1', 'pagenumber' => '1', 'value' => $recipientname2 ) ), 'datesignedtabs' => array ( 0 => array ( 'xposition' => '250', 'yposition' => '600', 'documentid' => '1', 'pagenumber' => '1' ) ), "texttabs" => array( 0 => array( 'xposition' => '200', 'yposition' => '300', 'documentid' => '1', 'pagenumber' => '1', "tablabel"=> "animal", "value" => $animal ), 1 => array( 'xposition' => '200', 'yposition' => '400', 'documentid' => '1', 'pagenumber' => '1', "tablabel"=> "color", "value" => $color ), 2 => array( 'xposition' => '200', 'yposition' => '500', 'documentid' => '1', 'pagenumber' => '1', "tablabel"=> "number", "value" => $number ) ) ) ) ) ),'documents' => array ( 0 => array ( 'documentid' => '1', 'name' => 'test.pdf', 'documentbase64' => base64_encode(file_get_contents($documentname)), ) ),'status' => 'sent', );
signing view:
$data = array( "returnurl" => "http://www.docusign.com/devcenter", "authenticationmethod" => "none", "username" => $recipientname1, 'clientuserid' => '1234', "email" => $recipientemail1 );
if specifying clientuserid recipient creating envelope using embedded signing. if want docusign generate email recipients in order notify them start signing experience, should explore remote signing. if remove clientuserid parameter each signer remote signing experience.
Comments
Post a Comment