League Dates
League Dates v2.0
Summary
| League Dates | |
| Resource | |
| League Dates | Retrieve a list of dates for a fantasy league. |
| HTTP Methods | |
| GET | Retrieve a list of dates for a fantasy league. |
| Example | |
| Retrieve League Dates | |
| XML field definitions | |
| /dates | A container element for a fantasy league’s dates |
| /dates/ | The current date for a fantasy league in YYYYMMDD format |
| /dates/ | The current period number for a fantasy league |
| /dates/ | The current point for a fantasy league in YYYYMMDD format |
| /dates/ | The period for which any transactions (add/drops, trades, lineup moves) are effective for at the given time. |
| /dates/ | The date for which any transactions (add/drops, trades, lineup moves) are effective for at the given time in YYYYMMDD format. |
| /dates/ | The date for which stats and standings have been last processed for the fantasy league in YYYYMMDD format. |
| /dates/ | The day number of the pro season with 1 being the first day of the pro season. |
| /dates/ | The period for which stats and standings have last been processed for the fantasy league. |
| /dates/ | The point for which stats and standings have last been processed for the fantasy league. |
| /dates/ | The end date for the pro season in YYYYMMDD format. |
| /dates/ | The start date for the pro season in YYYYMMDD format. |
GET
Retrieve a list of dates for a fantasy league.
URL
http://api.cbssports.com
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. |
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
}