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
Libraries
- scoova_webhooks
- Scoova webhooks SDK for Dart / Flutter.