https://github.com/lohanidamodar/owlbot_dart
https://github.com/lohanidamodar/owlbot_dart
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lohanidamodar/owlbot_dart
- Owner: lohanidamodar
- License: other
- Created: 2020-08-31T10:36:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-13T14:34:15.000Z (almost 4 years ago)
- Last Synced: 2025-03-31T07:34:08.516Z (3 months ago)
- Language: Dart
- Size: 28.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# OwlBot
Clean, easy interface with [owlbot.info](https://owlbot.info) dictionary API
[](https://pub.dev/packages/owlbot_dart) 
## Usage
To use this plugin add `owlbot_dart` as a [dependency in your pubspec.yaml file](https://flutter.io/docs/development/packages-and-plugins/using-packages).
## Example
```dart
void main() async {
/// Instiantiate the `OwlBot` with [token] which you can get for free from https://owlbot.info
final OwlBot owlBot = OwlBot(token: "API_TOKEN");/// Using the [define] function, get the definitions of the provided [word]
/// [OwlBotResponse] object is returned
final OwlBotResponse res = await owlBot.define(word: "owl");
print("Pronounciation: ${res.pronunciation}");
res.definitions.forEach((def) {
print(def.definition);
});
}
```## Developed & Maintained by
[Damodar Lohani](https://github.com/lohanidamodar)