Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lohanidamodar/owlbot_dart
https://github.com/lohanidamodar/owlbot_dart
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lohanidamodar/owlbot_dart
- Owner: lohanidamodar
- License: other
- Created: 2020-08-31T10:36:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-13T14:34:15.000Z (over 3 years ago)
- Last Synced: 2024-11-30T06:23:37.954Z (about 1 month 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
[![Pub Package](https://img.shields.io/pub/v/owlbot_dart.svg?style=flat-square)](https://pub.dev/packages/owlbot_dart) ![Publish](https://github.com/lohanidamodar/owlbot_dart/workflows/Publish/badge.svg)
## 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)