のために複数の受信者に電子メールで送信することDocuSignのエンベロープが必要最終的にはそのメールの形式で指定された受信者によって署名される必要があります。現在、アプリを使用しているユーザーを除いて、このユーザーはすぐにそれに署名されます。タイトルで述べたように、私はそのDocuSignのエンベロープを構築するために、フォーム(POST)からの情報を取るWebアプリケーションを開発するためにPHPでDocuSignのREST APIを使用しています署名
ビル要求:
$data = array (
'emailSubject' => 'DocuSign REST API Quickstart Sample',
'emailBlurb' => 'Shows how to create and send an envelope from a 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',
);
署名ビュー:
$data = array(
"returnUrl" => "http://www.docusign.com/devcenter",
"authenticationMethod" => "None",
"userName" => $recipientName1,
'clientUserId' => '1234',
"email" => $recipientEmail1
);
あなたは私が私の要求配列に2人の署名者を持っていることに気づくが、私の見解ではありません2でしたか?ビューに署名者を追加するにはどうすればよいですか? – pascalallen
例がありますか?助けていただきありがとうございます。 – pascalallen