Safe Haskell | None |
---|
Functions for performing actions against the API.
- with :: Default a => [a -> a] -> a
- (?) :: Default a => (a -> b) -> [a -> a] -> b
- buildAuthorizeUrl :: Integer -> String -> BuildAuthorizeUrlOptions -> String
- exchangeToken :: Integer -> String -> String -> IO (Either String TokenExchangeResponse)
- deauthorize :: Client -> IO (Either String DeauthorizationResponse)
- getCurrentAthlete :: Client -> IO (Either String AthleteDetailed)
- getAthlete :: Client -> Integer -> IO (Either String AthleteSummary)
- updateCurrentAthlete :: Client -> UpdateCurrentAthleteOptions -> IO (Either String AthleteDetailed)
- getAthleteCrs :: Client -> Integer -> GetAthleteCrsOptions -> IO (Either String [EffortDetailed])
- getCurrentFriends :: Client -> GetCurrentFriendsOptions -> IO (Either String [AthleteSummary])
- getFriends :: Client -> Integer -> GetFriendsOptions -> IO (Either String [AthleteSummary])
- getCurrentFollowers :: Client -> GetCurrentFollowersOptions -> IO (Either String [AthleteSummary])
- getFollowers :: Client -> Integer -> GetFollowersOptions -> IO (Either String [AthleteSummary])
- getCommonFriends :: Client -> Integer -> GetCommonFriendsOptions -> IO (Either String [AthleteSummary])
- createActivity :: Client -> String -> String -> UTCTime -> Integer -> CreateActivityOptions -> IO (Either String ActivityDetailed)
- getActivity :: Client -> Integer -> GetActivityOptions -> IO (Either String ActivitySummary)
- updateActivity :: Client -> Integer -> UpdateActivityOptions -> IO (Either String ActivityDetailed)
- deleteActivity :: Client -> Integer -> IO (Either String ())
- getCurrentActivities :: Client -> GetCurrentActivitiesOptions -> IO (Either String [ActivitySummary])
- getFeed :: Client -> GetFeedOptions -> IO (Either String [ActivitySummary])
- getActivityZones :: Client -> Integer -> IO (Either String [ActivityZoneDetailed])
- getActivityLaps :: Client -> Integer -> IO (Either String [ActivityLapSummary])
- getActivityComments :: Client -> Integer -> GetActivityCommentsOptions -> IO (Either String [CommentSummary])
- getActivityKudoers :: Client -> Integer -> GetActivityKudoersOptions -> IO (Either String [AthleteSummary])
- getActivityPhotos :: Client -> Integer -> IO (Either String [PhotoSummary])
- getClub :: Client -> Integer -> IO (Either String ClubDetailed)
- getCurrentClubs :: Client -> IO (Either String [ClubSummary])
- getClubMembers :: Client -> Integer -> GetClubMembersOptions -> IO (Either String [AthleteSummary])
- getClubActivities :: Client -> Integer -> GetClubActivitiesOptions -> IO (Either String [ActivitySummary])
- getGear :: Client -> String -> IO (Either String GearDetailed)
- getSegment :: Client -> Integer -> IO (Either String SegmentDetailed)
- getStarredSegments :: Client -> GetStarredSegmentsOptions -> IO (Either String [SegmentSummary])
- getSegmentEfforts :: Client -> Integer -> GetSegmentEffortsOptions -> IO (Either String [EffortDetailed])
- getSegmentLeaderboard :: Client -> Integer -> GetSegmentLeaderboardOptions -> IO (Either String SegmentLeaderboardResponse)
- exploreSegments :: Client -> (Double, Double, Double, Double) -> ExploreSegmentsOptions -> IO (Either String SegmentExplorerResponse)
- getSegmentEffort :: Client -> Integer -> IO (Either String EffortDetailed)
- getActivityStreams :: Client -> Integer -> [String] -> GetStreamsOptions -> IO (Either String [StreamDetailed])
- getEffortStreams :: Client -> Integer -> [String] -> GetStreamsOptions -> IO (Either String [StreamDetailed])
- getSegmentStreams :: Client -> Integer -> [String] -> GetStreamsOptions -> IO (Either String [StreamDetailed])
- getStreams :: FromJSON a => Client -> String -> Integer -> [String] -> GetStreamsOptions -> IO (Either String a)
- uploadActivity :: Client -> ByteString -> String -> UploadActivityOptions -> IO (Either String UploadStatus)
- getUpload :: Client -> Integer -> IO (Either String UploadStatus)
Documentation
Authentication
exchangeToken :: Integer -> String -> String -> IO (Either String TokenExchangeResponse)Source
Athletes
getAthlete :: Client -> Integer -> IO (Either String AthleteSummary)Source
updateCurrentAthlete :: Client -> UpdateCurrentAthleteOptions -> IO (Either String AthleteDetailed)Source
getAthleteCrs :: Client -> Integer -> GetAthleteCrsOptions -> IO (Either String [EffortDetailed])Source
Friends and Followers
getCurrentFriends :: Client -> GetCurrentFriendsOptions -> IO (Either String [AthleteSummary])Source
getFriends :: Client -> Integer -> GetFriendsOptions -> IO (Either String [AthleteSummary])Source
getCurrentFollowers :: Client -> GetCurrentFollowersOptions -> IO (Either String [AthleteSummary])Source
getFollowers :: Client -> Integer -> GetFollowersOptions -> IO (Either String [AthleteSummary])Source
getCommonFriends :: Client -> Integer -> GetCommonFriendsOptions -> IO (Either String [AthleteSummary])Source
Activities
createActivity :: Client -> String -> String -> UTCTime -> Integer -> CreateActivityOptions -> IO (Either String ActivityDetailed)Source
getActivity :: Client -> Integer -> GetActivityOptions -> IO (Either String ActivitySummary)Source
updateActivity :: Client -> Integer -> UpdateActivityOptions -> IO (Either String ActivityDetailed)Source
getCurrentActivities :: Client -> GetCurrentActivitiesOptions -> IO (Either String [ActivitySummary])Source
getFeed :: Client -> GetFeedOptions -> IO (Either String [ActivitySummary])Source
getActivityZones :: Client -> Integer -> IO (Either String [ActivityZoneDetailed])Source
getActivityLaps :: Client -> Integer -> IO (Either String [ActivityLapSummary])Source
Comments
getActivityComments :: Client -> Integer -> GetActivityCommentsOptions -> IO (Either String [CommentSummary])Source
Kudos
getActivityKudoers :: Client -> Integer -> GetActivityKudoersOptions -> IO (Either String [AthleteSummary])Source
Photos
getActivityPhotos :: Client -> Integer -> IO (Either String [PhotoSummary])Source
Clubs
getCurrentClubs :: Client -> IO (Either String [ClubSummary])Source
getClubMembers :: Client -> Integer -> GetClubMembersOptions -> IO (Either String [AthleteSummary])Source
getClubActivities :: Client -> Integer -> GetClubActivitiesOptions -> IO (Either String [ActivitySummary])Source
Gear
Segments
getSegment :: Client -> Integer -> IO (Either String SegmentDetailed)Source
getStarredSegments :: Client -> GetStarredSegmentsOptions -> IO (Either String [SegmentSummary])Source
getSegmentEfforts :: Client -> Integer -> GetSegmentEffortsOptions -> IO (Either String [EffortDetailed])Source
getSegmentLeaderboard :: Client -> Integer -> GetSegmentLeaderboardOptions -> IO (Either String SegmentLeaderboardResponse)Source
exploreSegments :: Client -> (Double, Double, Double, Double) -> ExploreSegmentsOptions -> IO (Either String SegmentExplorerResponse)Source
Segment Efforts
getSegmentEffort :: Client -> Integer -> IO (Either String EffortDetailed)Source
Streams
getActivityStreams :: Client -> Integer -> [String] -> GetStreamsOptions -> IO (Either String [StreamDetailed])Source
getEffortStreams :: Client -> Integer -> [String] -> GetStreamsOptions -> IO (Either String [StreamDetailed])Source
getSegmentStreams :: Client -> Integer -> [String] -> GetStreamsOptions -> IO (Either String [StreamDetailed])Source
getStreams :: FromJSON a => Client -> String -> Integer -> [String] -> GetStreamsOptions -> IO (Either String a)Source
Uploads
uploadActivity :: Client -> ByteString -> String -> UploadActivityOptions -> IO (Either String UploadStatus)Source