/video/vote
From EveryTrail API Developer Documentation
Contents |
URL
/api/video/vote
Semantics
Vote on a video
Parameters
| Parameter name | Parameter format | Required | Description |
|---|---|---|---|
| username | string | yes | username for authentication |
| password | string | yes | password for authentication |
| video_id | int | yes | id of the video to vote on |
| vote | int | yes | the vote (1-5, 1 being the worst, 5 the best) |
Success Response
<etVideoVoteResponse status="success"> <videoID>${pictire ID}</videoID> <rating votes="">{avg vote}</rating> </etVideoVoteResponse>
${video ID}: ID of the video
Error Response
<etVideoVoteResponse status="error"> <videoID>${video ID}</videoID> ${error reponse} </etVideoVoteResponse>
${video ID}: ID of the video
${error reponse}: See format in Error Reponse Format
