/trip/addfavorite
From EveryTrail API Developer Documentation
Contents |
URL
/api/trip/addfavorite
Semantics
Adds a trip to a user's list of favorite trips
Parameters
| Parameter name | Parameter format | Required | Description |
|---|---|---|---|
| username | string | yes | username of user performing the request |
| password | string | yes | password of user performing the request |
| trip_id | int | yes | id of the trip |
| favorite_type | string | no | (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
