Fantasy Owners v2.0

Summary
Fantasy Owners
Resource
Fantasy OwnersA list of owners and their fantasy teams in a fantasy league.
HTTP Methods
GETRetrieve a list of owners and their teams.
Example
Retrieve Fantasy Teams
XML field definitions
/ownersA container element for the list of owners.
/owners/ownerA container element for the data on one owner in the list.
/owners/owner/@idThe ID of the owner.
/owners/owner/commissionerIndicates whether the owner is a commissioner or not, as a boolean value.
/owners/logged_in_ownerA boolean indicating whether the owner record is for the user on whose behalf the data is being requested, as determined by the user data contained in the access token.
/owners/owner/nameThe owner’s name as they want it to be displayed in their league.
/owners/owner/teamA container element for data on the team that the owner owns.
/owners/owner/team/@idThe ID of the fantasy team.
/owners/owner/team/logoThe URL of the team’s logo.
/owners/owner/team/long_abbrAn abbreviation of the team’s name, as a string with a maximum length of 10 characters.
/owners/owner/team/abbrAn abbreviation of the team’s name, as a string with a maximum length of 3 characters.
/owners/owner/team/short_nameAn abbreviation of the team’s name, as a string with a maximum length of 6 characters.
/owners/owner/team/nameThe full name for the team.

Resource

Fantasy Owners

Description

A list of owners and their fantasy teams in a fantasy league.

Owner information includes the owners name and ID and whether or not they are a comissioner.  Team information includes the team ID, team name, various abbreviations for the team name, and the URL of the team logo.

HTTP Methods

GET

Retrieve a list of owners and their teams.

URL

http://api.cbssports.com/fantasy/league/owners?version=2.0

Parameters

response_format(optional) Specifies the format in which the requested resource should be returned.  Valid values are XML and JSON.  The default is XML.

Example

Retrieve Fantasy Teams

Sample URL

http://api.cbssports.com/fantasy/league/owners?version=2.0

XML Response

<?xml version="1.0"?>
<result uriAlias="/league/owners" uri="/league/owners" statusCode="200" statusMessage="OK">
  <body>
    <owners>
      <owner id="866493BE-1C32-11E1-8B26-B6974014EAF9">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="20">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="86649936-1C32-11E1-88DD-A35BF9E41363">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="16">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="86649CBA-1C32-11E1-AF50-9DFA17EE94AE">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="22">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664A250-1C32-11E1-B21A-9223F908927D">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="22">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664A5D4-1C32-11E1-9F27-9710695067A9">
        <commissioner>1</commissioner>
        <name>Owner Name</name>
        <team id="10">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664A93A-1C32-11E1-9841-EF97A31727A9">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="7">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664ACA0-1C32-11E1-89EA-EBDA42FC8836">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="23">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664B042-1C32-11E1-AE24-9132B7E9DB25">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="23">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664B3C6-1C32-11E1-97DA-868039E2F683">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="11">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664B772-1C32-11E1-955A-C97ADBD3B707">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="18">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664BACE-1C32-11E1-A0F1-A1AB5219F7CC">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="18">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664BE84-1C32-11E1-9EFB-FA6C51E1FD12">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="1">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664C1E0-1C32-11E1-924A-EC648BD70264">
        <commissioner>1</commissioner>
        <name>Owner Name</name>
        <team id="1">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664C58C-1C32-11E1-80DF-A68E1D3EFB97">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="8">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664C97E-1C32-11E1-A2A2-C95FDDF93CF1">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="19">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664CD20-1C32-11E1-A96D-AAB66B6399F7">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="21">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664D0B8-1C32-11E1-A604-D425A2BBF97E">
        <commissioner>1</commissioner>
        <logged_in_owner>1</logged_in_owner>
        <name>Owner Name</name>
        <team id="15">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
      <owner id="8664D482-1C32-11E1-BCEE-8E55BB72EDE8">
        <commissioner>0</commissioner>
        <name>Owner Name</name>
        <team id="9">
          <logo>Team Logo URL</logo>
          <long_abbr>Team Long Abbreviation</long_abbr>
          <abbr>Team Long Abbreviation</abbr>
          <short_name>Team Short Name</short_name>
          <name>Team Name</name>
        </team>
      </owner>
    </owners>
  </body>
</result>

JSON Response

{
   "body" : {
      "owners" : [
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "866493BE-1C32-11E1-8B26-B6974014EAF9",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "20"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "86649936-1C32-11E1-88DD-A35BF9E41363",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "16"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "86649CBA-1C32-11E1-AF50-9DFA17EE94AE",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "22"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664A250-1C32-11E1-B21A-9223F908927D",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "22"
            }
         },
         {
            "commissioner" : 1,
            "name" : "Owner Name",
            "id" : "8664A5D4-1C32-11E1-9F27-9710695067A9",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "10"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664A93A-1C32-11E1-9841-EF97A31727A9",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "7"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664ACA0-1C32-11E1-89EA-EBDA42FC8836",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "23"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664B042-1C32-11E1-AE24-9132B7E9DB25",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "23"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664B3C6-1C32-11E1-97DA-868039E2F683",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "11"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664B772-1C32-11E1-955A-C97ADBD3B707",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "18"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664BACE-1C32-11E1-A0F1-A1AB5219F7CC",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "18"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664BE84-1C32-11E1-9EFB-FA6C51E1FD12",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "1"
            }
         },
         {
            "commissioner" : 1,
            "name" : "Owner Name",
            "id" : "8664C1E0-1C32-11E1-924A-EC648BD70264",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "1"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664C58C-1C32-11E1-80DF-A68E1D3EFB97",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "8"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664C97E-1C32-11E1-A2A2-C95FDDF93CF1",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "19"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664CD20-1C32-11E1-A96D-AAB66B6399F7",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "21"
            }
         },
         {
            "commissioner" : 1,
            "logged_in_owner" : 1,
            "name" : "Owner Name",
            "id" : "8664D0B8-1C32-11E1-A604-D425A2BBF97E",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "15"
            }
         },
         {
            "commissioner" : 0,
            "name" : "Owner Name",
            "id" : "8664D482-1C32-11E1-BCEE-8E55BB72EDE8",
            "team" : {
               "logo" : "Team Logo URL",
               "long_abbr" : "Team Long Abbreviation",
               "abbr" : "Team Long Abbreviation",
               "short_name" : "Team Short Name",
               "name" : "Team Name",
               "id" : "9"
            }
         }
      ]
   },
   "uriAlias" : "/league/owners",
   "statusMessage" : "OK",
   "uri" : "/league/owners",
   "statusCode" : 200
}

XML field definitions

/owners

A container element for the list of owners.

/owners/owner

A container element for the data on one owner in the list.

/owners/owner/@id

The ID of the owner.  Note that the owner ID is encoded in the access token used to make all FOPE requests, so this ID value is not used to select any other resources.

/owners/owner/commissioner

Indicates whether the owner is a commissioner or not, as a boolean value.  Possible values are 0 (false) and 1 (true).

/owners/logged_in_owner

A boolean indicating whether the owner record is for the user on whose behalf the data is being requested, as determined by the user data contained in the access token.  Possible values are 0 (false) and 1 (true).  The field will also only display for the logged in owner.

/owners/owner/name

The owner’s name as they want it to be displayed in their league.  By default in CBSSports.com Commissioner leagues it is their account name and by default in CBSSports.com Fantasy leagues it is truncated to First Name and Last Initial.

/owners/owner/team

A container element for data on the team that the owner owns.

/owners/owner/team/@id

The ID of the fantasy team.  You get a list of the team IDs and their expansions by requesting the Fantasy Teams resource.

/owners/owner/team/logo

The URL of the team’s logo.  You can use this URL to display the team logo.

/owners/owner/team/long_abbr

An abbreviation of the team’s name, as a string with a maximum length of 10 characters.  Can be used in situations where the team name will not fit.

/owners/owner/team/abbr

An abbreviation of the team’s name, as a string with a maximum length of 3 characters.  Can be used in situations where the long_abbr will not fit.

/owners/owner/team/short_name

An abbreviation of the team’s name, as a string with a maximum length of 6 characters.  Can be used in situations where you need to truncate the team name.

/owners/owner/team/name

The full name for the team.