EthanC/CallofDuty.py

player.matches get empty list

Closed this issue · 2 comments

Summary

Hello, i tried to use player.matches after getPlayer method, but it returns an empty list. I tried to do the same request on postman to /matches endpoint and it returns empty list too. I guess should be used only /matches/details endpoint

Reproduction Steps

look for a player and to player.matches

Expected Results

matches list

Actual Results

Empty list

  • [x ] I have searched the open Issues for duplicates
  • [x ] I have shown the entire traceback, if possible
  • [x ] I have removed my token from display, if visible

Until the endpoint is depreciated and removed, it'll remain in the library. This is more of an issue with the API than CallofDuty.py.

How can i get the marches list?
A solution should be to call marches/details endpoint in the .matches method on player class .
I checked the code and there Is not method on player class to get the full match id list of a PSN player. The GetfullMatch requires a matchid so should ti get the details.