LBRYDart

LRBY API binding for the Dart Language

Placeholder for actual information about this binding

Installation

To install this package, first include lbry_api in your dependencies in your project's pubspec.yaml:

dependencies:
    lbry_api: any

Then, installing 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_api/lbry_ap.dart';

And you're done!

Usage

Simply import package:lbry_api/lbry_api.dart in your dart file, and initialize the API objects as follow:

import 'package:lbry_api/lbry_api.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"});
  
}

For a more detailed example, see example/main.dart.

Feedback

If you would like to provide feedback or find a bug, simply open an issue in the github repository.

Libraries

lbry_api