get_activity_streams: get_activity_streams

Description Usage Arguments Value See Also Examples

View source: R/R6_get_activity_streams.R

Description

Returns the specified segment. read_all scope required in order to retrieve athlete-specific segment information, or to retrieve private segments.

Usage

1
2
3
4
5
get_activity_streams(
  mbr_object = NULL,
  activity_id = NULL,
  streams_types = NULL
)

Arguments

mbr_object

a mountainbiker object

activity_id

the strava id of the activity

streams_types

vector of esired stream types. May take the following values: "time", "latlng", "distance", "altitude", "velocity_smooth", "heartrate", "cadence", "watts", "temp", "moving", "grade_smooth"

Value

my_streams as list with streams details

See Also

https://developers.strava.com/docs/reference/#api-Segments-getSegmentById

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# my_mbr is a mountainbikeR object

my_mbr$get_activity_streams(
     activity_id = 12345
     , streams_types = c("heartrate","distance")
)

## End(Not run)

longwei66/mountainbikeR documentation built on April 16, 2020, 6:23 p.m.