really_bored

Last updated:

0 purchases

really_bored Image
really_bored Images
Add to Cart

Description:

really bored

A simple implementation of The Bored API . #
This is a simple DART implementation of the Bored API we built to test our core dart libraries.
It is by no means intended as a full API implementation.
Contents:

Overview
Usage
API
Definitions
References
Issues

Overview #
The Bored API helps you find things to do when you're bored! There are fields like the number of participants, activity type, and more that help you narrow down your results (unashamedly plagiarized from the Bored Api page on the InterWeb).
If you don't know what bored means (or you are, indeed, bored), check out the definition of bored!
We provide a few static methods that asynchronously returns an activity from the API based on parameters, or just go for Bored.random.
(back to top)
Usage #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
really_bored: <latest_version>
copied to clipboard
In your code file add the following import:
import 'package:really_bored/really_bored.dart';
copied to clipboard
Just go for Bored.random:
activity = await Bored.random;
copied to clipboard
Or get an activity using parameters:
activity = await Bored.kitchenSink(
minPrice: 0.2, maxPrice: 1.0, minAccessibility: 0.6, participants: 2);
copied to clipboard
(back to top)
API #
Full API documentation, sort of...
(back to top)
Definitions #

bored - feeling weary and impatient because one is unoccupied or lacks interest in one's current activity (Oxford English Dictionary).

(back to top)
References #

Bored API

(back to top)
Issues #
We got bored (sic) testing this. If you find a bug please fill an issue.
(back to top)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.