Trip's Data
From EveryTrail API Developer Documentation
Contents |
URL
/api/trip/data
Semantics
Get all data for a trip (pictures, tracks, waypoints)
Parameters
| Parameter name | Parameter format | Required | Description |
|---|---|---|---|
| username | string | no | The username to use for authentication |
| password | string | no | The password to use for authentication |
| trip_id | int | yes | The id of the trip |
| enabled_types | int | no | A bitwise OR of the data types to return (0x1=Media, 0x2=Waypoints, 0x4=Locations), default is all |
- If the username and password are validated for the same user as the trip owner, trips that are private will be returned
Success Response
<etTripDataResponse status="success"> <pictures> ${pictureXML} </pictures> <videos> ${videoXML} </videos> <tracks> ${trackXML} </tracks> <waypoints> ${waypointXML} </waypoints> </etTripDataResponse>
- ${pictureXML} - see Picture XML Format. Pictures are returned in ascending creation date order.
- ${videoXML} - see Video XML Format. Videos are returned in ascending creation date order.
- ${trackXML} - see Track XML Format. Tracks are returned in the XML in ascending creation date order.
- ${waypointXML} - see Waypoint XML Format. Waypoints are returned in ascending creation date order.
Error Response
<etTripDataResponse status="error"> ${error response} </etTripDataResponse>
${error response}: See format in Error Reponse Format
Error Codes
| Code | Message |
|---|---|
| 105 | Invalid Trip Id |
| 109 | This trip is private |
