urbandictionary 0.1.1 copy "urbandictionary: ^0.1.1" to clipboard
urbandictionary: ^0.1.1 copied to clipboard

outdated

Urban Dictionary API clients for accessing word definitions. Official and RapidAPI endpoints are supported.

Urban Dictionary API (Unofficial) #

This package provides basic API interface to Urban Dictionary. You can fetch specific definitions or get list of random word definitions.

You can use either official (internal) API or RapidAPI endpoint.

final officialClient = OfficialUrbanDictionaryClient();
final rapidApiClient = RapidApiUrbanDictionaryClient(key: 'YOUR_API_KEY');

final client = UrbanDictionary(client: officialClient);

To define specific word use define(String query) method.

client.define('wiseguy').then((response) {
  print(response);
});

To get list of random word definitions use random().

client.random().then((response) {
  print(response);
});
2
likes
40
pub points
0%
popularity

Publisher

verified publishervojtech.net

Urban Dictionary API clients for accessing word definitions. Official and RapidAPI endpoints are supported.

Homepage
Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

dio, json_annotation, meta, pedantic

More

Packages that depend on urbandictionary