wordnik 0.3.2 copy "wordnik: ^0.3.2" to clipboard
wordnik: ^0.3.2 copied to clipboard

outdatedDart 1 only

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.

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);

}