Skip to content

Instantly share code, notes, and snippets.

{
"users": [
{
"id": "1234",
"first_name": "Raffi",
"last_name": "Kayat",
"birthday": "08/10/1984",
"email_address": "raffi.kayat@gmail.com",
"avatar": "http://s3.amazon.com/images/raffi.jpg",
{
"user": {
"id": "1234",
"first_name": "Raffi",
"last_name": "Kayat",
"birthday": "08/10/1984",
"email_address": "raffi.kayat@gmail.com",
"avatar": "http://s3.amazon.com/images/raffi.jpg"
}
}
{
"user": {
"id": "1234",
"first_name": "Raffi",
"last_name": "Kayat",
"birthday": "08/10/1984",
"email_address": "raffi.kayat@gmail.com",
"avatar": "http://s3.amazon.com/images/raffi.jpg"
},
"card": {
{
"user": {
"id": "1234",
"first_name": "Raffi",
"last_name": "Kayat",
"birthday": "08/10/1984",
"email_address": "raffi.kayat@gmail.com",
"avatar": "http://s3.amazon.com/images/raffi.jpg"
},
"balance": "450.00",
@karnie6
karnie6 / push.json
Last active August 29, 2015 14:25
Push JSON
{
"message": "Wildcard editorial selections from Monday, July 20",
"source": "curation",
"strategy": {
"type": "targeted_by_readership",
"inputs": {
"targetUid" : "b43da0b6-e80b-4d3f-8861-f96f3a047988",
"filterUids" : ["10c2217a-70fa-46f2-96cb-13649f4a5b6d", "185b890c-df98-4f5f-8d23-27b5f92a1d64"
]
}
@karnie6
karnie6 / link_card.json
Last active August 29, 2015 14:14
Link Card
@karnie6
karnie6 / image_card.json
Created February 5, 2015 22:45
Image Card
{
"pair_version": "0.4.6",
"card_type": "image",
"web_url": "https://www.flickr.com/photos/pware/15707309794/in/explore-2015-01-21",
"keywords": [
"keyword1",
"keyword2"
],
"app_link_ios": "ios://applink",
@karnie6
karnie6 / invalid_productcard2.json
Last active August 29, 2015 14:10
Invalid product card 2 (has no description)
{
"pair_version": "0.3.1",
"card_type": "product",
"web_url": "http://www.examplestore.com/listing/36226783/green-leather-shoes",
"offers": [
{
"price": {
"price": 7.99,
"currency": "USD"
},
@karnie6
karnie6 / invalid_articlecard1.json
Last active August 29, 2015 14:09
invalid article card 1
{
"card_type": "article",
"web_url": "http://robots.thoughtbot.com/getting-started-with-liberator",
"article": {
"title": "Getting Started with Liberator",
"html_content": "\n<p>In <a href=\"http://robots.thoughtbot.com/tips-for-clojure-beginners\">Tips for Clojure Beginners</a>, Ben laid out some\ngreat resources for starting out with <a href=\"http://clojure.org\">the language</a>. Now, I\nwant to focus on writing webapps in Clojure using\n<a href=\"https://clojure-liberator.github.io/liberator\">Liberator</a>. We started using Liberator as the backend for a\nJSON API and have had a good experience with it so far. So, I wanted to\nshare a little bit about how to get started.</p>\n\n<p>You have a few options for web frameworks with Clojure. We also\nconsidered <a href=\"http://www.luminusweb.net/\">Luminus</a>, which looks like a great framework, but\nultimately decided on Liberator. It seemed to align better with the\nsingle JSON API we are creating. Luminus seemed more in tune w
@karnie6
karnie6 / product_search_card.json
Last active August 29, 2015 14:09
Product Search card
{
"pair_version": "0.4.6",
"card_type": "product_search",
"total_results": 2,
"products": [
{
"name": "Green leather shoes",
"product_card_address": "http://www.examplestore.com/product_cards/36226783/",
"price": {
"price": 7.99,