Skip to content

Instantly share code, notes, and snippets.

View radhack's full-sized avatar

Alex Griffen radhack

View GitHub Profile
@radhack
radhack / Error Text Tag
Created December 7, 2017 04:19
HelloSign signature_request_invalid error due to the text tags
{
"event":{
"event_type":"signature_request_invalid",
"event_time":"1512619951",
"event_hash":"3f4aa4a2cd374fe47a758cff1fd9ff6578fa5ad8e273a174d8d034cb094a85c4",
"event_metadata":{
"related_signature_id":null,
"reported_for_account_id":"bc1225d28a648231a589100c07c9f17c82d80411",
"reported_for_app_id":null
}
@radhack
radhack / Overlay Error
Created December 6, 2017 23:50
HelloSign file_error error due to the overlay - this applies to all signature request types except the appended signatures page
{
"event":{
"event_type":"file_error",
"event_time":"1512604001",
"event_hash":"3ab427feca126d46e77836507fbb4a3811c710a1271333339f2e02b2adcfcd91",
"event_metadata":{
"related_signature_id":null,
"reported_for_account_id":"bc1555e28a648231a589117cb739f17c82d80411",
"reported_for_app_id":null
}
@radhack
radhack / Component Position error
Last active December 7, 2017 16:00
HelloSign signature_request_invalid error due to component position - this applies to form_fields_per_document
{
"event":{
"event_type":"signature_request_invalid",
"event_time":"1512578011",
"event_hash":"94e51fcedf91449d720e5a44d9aeeeee1d51158daa9d7276cfb274c16377bf59",
"event_metadata":{
"related_signature_id":null,
"reported_for_account_id":"bc1225d28a6aabc1a589117cb739f17c82d80411",
"reported_for_app_id":"d7219512693825facee9241f458decf2"
}
@radhack
radhack / HelloSign Callback signature_request_invalid - form_fields_per_document
Last active November 30, 2017 21:45
Raw signature_request_invalid HelloSign Callback due to improper placement of form_fields_per_document
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
@radhack
radhack / HelloSign Callback siganture_request_sent
Last active November 30, 2017 20:21
Raw signature_request_sent callback event
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
@radhack
radhack / HelloFax Fax Sent
Last active November 30, 2017 20:00
Raw and Complete HelloFax API Fax Sent Callback
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"
@radhack
radhack / HelloSign Callback signature_request_declined
Last active November 30, 2017 20:21
Raw signature_request_declined callback event
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
@radhack
radhack / HelloSign Callback signature_request_all_signed
Last active August 19, 2019 16:54
Raw signature_request_all_signed callback event
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
@radhack
radhack / gist:d18f32c95b27605ea3e61724536610cc
Created July 20, 2017 19:33
SESSION['signature_id'] Try Catch
<?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) {
@radhack
radhack / HelloSign Callback callback_test
Last active November 30, 2017 20:22
Raw callback_test callback event
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