Skip to content

Instantly share code, notes, and snippets.

@atwellpub
Last active August 29, 2015 14:07
Show Gist options
  • Save atwellpub/b99313be771f7087891e to your computer and use it in GitHub Desktop.
Save atwellpub/b99313be771f7087891e to your computer and use it in GitHub Desktop.
self::$endpoint = 'leads';
/* Tag Include Test - 1 tag */
self::$data = array(
'results_per_page' => 1,
'include_tags' => array( 'hello' )
);
Response:
{
"results_count": "12",
"results_per_page": "1",
"max_pages": 12,
"results": {
"95941": {
"ID": 95941,
"lists": false,
"tags": {
"109": {
"term_id": 109,
"name": "hello",
"slug": "hello",
"term_group": 0,
"term_taxonomy_id": 116,
"taxonomy": "lead-tags",
"description": "",
"parent": 0,
"count": 12,
"object_id": 95941,
"filter": "raw"
},
"123": {
"term_id": 123,
"name": "super",
"slug": "super",
"term_group": 0,
"term_taxonomy_id": 130,
"taxonomy": "lead-tags",
"description": "",
"parent": 0,
"count": 10,
"object_id": 95941,
"filter": "raw"
}
},
"meta_data": {
"wpleads_wordpress_user_id": [
"2"
],
"wpleads_last_updated": [
"2014-07-17 13:57:38"
],
"wpleads_first_name": [
"Hudson Atwell"
],
"wpleads_last_name": [
"Atwell"
],
"wpleads_address_line_1": [
"[email protected]"
],
"wp_leads_uid": [
"IRhOZuQ8HLUZ8KRoBgRU18gE52cuznI9ARJ"
],
"wpleads_email_address": [
"[email protected]"
],
"page_views": [
"{\"2814\":[\"2014\/07\/18 15:56:51\"]}"
],
"wpleads_page_view_count": [
"1"
],
"wpleads_inbound_form_mapped_data": [
"{\"page_view_count\":1,\"leads_list\":\"108\",\"source\":\"http:\/\/inboundsoon.dev\/newsletter-template\/\",\"page_id\":\"2814\",\"page_views\":\"{\\\"2814\\\":[\\\"2014\/07\/18 15:56:51\\\"]}\",\"name\":\"Hudson Atwell\",\"email\":\"[email protected]\",\"address\":\"[email protected]\",\"form_name\":\"Auto Responder Form\",\"form_id\":\"2741\",\"first_name\":\"Hudson\",\"last_name\":\"Atwell\",\"phone\":\"\",\"company\":\"\",\"variation\":\"0\",\"post_type\":\"post\",\"wp_lead_uid\":\"IRhOZuQ8HLUZ8KRoBgRU18gE52cuznI9ARJ\",\"ip_address\":\"127.0.0.1\",\"search_data\":\"null\"}"
],
"wpleads_ip_address": [
"127.0.0.1"
],
"wpleads_conversion_count": [
"1"
],
"wpleads_conversion_data": [
"{\"1\":{\"id\":\"2814\",\"variation\":\"0\",\"datetime\":\"2014-07-17 13:57:43 UTC\",\"first_time\":1}}"
],
"wpleads_referral_data": [
"{\"1\":{\"source\":\"http:\/\/inboundsoon.dev\/newsletter-template\/\",\"datetime\":\"2014-07-17 13:57:37 UTC\",\"original_source\":1}}"
],
"wpleads_notes": [
"test message\ntest"
],
"wpleads_raw_post_data": [
"{\"wpleads_first_name\":\"Hudson Atwell\",\"wpleads_email_address\":\"[email protected]\",\"country-dropdown\":\"AF\",\"wpleads_notes\":\"test messagentest\"}"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment