Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vaetas/urbandictionary
Urban Dictionary API for Dart/Flutter
https://github.com/vaetas/urbandictionary
api dart dictionary flutter urban-dictionary
Last synced: 3 days ago
JSON representation
Urban Dictionary API for Dart/Flutter
- Host: GitHub
- URL: https://github.com/vaetas/urbandictionary
- Owner: vaetas
- License: mit
- Created: 2020-08-05T22:19:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T18:44:20.000Z (over 4 years ago)
- Last Synced: 2024-12-18T09:37:29.460Z (18 days ago)
- Topics: api, dart, dictionary, flutter, urban-dictionary
- Language: Dart
- Homepage: https://pub.dev/packages/urbandictionary
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Urban Dictionary API (Unofficial)
![Pub Version](https://img.shields.io/pub/v/urbandictionary)
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.
```dart
final officialClient = OfficialUrbanDictionaryClient();
final rapidApiClient = RapidApiUrbanDictionaryClient(key: 'YOUR_API_KEY');final client = UrbanDictionary(client: officialClient);
```To define specific word use `define(String query)` method.
```dart
client.define('wiseguy').then((response) {
print(response);
});
```To get list of random word definitions use `random()`.
```dart
client.random().then((response) {
print(response);
});
```