Skip to content

Sample code demonstrating how to use the Flex API by Open Options, Inc.

Notifications You must be signed in to change notification settings

acresecurity/oo-flex-api-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flex API Console Sample

Fully functional console application that demonstates how to utilize the Flex API.

Requirements

  • The projects all require the .NET 7.0 SDK.
  • Flex API license
  • Configured Flex Identity client. See helpful information below.

Features

  • Alarm Handling
    • Displaying alarms
    • Acknowledging, clearing and dimissing alarms
    • Verifying user permissions
    • Requiring dispatch text when required
  • Realtime Messaging via the Flex MQTT broker
    • Subscribing to alarms, events, and status
    • TCP and WebSocket transport
  • Hardware Tree
    • How to retrieve the complete DNA hardware tree and fetch child nodes.
  • Cardholder
    • Complete lifecyle management of a cardholder and its credentials
    • Adding, editing, deleting cardholders and credentials
    • Assigning and removing access levels
  • Authenticating to Flex Identity server using OpenID Connect
  • Client and server side data validation
  • API rate limiting support
  • Output response as JSON data using the --json option

Helpful information

Screenshots

Login Procedure

Login Procedure

Setup Gui

dotnet run setup or flex setup

Setup Gui

Subscribing to Events

dotnet run mqtt events

MQTT Events

Hardware Tree

dotnet run hardware tree

Hardware Tree

Searching Cardholders

dotnet run cardholder get --where 'LastName == "Brown"' --orderBy FirstName

CardholderSearch

Viewing Cardholder Outputed as JSON

dotnet run cardholder --json view 49acee78-5f0d-4ff0-ad7f-2a918f21c650

CardholderView

Validation Errors

dotnet run credential edit 2db27f49-ec76-493b-91aa-10f90623f091 --CardNumber 365 --IssueCode 2000 ValidationErrors

Editing Cardholder

dotnet run cardholder edit 49acee78-5f0d-4ff0-ad7f-2a918f21c650 --Zip 76226 --MiddleName Glenn

EditingCardholder

Direct Commands

dotnet run directCommands list dotnet run directCommands execute e5c0168c-c981-45dc-8e3a-6600023affae

DirectCommands

Override Door Mode

dotnet run hardware door override db23ce87-d4d3-4791-86c4-87b51cf8e78c Unlocked -m 30 dotnet run hardware door cancel db23ce87-d4d3-4791-86c4-87b51cf8e78c

OverrideDoorMode

About

Sample code demonstrating how to use the Flex API by Open Options, Inc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages