Antonym Finder API - Dart/Flutter Client
Antonym is a simple tool for getting the antonyms of a word. It returns a list of antonyms for the given word.
This is the Dart/Flutter client for the Antonym Finder API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_antonym: ^1.1.14
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_antonym/apiverve_antonym.dart';
void main() async {
final client = AntonymClient('YOUR_API_KEY');
try {
final response = await client.execute({
'word': 'happy'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"word": "happy",
"antonyms": [
"sad",
"unhappy",
"miserable",
"depressed",
"gloomy"
]
}
}
API Reference
- API Home: Antonym Finder API
- Documentation: docs.apiverve.com/ref/antonym
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_antonym
- Antonym Finder API client for Dart/Flutter