/trip/addfavorite

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/trip/addfavorite

Semantics

Adds a trip to a user's list of favorite trips

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringyesusername of user performing the request
passwordstringyespassword of user performing the request
trip_idintyesid of the trip
favorite_typestringno(like, been, want) which refer to "I like this trip", "I have been here", "I want to go here", respectively. Default is "like"

Success Response

<etTripAddfavoriteReponse status="success">
  <tripID>${trip ID}</tripID>
</etTripCompleteResponse>

${trip ID}: ID of trip on the server as int

Error Reponse

<etTripAddfavoriteReponse status="error">
  <tripID>${trip ID}</tripID>
  ${error reponse}
</etTripCompleteReponse>

${trip ID}: ID of the trip on the server

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

Personal tools