Gung-Ho One-Click-Print API*

Version 0.10

*This API requires a Gung-Ho API Account. Request a Gung-Ho API Account


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 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 PDF printing 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"
}