cod-python-api icon indicating copy to clipboard operation
cod-python-api copied to clipboard

Support for Warzone 3 and MW3

Open wsdea opened this issue 1 year ago • 2 comments

Great lib! WZ3 is out, can we have support for Warzone 3 and MW3 ?

I tried to do it myself by doing this

    class __WZ3(__GameDataCommons):
        """
        Warzone 3 class: A class to get players warzone 3 stats, warzone 3 combat history and specific warzone 3 match details
            classCategory: game
            gameId/gameTitle: mw or wz
            gameType: wz2

        """

        @property
        def _game(self) -> str:
            return "mw3"

        @property
        def _type(self) -> str:
            return "wz3"

        async def seasonLootAsync(self, platform, gamertag):
            raise InvalidEndpoint

        async def mapListAsync(self, platform):
            raise InvalidEndpoint

However i get the following error :

{'status': 'error', 'data': {'type': 'com.activision.mt.common.stdtools.exceptions.NoStackTraceException', 'message': 'Error from datastore'}}

wsdea avatar Dec 12 '23 15:12 wsdea