Skip to main content

Fusion resource

Login

info

When used successfully, the auth token from the response is added to the context manager.

// Returns a FusionLoginResponse
val response = sdk.fusion().login(
email = "EMAIL",
password = "PASSWORD"
)

Get integration type

// Returns a IntegrationTypeResponse
val response = sdk.fusion().getIntegrationType()

Get integration configuration

// Returns a List<IntegrationConfigurationResponse>
val response = sdk.fusion().getIntegrationConfiguration("CONTROLLER_TYPE")

Enable door

val controller = FusionOperations.DemoController()
// Returns Unit
sdk.fusion().enableDoor(
name = "NAME",
siteId = SITE_ID,
controller = controller
)

Delete door

// Returns Unit
sdk.fusion().deleteDoor(DEVICE_ID)

Get door status

// Returns a DoorStateResponse
val response = sdk.fusion().getDoorStatus(DEVICE_ID)

Start door

// Returns Unit
sdk.fusion().startDoor(DEVICE_ID)

Stop door

// Returns Unit
sdk.fusion().stopDoor(DEVICE_ID)