This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://api.hellosign.com/v3/signature_request/send' \ | |
-u 'my_app_key:' \ | |
-F 'title=NDA with Acme Co.' \ | |
-F 'subject=The NDA we talked about' \ | |
-F 'message=Please sign this NDA and then we can discuss more. Let me know if you have any questions.' \ | |
-F 'signers[0][email_address]=mymail@domain.com' \ | |
-F 'signers[0][name]=Jack' \ | |
-F 'signers[0][order]=0' \ | |
-F 'cc_email_addresses[0]=lawyer@example.com' \ | |
-F 'file[0]=@test.pdf' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// embedded signature request using text tags | |
// this assumes you've initilized clientid and apiKey | |
SignatureRequest request = new SignatureRequest(); | |
request.addFile(new File("/onesign_texttags.pdf")); //one signer in this case, so my PDF has tags for signer0 only | |
request.setSubject("My First embedded signature request"); | |
request.setMessage("Awesome, right?"); | |
request.addSigner("jack@example.com", "Jack"); | |
request.setTestMode(true); | |
request.setUseTextTags(true); | |
request.setHideTextTags(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
HelloSign.init("<?php echo $client_id ?>"); | |
HelloSign.open({ | |
url: "<?php echo $sign_url ?>", | |
uxVersion: 2, | |
allowCancel: true, | |
skipDomainVerification: true, | |
debug: true, | |
messageListener: function (eventData) { | |
(console.log("Got message data: " + JSON.stringify(eventData))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /callback.php HTTP/1.1 | |
Host: host.ngrok.io | |
Accept: */* | |
User-Agent: HelloSign API | |
Content-MD5: OTA1OGI4YTc1ZWQ2MjY4OWY2ZTlhZDIxNzU3NjEzZTA= | |
Expect: 100-continue | |
Content-Type: multipart/form-data; boundary=----------------------------e8ca2ab77974 | |
Content-Length: 449 | |
X-Forwarded-For: 52.200.252.64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'vendor/autoload.php'; | |
include('auth.php'); | |
if (isset($_SESSION['signature_id'])) { | |
try { | |
$client = new HelloSign\Client($api_key); | |
$embedded_response = $client->getEmbeddedSignUrl($_SESSION['signature_id']); | |
$sign_url = $embedded_response->getSignUrl(); | |
include('signerpage.php'); | |
} catch (Exception $e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /callback.php HTTP/1.1 | |
Host: hstests.ngrok.io //your domain here | |
Accept: */* | |
User-Agent: HelloSign API | |
Content-MD5: md5HashHere= | |
Expect: 100-continue | |
Content-Type: multipart/form-data; boundary=----------------------------58e538693ad6 | |
Content-Length: 1813 | |
X-Forwarded-Proto: https | |
X-Forwarded-For: 52.200.252.64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /callback.php HTTP/1.1 | |
Host: hstests.ngrok.io | |
Accept: */* | |
User-Agent: HelloSign API | |
Content-MD5: ODkzODc1YzQ4MzliNzMyNGQxMGQyMDIyNGEwNjExNjY= | |
Expect: 100-continue | |
Content-Type: multipart/form-data; boundary=----------------------------cdbbc9813ec9 | |
Content-Length: 2272 | |
X-Forwarded-Proto: https | |
X-Forwarded-For: 52.200.252.64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /callback.php?type=outbound HTTP/1.1 | |
Host: hstests.ngrok.io | |
Accept: */* | |
Expect: 100-continue | |
Content-Type: multipart/form-data; boundary=----------------------------e2bdba1d3cf0 | |
Content-Length: 520 | |
X-Forwarded-For: 52.200.252.64 | |
------------------------------e2bdba1d3cf0 | |
Content-Disposition: form-data; name="json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /callback.php HTTP/1.1 | |
Host: hstests.ngrok.io | |
Accept: */* | |
User-Agent: HelloSign API | |
Content-MD5: NTgwMWU1NzFiNTc2NWFlMzE4ODYyNTkwZDUyNzlmZjY= | |
Expect: 100-continue | |
Content-Type: multipart/form-data; boundary=----------------------------026b03bdcde8 | |
Content-Length: 1630 | |
X-Forwarded-Proto: https | |
X-Forwarded-For: 52.200.252.64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /callback.php HTTP/1.1 | |
Host: hstests.ngrok.io | |
Accept: */* | |
User-Agent: HelloSign API | |
Content-MD5: MmEyYTc3MTlhMjVlZjY3ODNjYzk5MThhNDM5OWQ3MGE= | |
Expect: 100-continue | |
Content-Type: multipart/form-data; boundary=----------------------------278a0352fbd2 | |
Content-Length: 2465 | |
X-Forwarded-Proto: https | |
X-Forwarded-For: 52.200.252.64 |
OlderNewer