hots_dog_api 1.2.1

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

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);
  }
}

Use this package as a library

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

Alternatively, your editor might support pub 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...

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

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.1.2 <2.0.0