On your website, the user clicks/taps to order a printed version of the PDF file.
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.
On Gung-Ho’s website, the user selects their printing and binding options, and places an order.
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.
{ username: "me@myaddress.com", password: "MyPassword" }
{ authentication-token: "token" }
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.
GUNGHO-ACCESS-TOKEN: token
{ "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" } }
{ "user_id": 1145, "item_id": 3, "redirect_to": "https://genie.gungho.com/create/123?t=token" }