wordnik 0.3.2 wordnik: ^0.3.2 copied to clipboard
Wordnik API for Dart
wordnik #
Wordnik API for Dart #
Work in progress. Currently, all object models and API calls have been implemented, but with minimal testing. API signatures are likely to change as development continues.
Related:
- Wordnik: https://www.wordnik.com/
- Wordnik API: https://developer.wordnik.com/docs
Basic usage #
import 'package:wordnik/wordnik.dart';
void main() async {
Wordnik wordnik = Wordnik('YOUR_API_KEY');
WordObject randomWord = await wordnik.getRandomWord(
includePartOfSpeech: 'verb',
minLength: 6,
maxLength: 10
);
print(randomWord.word);
}