sunnydl / GamePerformanceTracker

Team project for CSE 115A in Fall 2021, UCSC
3 stars 0 forks source link

match history data #26

Closed sunnydl closed 3 years ago

sunnydl commented 3 years ago

Create a file in services folder in backend, name it matchService.ts

inside the file, create a function with an input of puuid: string, and an output of list of match.

Given the puuid, call the Riot Api endpoint https://developer.riotgames.com/apis#match-v5/GET_getMatchIdsByPUUID to fetch 10 games.

return the list of games at the end of function.

Please follow the format of how summonerInfo was done, thanks