Get course classes
Resource URL
URL: course/classes
Parameters
string username | Username |
string password | Password |
int courseId | Unique identifief of the course |
string courseExternalId | Unique external course identifier. Either courseId or courseExternalId must be filled |
date fromDate | Return only classes starting after date. Format yyyy-MM-dd. |
date fromDate | Return only classes starting before date. Format yyyy-MM-dd. |
Return value
address | Contains location where course class is going to take place, contains city, location, zipCode, country |
startDate | Course class start date. Format: yyyy-MM-dd. |
startTime | Course class start time. Format hh:mm |
endDate | Course class end date. Format: yyyy-MM-dd. |
endTime | Course class end time. Format hh:mm |
courseClassId | Unique identifier of course class |
price | The price. Contains amount and currency |
enrollmentDeadline | Users cannot be enrolled to course class after this date. Format: yyyy-MM-dd. |
cancellationDeadline | Enrollment cannot be cancelled after this date. Format: yyyy-MM-dd. |
availableSeats | Number of seats available. |
courseProviderName | The name of the provider of the course |
location | Name of the location |
Example request
URL | |
POST DATA | courseId=3511&username=username&password=secret&fromDate=2012-01-17&toDate=2013-01-01 |
{
"courseClassesDetails": [
{
"address": {
"location": "Versvikvegen 2",
"city": "Porsgrunn",
"zipCode": "3937",
"contry": ""
},
"startTime": "",
"endTime": "",
"courseClassId": 4272,
"price": {
"currency": "NOK",
"amount": 16750
},
"enrollmentDeadline": "2012-01-26",
"cancellationDeadline": null,
"startDate": "2012-01-30",
"availableSeats": 0,
"endDate": "2012-02-03",
"courseProviderName": "TS Impro",
"locationName": "Posgrunn"
},
{
"address": {
"location": "Versvikvegen 2",
"city": "Porsgrunn",
"zipCode": "3937",
"contry": ""
},
"startTime": "",
"endTime": "",
"courseClassId": 4273,
"price": {
"currency": "NOK",
"amount": 16750
},
"enrollmentDeadline": "2012-02-09",
"cancellationDeadline": null,
"startDate": "2012-02-13",
"availableSeats": 0,
"endDate": "2012-02-17",
"courseProviderName": "TS Impro",
"locationName": "Porsgrunn"
},
{
"address": {
"location": "Versvikvegen 2",
"city": "Porsgrunn",
"zipCode": "3937",
"contry": ""
},
"startTime": "",
"endTime": "",
"courseClassId": 4275,
"price": {
"currency": "NOK",
"amount": 16750
},
"enrollmentDeadline": "2012-02-16",
"cancellationDeadline": null,
"startDate": "2012-02-20",
"availableSeats": 12,
"endDate": "2012-02-24",
"courseProviderName": "TS Impro",
"locationName": "Porsgrunn"
},
{
"address": {
"location": "Stargate 1",
"city": "Hamar",
"zipCode": "2300",
"contry": ""
},
"startTime": "09:00",
"endTime": "15:00",
"courseClassId": 4654,
"price": {
"currency": "NOK",
"amount": 2000
},
"enrollmentDeadline": "2012-02-29",
"cancellationDeadline": "2012-02-29",
"startDate": "2012-03-02",
"availableSeats": 8,
"endDate": "2012-03-03",
"courseProviderName": "Nosefo",
"locationName": "Oslo"
},
{
"address": {
"location": "Stargate 2",
"city": "Hamar",
"zipCode": "2300",
"contry": ""
},
"startTime": "09:00",
"endTime": "15:00",
"courseClassId": 4655,
"price": {
"currency": "NOK",
"amount": 1000
},
"enrollmentDeadline": "2012-03-01",
"cancellationDeadline": "2012-03-01",
"startDate": "2012-03-03",
"availableSeats": 8,
"endDate": "2012-03-04",
"courseProviderName": "Nosefo",
"locationName": "Bergen"
},
{
"address": {
"location": "Stargate 3",
"city": "Hamar",
"zipCode": "2300",
"contry": ""
},
"startTime": "09:00",
"endTime": "15:00",
"courseClassId": 4656,
"price": {
"currency": "NOK",
"amount": 2000
},
"enrollmentDeadline": "2012-03-02",
"cancellationDeadline": "2012-03-02",
"startDate": "2012-03-04",
"availableSeats": 8,
"endDate": "2012-03-05",
"courseProviderName": "Nosefo",
"locationName": "Stavanger"
}
]
}