Skip to content

osilkin98/LBRYDart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

LBRY API binding for the Dart Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages