X

Generate a QR Code

Creates a QR code image. You must use a PUBLIC KEY for this request.


[GET] / [POST] https://api-us1.stannp.com/v1/qrcode/create

Parameters

size optional The size in pixels of the QR code.
data mandatory The content you wish the QR code to contain.

Request

                import requests

data = {
    "size": "300",\n    "data": "hello+world",\n
}

response = requests.post("https://api-us1.stannp.com/v1/qrcode/create?api_key={API_KEY}", data=data)
print(response.text)
            

Response


Merge PDF files

Merge multiple PDF files into a single file.


[POST] https://api-us1.stannp.com/v1/pdf/merge

Parameters

files array An array of URLs for the PDF files to merge. Example: files[]=https://file1.pdf&files[]=https://file2.pdf

Request

                import requests

data = {
    "files[0]": "https://file1.pdf",\n    "files[1]": "https://file2.pdf",\n
}

response = requests.post("https://api-us1.stannp.com/v1/pdf/merge?api_key={API_KEY}", data=data)
print(response.text)
            

Response

{
    "success": true,
    "data": "https:\/\/merged-file.pdf"
}

Get templates

Get the templates created on your account.


[GET] https://api-us1.stannp.com/v1/templates/list

Request

                import requests

data = {

}

response = requests.post("https://api-us1.stannp.com/v1/templates/list?api_key={API_KEY}", data=data)
print(response.text)
            

Response

{
    "success": true,
    "data": [
        {
            "id": "0",
            "template_name": "Template name 1",
            "size": "US-letter",
            "duplex": "1"
        },
        {
            "id": "1",
            "template_name": "Template name 2",
            "size": "A6",
            "duplex": "1"
        }
    ]
}