/video/vote

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/video/vote

Semantics

Vote on a video

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringyesusername for authentication
passwordstringyespassword for authentication
video_idintyesid of the video to vote on
voteintyesthe 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

Personal tools