public interface UploadAPI
API definitions for UploadService endpoints
| Modifier and Type | Method and Description |
|---|---|
StravaUploadResponse |
checkUploadStatus(Integer id) |
StravaUploadResponse |
upload(StravaActivityType activityType,
String name,
String description,
Boolean _private,
Boolean trainer,
String dataType,
String externalId,
retrofit.mime.TypedFile file) |
@Multipart @POST(value="/uploads") StravaUploadResponse upload(@Part(value="activity_type") StravaActivityType activityType, @Part(value="name") String name, @Part(value="description") String description, @Part(value="private") Boolean _private, @Part(value="trainer") Boolean trainer, @Part(value="data_type") String dataType, @Part(value="external_id") String externalId, @Part(value="file") retrofit.mime.TypedFile file) throws BadRequestException
activityType - Type of activity being uploadedname - Name of the activitydescription - (Optional) Description of the activity_private - (Optional) Whether the activity should be flagged as privatetrainer - (Optional) If true then the activity was done on a stationary trainerdataType - Type of data file being uploadedexternalId - (Optional) External identifier generated by your application which Strava will later use as a reference when you're checking upload statusfile - The file to be uploaded!BadRequestException - If required elements of the call are missingUploadService.upload(StravaActivityType, String, String, Boolean, Boolean, String, String, java.io.File)@GET(value="/uploads/{id}")
StravaUploadResponse checkUploadStatus(@Path(value="id")
Integer id)
id - The upload id as given back in the response to upload(StravaActivityType, String, String, Boolean, Boolean, String, String, TypedFile)UploadService.checkUploadStatus(Integer)Copyright © 2015 Dan Shannon. All rights reserved.