GetVisitsAsHostAsync

Gets all visits where the specified person is the host. Returns (Task<IEnumerable>)

Find all Visits associated with a Person, can choose a time frame in particular.

Name Description
person The person who is the host of the visits
page The zero-based page number for pagination (default is 0)
pageSize The Page Size (default is 1000). Maximum allowed value is 20000.
dateRangeStarting Optional start date filter for visits
dateRangeEnding Optional end date filter for visits

Get Visits As Host Async

Example in C#

// Returns: IEnumerable<VisitInfo>
var visitInfo = await client.GetVisitsAsHostAsync(PersonInfo person, Int32 page, Int32 pageSize, DateTime dateRangeStarting, DateTime dateRangeEnding);

Example in CURL



           curl -X GET \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/people/PERSON.KEY/visitors?page=0&pageSize=1000 \
               -H 'Authorization: Bearer TOKEN_GOES_HERE'