Generate a QR Code


/ https://dash.stannp.com/api/v1/qrcode/create

Creates a QR code image.

You must use a PUBLIC KEY for this request. You can create a public key here

QRcodes may need to be embedded as URLs into an image source. So we recommend using a querystring to pass over the parameters for this.

Parameters

size int Optional. The size in pixels of the QR code.
data string The content you wish the QRcode to contain.
Request
$ curl https://dash.stannp.com/api/v1/qrcode/create?api_key={PUBLIC_KEY}&size=300&data=hello+world
                
Response

Merge PDF files

Merge multiple pdf files into a single file.
https://dash.stannp.com/api/v1/pdf/merge

Parameters

files mandatory An array of files you wish to merge together. Must be a url. eg: files[]=https://file1.pdf&files[]=https://file2.pdf
Request
$ curl https://dash.stannp.com/api/v1/pdf/merge \
-u {API_KEY}: \
-d "file[]=https://file1.pdf" \
-d "file[]=https://file2.pdf"
define("API_KEY","YOUR API KEY");
$postdata = http_build_query(
  array(
  	'files' => array(
        "https://file1.pdf",
        "https://file2.pdf"
    )
  )
);
$opts = array('http' => array(
    'method'  => 'POST',
    'header'  => 'Content-type: application/x-www-form-urlencoded',
    'content' => $postdata
  )
);
$context  = stream_context_create($opts);
$result = file_get_contents("https://dash.stannp.com/api/v1/files/upload?api_key=".API_KEY, false, $context);
$response = json_decode($result,true);
print_r($response);
Response
{
    "success": true,
    "data": "https://merged-file.pdf"
}