Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 2.59 KB

SegmentEffortsApi.md

File metadata and controls

76 lines (47 loc) · 2.59 KB

\SegmentEffortsApi

All URIs are relative to https://www.strava.com/api/v3

Method HTTP request Description
GetEffortsBySegmentId Get /segments/{id}/all_efforts List Segment Efforts
GetSegmentEffortById Get /segment_efforts/{id} Get Segment Effort

GetEffortsBySegmentId

[]DetailedSegmentEffort GetEffortsBySegmentId(ctx, id, optional) List Segment Efforts

Returns a set of the authenticated athlete's segment efforts for a given segment.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 The identifier of the segment.
optional *GetEffortsBySegmentIdOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetEffortsBySegmentIdOpts struct

Name Type Description Notes

page | optional.Int32| Page number. | perPage | optional.Int32| Number of items per page. Defaults to 30. | [default to 30]

Return type

[]DetailedSegmentEffort

Authorization

strava_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetSegmentEffortById

DetailedSegmentEffort GetSegmentEffortById(ctx, id) Get Segment Effort

Returns a segment effort from an activity that is owned by the authenticated athlete.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int64 The identifier of the segment effort.

Return type

DetailedSegmentEffort

Authorization

strava_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]