Skip to content

Support for paginated responses

Compare
Choose a tag to compare
@fourjr fourjr released this 11 Nov 10:49

4.0.0 - 11/11/2018

Warning: There are breaking changes

Added

  • OfficialAPI: A way to iterate through paginated repsonses (i.e. search_clans, search_tournaments) using asynchronus generators.
  • OfficialAPI: Tests for the pagination.
  • Requirement: async_generator (For Python 3.5 support)
  • Logging URL Requests
  • Unit tests for async clients

Changed

  • Repsonses with a .items will simply be returned as a list
  • OfficialAPI.get_cards() -> OfficialAPI.get_all_cards() (Deprecated till v4.1.0)
  • OfficialAPI: before and after are no longer valid parameters as pagination is natively supported

Fixed

  • Client.close() now works if the client is async
  • function(timeout) would sometimes not work

Removed

  • clashroyale.*.utils are no longer in __init__.py
  • Individual models for all data types aren't created anymore