Base64 Encoder/Decoder API - Dart/Flutter Client
Base64 Encoder/Decoder encodes plain text into Base64 and decodes encoded strings back to readable characters. Submit any string with an encode or decode action to receive the converted output, the original input, and character length.
This is the Dart/Flutter client for the Base64 Encoder/Decoder API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_base64: ^1.2.3
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_base64/apiverve_base64.dart';
void main() async {
final client = Base64Client('YOUR_API_KEY');
try {
final response = await client.execute({
'text': 'Hello World',
'action': 'encode'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"action": "encode",
"original": "Hello World",
"encoded": "SGVsbG8gV29ybGQ=",
"length": 16
}
}
API Reference
- API Home: Base64 Encoder/Decoder API
- Documentation: docs.apiverve.com/ref/base64
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_base64
- Base64 Encoder/Decoder API client for Dart/Flutter