Resource: PointsGET /v2/points/classes/Gets a list of point classes Request Parameters
Below is a list or available request parameters.
Name | Type | Description | Default |
ScheduleId |
INT |
Filters classes by a schedule ID |
[REQUIRED] |
ClassId |
INT |
Filters classes by a class ID (0 for all) |
0 |
ClassCount |
INT |
Number of classes to return (0 for all) |
0 |
DriverCount |
INT |
Number of drivers to return per class (0 for all) |
0 |
IncludePoints |
BOOL |
If true, points will be included in the payload |
false |
Example Call
GET
https://api.myracepass.com/v2/points/classes/?key={xxx}&ScheduleId={id}
Response Information
Returns
A list of classes with points.
Response Body
{
"RequestValid": 1,
"ItemsReturned": 1,
"Classes": [
{
"ClassId": 1002,
"ClassName": "360 Sprints - Winged",
"ClassNameOverride": "",
"PointsAsOf": "5/18/2014",
"Points": [
{
"Position": 1,
"CarNum": "17",
"PointTotal": "16",
"Wins": 1,
"Top5": 3,
"Top10": 3,
"Features": 3,
"Driver": [
{
"DriverId": "1",
"DriverFName": "Sample",
"DriverLName": "Driver",
"DriverSuffix": "",
"DriverCity": "Madison",
"DriverState": "WI",
"DriverCountry": ""
}
]
}
]
}
],
"RequestCached": 0
}
|