lbry 0.1.6 lbry: ^0.1.6 copied to clipboard
LBRY API binding for the Dart language. Use this library in order to make API calls to the lbry network as its running in the background.
LBRYDart #
LRBY API binding for the Dart Language #
Placeholder for actual information about this binding
Installation #
To install this package, first include lbry
in your
dependencies
in your project's pubspec.yaml
:
dependencies:
lbry: any
Then, instlling for Native Dart or Flutter, you simply
run $ pub get
and $ flutter packages get
, respectively.
Finally, you import the package in your code:
import 'package:lbry/lbry.dart';
And you're done!
Usage #
Simply import package:lbry/lbry.dart
in your
dart file, and initialize the API objects as follow:
import 'package:lbry/lbry.dart';
void main() {
// optional timeout parameter
LbrydApi api = LbrydApi(timeout: 5);
// lbrycrd requires username and password
LbrycrdApi api = LbrycrdApi("username", "password");
// calling api method 'help' without args
api.call("help");
// calling resolve method with args
api.call("resolve", params: {"name": "odder otter"});
}
Feedback
If you would like to provide feedback or find a bug, simply open an issue in the github repository.