/trip/vote

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/trip/vote

Semantics

Vote on a trip

Parameters

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

Personal tools