apiverve_antonym 1.2.3
apiverve_antonym: ^1.2.3 copied to clipboard
Antonym Finder is an antonym lookup API that finds words with opposite meanings along with their parts of speech across supported languages. Pass any term and an optional language code to receive an a [...]
Antonym Finder API - Dart/Flutter Client #
Antonym Finder is an antonym lookup API that finds words with opposite meanings along with their parts of speech across supported languages. Pass any term and an optional language code to receive an array of antonyms.
This is the Dart/Flutter client for the Antonym Finder API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_antonym: ^1.2.3
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',
'language': 'Spanish'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"partOfSpeech": "adjective",
"word": "happy",
"language": "en",
"antonyms": [
"sad",
"unhappy",
"miserable",
"depressed",
"glum"
]
}
}
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