League Dates v2.0

Summary
League Dates
Resource
League DatesRetrieve a list of dates for a fantasy league.
HTTP Methods
GETRetrieve a list of dates for a fantasy league.
Example
Retrieve League Dates
XML field definitions
/datesA container element for a fantasy league’s dates
/dates/current_dateThe current date for a fantasy league in YYYYMMDD format
/dates/current_periodThe current period number for a fantasy league
/dates/current_pointThe current point for a fantasy league in YYYYMMDD format
/dates/effective_periodThe period for which any transactions (add/drops, trades, lineup moves) are effective for at the given time.
/dates/effective_pointThe date for which any transactions (add/drops, trades, lineup moves) are effective for at the given time in YYYYMMDD format.
/dates/process_dateThe date for which stats and standings have been last processed for the fantasy league in YYYYMMDD format.
/dates/process_day_of_seasonThe day number of the pro season with 1 being the first day of the pro season.
/dates/process_periodThe period for which stats and standings have last been processed for the fantasy league.
/dates/process_pointThe point for which stats and standings have last been processed for the fantasy league.
/dates/season_endThe end date for the pro season in YYYYMMDD format.
/dates/season_startThe start date for the pro season in YYYYMMDD format.

Resource

League Dates

Description

Retrieve a list of dates for a fantasy league.

HTTP Methods

GET

Retrieve a list of dates for a fantasy league.

URL

http://api.cbssports.com/fantasy/league/dates?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 League Dates

Sample URL

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

XML Response

<?xml version="1.0"?>
<result uriAlias="/league/dates" uri="/league/dates" statusCode="200" statusMessage="OK">
  <body>
    <dates>
      <current_period>9</current_period>
      <effective_point>20120521</effective_point>
      <season_start>20120328</season_start>
      <process_point>20120520</process_point>
      <process_date>20120520</process_date>
      <season_end>20121003</season_end>
      <current_date>20120521</current_date>
      <process_period>8</process_period>
      <process_day_of_season>54</process_day_of_season>
      <effective_period>9</effective_period>
      <current_point>20120521</current_point>
    </dates>
  </body>
</result>

JSON Response

{
   "body" : {
      "dates" : {
         "current_period" : "9",
         "effective_point" : "20120521",
         "season_start" : "20120328",
         "process_point" : "20120520",
         "process_date" : "20120520",
         "season_end" : "20121003",
         "current_date" : "20120521",
         "process_period" : "8",
         "process_day_of_season" : "54",
         "effective_period" : "9",
         "current_point" : "20120521"
      }
   },
   "uriAlias" : "/league/dates",
   "statusMessage" : "OK",
   "uri" : "/league/dates",
   "statusCode" : 200
}

XML field definitions

/dates

A container element for a fantasy league’s dates

/dates/current_date

The current date for a fantasy league in YYYYMMDD format

/dates/current_period

The current period number for a fantasy league

/dates/current_point

The current point for a fantasy league in YYYYMMDD format

/dates/effective_period

The period for which any transactions (add/drops, trades, lineup moves) are effective for at the given time.

/dates/effective_point

The date for which any transactions (add/drops, trades, lineup moves) are effective for at the given time in YYYYMMDD format.

/dates/process_date

The date for which stats and standings have been last processed for the fantasy league in YYYYMMDD format.

/dates/process_day_of_season

The day number of the pro season with 1 being the first day of the pro season.

/dates/process_period

The period for which stats and standings have last been processed for the fantasy league.

/dates/process_point

The point for which stats and standings have last been processed for the fantasy league.

/dates/season_end

The end date for the pro season in YYYYMMDD format.

/dates/season_start

The start date for the pro season in YYYYMMDD format.