marcreichel / igdb-laravel

Simplify the integration of the IGDB API into your Laravel app. Including IGDB webhook support.
https://marcreichel.dev/docs/igdb-laravel
MIT License
107 stars 22 forks source link

[Feature Request] Implement the new PopScore Endpoints #95

Closed kaiserkiwi closed 4 months ago

kaiserkiwi commented 4 months ago

The IGDB just announced a new set of endpoints to get data based on a games popularity.

These endpoints are available now.

See the announcement on the IGDB blog. https://medium.com/igdb/introducing-igdb-popscore-your-ultimate-tool-for-tracking-gaming-trends-b8d9beacf16a

New endpoints:

There's also a way to combine these things. See use case 2 in the api docs: https://api-docs.igdb.com/#how-to-use-popularity-api

marcreichel commented 4 months ago

@kaiserkiwi Thanks for pointing this out! I will look into this the coming week 👍🏼

marcreichel commented 4 months ago

@kaiserkiwi I've implemented the new endpoints in v4.3.0 👍🏼 Feel free to update 🙂

Your mentioned combination of PopularityType and PopularityPrimitive is something you have to do in your app. That is not something I can do inside this package. Just like mentioned by IGDB themselves:

To do that you would have to pull the values for each popularity type in your own system and then combine them accordingly. To pull the date you’ll need locally a data structure similar to the existing popularity primitive where it will have the attributes.

kaiserkiwi commented 4 months ago

Oh wow, that was fast. Thank you!

Your mentioned combination of PopularityType and PopularityPrimitive is something you have to do in your app. That is not something I can do inside this package. Just like mentioned by IGDB themselves:

Ok, thank you for the mention. I'll figure it out 😊