Quote:
Originally Posted by plnyyanks
Question. When you say "Automatic download of recent accomplishments (needs better TBA API)" in the TODO page, what enhancements are you looking for in the TBA API? I'd be willing to help add them.
|
Thanks for offering to help. The issue is that there isn't really an easy way to get the awards for all of the teams attending an event. My understanding is that I'd have to:
- Make an Event Request to get the list of teams for my event
- For each team, make one or more Team Events Requests to find out what events they went to recently
- For each team and event, make a Team Event Awards Request to get the list of awards the team won
That's probably well over 100 requests for a medium-sized event.
What I want to end up with is a list of awards won by the teams attending my event in the current season and the previous, grouped by team. To get this, I'd prefer to make a number of API calls that is O(1) with respect to the number of teams and the events they have each gone to.
Does that make sense?