class Vergesense::VergesenseAPI

Defined in:

vergesense/vergesense_api.cr

Constant Summary

EMPTY_HEADERS = {} of String => String
SUCCESS_RESPONSE = {HTTP::Status::OK, EMPTY_HEADERS, nil}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def floor_key(space_id : String) #

[View source]
def init_sync #

Performs initial sync by loading buildings / floors / spaces


[View source]
def on_load #

[View source]
def on_update #

[View source]
def space_report_api(method : String, headers : Hash(String, Array(String)), body : String) #

Webhook endpoint for space_report API, expects version 2


[View source]