public interface StreamAPI
API definitions for StreamService endpoints
| Modifier and Type | Method and Description |
|---|---|
StravaStream[] |
getActivityStreams(Integer id,
String types,
StravaStreamResolutionType resolution,
StravaStreamSeriesDownsamplingType seriesType) |
StravaStream[] |
getEffortStreams(Long id,
String types,
StravaStreamResolutionType resolution,
StravaStreamSeriesDownsamplingType seriesType) |
StravaStream[] |
getSegmentStreams(Integer id,
String types,
StravaStreamResolutionType resolution,
StravaStreamSeriesDownsamplingType seriesType) |
@GET(value="/activities/{id}/streams/{types}")
StravaStream[] getActivityStreams(@Path(value="id")
Integer id,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType)
throws UnauthorizedException,
NotFoundException,
BadRequestException
id - The id of the activity for which streams are to be retrievedtypes - List of types, if the activity does not have that stream it will not be included in the responseresolution - (Optional) low (100), medium (1000) or high (10000), default is all, indicates desired number of data points,
streams will only be down sampledseriesType - (Optional) relevant only if using resolution. Either "time" or "distance", default is "distance", used to index
the streams if the stream is being reducednull if the activity doesn't existUnauthorizedException - If there is a security exceptionNotFoundException - If the activity does not existBadRequestException - If the request is malformedStreamService.getActivityStreams(Integer, StravaStreamResolutionType,
StravaStreamSeriesDownsamplingType, javastrava.api.v3.model.reference.StravaStreamType...)@GET(value="/segment_efforts/{id}/streams/{types}")
StravaStream[] getEffortStreams(@Path(value="id")
Long id,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType)
throws UnauthorizedException,
NotFoundException,
BadRequestException
id - The id of the segment effort for which streams are to be retrievedtypes - List of types, if the effort does not have that stream it will not be included in the responseresolution - (Optional) low (100), medium (1000) or high (10000), default is all, indicates desired number of data points,
streams will only be down sampledseriesType - (Optional) relevant only if using resolution. Either "time" or "distance", default is "distance", used to index
the streams if the stream is being reducedUnauthorizedException - If the security token is not valid or the effort is flagged as privateNotFoundException - If the effort does not existBadRequestException - If the request is malformedStreamService.getEffortStreams(Long, StravaStreamResolutionType,
StravaStreamSeriesDownsamplingType, javastrava.api.v3.model.reference.StravaStreamType...)@GET(value="/segments/{id}/streams/{types}")
StravaStream[] getSegmentStreams(@Path(value="id")
Integer id,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType)
throws UnauthorizedException,
NotFoundException,
BadRequestException
id - The id of the segment for which streams are to be retrievedtypes - List of types, if the segment does not have that stream it will not be included in the responseresolution - (Optional) low (100), medium (1000) or high (10000), default is all, indicates desired number of data points,
streams will only be down sampledseriesType - (Optional) relevant only if using resolution. Either "time" or "distance", default is "distance", used to index
the streams if the stream is being reducedUnauthorizedException - If there is a security exceptionNotFoundException - If the segment does not existBadRequestException - If the request is malformedStreamService.getSegmentStreams(Integer, StravaStreamResolutionType,
StravaStreamSeriesDownsamplingType, javastrava.api.v3.model.reference.StravaStreamType...)Copyright © 2015 Dan Shannon. All rights reserved.