Skip to content

Instantly share code, notes, and snippets.

@LBRapid
Created December 12, 2013 22:41
Show Gist options
  • Select an option

  • Save LBRapid/7936864 to your computer and use it in GitHub Desktop.

Select an option

Save LBRapid/7936864 to your computer and use it in GitHub Desktop.
POST /v2/1345278/cart HTTP/1.1
Host: event.jirafe.com
Content-Type: application/json
Authorization: Bearer 7fa98a9b9040e6388b69cf2c02b87885c9073a77
{
"id": "8797436543010",
"create_date": "2013-06-17T15:16:10.000Z",
"change_date": "2013-06-17T15:16:15.000Z",
"subtotal": 99.85,
"total": 99.85,
"total_tax": 4.75,
"total_shipping": 0.0,
"total_payment_cost": 0.0,
"total_discounts": 0.0,
"currency": "USD",
"cookies": {},
"items": [
{
"id": "8797371007020",
"create_date": "2013-06-17T15:16:11.000Z",
"change_date": "2013-06-17T15:16:11.000Z",
"cart_item_number": "1",
"quantity": 1,
"price": 99.85,
"discount_price": 0.0,
"product": {
"id": "8796107014145",
"create_date": "2013-03-28T19:46:39.000Z",
"change_date": "2013-03-28T19:50:58.000Z",
"is_product": true,
"is_sku": true,
"catalog": {
"id": "electronicsProductCatalog",
"name": "Electronics Product Catalog"
},
"name": "PowerShot A480",
"code": "1934793",
"brand": "Canon",
"categories": [
{
"id": "8796098461838",
"name": "Digital Compacts"
},
{
"id": "8796099248270",
"name": "Canon"
}
],
"images": [
{
"url": "http://yourstore.com/images/the_photo.jpg"
}
]
}
}
],
"previous_items": [
],
"customer": {
"id": "1",
"create_date": "2013-12-12T15:16:11.000Z",
"change_date": "2013-12-12T15:16:11.000Z",
"email": "spree@example.com",
"first_name": "",
"last_name": ""
},
"visit": {
"visit_id": "3821811678576640",
"visitor_id": "5643964273131520",
"pageview_id": "",
"last_pageview_id": ""
}
}
Request URL:https://event-api.jirafe.com/v1/tracker/pixel.gif?sid=1345278&ts=2013-12-12T22%3A41%3A06.228Z&ct=Shopping%20Cart%20-%20Spree%20Demo%20Site&pt=cart&cu=http%3A%2F%2Flocalhost%3A3000%2Fcart&rt=cart&ru=http%3A%2F%2Flocalhost%3A3000%2Fproducts%2Fruby-on-rails-tote&vid=5643964273131520&vis=3821811678576640&vlnd=http%3A%2F%2Flocalhost%3A3000%2F&vref=*none*&uag=Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_9_0)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F31.0.1650.63%20Safari%2F537.36&ratr%5B0%5D=Referrer&ratr%5B1%5D=localhost%3A3000&ratr%5B2%5D=http%3A%2F%2Flocalhost%3A3000%2F&cid=1&cem=spree%40example.com&ev%5Bcustomer%5D%5Bid%5D=1&ev%5Bcustomer%5D%5Bemail%5D=spree%40example.com&ev%5Bevent_type%5D=pageview
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,ja;q=0.6
Cache-Control:max-age=0
Connection:keep-alive
Cookie:_ga=GA1.2.947124287.1386088030
Host:event-api.jirafe.com
Referer:http://localhost:3000/cart
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Query String Parametersview sourceview URL encoded
sid:1345278
ts:2013-12-12T22:41:06.228Z
ct:Shopping Cart - Spree Demo Site
pt:cart
cu:http://localhost:3000/cart
rt:cart
ru:http://localhost:3000/products/ruby-on-rails-tote
vid:5643964273131520
vis:3821811678576640
vlnd:http://localhost:3000/
vref:*none*
uag:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
ratr[0]:Referrer
ratr[1]:localhost:3000
ratr[2]:http://localhost:3000/
cid:1
cem:spree@example.com
ev[customer][id]:1
ev[customer][email]:spree@example.com
ev[event_type]:pageview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment