GetCardAssignmentsForControllerAsync

Returns (Task<IEnumerable>)

Find all Card Assignments registed on the designated controller.

Name Description
controller The controller to get card assignments for
people Optional list of people to filter card assignments

Get Card Assignments For Controller Async

Example in C#

// Returns: IEnumerable<CardAccessItem>
var cardAccessItem = await client.GetCardAssignmentsForControllerAsync(ControllerInfo controller, PersonInfo people);

Example in CURL



           curl -X GET \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/cards \
               -H 'Authorization: Bearer TOKEN_GOES_HERE'
           # Or
            curl -X PUT \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/cards \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -d '["PERSON1.KEY","PERSON2.KEY"]' # Optional body