Skip to content

Official API support

Compare
Choose a tag to compare
@SharpBit SharpBit released this 22 Sep 11:31
· 131 commits to master since this release

[3.0.0] - 9/22/19

Added

  • Official API support (all endpoints implemented, all methods documented)
  • Forbidden error raised when code 403 received
  • New terminology! "BrawlAPI" refers to the unofficial API while "OfficialAPI" refers to the official API

Changed (BREAKING)

  • The unofficial API's client will now be accessed as brawlstats.BrawlAPI (from brawlstats.Client)
  • The unofficial API's models will now be accessed as brawlstats.brawlapi.ModelName
  • The official API's client will be accessed by brawlstats.OfficialAPI
  • The official API's models will be accessed by brawlstats.officialapi.ModelName
  • get_leaderboard() will now require "brawlers" for the ranking type and the actual brawler name passed through the brawler kwarg.
  • get_leaderboard() count argument has been renamed to limit

Fixed

  • BrawlAPI get_leaderboard parameter documentation fixed
  • Arguments passed into functions that require player/club tags now properly get formatted correctly.