Barcode Generator API - Dart/Flutter Client
Barcode Generator is a simple tool for generating barcodes from data. It returns a URL to the generated image of the barcode.
This is the Dart/Flutter client for the Barcode Generator API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_barcodegenerator: ^1.1.14
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_barcodegenerator/apiverve_barcodegenerator.dart';
void main() async {
final client = BarcodegeneratorClient('YOUR_API_KEY');
try {
final response = await client.execute({
'data': '51001544700',
'type': 'code128',
'lineColor': '#000000',
'backgroundColor': '#FFFFFF',
'displayValue': true
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"imageName": "57a22bf2-102a-4dfa-a65c-e521d05a9355.png",
"format": ".png",
"type": "CODE128",
"expires": 1740173338237,
"downloadURL": "https://storage.googleapis.com/apiverve.appspot.com/barcodegenerator/57a22bf2-102a-4dfa-a65c-e521d05a9355.png?GoogleAccessId=635500398038-compute%40developer.gserviceaccount.com&Expires=1740173338&Signature=aFYDIpRA8Qy83jM7eXcknt8O0Pm5OqeLMNLgPOS6r3pTKcpha2u5pmYsweWEl%2BUsvW%2Fi2%2BKK7HtINdRItTuzQoxWkkyU2xBQAy%2B5jPCN0VoiGin6nEcvAxI6Vklw0nlp6yCnenUffaY1xNq%2FVfGQQTa74EOZweNRD7ZDblM7DRFtwMWQyJxkf5Yqae%2BtFvctVebgru%2B4Yj%2BXoNZaXckRNHMz5VxH7saAGxnVc0tKI0ypCg76cZeD8etIv2Jvv1VuhO8nKl6c4pE%2FeH16gJu2DWRAjRG%2F%2BXwwY7Uxpz%2BZ7VcfuNXbUuCDyQN2wMNgGaaZlR%2F4ISIs5N%2Bh29Ko8vnRBw%3D%3D"
}
}
API Reference
- API Home: Barcode Generator API
- Documentation: docs.apiverve.com/ref/barcodegenerator
Authentication
All requests require an API key. Get yours at apiverve.com.
License
MIT License - see LICENSE for details.
Built with Dart for APIVerve
Libraries
- apiverve_barcodegenerator
- Barcode Generator API client for Dart/Flutter