Get Favorite Trips

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/user/favoritetrips

Semantics

Get a list of trips that the given user has marked as favorites

Parameters

Parameter nameParameter formatRequiredDescription
user_idintyesThe id of the owner of the trips
latdoublenoThe latitude coordinate to search near
londoublenoThe longitude coordinate to search near
modified_afterstring in Standard Date Formatnodate, results will only contains trips favorited or modified after that date
sortstringnoHow to order the results (recent_popularity, trip_date, creation_date, votes, proximity. Default is recent popularity)
orderstringnoHow to order the results (DESC, ASC). Default is ASC)
limitintnoThe maximum number of results to return (default is 20)
startintnoThe index of the first trip to return from the result set. (default is 0)
minimalbooleannoif true, only returns the root element for each result (and the id). used for quick syncing

Success Response

<etUserFavoritetripsResponse status="success">
  <trips>
    ${tripXML}
  </trips>
</etUserFavoritetripsResponse>

${tripXML} - see Trip XML Format

Error Response

<etUserFavoritetripsResponse status="error">
  ${error response}
</etUserFavoritetripsResponse>

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

Error Codes

CodeMessage
15Invalid user id
Personal tools