hots_dog_api 1.2.1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 76

hots.dog API

The hots.dog API provides Heroes of Storm statistical information. This package provides a Dart library for using those APIs.

Changelog

  • 1.2.0: Dart2

  • 1.2.1 Fix issue with type inference

example/example.dart

import 'dart:async';

import 'package:hots_dog_api/hots_dog_api.dart';

main() async {
  try {
    BuildWinRates buildWinRates = await getBuildWinRates('2.30.0', 'Rehgar');
    print(buildWinRates);

  } catch (e) {
    print(e);
  }

  try {
    WinRates winRates = await getWinRates('2.30.0');
    print(winRates);

  } catch (e) {
    print(e);
  }

  try {
    GameInfo gameInfo = await getGameInfo();
    print(gameInfo);
  } catch (e) {
    print(e);
  }
}

1. Depend on it

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


dependencies:
  hots_dog_api: "^1.2.1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:hots_dog_api/hots_dog_api.dart';
        
Version Uploaded Documentation Archive
1.2.1 Apr 11, 2018 Go to the documentation of hots_dog_api 1.2.1 Download hots_dog_api 1.2.1 archive
1.2.0 Apr 11, 2018 Go to the documentation of hots_dog_api 1.2.0 Download hots_dog_api 1.2.0 archive
1.1.0 Feb 11, 2018 Go to the documentation of hots_dog_api 1.1.0 Download hots_dog_api 1.1.0 archive
1.0.7 Feb 7, 2018 Go to the documentation of hots_dog_api 1.0.7 Download hots_dog_api 1.0.7 archive
1.0.6 Feb 4, 2018 Go to the documentation of hots_dog_api 1.0.6 Download hots_dog_api 1.0.6 archive
1.0.5 Feb 3, 2018 Go to the documentation of hots_dog_api 1.0.5 Download hots_dog_api 1.0.5 archive
1.0.4 Feb 3, 2018 Go to the documentation of hots_dog_api 1.0.4 Download hots_dog_api 1.0.4 archive
1.0.3 Feb 3, 2018 Go to the documentation of hots_dog_api 1.0.3 Download hots_dog_api 1.0.3 archive
1.0.2 Feb 3, 2018 Go to the documentation of hots_dog_api 1.0.2 Download hots_dog_api 1.0.2 archive
1.0.1 Dec 18, 2017 Go to the documentation of hots_dog_api 1.0.1 Download hots_dog_api 1.0.1 archive

All 11 versions...

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
53 / 100
Health:
Code health derived from static analysis. [more]
97 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
76
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:hots_dog_api/hots_dog_api.dart.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 10 hints.

    Run dartfmt to format lib/src/api.dart.

    Run dartfmt to format lib/src/model/build_info.dart.

    Similar analysis of the following files failed:

    • lib/src/model/build_statistics.dart (hint)
    • lib/src/model/build_win_rates.dart (hint)
    • lib/src/model/game_info.dart (hint)
    • lib/src/model/hero_info.dart (hint)
    • lib/src/model/talent.dart (hint)
    • lib/src/model/talent_win_rate.dart (hint)
    • lib/src/model/win_rates.dart (hint)
    • lib/src/utils.dart (hint)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.1.2 <2.0.0
collection ^1.14.3 1.14.9
http ^0.11.3+13 0.11.3+16
Transitive dependencies
async 2.0.6
charcode 1.1.1
http_parser 3.1.1
path 1.5.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5