Categorygithub.com/rasher/strava.go
modulepackage
1.1.0
Repository: https://github.com/rasher/strava.go.git
Documentation: pkg.go.dev

# README

Go API client for strava

The Swagger Playground is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with different endpoints depending on the authorization scope you receive from your athletes. To use the Playground, go to https://www.strava.com/settings/api and change your “Authorization Callback Domain” to developers.strava.com. Please note, we only support Swagger 2.0. There is a known issue where you can only select one scope at a time. For more information, please check the section “client code” at https://developers.strava.com/docs.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 3.0.0
  • Package version: 1.0.0
  • Build date: 2024-01-07T23:52:02.036519012+01:00[Europe/Copenhagen]
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import strava "github.com/rasher/strava.go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), strava.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), strava.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), strava.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), strava.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
ActivitiesApiCreateActivityPost /activitiesCreate an Activity
ActivitiesApiGetActivityByIdGet /activities/{id}Get Activity
ActivitiesApiGetCommentsByActivityIdGet /activities/{id}/commentsList Activity Comments
ActivitiesApiGetKudoersByActivityIdGet /activities/{id}/kudosList Activity Kudoers
ActivitiesApiGetLapsByActivityIdGet /activities/{id}/lapsList Activity Laps
ActivitiesApiGetLoggedInAthleteActivitiesGet /athlete/activitiesList Athlete Activities
ActivitiesApiGetZonesByActivityIdGet /activities/{id}/zonesGet Activity Zones
ActivitiesApiUpdateActivityByIdPut /activities/{id}Update Activity
AthletesApiGetLoggedInAthleteGet /athleteGet Authenticated Athlete
AthletesApiGetLoggedInAthleteZonesGet /athlete/zonesGet Zones
AthletesApiGetStatsGet /athletes/{id}/statsGet Athlete Stats
AthletesApiUpdateLoggedInAthletePut /athleteUpdate Athlete
ClubsApiGetClubActivitiesByIdGet /clubs/{id}/activitiesList Club Activities
ClubsApiGetClubAdminsByIdGet /clubs/{id}/adminsList Club Administrators
ClubsApiGetClubByIdGet /clubs/{id}Get Club
ClubsApiGetClubMembersByIdGet /clubs/{id}/membersList Club Members
ClubsApiGetLoggedInAthleteClubsGet /athlete/clubsList Athlete Clubs
GearsApiGetGearByIdGet /gear/{id}Get Equipment
RoutesApiGetRouteAsGPXGet /routes/{id}/export_gpxExport Route GPX
RoutesApiGetRouteAsTCXGet /routes/{id}/export_tcxExport Route TCX
RoutesApiGetRouteByIdGet /routes/{id}Get Route
RoutesApiGetRoutesByAthleteIdGet /athletes/{id}/routesList Athlete Routes
SegmentEffortsApiGetEffortsBySegmentIdGet /segment_effortsList Segment Efforts
SegmentEffortsApiGetSegmentEffortByIdGet /segment_efforts/{id}Get Segment Effort
SegmentsApiExploreSegmentsGet /segments/exploreExplore segments
SegmentsApiGetLoggedInAthleteStarredSegmentsGet /segments/starredList Starred Segments
SegmentsApiGetSegmentByIdGet /segments/{id}Get Segment
SegmentsApiStarSegmentPut /segments/{id}/starredStar Segment
StreamsApiGetActivityStreamsGet /activities/{id}/streamsGet Activity Streams
StreamsApiGetRouteStreamsGet /routes/{id}/streamsGet Route Streams
StreamsApiGetSegmentEffortStreamsGet /segment_efforts/{id}/streamsGet Segment Effort Streams
StreamsApiGetSegmentStreamsGet /segments/{id}/streamsGet Segment Streams
UploadsApiCreateUploadPost /uploadsUpload Activity
UploadsApiGetUploadByIdGet /uploads/{uploadId}Get Upload

Documentation For Models

Documentation For Authorization

strava_oauth

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://www.strava.com/api/v3/oauth/authorize
  • Scopes:
  • read: Read public segments, public routes, public profile data, public posts, public events, club feeds, and leaderboards
  • read_all: Read private routes, private segments, and private events for the user
  • profile:read_all: Read all profile information even if the user has set their profile visibility to Followers or Only You
  • profile:write: Update the user's weight and Functional Threshold Power (FTP), and access to star or unstar segments on their behalf
  • activity:read: Read the user's activity data for activities that are visible to Everyone and Followers, excluding privacy zone data
  • activity:read_all: The same access as activity:read, plus privacy zone data and access to read the user's activities with visibility set to Only You
  • activity:write: Access to create manual activities and uploads, and access to edit any activities that are visible to the app, based on activity read access level

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewActivityStats instantiates a new ActivityStats object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActivityStatsWithDefaults instantiates a new ActivityStats object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewActivityTotal instantiates a new ActivityTotal object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActivityTotalWithDefaults instantiates a new ActivityTotal object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewActivityTypeFromValue returns a pointer to a valid ActivityType for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewActivityZone instantiates a new ActivityZone object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActivityZoneWithDefaults instantiates a new ActivityZone object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAltitudeStream instantiates a new AltitudeStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAltitudeStreamAllOf instantiates a new AltitudeStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAltitudeStreamAllOfWithDefaults instantiates a new AltitudeStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAltitudeStreamWithDefaults instantiates a new AltitudeStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewBaseStream instantiates a new BaseStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewBaseStreamWithDefaults instantiates a new BaseStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCadenceStream instantiates a new CadenceStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCadenceStreamAllOf instantiates a new CadenceStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCadenceStreamAllOfWithDefaults instantiates a new CadenceStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewCadenceStreamWithDefaults instantiates a new CadenceStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClubActivity instantiates a new ClubActivity object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClubActivityWithDefaults instantiates a new ClubActivity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewClubAthlete instantiates a new ClubAthlete object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewClubAthleteWithDefaults instantiates a new ClubAthlete object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewComment instantiates a new Comment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCommentWithDefaults instantiates a new Comment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewConfiguration returns a new Configuration object.
NewDetailedActivity instantiates a new DetailedActivity object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedActivityAllOf instantiates a new DetailedActivityAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedActivityAllOfWithDefaults instantiates a new DetailedActivityAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedActivityWithDefaults instantiates a new DetailedActivity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedAthlete instantiates a new DetailedAthlete object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedAthleteAllOf instantiates a new DetailedAthleteAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedAthleteAllOfWithDefaults instantiates a new DetailedAthleteAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedAthleteWithDefaults instantiates a new DetailedAthlete object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedClub instantiates a new DetailedClub object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedClubAllOf instantiates a new DetailedClubAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedClubAllOfWithDefaults instantiates a new DetailedClubAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedClubWithDefaults instantiates a new DetailedClub object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedGear instantiates a new DetailedGear object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedGearAllOf instantiates a new DetailedGearAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedGearAllOfWithDefaults instantiates a new DetailedGearAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedGearWithDefaults instantiates a new DetailedGear object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedSegment instantiates a new DetailedSegment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedSegmentAllOf instantiates a new DetailedSegmentAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedSegmentAllOfWithDefaults instantiates a new DetailedSegmentAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedSegmentEffort instantiates a new DetailedSegmentEffort object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedSegmentEffortAllOf instantiates a new DetailedSegmentEffortAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDetailedSegmentEffortAllOfWithDefaults instantiates a new DetailedSegmentEffortAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedSegmentEffortWithDefaults instantiates a new DetailedSegmentEffort object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDetailedSegmentWithDefaults instantiates a new DetailedSegment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDistanceStream instantiates a new DistanceStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDistanceStreamAllOf instantiates a new DistanceStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewDistanceStreamAllOfWithDefaults instantiates a new DistanceStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewDistanceStreamWithDefaults instantiates a new DistanceStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewExplorerResponse instantiates a new ExplorerResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewExplorerResponseWithDefaults instantiates a new ExplorerResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewExplorerSegment instantiates a new ExplorerSegment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewExplorerSegmentWithDefaults instantiates a new ExplorerSegment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFault instantiates a new Fault object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFaultWithDefaults instantiates a new Fault object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewHeartrateStream instantiates a new HeartrateStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewHeartrateStreamAllOf instantiates a new HeartrateStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewHeartrateStreamAllOfWithDefaults instantiates a new HeartrateStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewHeartrateStreamWithDefaults instantiates a new HeartrateStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewHeartRateZoneRanges instantiates a new HeartRateZoneRanges object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewHeartRateZoneRangesWithDefaults instantiates a new HeartRateZoneRanges object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLap instantiates a new Lap object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLapWithDefaults instantiates a new Lap object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLatLngStream instantiates a new LatLngStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLatLngStreamAllOf instantiates a new LatLngStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLatLngStreamAllOfWithDefaults instantiates a new LatLngStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLatLngStreamWithDefaults instantiates a new LatLngStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMetaActivity instantiates a new MetaActivity object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMetaActivityWithDefaults instantiates a new MetaActivity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMetaAthlete instantiates a new MetaAthlete object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMetaAthleteWithDefaults instantiates a new MetaAthlete object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMetaClub instantiates a new MetaClub object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMetaClubWithDefaults instantiates a new MetaClub object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMovingStream instantiates a new MovingStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMovingStreamAllOf instantiates a new MovingStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewMovingStreamAllOfWithDefaults instantiates a new MovingStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMovingStreamWithDefaults instantiates a new MovingStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewPhotosSummary instantiates a new PhotosSummary object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPhotosSummaryPrimary instantiates a new PhotosSummaryPrimary object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPhotosSummaryPrimaryWithDefaults instantiates a new PhotosSummaryPrimary object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPhotosSummaryWithDefaults instantiates a new PhotosSummary object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPolylineMap instantiates a new PolylineMap object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPolylineMapWithDefaults instantiates a new PolylineMap object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPowerStream instantiates a new PowerStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPowerStreamAllOf instantiates a new PowerStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPowerStreamAllOfWithDefaults instantiates a new PowerStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPowerStreamWithDefaults instantiates a new PowerStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewPowerZoneRanges instantiates a new PowerZoneRanges object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewPowerZoneRangesWithDefaults instantiates a new PowerZoneRanges object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRoute instantiates a new Route object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRouteWithDefaults instantiates a new Route object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSmoothGradeStream instantiates a new SmoothGradeStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSmoothGradeStreamAllOf instantiates a new SmoothGradeStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSmoothGradeStreamAllOfWithDefaults instantiates a new SmoothGradeStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSmoothGradeStreamWithDefaults instantiates a new SmoothGradeStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSmoothVelocityStream instantiates a new SmoothVelocityStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSmoothVelocityStreamAllOf instantiates a new SmoothVelocityStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSmoothVelocityStreamAllOfWithDefaults instantiates a new SmoothVelocityStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSmoothVelocityStreamWithDefaults instantiates a new SmoothVelocityStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSplit instantiates a new Split object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSplitWithDefaults instantiates a new Split object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSportTypeFromValue returns a pointer to a valid SportType for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewStreamSet instantiates a new StreamSet object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewStreamSetWithDefaults instantiates a new StreamSet object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummaryActivity instantiates a new SummaryActivity object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummaryActivityAllOf instantiates a new SummaryActivityAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummaryActivityAllOfWithDefaults instantiates a new SummaryActivityAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummaryActivityWithDefaults instantiates a new SummaryActivity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummaryAthlete instantiates a new SummaryAthlete object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummaryAthleteAllOf instantiates a new SummaryAthleteAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummaryAthleteAllOfWithDefaults instantiates a new SummaryAthleteAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummaryAthleteWithDefaults instantiates a new SummaryAthlete object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummaryClub instantiates a new SummaryClub object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummaryClubAllOf instantiates a new SummaryClubAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummaryClubAllOfWithDefaults instantiates a new SummaryClubAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummaryClubWithDefaults instantiates a new SummaryClub object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummaryGear instantiates a new SummaryGear object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummaryGearWithDefaults instantiates a new SummaryGear object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummaryPRSegmentEffort instantiates a new SummaryPRSegmentEffort object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummaryPRSegmentEffortWithDefaults instantiates a new SummaryPRSegmentEffort object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummarySegment instantiates a new SummarySegment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummarySegmentEffort instantiates a new SummarySegmentEffort object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewSummarySegmentEffortWithDefaults instantiates a new SummarySegmentEffort object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSummarySegmentWithDefaults instantiates a new SummarySegment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTemperatureStream instantiates a new TemperatureStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTemperatureStreamAllOf instantiates a new TemperatureStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTemperatureStreamAllOfWithDefaults instantiates a new TemperatureStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTemperatureStreamWithDefaults instantiates a new TemperatureStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTimedZoneRange instantiates a new TimedZoneRange object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTimedZoneRangeAllOf instantiates a new TimedZoneRangeAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTimedZoneRangeAllOfWithDefaults instantiates a new TimedZoneRangeAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTimedZoneRangeWithDefaults instantiates a new TimedZoneRange object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTimeStream instantiates a new TimeStream object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTimeStreamAllOf instantiates a new TimeStreamAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewTimeStreamAllOfWithDefaults instantiates a new TimeStreamAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewTimeStreamWithDefaults instantiates a new TimeStream object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdatableActivity instantiates a new UpdatableActivity object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdatableActivityWithDefaults instantiates a new UpdatableActivity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpload instantiates a new Upload object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUploadWithDefaults instantiates a new Upload object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewZoneRange instantiates a new ZoneRange object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewZoneRangeWithDefaults instantiates a new ZoneRange object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewZones instantiates a new Zones object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewZonesWithDefaults instantiates a new Zones object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.

# Constants

List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.
List of SportType.

# Variables

All allowed values of ActivityType enum.
All allowed values of SportType enum.
ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

ActivityStats A set of rolled-up statistics and totals for an athlete.
ActivityTotal A roll-up of metrics pertaining to a set of activities.
ActivityZone struct for ActivityZone.
AltitudeStream struct for AltitudeStream.
AltitudeStreamAllOf struct for AltitudeStreamAllOf.
APIClient manages communication with the Strava API v3 API v3.0.0 In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
APIResponse stores the API response returned by the server.
No description provided by the author
No description provided by the author
No description provided by the author
BaseStream struct for BaseStream.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
CadenceStream struct for CadenceStream.
CadenceStreamAllOf struct for CadenceStreamAllOf.
ClubActivity struct for ClubActivity.
ClubAthlete struct for ClubAthlete.
Comment struct for Comment.
Configuration stores the configuration of the API client.
DetailedActivity struct for DetailedActivity.
DetailedActivityAllOf struct for DetailedActivityAllOf.
DetailedAthlete struct for DetailedAthlete.
DetailedAthleteAllOf struct for DetailedAthleteAllOf.
DetailedClub struct for DetailedClub.
DetailedClubAllOf struct for DetailedClubAllOf.
DetailedGear struct for DetailedGear.
DetailedGearAllOf struct for DetailedGearAllOf.
DetailedSegment struct for DetailedSegment.
DetailedSegmentAllOf struct for DetailedSegmentAllOf.
DetailedSegmentEffort struct for DetailedSegmentEffort.
DetailedSegmentEffortAllOf struct for DetailedSegmentEffortAllOf.
DistanceStream struct for DistanceStream.
DistanceStreamAllOf struct for DistanceStreamAllOf.
Error struct for Error.
ExplorerResponse struct for ExplorerResponse.
ExplorerSegment struct for ExplorerSegment.
Fault Encapsulates the errors that may be returned from the API.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
HeartrateStream struct for HeartrateStream.
HeartrateStreamAllOf struct for HeartrateStreamAllOf.
HeartRateZoneRanges struct for HeartRateZoneRanges.
Lap struct for Lap.
LatLngStream struct for LatLngStream.
LatLngStreamAllOf struct for LatLngStreamAllOf.
MetaActivity struct for MetaActivity.
MetaAthlete struct for MetaAthlete.
MetaClub struct for MetaClub.
MovingStream struct for MovingStream.
MovingStreamAllOf struct for MovingStreamAllOf.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PhotosSummary struct for PhotosSummary.
PhotosSummaryPrimary struct for PhotosSummaryPrimary.
PolylineMap struct for PolylineMap.
PowerStream struct for PowerStream.
PowerStreamAllOf struct for PowerStreamAllOf.
PowerZoneRanges struct for PowerZoneRanges.
Route struct for Route.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
SmoothGradeStream struct for SmoothGradeStream.
SmoothGradeStreamAllOf struct for SmoothGradeStreamAllOf.
SmoothVelocityStream struct for SmoothVelocityStream.
SmoothVelocityStreamAllOf struct for SmoothVelocityStreamAllOf.
Split struct for Split.
StreamSet struct for StreamSet.
SummaryActivity struct for SummaryActivity.
SummaryActivityAllOf struct for SummaryActivityAllOf.
SummaryAthlete struct for SummaryAthlete.
SummaryAthleteAllOf struct for SummaryAthleteAllOf.
SummaryClub struct for SummaryClub.
SummaryClubAllOf struct for SummaryClubAllOf.
SummaryGear struct for SummaryGear.
SummaryPRSegmentEffort struct for SummaryPRSegmentEffort.
SummarySegment struct for SummarySegment.
SummarySegmentEffort struct for SummarySegmentEffort.
TemperatureStream struct for TemperatureStream.
TemperatureStreamAllOf struct for TemperatureStreamAllOf.
TimedZoneRange A union type representing the time spent in a given zone.
TimedZoneRangeAllOf struct for TimedZoneRangeAllOf.
TimeStream struct for TimeStream.
TimeStreamAllOf struct for TimeStreamAllOf.
UpdatableActivity struct for UpdatableActivity.
Upload struct for Upload.
ZoneRange struct for ZoneRange.
Zones struct for Zones.

# Type aliases

ActivitiesApiService ActivitiesApi service.
ActivityType An enumeration of the types an activity may have.
AthletesApiService AthletesApi service.
ClubsApiService ClubsApi service.
GearsApiService GearsApi service.
RoutesApiService RoutesApi service.
SegmentEffortsApiService SegmentEffortsApi service.
SegmentsApiService SegmentsApi service.
ServerConfigurations stores multiple ServerConfiguration items.
SportType An enumeration of the sport types an activity may have.
StreamsApiService StreamsApi service.
UploadsApiService UploadsApi service.