This operation retrieves an individual signature image and document data associated with the file name returned by siglist.
HTTP POST
To request a signature/document, make an HTTP POST to the API:
https://www.infinitysignature.com/api/v1/
Parameter | Req. | Value | Description |
---|---|---|---|
key | yes | api key | Supply the API key for your Infinity Cloud account. |
format | no | “json” | “xml” | Specify the requested format of return data. Defaults to json. |
task | yes | “getsig” | The task determines the type of request being made to the API. |
filename | yes | string | The file name returned from siglist, eg. EselsEf300pluNm.png |
Example
Retrieve the signature and document data via a PHP cURL request for OjGN4Bhb0uXJFFWbN61F.png.
Request:
$params = array( 'key' => 'aAbBcCdDeE1234567890', 'format' => 'json', 'task' => 'getsig', 'filename' => 'OjGN4Bhb0uXJFFWbN61F.png' ); $settings = array( CURLOPT_URL => 'https://www.infinitysignature.com/api/v1/', CURLOPT_POST => true, CURLOPT_POSTFIELDS => $params, CURLOPT_RETURNTRANSFER => true ); $ch = curl_init(); curl_setopt_array($ch, $settings); $sig = json_decode(curl_exec($ch), true); curl_close($ch);
Response:
{ "signature" : "data:image/png;base64,iVBORw0KGgo...", "filename" : "OjGN4Bhb0uXJFFWbN61F.png", "reference" : "driver-x", "disclaimer_title" : "Agreement/Disclaimer", "disclaimer" : "By signing, I certify...", "notes" : "1st & Sierra St., Downtown Reno, NV", "uploaded" : "2015-07-29 18:01:29" }
Request:
$params = array( 'key' => 'aAbBcCdDeE1234567890', 'format' => 'xml', 'task' => 'getsig', 'filename' => 'OjGN4Bhb0uXJFFWbN61F.png' ); $settings = array( CURLOPT_URL => 'https://www.infinitysignature.com/api/v1/', CURLOPT_POST => true, CURLOPT_POSTFIELDS => $params, CURLOPT_RETURNTRANSFER => true ); $ch = curl_init(); curl_setopt_array($ch, $settings); $sig = curl_exec($ch); curl_close($ch);
Response:
<record> <signature>data:image/png;base64,iVBORw0KGgo...</signature> <filename>OjGN4Bhb0uXJFFWbN61F.png</filename> <reference>driver-x</reference> <disclaimer_title>Agreement/Disclaimer</disclaimer_title> <disclaimer>By signing, I certify...</disclaimer> <notes>1st & Sierra St., Downtown Reno, NV</notes> <uploaded>2015-07-29 18:01:29</uploaded> </record>