scoova_webhooks 1.0.0 copy "scoova_webhooks: ^1.0.0" to clipboard
scoova_webhooks: ^1.0.0 copied to clipboard

Standalone Dart/Flutter client for Scoova webhook subscriptions plus HMAC-SHA256 signature verification. Pure Dart — works in Flutter and server-side Dart.

scoova_webhooks #

Standalone Dart/Flutter client for Scoova webhook subscriptions plus an HMAC-SHA256 signature verifier. Works in Flutter apps and server-side Dart.

dependencies:
  scoova_webhooks: ^1.0.0

Usage #

import 'package:scoova_webhooks/scoova_webhooks.dart';

final client = WebhooksClient();   // reads SCOOVA_API_KEY env var
final all   = await client.list();
final made  = await client.create(
  url: 'https://example.com/scoova',
  events: ['route.created', 'trip.arrived'],
);
await client.remove(made.id);

// In your handler:
final ok = verifyWebhookSignature(
  body: rawBody,
  headerValue: req.headers['x-scoova-signature'],
  secret: subscriptionSecret,
);

Pass explicit options when you need to:

WebhooksClient(WebhooksClientOptions(
  apiKey: 'sk_live_...',
  baseUrl: 'https://api.scoo-va.info/v1',
));

Analyze & test #

dart analyze
dart test

License #

Apache-2.0

0
likes
140
points
51
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Standalone Dart/Flutter client for Scoova webhook subscriptions plus HMAC-SHA256 signature verification. Pure Dart — works in Flutter and server-side Dart.

Homepage
Repository (GitHub)
View/report issues

Topics

#webhooks #hmac #signature

License

unknown (license)

Dependencies

crypto, http

More

Packages that depend on scoova_webhooks