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,eventIdandsignatureare the X-OpenRoam-Timestamp, X-OpenRoam-Event-Id and X-OpenRoam-Signature headers;rawBodyis the request body exactly as received.
Exceptions / Errors
- WebhookSignatureException
- The request was not signed by OpenRoam with this secret, or is too old.