get https://interact.leadforensics.com/WebApi_v2/Visit/GetVisitsByTriggerReport
Returns the visits which have been made by businesses associated with the provided trigger report identifier within the date range provided.
Responses
Returns the visits which have been made by businesses associated with the provided trigger report identifier within the date range provided.
xxxxxxxxxx
20$.ajax({
type: 'GET',
dataType: 'json',
url: 'https://interact.leadforensics.com/WebApi_v2/Visit/GetVisitsByTriggerReport?triggerreportid=77080&datefrom=10-05-2016 00:00:00&dateto=19-06-2016 23:59:59&pagesize=5&pageno=1',
headers: {
'Authorization-Token': 'Zax4qjY5w3tmAlqJUajROgW',
'ClientID':'45656'
},
success: function (data) {
if (data.SiteVisitList.length > 0) {
//we have a visit record
}
else {
//we do not have a visit record
}
},
error: function (err) {
//ajax error trap
}
});