Skip to content

Instantly share code, notes, and snippets.

@habibillah
Created July 20, 2016 05:28
Show Gist options
  • Save habibillah/7cde307f64573837d7a13c4ac75648b3 to your computer and use it in GitHub Desktop.
Save habibillah/7cde307f64573837d7a13c4ac75648b3 to your computer and use it in GitHub Desktop.
saved item response sample
{
"page": 1,
"total_pages": 3,
"total_items": "21",
"items": [
{
"id": 1,
"item_id": 1,
"type": "petition",
"detail": {
"quorum_count": 0,
"id": 1,
"title": "Mom stands up to protect anti-bullying laws",
"petition_body": "Danielle Green's daughter took her own life after being tormented by bullies. Danielle started a petition to protect Indiana's anti-bullying laws, and after 235,000 signatures, lawmakers ceased efforts to weaken the laws.",
"group": {
"id": 3,
"type": "group",
"group_type": 0,
"avatar_file_path": "http://localhost/bundles/civixfront/img/default_group.png",
"acronym": "testfollowprivategroups"
},
"group_id": 3,
"link": "https://www.change.org/p/indiana-state-senate-protect-our-children-do-not-pass-senate-bill-500",
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000",
"expire_at": "Mon, 16 Jan 2017 04:33:59 +0000",
"user": {
"full_name": " ",
"id": 6,
"type": "user",
"username": "userfollowtest1",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"publish_status": 1,
"type": "open letter",
"options": [
{
"id": 1,
"value": "Upvote",
"votes_count": 0
},
{
"id": 2,
"value": "Downvote",
"votes_count": 0
},
{
"id": 3,
"value": "Ignore",
"votes_count": 0
}
],
"cached_hash_tags": [],
"responses_count": 3,
"metadata": {}
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 2,
"item_id": 2,
"type": "petition",
"detail": {
"quorum_count": 0,
"id": 2,
"title": "Whole Foods takes major step on food waste",
"petition_body": "A campaign supported by more than 110,000 people helped push grocery chain Whole Foods Market to join the fight against food waste in the U.S.",
"group": {
"id": 2,
"type": "group",
"group_type": 0,
"avatar_file_path": "http://localhost/bundles/civixfront/img/default_group.png",
"acronym": "testfollowsecretgroups"
},
"group_id": 2,
"link": "https://www.change.org/p/whole-foods-and-walmart-stop-contributing-to-massive-food-waste-in-the-us-31",
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000",
"expire_at": "Sat, 08 Oct 2016 04:33:59 +0000",
"user": {
"full_name": " ",
"id": 6,
"type": "user",
"username": "userfollowtest1",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"publish_status": 0,
"type": "quorum",
"options": [
{
"id": 1,
"value": "Upvote",
"votes_count": 0
},
{
"id": 2,
"value": "Downvote",
"votes_count": 0
}
],
"cached_hash_tags": [],
"responses_count": 0,
"metadata": {}
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 3,
"item_id": 3,
"type": "petition",
"detail": {
"quorum_count": 0,
"id": 3,
"title": "\nWomen WWII pilots get burial rights at Arlington National Cemetery",
"petition_body": "The U.S. Army wouldn’t let female WWII pilots like Tiffany’s grandmother be laid to rest at Arlington National Cemetery. 175,000 signatures later, Tiffany convinced Congress and the President to change the law.",
"group": {
"id": 3,
"type": "group",
"group_type": 0,
"avatar_file_path": "http://localhost/bundles/civixfront/img/default_group.png",
"acronym": "testfollowprivategroups"
},
"group_id": 3,
"link": "https://www.change.org/p/patrick-k-hallinan-department-of-army-grant-military-burial-honors-to-women-wwii-pilots",
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000",
"expire_at": "Fri, 28 Oct 2016 04:33:59 +0000",
"user": {
"full_name": " ",
"id": 7,
"type": "user",
"username": "userfollowtest2",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"publish_status": 1,
"type": "open letter",
"options": [
{
"id": 1,
"value": "Upvote",
"votes_count": 0
},
{
"id": 2,
"value": "Downvote",
"votes_count": 0
},
{
"id": 3,
"value": "Ignore",
"votes_count": 0
}
],
"cached_hash_tags": [],
"responses_count": 0,
"metadata": {}
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 4,
"item_id": 1,
"type": "petition_answer",
"detail": {
"id": 1,
"user": {
"full_name": " ",
"id": 5,
"type": "user",
"username": "followertest",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"option_id": 1,
"petition_id": 1,
"created_at": "2016-07-20T04:33:59+0000"
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 5,
"item_id": 2,
"type": "petition_answer",
"detail": {
"id": 2,
"user": {
"full_name": " ",
"id": 7,
"type": "user",
"username": "userfollowtest2",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"option_id": 2,
"petition_id": 1,
"created_at": "2016-07-20T04:33:59+0000"
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 6,
"item_id": 3,
"type": "petition_answer",
"detail": {
"id": 3,
"user": {
"full_name": " ",
"id": 8,
"type": "user",
"username": "userfollowtest3",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"option_id": 3,
"petition_id": 1,
"created_at": "2016-07-20T04:33:59+0000"
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 7,
"item_id": 1,
"type": "petition_comment",
"detail": {
"author_picture": "http://localhost/bundles/civixfront/img/default_user.png",
"user": {
"full_name": " ",
"id": 6,
"type": "user",
"username": "userfollowtest1",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"id": 1,
"comment_body": "Test for comment body 1",
"comment_body_html": "<div>Comment Body HTML 1</div>",
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000",
"parent_comment": 0,
"rate_sum": 0,
"rates_count": 0,
"privacy": 0
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 8,
"item_id": 2,
"type": "petition_comment",
"detail": {
"author_picture": "http://localhost/bundles/civixfront/img/default_user.png",
"user": {
"full_name": " ",
"id": 6,
"type": "user",
"username": "userfollowtest1",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"id": 2,
"comment_body": "Test for comment body 2",
"comment_body_html": "<div>Comment Body HTML 2</div>",
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000",
"parent_comment": 0,
"rate_sum": 0,
"rates_count": 0,
"privacy": 0
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 9,
"item_id": 3,
"type": "petition_comment",
"detail": {
"author_picture": "http://localhost/bundles/civixfront/img/default_user.png",
"user": {
"full_name": " ",
"id": 7,
"type": "user",
"username": "userfollowtest2",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"id": 3,
"comment_body": "Test for comment body 3",
"comment_body_html": "<div>Comment Body HTML 3</div>",
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000",
"parent_comment": 0,
"rate_sum": 0,
"rates_count": 0,
"privacy": 0
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
},
{
"id": 10,
"item_id": 1,
"type": "poll",
"detail": {
"answer_entity": {
"current_payment_amount": 0,
"id": 1,
"user": {
"full_name": " ",
"id": 2,
"type": "user",
"username": "user2",
"avatar_file_name": "http://localhost/bundles/civixfront/img/default_user.png",
"birth": "07/20/2016",
"country": "US",
"interests": []
},
"option": {
"id": 1,
"value": "val sapiente",
"votes_count": 3
},
"option_id": 1,
"comment": "Molestiae recusandae perspiciatis vel assumenda tempora voluptates quia. Officia autem nihil explicabo voluptas expedita aut quasi. Natus assumenda amet nobis recusandae.",
"payment_amount": 9,
"created_at": "2016-07-20T04:33:59+0000"
},
"share_picture": {},
"id": 1,
"subject": "subj Harum natus quia inventore necessitatibus corrupti illum quisquam et.",
"options": [
{
"id": 1,
"value": "val sapiente",
"votes_count": 3
},
{
"id": 2,
"value": "val dolores",
"votes_count": 0
}
],
"educational_context": [],
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000",
"expire_at": "Thu, 21 Jul 2016 04:33:59 +0000",
"is_answered": true,
"cached_hash_tags": [],
"group": {
"id": 4,
"type": "group",
"group_type": 0,
"avatar_file_path": "http://localhost/bundles/civixfront/img/default_group.png",
"acronym": "group1"
},
"user": {
"id": 4,
"type": "group",
"group_type": 0,
"avatar_file_path": "http://localhost/bundles/civixfront/img/default_group.png",
"acronym": "group1"
}
},
"created_at": "Wed, 20 Jul 2016 04:33:59 +0000"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment