0

Tournament Pick 'Em

Hey,

Any idea on when some (even brief) documentation will be available? With the tournament quickly approaching, it's getting tight to get an app fully ready. I have an account with some previous data (239), but I can't seem to get any data results back for it.

Are there some sample queries available (not full docs, just enough to fetch some actual data), so that we can test out our UI and data parsing?

Thanks a lot

by
7 Replies
  • Additionally, I was trying to do some league queries on the old data (239), and they were returning 'bad request' errors. But, if i do it on the current season they work fine, but return empty results (since I don't have any teams yet).

    Should the old queries be working?
    0
  • QUOTE (Ponch @ Feb 15 2011, 04:21 PM) <{POST_SNAPBACK}>
    Additionally, I was trying to do some league queries on the old data (239), and they were returning 'bad request' errors. But, if i do it on the current season they work fine, but return empty results (since I don't have any teams yet).

    Should the old queries be working?

    I'm not having any issue with something like:

    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/game/239/tournament/slots/editorial_game


    Is that what you were trying?

    Re: docs, definitely apologize for not having them out yet. Just got the internal docs put together last week, so I can at least get you some of the recommended services from there:

    User Teams and Groups for a Game
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/games;game_keys=<game_keys>/teams/groups

    Fetches all of the teams for the currently logged-in user for a particular set of games, and all groups that those teams belong to.

    Specific Team
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/team/<team_key>

    Pulls out the metadata for just a specific team. You would have gotten the team key from the User Teams & Groups service.

    Team Scoring/Standings Information (with Groups)
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/team/<team_key>;out=groups/standings

    Get back the scores and standings (ranking) information for the groups that a team belongs to. All teams will be in the overall group, and many teams will also be part of a private or public Fans of group that might have different a scoring system (which is why we present both groups in the standings)

    Group Settings
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/group/<group_key>/settings

    Get the configuration settings for this group. You would have gotten the group key from the User Teams & Groups service.

    Group Standings (with Teams)
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/group/<group_key>;out=teams/standings

    Get the sorted team standings information, as well as the necessary metadata to display each team correctly (by matching team_keys).

    Team Picks (with Game information)
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/game/<game_key>/teams;team_keys=<team_keys>/picks

    Information about which real-life teams that a fantasy team picked for their bracket. In this case, we're also including the game element because it has some useful information about whether the bracket is still editable.

    Tournament Bracket Data
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/game/<game_key>/tournament/slots/editorial_game

    A basic view of all the slots in the bracket along with associated editorial game information (if the games are set). Each of the slots will also describe the next and previous slots, which should tell you how you're actually supposed to be drawing the bracket (and where teams are valid, based on previous slot selections). Your initial teams should be evident from all of the Round 1 slots.

    Tournament Bracket Data By Round
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/game/<game_key>/tournament/rounds;round_ids=<round_ids>/slots/editorial_game

    The same data as listed above, but divided up by Round (and also including all of the round metadata).

    Tournament Bracket Data By Region
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/game/<game_key>/tournament/regions;region_ids=<region_ids>/slots/editorial_game

    The same data as listed above, but divided up by Region (and also including all of the region metadata).

    Editing Picks
    Method: PUT
    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/team/<team_key>/picks

    Modify a team's picks. You should only allow this option while the game says that it's editable (we'll throw errors otherwise). You can post as many or as few picks as desired -- just note that, if you change a pick at one slot where the previous value had been used in later slots, those later slot values will be cleared out. You can also submit the tiebreaker information.

    All of these should be roughly functional using last year's game ID, which should help you pull out samples -- I'm going to try to get samples into the public documentation when I'm able to get that put together.
    0
  • Thanks, these are working great! :)One issue I've found though, was with the 2010 data; I have a team that returns 'points' as 52, but 'possible_points' as '-'. Is there a reason this isn't a numeric value?
    0
  • QUOTE (Ponch @ Feb 28 2011, 11:49 PM) <{POST_SNAPBACK}>
    Thanks, these are working great! :)Yep -- we weren't storing possible points last year (since we were generating much of that information on the fly). Changed the code this year to actually write that to persistent storage (so we wouldn't need to work as hard to generate the webservices) but it will only apply for groups going forward. So the possible points should be able for any applications built against this season and onward.
    0
  • Great to hear, that'll definitely help UI design.
    0
  • Actually, one more question.

    Are "Possible Points" the maximum points that a certain group can get (if they picked all correct)? Or, is it the most points possible based on the current remaining teams a bracket has still available?

    Thanks
    0
  • QUOTE (Ponch @ Mar 8 2011, 10:22 PM) <{POST_SNAPBACK}>
    Actually, one more question.

    Are "Possible Points" the maximum points that a certain group can get (if they picked all correct)? Or, is it the most points possible based on the current remaining teams a bracket has still available?

    Thanks

    Sorry for the late response -- been pretty busy myself with March Madness-related things. You probably already figured this out, but Possible Points is the maximum points that a team could get by the end of the tournament based on the picks they still have remaining.
    0

Recent Posts

in Fantasy Sports API