mitchhymel / dart-igdb_client

A Dart client for accessing IGDB.com API
BSD 2-Clause "Simplified" License
6 stars 5 forks source link

Upgrade to igdb API v4 #6

Closed QuentinSc closed 4 years ago

QuentinSc commented 4 years ago

Hello,

Thank you for your work. Any plans to migrate to api V4 ? https://api-docs.igdb.com/#upgrading-to-v4-from-v3 End of v3 this month :/

Thank you !

mitchhymel commented 4 years ago

Thanks for the heads up. I updated the package to use v4 api (8530680441e33f96b2a1117d60dc70ef17f326c0) and published the new version to pub 0.0.6.

Since IGDB changed auth in v4 vs v3, I had to make some breaking changes to how to get an IGDB client - it's async now. See the example. But other than that, things should work the same as before.

Edit: Actually now that I reread the v4 documentation on usage in mobile apps, I realize I may rewrite how this library handles auth and publish a new version.

Second Edit: Updated again to 0.0.7, things should be working and the usage pattern is based on igdb documentation recommendation. Cheers!

QuentinSc commented 4 years ago

Wow such fast fix! Thank you very much