rtrive / f1-telegram-fantasy-bot

2 stars 0 forks source link

Update the get_league_standing method #43

Closed kin0992 closed 1 year ago

kin0992 commented 1 year ago

We should identify the new endpoint to use and update the mapper (from JSON to our domain object) as well

kin0992 commented 1 year ago

The URL to use is: https://fantasy.formula1.com/services/user/leaderboard/<uuid>/pvtleagueuserrankget/1/2102210/0/1/1/10/?buster=1677693301883

It looks like that the <uuid> parameter could be any UUID We should investigate about the meaning of other params (the params after the /pvtleagueuserrankget).

kin0992 commented 1 year ago

We should use the following parameters from the JSON: $.Data.Value.memRank -> we get the users in the leaderboard

from the user entry: [...].ovPoints mapped to score of domain object [...].teamName mapped to team_name of domain object

It is possible that we can change something about the user info