POST Videos/GetCurrentCourse
Gets current course returns null if nothing is found
Request Information
URI Parameters
None.
Body Parameters
RequestGetCurrentCourse| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserID": 1
}
text/html
Sample:
{"UserID":1}
application/xml, text/xml
Sample:
<RequestGetCurrentCourse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2"> <UserID>1</UserID> </RequestGetCurrentCourse>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CurrentCourseData| Name | Description | Type | Additional information |
|---|---|---|---|
| LogID |
Used to delete log |
integer |
None. |
| CourseID | integer |
None. |
|
| CourseTitle | string |
None. |
|
| CourseImage | string |
None. |
|
| CourseURI | string |
None. |
|
| InstructorName | string |
None. |
|
| InstructorUserID | integer |
None. |
|
| CourseWatchedTotal |
User watched in total |
integer |
None. |
| CourseToWatchTotal |
Total excluding free intro video |
integer |
None. |
| CourseChallengeDays | integer |
None. |
|
| CourseTotal |
Total including free intro video |
integer |
None. |
| CourseTotalMinutes | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"LogID": 1,
"CourseID": 2,
"CourseTitle": "sample string 3",
"CourseImage": "sample string 4",
"CourseURI": "sample string 5",
"InstructorName": "sample string 6",
"InstructorUserID": 7,
"CourseWatchedTotal": 8,
"CourseToWatchTotal": 9,
"CourseChallengeDays": 10,
"CourseTotal": 11,
"CourseTotalMinutes": 12
}
text/html
Sample:
{"LogID":1,"CourseID":2,"CourseTitle":"sample string 3","CourseImage":"sample string 4","CourseURI":"sample string 5","InstructorName":"sample string 6","InstructorUserID":7,"CourseWatchedTotal":8,"CourseToWatchTotal":9,"CourseChallengeDays":10,"CourseTotal":11,"CourseTotalMinutes":12}
application/xml, text/xml
Sample:
<CurrentCourseData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2"> <CourseChallengeDays>10</CourseChallengeDays> <CourseID>2</CourseID> <CourseImage>sample string 4</CourseImage> <CourseTitle>sample string 3</CourseTitle> <CourseToWatchTotal>9</CourseToWatchTotal> <CourseTotal>11</CourseTotal> <CourseTotalMinutes>12</CourseTotalMinutes> <CourseURI>sample string 5</CourseURI> <CourseWatchedTotal>8</CourseWatchedTotal> <InstructorName>sample string 6</InstructorName> <InstructorUserID>7</InstructorUserID> <LogID>1</LogID> </CurrentCourseData>