POST Videos/GetVideoComments

Get all videocomments

Request Information

URI Parameters

None.

Body Parameters

RequestVideoComments
NameDescriptionTypeAdditional information
UserID

integer

None.

VideoID

if 0 returns empty model

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "VideoID": 2
}

text/html

Sample:
{"UserID":1,"VideoID":2}

application/xml, text/xml

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

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 'RequestVideoComments'.

Response Information

Resource Description

List of videocomments

GetVideoComments
NameDescriptionTypeAdditional information
UserActive

1 if user is paying member 0 if user is non paying member

integer

None.

CommentCount

total comments count

integer

None.

ListComments

Collection of VideoComment

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.VideoComment'. Path 'ListComments[0].ChildComments'.

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.VideoComment'. Path 'ListComments[0].ChildComments'.

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.VideoComment'. Path 'ListComments[0].ChildComments'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[YogaStreamAPIv2.VideoComment, YogaStreamAPIv2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[YogaStreamAPIv2.VideoComment, YogaStreamAPIv2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.