我无法手动和使用API密钥将生成的pdf上传到hellosign
。转换pdf时会抛出一些错误。
如果我使用AdobeDc
保存副本,则意味着我上传了。
你能帮我解决这个问题。
这是我的代码
<?php
//include_once("hellosign\library\HelloSign");
//include 'C:\xampp\htdocs\test_sign\hellosign\library\HelloSign\Client';
include_once("hellosign/library/HelloSign/Client.php");
include_once("hellosign/library/HelloSign/SignatureRequest.php");
$client = new HelloSign\Client('API KEY');
$request = new HelloSign\SignatureRequest;
$request->enableTestMode(true);
$request->setTitle('Su test by API');
$request->setSubject('Testing by using API');
$request->setMessage('Please sign this Doc,Let me know if you have any questions.');
$request->addSigner('mailid', 'Subject');
//path of file located
$path="C:/xampp/htdocs/projectfolder/filename";
$request->addFile($path);
$response = $client->sendSignatureRequest($request);
var_dump($response);
print_r($response->signature_request_id);
?>
我已经在API字段中添加了API密钥,并且我在addfile($ path)中提供了生成的文件路径;
答案 0 :(得分:0)
这是来自HelloSign API支持的Alex。请写信至apisupport@hellosign.com: