All URIs are relative to https://www.strava.com/api/v3
Method | HTTP request | Description |
---|---|---|
GetRouteAsGPX | Get /routes/{id}/export_gpx | Export Route GPX |
GetRouteAsTCX | Get /routes/{id}/export_tcx | Export Route TCX |
GetRouteById | Get /routes/{id} | Get Route |
GetRoutesByAthleteId | Get /athletes/{id}/routes | List Athlete Routes |
GetRouteAsGPX(ctx, id) Export Route GPX
Returns a GPX file of the route. Requires read_all scope for private routes.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | The identifier of the route. |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetRouteAsTCX(ctx, id) Export Route TCX
Returns a TCX file of the route. Requires read_all scope for private routes.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | The identifier of the route. |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Route GetRouteById(ctx, id) Get Route
Returns a route using its identifier. Requires read_all scope for private routes.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | The identifier of the route. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Route GetRoutesByAthleteId(ctx, id, optional) List Athlete Routes
Returns a list of the routes created by the authenticated athlete using their athlete ID. Private routes are filtered out unless requested by a token with read_all scope.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | The identifier of the athlete. | |
optional | *GetRoutesByAthleteIdOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetRoutesByAthleteIdOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| Page number. | perPage | optional.Int32| Number of items per page. Defaults to 30. | [default to 30]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]