Skip to content

Instantly share code, notes, and snippets.

Avatar

Bruce Clark BruceClark

View GitHub Profile
@BruceClark
BruceClark / js_api_example.html
Last active Aug 27, 2015
Printfection Collection Campaign Order button
View js_api_example.html
<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. -->
You can’t perform that action at this time.