Skip to content

Instantly share code, notes, and snippets.

@atwellpub
Last active August 29, 2015 14:06
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 atwellpub/849812720f5eba1f66c0 to your computer and use it in GitHub Desktop.
Save atwellpub/849812720f5eba1f66c0 to your computer and use it in GitHub Desktop.
Example Inbound API JSON Result: /leads/
{
"results_count": "800",
"results_per_page": "5",
"max_pages": 160,
"results": {
"96987": {
"ID": 96987,
"lists": {
"110": {
"term_id": 110,
"name": "Alpha",
"slug": "alpha",
"term_group": 0,
"term_taxonomy_id": 117,
"taxonomy": "wplead_list_category",
"description": "",
"parent": 0,
"count": 4,
"object_id": 96987,
"filter": "raw"
},
"111": {
"term_id": 111,
"name": "Beta",
"slug": "beta",
"term_group": 0,
"term_taxonomy_id": 118,
"taxonomy": "wplead_list_category",
"description": "",
"parent": 0,
"count": 3,
"object_id": 96987,
"filter": "raw"
}
},
"tags": {
"117": {
"term_id": 117,
"name": "tag-1",
"slug": "tag-1",
"term_group": 0,
"term_taxonomy_id": 124,
"taxonomy": "lead-tags",
"description": "",
"parent": 0,
"count": 2,
"object_id": 96987,
"filter": "raw"
},
"115": {
"term_id": 115,
"name": "tag-2",
"slug": "tag-2-2",
"term_group": 0,
"term_taxonomy_id": 122,
"taxonomy": "lead-tags",
"description": "",
"parent": 0,
"count": 1,
"object_id": 96987,
"filter": "raw"
},
"116": {
"term_id": 116,
"name": "tag-3",
"slug": "tag-3-2",
"term_group": 0,
"term_taxonomy_id": 123,
"taxonomy": "lead-tags",
"description": "",
"parent": 0,
"count": 3,
"object_id": 96987,
"filter": "raw"
}
},
"meta_data": {
"wpleads_first_name": [
"API"
],
"wpleads_last_updated": [
"2014-09-17 15:44:27"
],
"wpleads_last_name": [
"Test"
],
"wpleads_email_address": [
"testuser@inboundnow.com"
],
"_edit_lock": [
"1410994713:2"
],
"wp_lead_status": [
"Read"
]
}
},
"96877": {
"ID": 96877,
"lists": false,
"tags": false,
"meta_data": {
"wpleads_wordpress_user_id": [
"2"
],
"wpleads_email_address": [
"bermudeznet@yahoo.com"
],
"page_views": [
""
],
"wpleads_page_view_count": [
"0"
],
"wpleads_inbound_form_mapped_data": [
""
],
"wpleads_referral_data": [
"{\"1\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 20:09:31 UTC\",\"original_source\":1},\"2\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 20:32:46 UTC\"},\"3\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 21:26:50 UTC\"}}"
],
"wpleads_first_name": [
"edinson"
]
}
},
"96876": {
"ID": 96876,
"lists": false,
"tags": false,
"meta_data": {
"wpleads_wordpress_user_id": [
"2"
],
"wpleads_email_address": [
"novacasa_1987@yahoo.com"
],
"page_views": [
""
],
"wpleads_page_view_count": [
"0"
],
"wpleads_inbound_form_mapped_data": [
""
],
"wpleads_referral_data": [
"{\"1\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 20:09:31 UTC\",\"original_source\":1},\"2\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 20:32:46 UTC\"},\"3\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 21:26:50 UTC\"}}"
],
"wpleads_first_name": [
"dumitrache"
],
"wpleads_last_name": [
"ionut"
]
}
},
"96875": {
"ID": 96875,
"lists": false,
"tags": false,
"meta_data": {
"wpleads_wordpress_user_id": [
"2"
],
"wpleads_email_address": [
"dh2312@zoho.com"
],
"page_views": [
""
],
"wpleads_page_view_count": [
"0"
],
"wpleads_inbound_form_mapped_data": [
""
],
"wpleads_referral_data": [
"{\"1\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 20:09:30 UTC\",\"original_source\":1},\"2\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 20:32:46 UTC\"},\"3\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 21:26:50 UTC\"}}"
],
"wpleads_first_name": [
"David"
]
}
},
"96874": {
"ID": 96874,
"lists": false,
"tags": false,
"meta_data": {
"wpleads_wordpress_user_id": [
"2"
],
"wpleads_email_address": [
"joeltru@gmail.com"
],
"page_views": [
""
],
"wpleads_page_view_count": [
"0"
],
"wpleads_inbound_form_mapped_data": [
""
],
"wpleads_referral_data": [
"{\"1\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 20:09:29 UTC\",\"original_source\":1},\"2\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 20:32:46 UTC\"},\"3\":{\"source\":\"NA\",\"datetime\":\"2014-08-25 21:26:50 UTC\"}}"
],
"wpleads_first_name": [
"Joel"
],
"wpleads_last_name": [
"Trujillo"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment