bgg_api 0.8.0 copy "bgg_api: ^0.8.0" to clipboard
bgg_api: ^0.8.0 copied to clipboard

Board Game Geek XML API client (version 2) This package was inspired by bgg.dart package, which works with first version of BGG API.

bgg_api #

pub package Dart codecov

Board Game Geek XML API client (version 2)

This package was inspired by bgg.dart package, which works with first version of BGG API.

Usage #

import 'package:bgg_api/bgg_api.dart';

void main() async {
  var bgg = Bgg();
  var boardGame = await bgg.getBoardGame(148228);

  print(boardGame.name); // prints 'Splendor'
  print(boardGame.yearPublished); // prints 2014
  print(boardGame.minPlayers); // prints 2
  print(boardGame.maxPlayers); // prints 4
  
  var searchBoardGamesResult = await bgg.searchBoardGames('catan');
  print(searchBoardGamesResult.length);

}
6
likes
150
points
60
downloads

Publisher

verified publisherkonwencik.pl

Weekly Downloads

Board Game Geek XML API client (version 2) This package was inspired by bgg.dart package, which works with first version of BGG API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

html_unescape, http, meta, xml

More

Packages that depend on bgg_api