apiverve_counter 1.2.3
apiverve_counter: ^1.2.3 copied to clipboard
Cloud Counter stores and updates persistent numeric counters by ID without needing a database. It tracks increments, decrements, and custom values while returning timestamps and number properties like [...]
Cloud Counter API - Dart/Flutter Client #
Cloud Counter stores and updates persistent numeric counters by ID without needing a database. It tracks increments, decrements, and custom values while returning timestamps and number properties like parity and prime status.
This is the Dart/Flutter client for the Cloud Counter API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_counter: ^1.2.3
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_counter/apiverve_counter.dart';
void main() async {
final client = CounterClient('YOUR_API_KEY');
try {
final response = await client.execute({
'id': 'test_counter'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"created": "2024-04-26T22:09:46.000Z",
"id": "test_counter",
"lastAction": "get",
"lastRead": "2025-12-16T22:21:45.000Z",
"lastUpdated": "2024-04-26T22:09:46.000Z",
"numberOfDigits": 1,
"ordinal": "zeroth",
"value": 0,
"words": "zero",
"isEven": true,
"isNegative": false,
"isZero": true,
"isPrime": false
}
}
API Reference #
- API Home: Cloud Counter API
- Documentation: docs.apiverve.com/ref/counter
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve