Skip to content

Instantly share code, notes, and snippets.

View BruceClark's full-sized avatar

Bruce Clark BruceClark

View GitHub Profile
@BruceClark
BruceClark / js_api_example.html
Last active August 27, 2015 23:14
Printfection Collection Campaign Order button
<script type="text/javascript" src="https://api.printfection.com/v2/printfection.js"></script>
<script type="text/javascript">
// Specify your API Token below this is private!
Printfection.configure({ api_token: "API-TOKEN-HERE" });
</script>
<!-- Use element data attributes to pre-fill your order data (only data-campaign-id is required). -->
<a class="pf-order-button" href="#" data-campaign-id="######">Order Swag</a>
<!-- Here are some additional data-attribute examples. -->