0

Error trying to get teams

I am using the following api url to try to retrieve the teams for the currently authenticated user:

http://fantasysports.yahooapis.com/fantasy...e_login=1/teams

but am always getting the following response:

CODEBOX
<?xml version="1.0" encoding="UTF-8"?>
-<error xml:lang="en-us" xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://www.yahooapis.com/v1/base.rng" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/teams?oauth_details=removed>
<description>Server Error</description>
<detail/>
</error>


i am confident my oauth parameters are all correct because i am generating them using a shared class that is working fine when i use the following api urls:

http://fantasysports.yahooapis.com/fantasy...?is_available=1
http://fantasysports.yahooapis.com/fantasy...ers;use_login=1

i'm just getting started with the api, so any help is greatly appreciated.

TIA

by
1 Reply
  • QUOTE (Andrew Long @ Jun 22 2011, 01:11 PM) <{POST_SNAPBACK}>
    I am using the following api url to try to retrieve the teams for the currently authenticated user:

    http://fantasysports.yahooapis.com/fantasy...e_login=1/teams

    but am always getting the following response:

    CODE
    <?xml version="1.0" encoding="UTF-8"?>
    -<error xml:lang="en-us" xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://www.yahooapis.com/v1/base.rng" yahoo:uri="http://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/teams?oauth_details=removed>
    <description>Server Error</description>
    <detail/>
    </error>


    i am confident my oauth parameters are all correct because i am generating them using a shared class that is working fine when i use the following api urls:

    http://fantasysports.yahooapis.com/fantasy...?is_available=1
    http://fantasysports.yahooapis.com/fantasy...ers;use_login=1

    i'm just getting started with the api, so any help is greatly appreciated.

    TIA

    You know, I'm going to guess that this is us complaining because we don't currently support all of our games through the webservices. Was there a particular game that you wanted to retrieve teams for? For this season of MLB only, for instance, you could do something more like:

    CODE
    http://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/games;game_keys=mlb/teams


    And that works.
    0

Recent Posts

in Fantasy Sports API