webhooks library

Constants

openRoamProductionUrl → const String
openRoamSandboxUrl → const String

Functions

verifyWebhook({required String secret, required String timestamp, required String eventId, required String signature, required String rawBody, int toleranceSeconds = 300, int? nowSeconds}) → void
Throws WebhookSignatureException unless the request is validly signed and recent. timestamp, eventId and signature are the X-OpenRoam-Timestamp, X-OpenRoam-Event-Id and X-OpenRoam-Signature headers; rawBody is the request body exactly as received.

Exceptions / Errors

WebhookSignatureException
The request was not signed by OpenRoam with this secret, or is too old.