/temtem_api_wrapper

Wrapping for the unofficial Temtem API in Flutter

Primary LanguageDartMIT LicenseMIT

temtem_api_wrapper

Test workflow Issues Pub Version License

Wrapper for the unofficial Temtem API.

How to use

Simply instantiate the API class and call the methods you need.

The package currently supports:

  • getTemTems({List<String> names, List<ExpandableField> expand, bool weaknesses})
  • getTemtem(String name, int level)
  • getFreeTem()
  • getFreeTemRewards()
  • getTypes()
  • getConditions()
  • getTechniques({List<String> names, List<String> fields})
  • getTrainingCourses()
  • getTraits({List<String> names, List<String> fields})
  • getItems()
  • getGears()
  • getQuests()
  • getCharacters()
  • getSaiparks()
  • getLocations()
  • getCosmetics()
  • getDyes()
  • getPatches()
  • getWeaknesses()
  • calculateWeakness(String attacking, List<String> defending)
  • getBreeding()
import 'package:temtem_api_wrapper/temtem_api_wrapper.dart';

final temtemApi = TemTemApi();

final List<TemTemApiTem> temtemsList = await temtemApi.getTemtems();
final TemTemApiFreeTem freetemRewards = await temtemApi.getFreeTem();

// etc...

Dependencies

  • dio : Used to make HTTP requests
  • collection : Used to manage lists and maps equality

TODO

  • Improve documentation
  • Expand example cases