POST Videos/CoursesUserFavourites

Get favourite courses for user

Request Information

URI Parameters

None.

Body Parameters

RequestVideoCoursesUserFavourites
NameDescriptionTypeAdditional information
UserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1
}

text/html

Sample:
{"UserID":1}

application/xml, text/xml

Sample:
<RequestVideoCoursesUserFavourites xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <UserID>1</UserID>
</RequestVideoCoursesUserFavourites>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestVideoCoursesUserFavourites'.

Response Information

Resource Description

Collection of CourseData
NameDescriptionTypeAdditional information
Course_ID

integer

None.

Course_Type

0 = normal, 1 = challenge

integer

None.

Course_Watched

boolean

None.

Course_Challenge

boolean

None.

Course_ChallengeDays

integer

None.

Course_VideoCount

integer

None.

Course_Name

string

None.

Course_URI

string

None.

Course_AvailableForUser

boolean

None.

Course_Thumbnail

string

None.

Course_Description

string

None.

Course_Duration

integer

None.

Course_DateCreated

string

None.

Course_Beginner

boolean

None.

Course_Pregnant

boolean

None.

Course_FilterIDs

Collection of integer

None.

Course_AddedToCalendar

boolean

None.

Course_AddedToCalendarDateTime

string

None.

Course_Filters

Collection of VideoFiltersParent

None.

UserCourseData

UserCourseData

None.

InstructorUser_ID

integer

None.

InstructorUser_FirstName

string

None.

InstructorUser_LastName

string

None.

InstructorUser_Image

string

None.

InstructorUser_Description

string

None.

InstructorUser_AfterName

string

None.

InstructorUser_Quote

string

None.

Course_Videos

Collection of CourseDataVideo

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'YogaStreamAPIv2.VideoData'. Path '[0].Course_Videos[0].AllData.Course.Videos'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'YogaStreamAPIv2.VideoData'. Path '[0].Course_Videos[0].AllData.Course.Videos'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Self referencing loop detected with type 'YogaStreamAPIv2.VideoData'. Path '[0].Course_Videos[0].AllData.Course.Videos'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.