The following example shows how to create a card-based override credential for Visionline:
Code:
# Step 1:# Create the new ACS user.acs_user = seam.acs.users.create( acs_system_id ="11111111-1111-1111-1111-111111111111", full_name ="Jane Doe", email_address ="jane@example.com")# Step 2:# Create a card-based credential for each entrance for the ACS user.credential = seam.acs.credentials.create( acs_user_id = acs_user.acs_user_id, access_method ="card",# List the IDs of the entrances to which# you want to grant access. allowed_acs_entrance_ids = [ room_101.seam_acs_entrance_id ], starts_at ="2024-12-01T15:00:00.000Z", ends_at ="2024-12-04T12:00:00.000Z", visionline_metadata = {"card_format": "rfid48","override": True })
// Step 1:// Create the new ACS user.constacsUser=awaitseam.acs.users.create({ acs_system_id:"11111111-1111-1111-1111-111111111111", full_name:"Jane Doe", email_address:"jane@example.com"});// Step 2:// Create a card-based credential for each entrance for the ACS user.constcredential=awaitseam.acs.credentials.create({ acs_user_id:acsUser.acs_user_id, access_method:"card", allowed_acs_entrance_ids: [// List the IDs of the entrances to which// you want to grant access.room101.seam_acs_entrance_id ], starts_at:"2024-12-01T15:00:00.000Z", ends_at:"2024-12-04T12:00:00.000Z", visionline_metadata: {"card_format":"rfid48","override":true }});
# Step 1:# Create the new ACS user.acs_user = seam.acs.users.create( acs_system_id: "11111111-1111-1111-1111-111111111111", full_name: "Jane Doe", email_address: "jane@example.com")# Step 2:# Create a card-based credential for each entrance for the ACS user.credential = seam.acs.credentials.create( acs_user_id: acs_user.acs_user_id, access_method: "card",# List the IDs of the entrances to which# you want to grant access. allowed_acs_entrance_ids: [ room_101.seam_acs_entrance_id ], starts_at: "2024-12-01T15:00:00.000Z", ends_at: "2024-12-04T12:00:00.000Z", visionline_metadata: {"card_format":"rfid48","override":true })
// Step 1:// Create the new ACS user.$acs_user = $seam->acs->users->create( acs_system_id:"11111111-1111-1111-1111-111111111111", full_name:"Jane Doe", email_address:"jane@example.com");// Step 2:// Create a card-based credential for each entrance for the ACS user.$credential = $seam->acs->credentials->create( acs_user_id: $acs_user->acs_user_id, access_method:"card", allowed_acs_entrance_ids: [// List the IDs of the entrances to which// you want to grant access. $room_101->seam_acs_entrance_id ], starts_at:"2024-12-01T15:00:00.000Z", ends_at:"2024-12-04T12:00:00.000Z", visionline_metadata:array('card_format'=>"rfid48",'is_override_key'=>true));
Once you have created a card-based credential for a Visionline ACS, you must encode the credential onto a plastic card.
Use the /acs/encoders/list endpoint to retrieve a list of available encoders. Then, choose the encoder that you want to use to write the credential to the card.
See Retrieve Encoders.
Use the /acs/encoders/encode_credential endpoint to encode the credential on the card, using the encoder that you have chosen.
See Encode the Card.
Then, you can use an encoder to scan a plastic key card to read its encoded parameters. The scan result includes the card's properties, such as its card number, serial number, and other useful details. For more information, see Scanning Encoded Cards.