public interface StreamAPI
API definitions for StreamService endpoints
@GET(value="/activities/{id}/streams/{types}")
StravaStream[] getActivityStreams(@Path(value="id")
Integer activityId,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType)
throws UnauthorizedException,
NotFoundException,
BadRequestException
activityId - 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="/activities/{id}/streams/{types}")
void getActivityStreams(@Path(value="id")
Integer activityId,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType,
StravaAPICallback<StravaStream[]> callback)
throws UnauthorizedException,
NotFoundException,
BadRequestException
activityId - 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 reducedcallback - The callback to execute on completionUnauthorizedException - 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 segmentEffortId,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType)
throws UnauthorizedException,
NotFoundException,
BadRequestException
segmentEffortId - 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="/segment_efforts/{id}/streams/{types}")
void getEffortStreams(@Path(value="id")
Long segmentEffortId,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType,
StravaAPICallback<StravaStream[]> callback)
throws UnauthorizedException,
NotFoundException,
BadRequestException
segmentEffortId - 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 reducedcallback - The callback to execute on completionUnauthorizedException - 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 segmentId,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType)
throws UnauthorizedException,
NotFoundException,
BadRequestException
segmentId - 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...)@GET(value="/segments/{id}/streams/{types}")
void getSegmentStreams(@Path(value="id")
Integer segmentId,
@Path(value="types")
String types,
@Query(value="resolution")
StravaStreamResolutionType resolution,
@Query(value="series_type")
StravaStreamSeriesDownsamplingType seriesType,
StravaAPICallback<StravaStream[]> callback)
throws UnauthorizedException,
NotFoundException,
BadRequestException
segmentId - 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 reducedcallback - The callback to execute on completionUnauthorizedException - 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 © 2016 Dan Shannon. All rights reserved.