apiverve_advice 1.1.14
apiverve_advice: ^1.1.14 copied to clipboard
Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.
Advice Generator API - Dart/Flutter Client #
Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.
This is the Dart/Flutter client for the Advice Generator API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_advice: ^1.1.14
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_advice/apiverve_advice.dart';
void main() async {
final client = AdviceClient('YOUR_API_KEY');
try {
final response = await client.execute();
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"id": "1t39qBIy",
"advice": "Seek ways to improve your financial literacy and make sound financial decisions.",
"lang": "en"
}
}
API Reference #
- API Home: Advice Generator API
- Documentation: docs.apiverve.com/ref/advice
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve