3

I have Researched Too much before i asked here , i know adobe has a fantastic api , but it could't help me in this . I am trying to make a php application whic will :

1.Fill Pdf Form with data i already have from a form in my website

2.Send it to echosign to be signed by user ( I have His email )

3.Get Status of the document (Send , Recived, Read)

I know it done With CURL , and the thing that i was able to do is to get all documents send with my account By

$ch = curl_init("https://api.na1.echosign.com:443/api/rest/v5/agreements");

$accesstoken = 'XXXXXXXXXX';

curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  'Access-Token:'.$accesstoken
));

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);  

$output = curl_exec($ch);

curl_close($ch);

$decoded = json_decode($output);

var_dump($decoded);

It Will Output The Agreements that i sent . Thanks In Advance !

4

1 回答 1

4

我认为您要问的是一种通过 Adob​​e Sign 与一些表单域创建协议的方法,将其发送给用户进行签名,然后获取其状态。为此,您必须进行以下 API 调用 -

  • 通过POST /agreeements API创建一个协议,在这里您可以提供表单字段的位置和那里的值,如果它们是事先已知的,您还可以在需要时指定 callbackInfo 以便您的系统在对协议进行任何操作时收到警报。成功执行此 API 调用后,Adobe Sign 将使用指定的表单文件创建协议,并将其发送给收件人信息中指定的发件人进行签名。作为此调用的响应,您将获得一个协议 ID,稍后可以使用它来获取特定于该协议的更多详细信息。
  • 要获取已创建协议的状态,请使用GET /agreement/{agreementId} API 调用,其中的 agreementId 是作为 POST /agreement API 调用的响应接收的。

希望这能解决您的问题。

于 2016-04-20T10:43:54.177 回答