Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lohanidamodar/owlbot_dart


https://github.com/lohanidamodar/owlbot_dart

Last synced: 18 days ago
JSON representation

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)