/picture/vote

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/picture/vote

Semantics

Vote on a picture

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringyesusername for authentication
passwordstringyespassword for authentication
picture_idintyesid of the picture to vote on
voteintyesthe vote (1-5, 1 being the worst, 5 the best)

Success Response

<etPictureVoteResponse status="success">
  <pictureID>${pictire ID}</pictureID>
   <rating votes="">{avg vote}</rating>
</etTripVoteResponse>

${picture ID}: ID of the picture

Error Response

<etPictureVoteResponse status="error">
  <pictureID>${picture ID}</pictureID>
  ${error reponse}
</etPictureVoteResponse>

${picture ID}: ID of the picture

${error reponse}: See format in Error Reponse Format

Personal tools