最后,我能够使用PHP SDK来实现这一目标。 如果你们有兴趣知道这是怎么做的。

// set recipient information

$recipientName = "";

$recipientEmail = "";

// configure the document we want signed

$documentFileName = "/../document.html";

$documentName = "document.html";

// instantiate a new envelopeApi object

$envelopeApi = new DocuSign\eSign\Api\EnvelopesApi($this->getApiClient());

// Add a document to the envelope

$document = new DocuSign\eSign\Model\Document();

$document->setDocumentBase64(base64_encode(file_get_contents(__DIR__ . $documentFileName)));

$document->setName($documentName);

$document->setFileExtension('html');

$document->setDocumentId("2");

// Create a |SignHere| tab somewhere on the document for the recipient to sign

$signHere = new \DocuSign\eSign\Model\SignHere();

$signHere->setXPosition("100");

$signHere->setYPosition("100");

$signHere->setDocumentId("2");

$signHere->setPageNumber("1");

$signHere->setRecipientId("1");

// add the signature tab to the envelope's list of tabs

$tabs = new DocuSign\eSign\Model\Tabs();

$tabs->setSignHereTabs(array($signHere));

// add a signer to the envelope

$signer = new \DocuSign\eSign\Model\Signer();

$signer->setEmail($recipientEmail);

$signer->setName($recipientName);

$signer->setRecipientId("1");

$signer->setTabs($tabs);

$signer->setClientUserId("1234"); // must set this to embed the recipient!

// Add a recipient to sign the document

$recipients = new DocuSign\eSign\Model\Recipients();

$recipients->setSigners(array($signer));

$envelop_definition = new DocuSign\eSign\Model\EnvelopeDefinition();

$envelop_definition->setEmailSubject("[DocuSign PHP SDK] - Please sign this doc");

// set envelope status to "sent" to immediately send the signature request

$envelop_definition->setStatus("sent");

$envelop_definition->setRecipients($recipients);

$envelop_definition->setDocuments(array($document));

// create and send the envelope! (aka signature request)

$envelop_summary = $envelopeApi->createEnvelope($accountId, $envelop_definition, null);

echo "$envelop_summary\n";

在我深入研究他们的文档之后。 这是来源 。

rest 怎么发送html,docusignapi - 是否可以使用REST API中的HTML创建Docusign模板? - 堆栈内存溢出...相关推荐

  1. c 传图片数据给matlab,c++ - 如何通过UDP将数据从C ++应用程序发送到Matlab并进行绘制 - 堆栈内存溢出...

    我想使用Winsock通过UDP将数据从我的C ++应用程序发送到Matlab,并实时绘制数字. 例如:我得到了从1到10的数字,我想从C ++发送1,在Matlab中接收它,将其放在图形上(图,条等 ...

  2. idoc java_java - 将iDOC从Java发送到SAP - 堆栈内存溢出

    我们有从系统生成的iDOC文件. 现在,我们尝试通过RFC连接将它们发送到SAP. 我已经作为客户端建立了RFC连接,但无法发送iDOC! 我试图创建一个样本iDOC进行测试,但是它不起作用! Exc ...

  3. android和flask交互,java - 当我从Android向Flask Web服务发送参数时,如何解决“ SSL库故障”? - 堆栈内存溢出...

    我确实尝试将一些值作为" application / json "从Android应用程序发送到Flask Web服务. 这是我的Java代码 : Thread thread = ...

  4. java url 双引号_java - Java在POST请求中发送带有转义双引号的JSON字符串[duplicate] - 堆栈内存溢出...

    我正在创建一个JSONObject并将JSON字符串发送到POST请求正文中的服务器. public String toJson() { JSONObject filter = new JSONObj ...

  5. android消息发送字符串,android - 从Android客户端通过HTTP在HL7消息中发送base64字符串时遇到错误 - 堆栈内存溢出...

    我正在android客户端(API 17)中使用HL7消息,并使用Hapi库生成和解析HL7消息.当我传输小的字符串值时,该消息工作正常. 但是我必须通过Http将图像发送到HL7服务器,为此,我正在 ...

  6. qt客户端显示服务器发送的图片,c++ - Qt客户端服务器应用程序“发送图像”出现问题 - 堆栈内存溢出...

    我正在尝试通过QDataStream从客户端向服务器发送图像( OpenCV Mat ). 第一项是int,即缓冲区的大小. 它可以处理10到15张图片,然后服务器读取第一个int随机数(通常〜2 ^ ...

  7. linux 进程 内存 换入换出,linux - 在从bash进程替换完成输入后,如何继续发送到stdin? - 堆栈内存溢出...

    这听起来像是期待的工作. 特定 #include int main() { char *cp = NULL; size_t n = 0; while(getline(&cp, &n, ...

  8. ajax获取nodejs的值,jquery - NodeJS如何获取服务器中的数据,通过POST从jquery ajax调用发送 - 堆栈内存溢出...

    我的客户正在进行ajax调用 {{ function callNode(){ console.log("I am called"); var data = {"email ...

  9. android 广播失败,android - 发送广播Intent SIM_STATE_CHANGED失败 - 堆栈内存溢出

    我需要检查Sim卡的状态,并根据其状态执行一些操作. 根据我对BroadcastReceiver的了解,当Sim状态更改时,将执行broadcastReceiver的onReceive方法. 这是Br ...

最新文章

  1. excel转kml工具_CAD+Excel还能这样玩?你用对了嘛!
  2. wxWidgets:wxAny类用法
  3. Python 两个list获取交集,并集,差集的方法(合并、交叉)
  4. [u]intN_t - uint8_t, uint16_t, uint32_t, uint64_t
  5. bzoj20892090: [Poi2010]Monotonicity
  6. log4j deadlock
  7. 华为CE6870固件升级 更新补丁操作
  8. java数组的实例化
  9. 怎么关闭Deep Freeze (冰点还原精灵单机版)
  10. 文学写作素材网站分享
  11. 塔城地区谷歌高清卫星地图下载
  12. EasyExcel 读.CSV 文件数据为null或乱码问题
  13. c语言switch有什么作用,c语言switch语句如何使用
  14. 海康java版本SDK中jna.jar的说明
  15. Django - Celery使用及介绍
  16. 【超图】SuperMap iClient3D 11i for WebGL新产品食用指南(一)
  17. Ubuntu18.04安装ax200网卡驱动以及更新内核
  18. 顺序问题,母版页和内容页
  19. 语义分割是如何做到颜色分明的
  20. 41个搜索引擎免费登陆入口大全

热门文章

  1. 聚类效果评价——Silhouette Coefficient(轮廓系数)——内部评估标准(1)
  2. Python使用pyechart绘制3d散点图
  3. MySQL对字符集_对MySQL字符集的认识
  4. centos查看是否安装了某个软件
  5. Shell-删除误解压的文件
  6. 20个JS 小技巧超级实用
  7. Vjudge 2016-5-10 math test
  8. Deep Learning 10_深度学习UFLDL教程:Convolution and Pooling_exercise(斯坦福大学深度学习教程)...
  9. 转帖Masonry介绍与使用实践(快速上手Autolayout)
  10. WPF MVVM模式