ClementJ18 / mod.io

a python wrapper for the mod.io API
https://modio.readthedocs.io
MIT License
10 stars 6 forks source link

Using api.mod.io is deprecated #29

Open LordAshes opened 4 months ago

LordAshes commented 4 months ago

Mod.Io has moved away from using the common api.mod.io URL for API requests and instead have gone to using game specific URLs in the format g-#.modapi.io where # is the game id. The current code seems to use the old api.mod.io URL which is no longer supported and does not seem to have an obvious support for using a different URL.

intenscia commented 4 months ago

The library should ask if it is a game API key, or user API key, and also get the corresponding id. If it is a game API key, the URL should be g-GAMEID.modapi.io. If it is a user API key, the URL should be u-USERID.modapi.io.

api.mod.io will be deprecated in the future, as it's easier for us to scale and manage the new API URL structure.