strava-activities-stream
Fetch Strava activities as a Readable stream
Install
npm install --save strava-activities-stream
Usage
const ActivitiesStream = token: 'my auth token' after: - 1000 * 60 * 60 * 24 * 30 // 30 days ago
API
new ActivitiesStream(options)
-> readable
options
token
Required
Type: string
A Strava API access token.
after
Type: date
Default: new Date(0)
A date when the stream will begin.
before
Type: date
Default: undefined
A date when the stream will end. By default, the stream will continue until no more activities are available.
License
MIT © Ben Drucker