我有一个docuSign dev沙箱。我能够正确登录并发送信封没有任何问题。但是现在,我正在尝试使用此类中的方法setSenderName,setSenderEmail和setCompanyName:
class FolderItemV2 implements ArrayAccess
{
static $swaggerTypes = array(
'owner_name' => 'string',
'envelope_id' => 'string',
'envelope_uri' => 'string',
'status' => 'string',
'last_modified_date_time' => 'string',
'sender_user_id' => 'string',
'sender_name' => 'string',
'sender_email' => 'string',
'sender_company' => 'string',
'created_date_time' => 'string',
'sent_date_time' => 'string',
'completed_date_time' => 'string',
'subject' => 'string',
'expire_date_time' => 'string',
'folder_id' => 'string',
'folder_uri' => 'string',
'recipients' => '\DocuSign\eSign\Model\Recipients',
'recipients_uri' => 'string',
'is21_cfr_part11' => 'string',
'is_universal_signature_envelope' => 'string'
);
已在FolderItemV2.php(https://github.com/docusign/DocuSign-PHP-Client)
上定义了方法我的代码非常像这样:
$envelopeApi = new DocuSign\eSign\Api\EnvelopesApi($apiClient);
$envelop_definition = new DocuSign\eSign\Model\EnvelopeDefinition();
$envelop_definition->setEmailSubject("[Test]");
$envelop_definition->setStatus("sent");
$envelop_definition->setRecipients($recipients);
$envelop_definition->setDocuments(array($document, $document2, $document3));
$envelop_definition->setEmailSettings($emailSettings);
现在,我尝试了这个,但我无法弄清楚如何将文件夹放入信封中,无论如何,当我添加这些行时,它不会发送信封或显示任何内容到$ folder var:
$folder = new DocuSign\eSign\Model\FolderItemV2();
$folder->setFolderId('1');
$folder->setSenderName('NameABC');
$folder->setSenderEmail('acbc@abc.com');
$folder->setSenderCompany('ComapnayABC');
Debugmode已启用,它显示以下消息:
< *X-DocuSign-SDK: PHP Accept: application/json Content-Type: application/json
< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Content-Length: 692
< Content-Type: application/json; charset=utf-8
< Date: Thu, 19 May 2016 04:29:33 GMT
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< * Connection #3 to host demo.docusign.net left intact*
我已经阅读了所有文档,如果有人已经完成了这一点,我真的很感激提示。提前谢谢!
答案 0 :(得分:0)
类FolderItemV2
与EnvelopesApi :: CreateEnvelope无关。这是从方法/v2/accounts/{accountId}/search_folders/{searchFolderId}
如果要设置发件人姓名,请: