POST Videos/AddVideoComment
Adds video comment
Request Information
URI Parameters
None.
Body Parameters
RequestVideoCommentsNew| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID | integer |
None. |
|
| VideoID | integer |
None. |
|
| Value |
Comment Emoji encoding ex. 🙌 = %uD83D%uDE4C Use same enconding logic as javascript escape function |
string |
None. |
| ParentID |
Parent comment id |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserID": 1,
"VideoID": 2,
"Value": "sample string 3",
"ParentID": 4
}
text/html
Sample:
{"UserID":1,"VideoID":2,"Value":"sample string 3","ParentID":4}
application/xml, text/xml
Sample:
<RequestVideoCommentsNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2"> <ParentID>4</ParentID> <UserID>1</UserID> <Value>sample string 3</Value> <VideoID>2</VideoID> </RequestVideoCommentsNew>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
returns comment data
VideoCommentsData| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Firstname and Firstletter of lastname ie. Jayden h. |
string |
None. |
| FullName | string |
None. |
|
| Pic |
path to image ie. /includes/path/to/image.jpg |
string |
None. |
| CommentText | string |
None. |
|
| ParentID | integer |
None. |
|
| TopParentID |
0 if comment is top else the comment is a child of top parent |
integer |
None. |
| sDate |
format dd/MM/yyyy kl. HH:mm ie. 31/12/2021 kl. 23:59 |
string |
None. |
| Type |
if type = 1 then user is instructor and show picture else 0 = normal user |
integer |
None. |
| VideoID | integer |
None. |
|
| UserID | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"FullName": "sample string 2",
"Pic": "sample string 3",
"CommentText": "sample string 4",
"ParentID": 5,
"TopParentID": 6,
"sDate": "sample string 7",
"Type": 8,
"VideoID": 9,
"UserID": 10
}
text/html
Sample:
{"Name":"sample string 1","FullName":"sample string 2","Pic":"sample string 3","CommentText":"sample string 4","ParentID":5,"TopParentID":6,"sDate":"sample string 7","Type":8,"VideoID":9,"UserID":10}
application/xml, text/xml
Sample:
<VideoCommentsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2"> <CommentText>sample string 4</CommentText> <FullName>sample string 2</FullName> <Name>sample string 1</Name> <ParentID>5</ParentID> <Pic>sample string 3</Pic> <TopParentID>6</TopParentID> <Type>8</Type> <UserID>10</UserID> <VideoID>9</VideoID> <sDate>sample string 7</sDate> </VideoCommentsData>