Skip to content

Instantly share code, notes, and snippets.

@activeprospect-support
Last active August 29, 2015 14:07
Show Gist options
  • Save activeprospect-support/6a86c18520a85431b0b5 to your computer and use it in GitHub Desktop.
Save activeprospect-support/6a86c18520a85431b0b5 to your computer and use it in GitHub Desktop.
LC - How to retrieve statistics via the API
curl -v -X GET https://api.leadconduit.com/stats/financial/today?source_id=987654321&api_key=fullapikey`
HTTP/1.1 200 OK
Connection: close
Content-Type: application/json; charset=utf-8
{"count": 2,
"items":[
{"campaign":"Your campaign",
"campaign_id":"123456789",
"source":"Your affiliate",
"source_id":"987654321",
"recipient":"Advertiser",
"recipient_id":"abc123456",
"profile": "",
"profile_id": "",
"total": 15
"billable",10,
"non_billable":5
"invalid":2,
"rejected":1,
"returned":2,
"purchase_price":3.0,
"sale_price":5.0,
"cost":30.0,
"revenue":50.0,
"profit":20.0},
{...}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment