class Cisco::Meraki::CaptivePortal
- Cisco::Meraki::CaptivePortal
- PlaceOS::Driver
- Reference
- Object
Defined in:
cisco/meraki/captive_portal.crConstant Summary
-
EMPTY_HEADERS =
{} of String => String
-
JSON_HEADERS =
{"Content-Type" => "application/json"}
Class Method Summary
Instance Method Summary
-
#challenge(method : String, headers : Hash(String, Array(String)), body : String)
Webhook for providing guest access
- #generate_guest_data(email : String, time : Int64, time_zone : String | Nil = nil)
-
#generate_guest_token(email : String, time : Int64, time_zone : String | Nil = nil)
Splits the SHA256 into code length and then randomly selects one
- #guests : Hash(String, Cisco::Meraki::CaptivePortal::ChallengePayload)
- #lookup(mac : String)
- #on_update
Class Method Detail
Instance Method Detail
def challenge(method : String, headers : Hash(String, Array(String)), body : String)
#
Webhook for providing guest access
def generate_guest_data(email : String, time : Int64, time_zone : String | Nil = nil)
#
def generate_guest_token(email : String, time : Int64, time_zone : String | Nil = nil)
#
Splits the SHA256 into code length and then randomly selects one