This questions is regarding Hellosign API. I am creating a template where i want to owner's sign(Suppose, I am owner then my sign will append there automatically). I create it using Hellosign website but now i want to create it using hellosign API. Here i am generating dynamic template. So please give me answer. Thank you in advance.
Example (What i want)
Check this image please. I have a html-css block like below picture. I want to get default owner's signature and current date using hellosign.
Here is my code, what i have done
<!-- PHP code -->
<?php
require_once '../vendor/autoload.php';
$api_key = ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
$client_id = ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
$client = new HelloSign\Client($api_key);
$request = new HelloSign\SignatureRequest;
$request->enableTestMode();
$request->setTitle("Testing");
$request->setSubject('My First embedded signature request');
$request->setRequesterEmail('yourname@yourmail.com');
$request->addFile('yourpage.html');
$embedded_request = new HelloSign\EmbeddedSignatureRequest($request, $client_id);
$response = $client->createEmbeddedSignatureRequest($embedded_request);
$response = $client->getEmbeddedSignUrl($signature_id);
$sign_url = $response->getSignUrl();
?>
<!-- Script code -->
<script type="text/javascript" src="//s3.amazonaws.com/cdn.hellofax.com/js/embedded.js"></script>
<script type="text/javascript">
HelloSign.init('zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz');
var claim_url = "<?PHP echo $claim_url;?>";
// alert(claim_url);
HelloSign.open({
url: claim_url,
allowCancel: false,
skipDomainVerification: true,
height: 640,
width: 1368,
requester: "your-name@your-mail.com",
container: document.getElementById('wmtest'),
messageListener: function(eventData) {
alert("HelloSign event received");
}
});
</script>