dbio 1.0.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 46

Discord.bio Dart wrapper #

A asynchronous dart libary to provide simple access to the discord.bio API.

Works with all endpoints appart from upvote.

How to use #

Here is an example of how to get a users upvotes

import 'package:dbio/dbio.dart';

void main(){
    DBioClient client = DBioClient();
    client.details("bean").then((data) => print(data.payload.settings.upvotes));
}


1.0.0 #

  • initial release. HutchyBen

1.0.1 #

  • Added example
  • Removed "un-needed" new statements
  • Removed bad testing ._.

1.0.2 #

  • tried to fix dead code by making more
  • removed more new's
  • used dartfmt

1.0.3 #

  • Modified description

example/main.dart

// EXAMPLE TO PRINT A USERS DISCORD DISCRIMINTATOOTOTRE
import 'package:dbio/dbio.dart';

void main(){
  DBioClient client = DBioClient();
  client.details("bean").then((data) => print(data.payload.discord.discriminator));
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  dbio: ^1.0.3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:dbio/dbio.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

We analyzed this package on Jul 9, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13

Analysis suggestions

Package not compatible with runtime flutter-web on web

Because of the import of dart:io via the import chain package:dbio/dbio.dartdart:io

Package not compatible with runtime web

Because of the import of dart:io via the import chain package:dbio/dbio.dartdart:io

Health issues and suggestions

Document public APIs. (-1 points)

11 out of 11 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/HutchyBean/Discord.bio-dart was unreachable.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
test 1.12.0