strava-segment-efforts
v1.0.0
Published
Retrieve Strava segment efforts as a readable stream
Downloads
13
Maintainers
Readme
strava-segment-efforts
Retrieve Strava segment efforts as a Readable stream
Install
$ npm install --save strava-segment-efforts
Usage
var efforts = require('strava-segment-efforts')
efforts({
segmentId: 123,
athleteId: 456,
accessToken: 'abc'
})
.pipe(ndjson.stringify())
.pipe(process.stdout)
strava-segment-efforts \
--segment-id 123 \
--athlete-id 456 \
--access-token abc
API
efforts(options)
-> stream
Returns a readable stream of segment effort objects.
options
segmentId
Required
Type: number
The ID of the segment.
athleteId
Type: number
Default: self
A Strava user's ID. If no ID is supplied, the "current" user from the access token will be used.
accessToken
Required
Type: string
A Strava API access token.
License
MIT © Ben Drucker