/picture/vote
From EveryTrail API Developer Documentation
Contents |
URL
/api/picture/vote
Semantics
Vote on a picture
Parameters
| Parameter name | Parameter format | Required | Description |
|---|---|---|---|
| username | string | yes | username for authentication |
| password | string | yes | password for authentication |
| picture_id | int | yes | id of the picture to vote on |
| vote | int | yes | the 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
