Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
/ bgg.dart Public archive

BoardGameGeek.com API Client for Dart and Flutter.

License

Notifications You must be signed in to change notification settings

matanlurey/bgg.dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bgg

BoardGameGeek.com API Client for Dart and Flutter.

Warning: This is not an official Google or Dart project.

Usage

// Prints the game matching ID#2536.
//
// Then prints all games with "Letters" in the title.
main() async {
  var http = new BggHttp();
  var bgg = new Bgg(http);
  var result = await bgg.getBoardGame(2536);
  print(result.name);
  
  var search = await bgg.searchGames('Letters');
  print('\nGames matching "Letters": ');
  print('* ' + search.map((r) => r.name).toList().join('\n* '));
  http.close();
}