Skip to content

Instantly share code, notes, and snippets.

@ericz
ericz / out.xml
Created January 13, 2015 01:18
Tracking out
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<AbolTrackPackageResponse xmlns="http://abolsoft.com/webservices/">
<AbolTrackResponse>
<TrackResult>
<Error>
<Code>0</Code>
<Description>Success</Description>
</Error>
@ericz
ericz / colors.json
Created September 30, 2014 19:34
32 default ink colors
[
{
"hex": "000000",
"name": "black",
"rgb": {
"r": 0,
"g": 0,
"b": 0
}
},
@ericz
ericz / gist:4ef2029d4613fd28992c
Created September 18, 2014 19:23
Order cancel event
{
"name": "cancelled",
"description": "Item has been cancelled",
"meta": {
"item": 3728,
"reason": ""
},
"createdAt": "2014-09-04T21:08:25.401Z"
}
@ericz
ericz / gist:93e1780931eb05b06fba
Created September 17, 2014 18:02
Ink and Pantone colors
[
{
"hex": "000000",
"name": "black"
},
{
"hex": "8e9089",
"name": "grey"
},
{
data = {}
app.get '/hello/:name', (req, res) ->
data[req.param.name] = true
@ericz
ericz / gist:387a7d124513fb8008b9
Created September 5, 2014 06:30
Webhook examples
// Shipment notification.
// 'meta.item' refers to the index in the 'items` array of the order
//
// Multiple shipments may occur for one order 'item' if fulfillment logistics requires it to.
// One shipment may cover multiple order 'items' (in which case multiple webhook requests would be sent with same tracking info but different item indices)
//
// The given 'event' can also be retrieved by looking at the 'events' property of the order itself.
{
"orderId": "54051cb9e4653e7e5b3fbb87",
"event": {
@ericz
ericz / gist:f6695c42c440129d8f9a
Created September 5, 2014 05:35
Updated colors
[
{
"hex": "000000",
"name": "black"
},
{
"hex": "8e9089",
"name": "grey"
},
{
@ericz
ericz / gist:4afdd288f9ecfa5e4d05
Created September 4, 2014 07:00
Test Bulk Request
{
"items": [
{
"designId": "53f28871995881c84762e178",
"type": "dtg",
"products": [
{
"id": "american-apparel-50-50-t-shirt",
"color": "black",
"quantity": "2",
{
"statusCode": 400,
"issues": [
"No value for required field 'design[type]'.",
"No value for required field 'design[sides][front][artwork]'.",
"No value for required field 'address[address]'.",
"No value for required field 'address[city]'.",
"No value for required field 'address[state]'.",
"No value for required field 'address[zip]'."
],
@ericz
ericz / gist:9d3c36b14f0bb63a91ef
Created August 12, 2014 18:08
Failure output of order API
{
"statusCode": 400,
"issues": [
"No value for required field 'design[type]'.",
"No value for required field 'design[sides][0][name]'.",
"No value for required field 'design[sides][0][artwork]'.",
"No value for required field 'address[address]'.",
"No value for required field 'address[city]'.",
"No value for required field 'address[state]'.",
"No value for required field 'address[zip]'."