如何与docusign和php集成


how to integrate with docusign and php

我对此非常陌生,尝试将docusign与php集成,我使用以下代码

$integratorKey = 'XXXX';
$email = 'mageshkumar.it@gmail.com';
$password = 'XXXX';
$name = "mageshkumar";
// copy the templateId of an existing template here
$templateId = "C9D9D181-CE57-.....................";
// construct the authentication header:
$header = "<DocuSignCredentials><Username>" . $email . "</Username><Password>" . $password . "</Password><IntegratorKey>" . $integratorKey . "</IntegratorKey></DocuSignCredentials>";

我只想得到收到的文件的状态更新。

这段代码肯定不完整,而且还没有进行一些基本的错误检查。显然,调用webservice不起作用,但它可能处于非常低的级别。例如,您的防火墙可能是问题所在,它与DocuSign web服务无关。我建议您访问www.docusign.com/devcenter,并尝试从您的机器中遵循基于curl的示例。然后也许可以尝试从PHP ping一个公共网站。这只是连接101。

我建议您考虑设置一个回调URL,并在自己的数据库中跟踪信封。我没有一个示例链接给你,也许@ergin或@mikebz可以发布一个。

否则,在这里看看PHP API服务示例:

https://github.com/docusign/DocuSign-eSignature-SDK/blob/master/PHP/CodeSnippets/ApiServiceSnippets.php