Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Example JSON response after successfully adding a lead using the /leads/add endpoint
{
"results_count": 1,
"results_per_page": 50,
"max_pages": 0,
"results": {
"96988": {
"ID": 96988,
"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": 96988,
"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": 96988,
"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": 96988,
"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": 96988,
"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": 96988,
"filter": "raw"
}
},
"meta_data": {
"wpleads_first_name": [
"API"
],
"wpleads_last_updated": [
"2014-09-17 16:00:59"
],
"wpleads_last_name": [
"Test"
],
"wpleads_email_address": [
"testuser@inboundnow.com"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment