Skip to content

Instantly share code, notes, and snippets.

@alex-zige
Created April 28, 2015 17:15
Show Gist options
  • Save alex-zige/60e4f60d76512640b5a1 to your computer and use it in GitHub Desktop.
Save alex-zige/60e4f60d76512640b5a1 to your computer and use it in GitHub Desktop.
Full Posts JSON Example
{
"posts": [
{
"id": 42,
"body": "lol?",
"title": null,
"created_at": "2015-02-19T11:52:15.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 41,
"body": "http://www.producthunt.com/ this is pretty neat!",
"title": null,
"created_at": "2015-01-26T16:04:36.000+13:00",
"reply_ids": [],
"like_ids": [
30
]
},
{
"id": 40,
"body": "Test! ",
"title": null,
"created_at": "2015-01-05T13:52:26.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 38,
"body": "http://www.stuff.co.nz/life-style/life/63263806/school-bullies-triggered-eating-disorder.html Hey",
"title": null,
"created_at": "2014-11-17T10:44:41.000+13:00",
"reply_ids": [],
"like_ids": [
29
]
},
{
"id": 37,
"body": "http://google.com hey",
"title": null,
"created_at": "2014-11-17T10:43:39.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 36,
"body": "hi http://google.com ",
"title": null,
"created_at": "2014-11-17T10:19:21.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 35,
"body": "@willsmart hi",
"title": null,
"created_at": "2014-11-17T10:10:43.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 34,
"body": "test",
"title": null,
"created_at": "2014-11-17T09:53:17.000+13:00",
"reply_ids": [
31
],
"like_ids": [
26
]
},
{
"id": 33,
"body": "@robin is this work?!",
"title": null,
"created_at": "2014-11-14T16:50:49.000+13:00",
"reply_ids": [
29,
30,
32
],
"like_ids": [
23
]
},
{
"id": 30,
"body": "@alex-zige hows going?!",
"title": null,
"created_at": "2014-11-14T14:41:26.000+13:00",
"reply_ids": [
28
],
"like_ids": []
},
{
"id": 29,
"body": "willsmart\r\n",
"title": null,
"created_at": "2014-11-10T09:59:07.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 22,
"body": "So did this work for me adding a comment?\r\n",
"title": null,
"created_at": "2014-10-28T15:17:27.000+13:00",
"reply_ids": [
16
],
"like_ids": [
17
]
},
{
"id": 21,
"body": "@zigeli I posted a link and it didn't hyperlink :( ",
"title": null,
"created_at": "2014-10-28T14:59:10.000+13:00",
"reply_ids": [
23
],
"like_ids": []
},
{
"id": 20,
"body": "testing to see if links work http://www.medicaldaily.com/bladder-cancer-survival-linked-biopsy-quality-suboptimal-biopsy-cancer-staging-correlates-307651 ",
"title": null,
"created_at": "2014-10-28T14:58:36.000+13:00",
"reply_ids": [
14
],
"like_ids": []
},
{
"id": 19,
"body": "testing photo upload size ",
"title": null,
"created_at": "2014-10-24T09:28:59.000+13:00",
"reply_ids": [],
"like_ids": [
15
]
},
{
"id": 18,
"body": "testing to see if @zigeli works",
"title": null,
"created_at": "2014-10-22T11:35:53.000+13:00",
"reply_ids": [
13
],
"like_ids": [
11
]
},
{
"id": 17,
"body": "testing new post",
"title": null,
"created_at": "2014-10-22T11:32:54.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 16,
"body": "test new user",
"title": null,
"created_at": "2014-10-22T10:15:22.000+13:00",
"reply_ids": [
11,
12
],
"like_ids": [
10
]
},
{
"id": 15,
"body": "hey @alex ",
"title": null,
"created_at": "2014-10-21T21:52:24.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 14,
"body": "hey @catlover how you doing?",
"title": null,
"created_at": "2014-10-21T19:32:41.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 8,
"body": "cool, we can now sign up ok",
"title": null,
"created_at": "2014-10-21T15:39:07.000+13:00",
"reply_ids": [],
"like_ids": []
},
{
"id": 2,
"body": "my husband's just been diagnosed with bladder cancer. Would love to hear from anyone else who's been through this? it's really scaring my kids, and he just shuts down.\r\n",
"title": null,
"created_at": "2014-10-10T14:51:07.000+13:00",
"reply_ids": [
2,
3
],
"like_ids": [
14
]
},
{
"id": 1,
"body": "Hi there!",
"title": null,
"created_at": "2014-10-06T10:03:53.000+13:00",
"reply_ids": [
1
],
"like_ids": [
1,
2
]
}
],
"authors": [
{
"id": 20,
"email": "alex@touchtech.co.nz",
"type": "Manager",
"first_name": "Zige",
"last_name": "Li",
"username": "alex-zige",
"profile_image_url": "/system/managers/profile_images/000/000/020/original/1796941_10153932266880005_34413062_o.jpg?1413865951"
},
{
"id": 6,
"email": "will@socialcode.co.nz",
"type": "Developer",
"first_name": "Will",
"last_name": "Smart",
"username": "willsmart",
"profile_image_url": "/system/developers/profile_images/000/000/006/original/will.jpg?1423773708"
},
{
"id": 1,
"email": "robin@socialcode.co.nz",
"type": "Developer",
"first_name": "Robin",
"last_name": "Marshall",
"username": "robin",
"profile_image_url": "/system/developers/profile_images/000/000/001/original/robin.jpeg?1423773706"
},
{
"id": 795,
"email": "ssebulfin+1@gmail.com",
"type": "Patient",
"first_name": null,
"last_name": null,
"username": "Rugby Champions",
"profile_image_url": "https://secure.gravatar.com/avatar/e93161ead0751607dad2d6a4240994a3.png?d=mm&r=PG"
},
{
"id": 21,
"email": "s_bulfin@yahoo.co.nz",
"type": "CareGiver",
"first_name": "",
"last_name": "",
"username": "Zippy",
"profile_image_url": "/system/care_givers/profile_images/000/000/021/original/Giro.jpg?1413873134"
},
{
"id": 22,
"email": "ww@w.com",
"type": "Patient",
"first_name": null,
"last_name": null,
"username": "ww",
"profile_image_url": "https://secure.gravatar.com/avatar/440feff7fa58263c4e84f09a2077f9c7.png?d=mm&r=PG"
},
{
"id": 5,
"email": "felipe@socialcode.co.nz",
"type": "Developer",
"first_name": "Felipe",
"last_name": "Skroski",
"username": "felipe",
"profile_image_url": "/system/developers/profile_images/000/000/005/original/felipe.jpeg?1423773707"
},
{
"id": 3,
"email": "mary@nurse.nz",
"type": "Nurse",
"first_name": "Mary",
"last_name": "Nurse",
"username": "mary",
"profile_image_url": "/system/nurses/profile_images/000/000/003/original/mary.jpeg?1423773708"
},
{
"id": 8,
"email": "ssebulfin@gmail.com",
"type": "Patient",
"first_name": "Catlover",
"last_name": "",
"username": "",
"profile_image_url": "/system/patients/profile_images/000/000/008/original/MS.jpeg?1413872924"
},
{
"id": 2,
"email": "bill@patient.nz",
"type": "Patient",
"first_name": "Bill",
"last_name": "Patient",
"username": "bill",
"profile_image_url": "/system/patients/profile_images/000/000/002/original/bill.jpeg?1423773708"
}
],
"likes": [
{
"id": 30,
"kind": "surprise",
"author_id": 20
},
{
"id": 29,
"kind": "surprise",
"author_id": 6
},
{
"id": 26,
"kind": "surprise",
"author_id": 1
},
{
"id": 23,
"kind": "smile",
"author_id": 1
},
{
"id": 17,
"kind": "love",
"author_id": 795
},
{
"id": 15,
"kind": "wink",
"author_id": 795
},
{
"id": 11,
"kind": "smile",
"author_id": 20
},
{
"id": 10,
"kind": "surprise",
"author_id": 22
},
{
"id": 14,
"kind": "sad",
"author_id": 5
},
{
"id": 1,
"kind": "smile",
"author_id": 2
},
{
"id": 2,
"kind": "surprise",
"author_id": 3
}
],
"replies": [
{
"id": 31,
"body": "Hi",
"created_at": "2014-11-17T09:53:29.000+13:00",
"author_id": 1
},
{
"id": 29,
"body": "HEYYYY!!!!",
"created_at": "2014-11-14T16:54:49.000+13:00",
"author_id": 1
},
{
"id": 30,
"body": "@robin yay!!",
"created_at": "2014-11-14T17:02:23.000+13:00",
"author_id": 20
},
{
"id": 32,
"body": "hey dude",
"created_at": "2014-12-08T09:55:31.000+13:00",
"author_id": 1
},
{
"id": 28,
"body": "test!",
"created_at": "2014-11-14T16:50:35.000+13:00",
"author_id": 20
},
{
"id": 16,
"body": "yes it did! well done :) add a photo.",
"created_at": "2014-10-29T13:23:16.000+13:00",
"author_id": 21
},
{
"id": 23,
"body": "Looks good now",
"created_at": "2014-10-29T17:19:38.000+13:00",
"author_id": 6
},
{
"id": 14,
"body": "will look into it ",
"created_at": "2014-10-28T17:43:00.000+13:00",
"author_id": 20
},
{
"id": 13,
"body": "works\r\n",
"created_at": "2014-10-22T12:53:28.000+13:00",
"author_id": 20
},
{
"id": 11,
"body": "hmm, seemed to work",
"created_at": "2014-10-22T10:15:37.000+13:00",
"author_id": 22
},
{
"id": 12,
"body": "nice!\r\n",
"created_at": "2014-10-22T11:04:40.000+13:00",
"author_id": 20
},
{
"id": 2,
"body": "Hi Catlover, I'm sure your husband is in good hands with his specialist. And you will find support from others here in the community. Let us know if there is something specific I can help you with.",
"created_at": "2014-10-10T14:59:10.000+13:00",
"author_id": 3
},
{
"id": 3,
"body": "thanks :)",
"created_at": "2014-10-10T15:00:24.000+13:00",
"author_id": 8
},
{
"id": 1,
"body": "Hi @robin!",
"created_at": "2014-10-06T10:03:53.000+13:00",
"author_id": 3
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment