Skip to content

Instantly share code, notes, and snippets.

@jme900
Last active August 29, 2015 14:20
Show Gist options
  • Save jme900/ddf5be486944534ff4a7 to your computer and use it in GitHub Desktop.
Save jme900/ddf5be486944534ff4a7 to your computer and use it in GitHub Desktop.
UI data structure
{
"type" : "facebook",
"content" : "When the Canadian Taxpayers Federation gives praise, it's a good budget.",
"author" : {
"username" : "Kate Smith",
"profile_url" : "https://www.facebook.com/10154674411600425",
"image_url" : "https://graph.facebook.com/v2.1/10154674411600425/picture?type=small"
},
"date_submitted" : "2015-04-22T22:52:38+0000",
"like_count" : 40,
"post" : {
"post_url" : "https://www.facebook.com/9106562109/posts/10153177244357110",
"posted_by" : {
"username" : "Stephen Harper",
"profile_url" : "https://www.facebook.com/9106562109",
"image_url" : "https://graph.facebook.com/v2.1/9106562109/picture?type=small"
},
"posted_to" : {
"username" : "Canadian Taxpayers Federation",
"profile_url" : "https://www.facebook.com/6095483909"
},
"short_content" : "Watch 24 SEVEN Exclusive: Canadian Taxpayers Federation, CARP, Retail Council of Canada...",
"short_title" : "",
"primary_image_large" : "https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xap1/v/t15.0-10/s720x720/11188636_10153177280432110_164314659_n.jpg?oh=0a09cfedc6b85884b8c38266c4ce8410&oe=559E86F3&__gda__=1440053337_8d142c7c2316bf2dd8674428a61ba0af",
"date_submitted" : "2015-04-22T22:30:57+0000",
"like_count" : 583,
"share_count" : 132,
"comment_count" : 78
},
"comment_list" : [
{
"content" : "When the Canadian Taxpayers Federation gives praise, it's a good budget.",
"author" : {
"username" : "Kate Smith",
"profile_url" : "https://www.facebook.com/10154674411600425",
"image_url" : "https://graph.facebook.com/v2.1/10154674411600425/picture?type=small"
},
"date_submitted" : "2015-04-22T22:52:38+0000",
"like_count" : 40
},{
"content" : "When the Canadian Taxpayers Federation gives praise, it's a good budget.",
"author" : {
"username" : "Kate Smith",
"profile_url" : "https://www.facebook.com/10154674411600425",
"image_url" : "https://graph.facebook.com/v2.1/10154674411600425/picture?type=small"
},
"date_submitted" : "2015-04-22T22:52:38+0000",
"like_count" : 40
},{
"content" : "When the Canadian Taxpayers Federation gives praise, it's a good budget.",
"author" : {
"username" : "Kate Smith",
"profile_url" : "https://www.facebook.com/10154674411600425",
"image_url" : "https://graph.facebook.com/v2.1/10154674411600425/picture?type=small"
},
"date_submitted" : "2015-04-22T22:52:38+0000",
"like_count" : 40
}
]
}
{
"type": "instagram",
"date_submitted": "2013-12-03T04:00:00.000Z",
"username": "_israel4ever_",
"profile_url": "https://instagram.com/_israel4ever_/",
"profile_thumbnail_url":"https://instagramimages-a.akamaihd.net/profiles/profile_247499139_75sq_1366121466.jpg",
"content": "Wishing you a Happy Chanukah ! Stephen Harper Prime Minister of CANADA #stephenharper #primeministerharper #happychanukah #chanukah #chanuka #hanuka #hanukka #hanukkah",
"image_url": "http://scontent.cdninstagram.com/hphotos-xpa1/t51.2885-15/e15/1169362_702157803137459_304567626_n.jpg",
"comment_count" : 2,
"like_count" : 100,
"post_url" : "https://instagram.com/p/hdo1skwLNs/",
"comment_list" :[
{
"date_submitted": "2013-12-03T04:00:00.000Z",
"username": "_israel4ever_",
"profile_url": "https://instagram.com/_israel4ever_/",
"content": "#canada"
},{
"date_submitted": "2013-12-03T12:00:00.000Z",
"username": "leah_chai",
"profile_url": "https://instagram.com/leah_chai/",
"content": "Yay Canada! Love our PM for his support of Israel!"
}
]
}
{
"type" : "news",
"title" : "BREAKING: Indian Prime Minister challenges Stephen Harper to professional ping-pong match",
"short_title" : "BREAKING: India Prime Minister challenges",
"content" : "",
"short_content" : "",
"date_submitted" : "04-28-2015",
"source_url": "www.notrealnews.com/bignews/worldwide/20193253",
"source_domain" : "notrealnews.com",
"primary_image_large" : "www.notrealnews.com/notimages/30202951",
"comment_list" :
[
{
"username" : "GeorgeDubYa",
"primary_image_large" : "www.notrealnews.com/notimages/users/3939320",
"content" : "That Harper boy is gonna choke like always",
"like_count" : 2,
"dislike_count" : 1,
"date_submitted" : "04-28-2015"
},
{
"username" : "GeorgeDubYaSr",
"primary_image_large" : "www.notrealnews.com/notimages/users/3939319",
"content" : "@GeorgeDubYa Shut your mouth, I got $50000 on Harper",
"like_count" : 14,
"dislike_count" : 2,
"date_submitted" : "04-28-2015"
},
{
"username" : "DaveCam",
"primary_image_large" : "www.notrealnews.com/notimages/users/3939204",
"content" : "Don't underestimate the ping-pong skill from us overseas folk gentlemen.",
"like_count" : 3,
"dislike_count" : 0,
"date_submitted" : "04-28-2015"
}
]
}
{
"type" : "reddit",
"date_submitted" : "2013-04-14T04:00:00.000Z",
"username" : "loercase",
"profile_url" : "http://www.reddit.com/user/loercase",
"content" : "He's 41?? I keep thinking he's 25 or something.",
"post" :
{
"post_url" : "http://www.reddit.com/r/canada/comments/1ccno0/justin_trudeau_wins_liberal_leadership/",
"title" : "Justin Trudeau wins Liberal Leadership",
"content" : "",
"score" : 3,
"username" : "beatbox",
"thumbnail_url" : "http://c.thumbs.redditmedia.com/yUjtL1rnS4nXKPrb.jpg",
"date_submitted" : "2013-12-03T04:00:00.000Z",
"media_url" : "http://www.ctvnews.ca/politics/trudeau-wins-liberal-party-leadership-in-landslide-1.1237256"
},
"comment_list" :
[
{
"date_submitted" : "2013-04-14T04:00:00.000Z",
"username" : "Nautical94",
"profile_url" : "http://www.reddit.com/user/Nautical94",
"content" : " A society grows great when old men plant trees whose shade they know they shall never sit in. "
},
{
"date_submitted" : "2013-04-14T04:00:00.000Z",
"username" : "Cassak5111",
"profile_url" : "http://www.reddit.com/user/Cassak5111",
"content" : "I look forward to either supporting him or not supporting him when I find out what the heck he stands for, like a rational human being."
},
{
"date_submitted" : "2013-04-14T04:00:00.000Z",
"username" : "rainydayman15",
"profile_url" : "http://www.reddit.com/user/rainydayman15",
"content" : "The question on my mind is will he legalize Gay pot "
}
]
}
{
"type": "tweet",
"username": "Shelly Melton",
"handle": "Perez_Mcclure",
"content": "Perhaps Harper has such a visceral hatred of Pierre Trudeau because he knows his own legacy will be bleak & dishonorable. <a href=\"#\">#cdnpoli</a> <a href=\"#\">#onpoli</a>",
"date_submitted": "April 26 2001, 1:05 PM",
"retweet_count" : 0,
"profile_image_url": "https://pbs.twimg.com/profile_images/550841435831173120/fSk-hlgT_bigger.jpeg"
}
{
"type" : "youtube",
"short_title" : "title4dayz",
"short_content" : "this is a video about the 4 days of titles...",
"view_count" : 3000,
"like_count" : 153,
"dislike_count" : 24,
"source_url" : "www.youtube.com/watch?v=strings",
"primary_image_large": "http://i.ytimg.com/vi/ILBwN_Ut_pM/hqdefault.jpg",
"category" : "Entertainment",
"date_submitted" : "2015-04-30",
"uploader" : "time2run",
"comment_list" :
[
{
"username" : "crazyfry49",
"content" : "Fake",
"like_count" : 3,
"reply_count" : 0,
"date_submitted" : "2015-04-29"
},
{
"username" : "kingKong22",
"content" : "FIRST!!!",
"like_count" : 0,
"reply_count" : 1,
"date_submitted" : "2015-04-30"
},
{
"username" : "BondJamesBond",
"content" : "Not so much about titles, moreso about days",
"like_count" : 103,
"reply_count" : 0,
"date_submitted" : "2015-04-35"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment