Free Gung-Ho One-Click PrintSM API to
Create and Order Printed Versions of PDF Files
Gung-Ho One-Click Print allows you to offer your website users
the
option to instantly create and order printed versions of your PDF files.
How It Works
Order Print
On your website, the user clicks/taps to order a printed version of the PDF file.
Gung-Ho One-Click Print API
The user’s information and PDF file are securely transferred to Gung-Ho, a new user account is created, and the PDF file is configured for print.
Gung-Ho Printing
On Gung-Ho’s website, the user selects their printing and binding options, and places an order.
Authentication
POST to http://api.gungho.com/auth.json
You are required to authenticate and receive a token to access the API.
All API calls will require an authentication token to validate your access.
The authentication token will expire after one hour of inactivity.
POST Data:
{ username: "me@myaddress.com", password: "MyPassword" }
Returns:
{ authentication-token: "token" }
Create Print
POST to http://api.gungho.com/partners.json
The GUNGHO-ACCESS-TOKEN is required to use the API.
This endpoint will create a new user on our system and pull down the PDF file for processing.
It will return the redirect URL to send the user after they click/tap the button.
The user will then be able to select their printing and binding options, add the new Item to their cart, and check out.
Headers:
GUNGHO-ACCESS-TOKEN: token
POST Data:
{ "user": { "email": "jesse@gungho.com", "billing_address": { "first_name": "Jesse", "last_name": "James", "street1": "123 Some Rd", "street2": "Suite 1", "city": "Somwhere", "state": "Nevada", "zip": "89706", "country": "US", "email": "jesse.james@somewhere.com", "phone": "7751231234" }, "shipping_address": { "first_name": "Jesse", "last_name": "James", "street1": "123 Some Rd", "street2": "Suite 1", "city": "Somwhere", "state": "Nevada", "zip": "89706", "country": "US", "email": "jesse.james@somewhere.com", "phone": "7751231234" } }, "item": { "product": "Business Plan", "name": "My Project", "pdf_url": "https://somewhere.com/my-project.pdf" } }
Returns:
{ "user_id": 1145, "item_id": 3, "redirect_to": "https://genie.gungho.com/create/123?t=token" }