Add Favorite Trip
From EveryTrail API Developer Documentation
Contents |
URL
/api/user/addfavoritetrip
Semantics
Marks a trip as a favorite trip for a user
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 mark as favorite |
Success Response
<etUserAddfavoritetripResponse status="success"> <tripId>${trip ID}</tripId> </etUserAddFavoriteTripResponse>
${trip ID}: ID of the trip
Error Response
<etUserAddFavoriteTripResponse status="error"> <tripID>${trip ID}</tripID> ${error reponse} </etUserAddFavoriteTripResponse>
${trip ID}: ID of the trip
${error reponse}: See format in Error Reponse Format
Old version
The documentation of the old version of this API can be found here
