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