Skip to content

Instantly share code, notes, and snippets.

@schoblaska
Last active March 7, 2017 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schoblaska/5436190 to your computer and use it in GitHub Desktop.
Save schoblaska/5436190 to your computer and use it in GitHub Desktop.
An example of the "text/cats" content-type.
$ curl -v "http://api.groupon.com/v2/deals/nori-chicago-2.cats?client_id=21a3dda11309f0db69bdbefddda4a9625a66cd77"
< HTTP/1.1 200 OK
< Content-Type: text/cats; charset=utf-8
{"de
al":{"
tipped
At":"2
013-03
-25T05
:15:43
Z","isM
erchandis ingDeal
":fa lse,"locati onNote"
:" ","type":"groupon"," grid4Im
ageUrl":" https://img.grouponcdn .com/de
al/oR5wg3SxQS81iPGrAP1s/t300x182/Bu-440x 267.jpg
","dealTypes":[{"description":"Forthoselooking
togetoutofthehousewiththeladies","name":"Gir
lsNightOut","id":"girls-night-out"},{"descr
iption":"Forthosewhowelcomeindooractivities
andentertainment","name":"RainyDay","id":"
rainy-days"}],"grouponRating":4.0,"limit
edQuantityRemaining":null,"mediumIma
geUrl":"https:/ /img.grouponcdn
.com/deal/oR5 wg3SxQS81iPGr
AP1s/t100x10 0/Bu-440x26
7.jpg","endA t":"2013-0
8-25T04:59:5 9Z","sales
forceLink":" https://l
ogin. sales force.com
/006C 00000 0hrIXZI
A2", "stat us":"op
en", "anno uncemen
tTit le": "Besto
f201 2:Hal fOffSu
sh iatNo ri","d
ivi sion":{
"ti
mezo
neOff
setI
nSec
onds"
:-1800
0,"tim
ezoneI
dent ifi er":"A
merica/Chicago","is _rewar
ds_enabled":true,"lat":41.8 795,"name":"Chicago
","id":"chicago","lng":-87.6243,"timezone":"CentralTime
(US&Canada)"},"highlightsHtml":"<p>Chefswrapmakirollsand
stir-frynoodlesatBYOBsushibarwiththreelocations</p>","tip
pingPoint":0,"areas":[],"isNowDeal":false,"soldQuantity":10
00,"grid6ImageUrl":"https://img.grouponcdn.com/deal/oR5wg3Sx
QS81 iPGrAP1s/t460x279/Bu-440x267.jpg","accessType"
:"extended","channels":[],"isOptionListComplete
":true,"isSoldOut":false,"pitchHtml":"<p>Ifhumansar
emostlymadeofwater,andfishtraditionallyinhabitwater,fish
shouldnaturallyoccurinthehumanbody.Fixthisgapinnature'slog
icwitht hisGro upon. </p>\n\n<h4>$
20for $40Wor thofSus hiand
Japa neseFoo d</h4>\n\n<p >Diner
scanenj oydishes suchasD
ragonm akiwith
shri
mptemp
ura,fr
eshwat
ereel,
andmas
agomay
o;asash
imiplatte rwith15
piec esofassorte dfish;a
nd stir-friedyakisobano odles.C
heckoutth emenuforthe<ahref=\"ht tp://ww
w.norichicago.com/lakeviewmenu\">Lakevie w</a>,<
ahref=\"http://www.norichicago.com/wickerparkm
enu\">WickerPark</a>,or<ahref=\"http://www.n
orichicago.com/edgewatermenu\">Edgewater</a
>location.<p></p>","title":"$20for$40Wortho
fSushiandJapaneseFoodatNori","sidebarImage
Url":"https://img.grouponcdn.com/deal/oR
5wg3SxQS81iPGrAP1s/t200x300/Bu-440x2
67.jpg","dealUr l":"http://www.
groupon.com/d eals/nori-chi
cago-2","isT ipped":true
,"merchant": {"ratings"
:[{"reviewsC ount":299,
"url":"http: //www.yel
p.com /biz/ nori-chic
ago", "id": "375523
","r ating ":4.0,"
link Text" :"Yelp"
}]," name ":"Nor
i"," websi teUrl"
:" http: //www.
nor ichicag
o.c
om/"
,"id"
:"no
ri-c
hicag
o"},"s
ays":{
"websi
teCo nte nt":"M
anypreciousspeciesh avebec
omeendangerednearlytothepoi ntofextinction,duet
obothnaturalandunnaturalcauses.Whataresomeendangeredspe
ciesthatyoucanhelpprotect?\r\n\r\n**Species:**Snow-tippe
dstumpowl<br>\r\n**NaturalPredator:**Man(destructionofhab
itat)<br>\r\n**EndangermentLevel:**9<br>\r\n**WhatYouCanDo:
**Alwaysreadthelabelstomakesureyouonlypurchaseowl-freetuna.<
p>\r \n\r\n**Species:**Hump-backedbogtoad<br>\r\n**
NaturalPredator:**Man(eatingit)<br>\r\n**Endang
ermentLevel:**Evenworsethanpandas<br>\r\n**WhatYouC
anDo:**Whentraipsingthroughabog,alwaysbecarefultocrushon
lyprecious,delicateplantlifeandneverany_real_organisms.<br
>\r\n\r \n**Sp ecies :**Snow-bogge
dhump stump< br>\r\n **Nat
ural Predato r:**Man(kill ingito
utofang er)<br>\ r\n**En
danger mentLev
el:*
*Went
exti
nctw
hiley
ouwere
readin
gthiss
ente nce <br>\r
\n**WhatYouCanDo:** \u2026
TV?<br>","emailContent":"Wh atcanyoudotohelppro
tectendangeredstumps?Findoutintoday'sGrouponGuide.","we
bsiteContentHtml":"<p>Manypreciousspecieshavebecomeendan
gerednearlytothepointofextinction,duetobothnaturalandunna
turalcauses.Whataresomeendangeredspeciesthatyoucanhelpprote
ct?</p>\n\n<p><strong>Species:</strong>Snow-tippedstumpowl<b
r>\n <strong>NaturalPredator:</strong>Man(destructi
onofhabitat)<br>\n<strong>EndangermentLevel:</s
trong>9<br>\n<strong>WhatYouCanDo:</strong>Alwaysre
adthelabelstomakesureyouonlypurchaseowl-freetuna.<p></p>
\n\n<p><strong>Species:</strong>Hump-backedbogtoad<br>\n<s
trong>N atural Preda tor:</strong>
Man(e atingi t)<br>\ n<str
ong> Endange rmentLevel:< /stron
g>Evenw orsethan pandas<
br>\n< strong>
What
YouCan
Do:</s
trong>
Whentr
aipsin
gthrou
ghabog,
alwaysbec arefult
ocru shonlypreci ous,del
ic ateplantlifeandnever any<em>
real</em> organisms.<br></p>\n\n <p><str
ong>Species:</strong>Snow-boggedhumpstum p<br>\n
<strong>NaturalPredator:</strong>Man(killingit
outofanger)<br>\n<strong>EndangermentLevel:<
/strong>Wentextinctwhileyouwerereadingthiss
entence<br>\n<strong>WhatYouCanDo:</strong>
\u2026TV?<br></p>","title":"TheGrouponGuid
eto:Most-EndangeredSpecies","emailConten
tHtml":"<p>Whatcanyoudotohelpprotect
endangeredstump s?Findoutintoda
y'sGrouponGui de.</p>","id"
:"the-groupo n-guide-to-
most-endange red-specie
s"},"vip":"" ,"placemen
tPriority":" nearby","
start At":" 2013-03-2
6T05: 00:00 Z","pla
ceho lderU rl":"ht
tps: //sec ure-ass
ets. grou poncdn
.com /imag es/gro
up on/gr ayPlac
eho lder.pn
g",
"isT
ravelB
ookabl
eDeal"
:false
,"ship
pingAd
dressRe
quired":f alse,"s
oldQ uantityMess age":"1
,0 00+","id":"nori-chic ago-2",
"largeIma geUrl":"https://img.gr ouponcd
n.com/deal/oR5wg3SxQS81iPGrAP1s/t440x300 /Bu-440
x267.jpg","shortAnnouncementTitle":"Bestof2012
:SushiatNori","isAutoRefundEnabled":false,"r
edemptionLocation":"MultipleLocations","tag
s":[{"name":"Restaurants"}],"uuid":"fe53bd7
0-9100-11e2-8fde-0025906a9064","smallImage
Url":"https://img.grouponcdn.com/deal/oR
5wg3SxQS81iPGrAP1s/t50x50/Bu-440x267
.jpg","finePrin t":"Limit1perpe
rson,maybuy1a dditionalasgi
fts.Limit1pe rtable.Dine
-inonly.Notv alidforMon
dayspecials. Notvalidon
holidays."," options":
[{"re dempt ionLocati
ons": [{"ne ighborh
ood" :"DeP aul","p
hone Numbe r":"773
-904 -100 0","co
untr y":"U S","st
re etAdd ress1"
:"9 54WDive
rse
yPkw
y.","
stre
etAd
dress
2":"",
"lat":
41.932
654, "na me":""
,"state":"Illinois" ,"id":
6371215,"postalCode":"60614 ","city":"Chicago",
"lng":-87.653381},{"neighborhood":"WickerPark","phoneNu
mber":"773-292-9992","country":"US","streetAddress1":"13
93NMilwaukeeAve.","streetAddress2":"","lat":41.90737,"nam
e":"","state":"Illinois","id":6377856,"postalCode":"60622",
"city":"Chicago","lng":-87.672248},{"neighborhood":"","phone
Numb er":"773-764-0110","country":"US","streetAddre
ss1":"1235WDevonAve.","streetAddress2":"","lat"
:41.99815,"name":"","state":"Illinois","id":6377857
,"postalCode":"60660","city":"Chicago","lng":-87.661913}
],"specificAttributes":{},"status":"open","remainingQuanti
ty":0," endAt" :"201 3-08-25T04:59
:59Z" ,"isLi mitedQu antit
y":t rue,"cu stomFields": [],"va
lue":{" currency Code":"
USD"," amount"
:4000,"f
ormattedAmount":"$40.00"},"sol
dQuantity":1000,"expiresAt":"2013-0
9-26T04:59:59Z","discount":{"currencyCo
de":"USD","amount":2000,"fo rmattedAmo
unt":"$20.00"},"title":"954 WDiversey
Pkwy.:$40Groupon","isSoldOut" :true,"
bookable":false,"expiresInDa ys":nul
l,"details":[{"description":"Limi t1per
person,maybuy1additionalasgifts.Lim
it1pertable.Dine-inonly.NotvalidforMo
ndayspecials.Notvalidonholidays."}],"buy
Url":"https://www.groupon.c om/deals/n
ori-chicago-2/confirmati on?pled
ge_id=6700489","maximu mPurc
haseQuantity":2,"dis count
Percen t":50,"sold Quan
tityMessage" :"1,
000+","pri ce"
:{"curren cyCo
de":"USD" ,"am
ount":200
0,"forma
ttedAmou
nt":"$20
.00"},"
externa
lUrl":n
ul l,"m
inimumPu
rchaseQuantity":1,"id":6700489
,"initialQuantity":0},{"redemptionL
ocations":[{"neighborhood":"DePaul","ph
oneNumber":"773-904-1000"," country":"
US","streetAddress1":"954WD iverseyPk
wy.","streetAddress2":"","lat ":41.93
2654,"name":"","state":"Illi nois","
id":6371215,"postalCode":"60614", "city
":"Chicago","lng":-87.653381},{"nei
ghborhood":"WickerPark","phoneNumber"
:"773-292-9992","country":"US","streetAd
dress1":"1393NMilwaukeeAve. ","streetA
ddress2":"","lat":41.907 37,"nam
e":"","state":"Illinoi s","i
d":6377856,"postalCo de":"
60622" ,"city":"Ch icag
o","lng":-87 .672
248},{"nei ghb
orhood":" ","p
honeNumbe r":"
773-764-0
110","co
untry":"
US","str
eetAddr
ess1":"
1235WDe
vo nAve
.","
street
Addres
s2":""
,"lat"
:41.99
815,"n
ame":""
,"state": "Illino
is", "id":637785 7,"post
al Code":"60660","city" :"Chica
go","lng" :-87.661913}],"specifi cAttrib
utes":{},"status":"open","remainingQuant ity":0,
"endAt":"2013-08-25T04:59:59Z","isLimitedQuant
ity":true,"customFields":[],"value":{"curren
cyCode":"USD","amount":4000,"formattedAmoun
t":"$40.00"},"soldQuantity":1000,"expiresAt
":"2013-09-26T04:59:59Z","discount":{"curr
encyCode":"USD","amount":2000,"formatted
Amount":"$20.00"},"title":"1393NMilw
aukeeAve.:$40Gr oupon","isSoldO
ut":false,"bo okable":false
,"expiresInD ays":null,"
details":[{" descriptio
n":"Limit1pe rperson,ma
ybuy1additio nalasgift
s.Lim it1pe rtable.Di
ne-in only. Notvali
dfor Monda yspecia
ls.N otval idonhol
iday s."} ],"buy
Url" :"htt ps://w
ww .grou pon.co
m/d eals/no
ri-
chicago-
2/confirmation?pledge_id=67079
00","maximumPurchaseQuantity":2,"di
scountPercent":50,"soldQuantityMessage"
:"1,000+","price":{"currenc yCode":"US
D","amount":2000,"formatted Amount":"
$20.00"},"externalUrl":null," minimum
PurchaseQuantity":1,"id":670 7900,"i
nitialQuantity":0},{"redemptionLo catio
ns":[{"neighborhood":"DePaul","phon
eNumber":"773-904-1000","country":"US
","streetAddress1":"954WDiverseyPkwy.","
streetAddress2":"","lat":41 .932654,"n
ame":"","state":"Illinoi s","id"
:6371215,"postalCode": "6061
4","city":"Chicago", "lng"
:-87.6 53381},{"ne ighb
orhood":"Wic kerP
ark","phon eNu
mber":"77 3-29
2-9992"," coun
try":"US"
,"street
Address1
":"1393N
Milwauk
eeAve."
,"stree
tA ddre
ss2"
:"","l
at":41
.90737
,"name
":"","
state"
:"Illin
ois","id" :637785
6,"p ostalCode": "60622"
," city":"Chicago","lng ":-87.6
72248},{" neighborhood":"","phon eNumber
":"773-764-0110","country":"US","streetA ddress1
":"1235WDevonAve.","streetAddress2":"","lat":4
1.99815,"name":"","state":"Illinois","id":63
77857,"postalCode":"60660","city":"Chicago"
,"lng":-87.661913}],"specificAttributes":{}
,"status":"open","remainingQuantity":0,"en
dAt":"2013-08-25T04:59:59Z","isLimitedQu
antity":true,"customFields":[],"valu
e":{"currencyCo de":"USD","amou
nt":4000,"for mattedAmount"
:"$40.00"}," soldQuantit
y":390,"expi resAt":"20
13-09-26T04: 59:59Z","d
iscount":{"c urrencyCo
de":" USD", "amount":
2000, "form attedAm
ount ":"$2 0.00"},
"tit le":" 1235WDe
vonA ve.: $40Gro
upon ","is SoldOu
t" :fals e,"boo
kab le":fal
se,
"exp
iresI
nDay
s":n
ull,"
detail
s":[{"
descri
ptio n": "Limit
1perperson,maybuy1a dditio
nalasgifts.Limit1pertable.D ine-inonly.Notvalid
forMondayspecials.Notvalidonholidays."}],"buyUrl":"http
s://www.groupon.com/deals/nori-chicago-2/confirmation?pl
edge_id=6707901","maximumPurchaseQuantity":2,"discountPer
cent":50,"soldQuantityMessage":"390+","price":{"currencyCod
e":"USD","amount":2000,"formattedAmount":"$20.00"},"external
Url" :null,"minimumPurchaseQuantity":1,"id":6707901
,"initialQuantity":0}],"textAd":{"line2":"","li
ne1":"","headline":""}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment