Draft Order v3.0

Summary
Draft Order
Resource
Draft OrderThe draft order for a league.
HTTP Methods
GETRetrieve Draft Order
Example
Retrieve Draft Order
XML field definitions
/draft_orderA container element for the draft order.
/draft_order/picksA container element for the list of picks in the draft order.
/draft_order/picks/pickA container element for information on a pick.
/draft_order/picks/pick/numberThe number of the pick in the draft order, as an integer.
/draft_order/picks/pick/roundThe round the pick is in, as an integer.
/draft_order/picks/pick/teamA container element for the data on the team that owns this pick in the draft order.
/draft_order/picks/pick/team/@idThe ID of the fantasy team.
/draft_order/picks/pick/team/logoThe URL of the team’s logo.
/draft_order/picks/pick/team/long_abbrAn abbreviation of the team’s name, as a string with a maximum length of 10 characters.
/draft_order/picks/pick/team/abbrAn abbreviation of the team’s name, as a string with a maximum length of 3 characters.
/draft_order/picks/pick/team/short_nameAn abbreviation of the team’s name, as a string with a maximum length of 6 characters.
/draft_order/picks/pick/team/nameThe full name for the team.

Resource

Draft Order

Description

The draft order for a league.  The resource consists of a list of picks and contains the pick number and the team that has that pick in the draft order in each round.  The list of pics is delivered in draft order for the first round.  The order of picks in the following rounds is determined by the league’s draft rules.  Team information includes the team ID, team name, various abbreviations for the team name, and the URL of the team logo.

Note that the draft process itself is handled by the main CBS Interactive application.

HTTP Methods

GET

Retrieve Draft Order

URL

http://api.cbssports.com/fantasy/league/draft/order?version=3.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 Draft Order

Sample URL

http://api.cbssports.com/fantasy/league/draft/order?version=3.0

XML Response

<?xml version="1.0"?>
<result uriAlias="/league/draft/order" uri="/league/draft/order" statusCode="200" statusMessage="OK">
  <body>
    <draft_order>
      <picks>
        <pick>
          <number>1</number>
          <round>1</round>
          <team id="22">
            <logo>Team Logo URL</logo>
            <long_abbr>Team Long Abbreviation</long_abbr>
            <abbr>Team Abbreviation</abbr>
            <short_name>Team Short Name</short_name>
            <name>Team Name</name>
          </team>
        </pick>
        <pick>
          <number>2</number>
          <round>1</round>
          <team id="11">
            <logo>Team Logo URL</logo>
            <long_abbr>Team Long Abbreviation</long_abbr>
            <abbr>Team Abbreviation</abbr>
            <short_name>Team Short Name</short_name>
            <name>Team Name</name>
          </team>
        </pick>
      </picks>
    </draft_order>
  </body>
</result>

JSON Response

{
   "body" : {
      "draft_order" : {
         "picks" : [
            {
               "number" : 1,
               "round" : 1,
               "team" : {
                  "logo" : "Team Logo URL",
                  "long_abbr" : "Team Long Abbreviation",
                  "abbr" : "Team Abbreviation",
                  "short_name" : "Team Short Name",
                  "name" : "Team Name",
                  "id" : "15"
               }
            },
            {
               "number" : 2,
               "round" : 1,
               "team" : {
                  "logo" : "/ownerlogo?size=36x36&amp;teamid=1",
                  "long_abbr" : "Pudge",
                  "abbr" : "LP",
                  "short_name" : "Little",
                  "name" : "Little Pudge",
                  "id" : "1"
               }
            },
         ]
      }
   },
   "uriAlias" : "/league/draft/order",
   "statusMessage" : "OK",
   "uri" : "/league/draft/order",
   "statusCode" : 200
}

XML field definitions

/draft_order

A container element for the draft order.

/draft_order/picks

A container element for the list of picks in the draft order.

/draft_order/picks/pick

A container element for information on a pick.

/draft_order/picks/pick/number

The number of the pick in the draft order, as an integer.

/draft_order/picks/pick/round

The round the pick is in, as an integer.

/draft_order/picks/pick/team

A container element for the data on the team that owns this pick in the draft order.

/draft_order/picks/pick/team/@id

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

/draft_order/picks/pick/team/logo

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

/draft_order/picks/pick/team/long_abbr

An abbreviation of the team’s name, as a string with a maximum length of 10 characters.

/draft_order/picks/pick/team/abbr

An abbreviation of the team’s name, as a string with a maximum length of 3 characters.

/draft_order/picks/pick/team/short_name

An abbreviation of the team’s name, as a string with a maximum length of 6 characters.

/draft_order/picks/pick/team/name

The full name for the team.