View Single Post
  #9   Spotlight this post!  
Unread 09-09-2014, 19:59
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,132
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: Team 254 Presents: Cheesy Arena

Quote:
Originally Posted by plnyyanks View Post
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:
  1. Make an Event Request to get the list of teams for my event
  2. For each team, make one or more Team Events Requests to find out what events they went to recently
  3. 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?
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com
Reply With Quote