Basic Trip Creation

From EveryTrail API Developer Documentation

Jump to: navigation, search

Contents

URL

/api/trip/create

Semantics

Required method: Creates a basic trip and assigns a trip ID which may be used for subsequent requests.

Parameters

Parameter nameParameter formatRequiredDescription
usernamestringyesusername of user performing the request
passwordstringyespassword of user performing the request
titlestringyestitle for the trip
descriptionstringnoDescription (story) for the trip
tipsstringnoTips for the trip
timestring in Standard Date FormatyesCreation timestamp for the trip
activitystringnoActivity for the trip. This parameter is matched case sensitively against the activities in the Activity List. If it does not exist there it will be listed as an "Other" activity.
activity_idintnoID for activity of the trip. Either activity or activity_id is required. See Activity List. Don't include or use 0 if no activity. If you want to specify an activity not on the list, put it in the "activity" parameter
gps_device_idintnoSee GpsDevice List
visibility_idintyesThe visibility of the trip on the server. See Visibility List
map_typeStringnoThe default map type when viewing the trip Map Type List



Success Response

<etTripCreateResponse status="success">
  <tripID>${trip ID}</tripID>
</etTripCreateReponse>

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

Error Reponse

<etTripCreateResponse status="error">
  ${error reponse}
</etTripCreateResponse>

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

Personal tools