All URIs are relative to https://www.strava.com/api/v3
Method | HTTP request | Description |
---|---|---|
CreateUpload | Post /uploads | Upload Activity |
GetUploadById | Get /uploads/{uploadId} | Get Upload |
Upload CreateUpload(ctx, optional) Upload Activity
Uploads a new data file to create an activity from. Requires activity:write scope.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *CreateUploadOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a CreateUploadOpts struct
Name | Type | Description | Notes |
---|---|---|---|
file | *optional.Interface of os.File | The uploaded file. | |
name | optional.String | The desired name of the resulting activity. | |
description | optional.String | The desired description of the resulting activity. | |
trainer | optional.String | Whether the resulting activity should be marked as having been performed on a trainer. | |
commute | optional.String | Whether the resulting activity should be tagged as a commute. | |
dataType | optional.String | The format of the uploaded file. | |
externalId | optional.String | The desired external identifier of the resulting activity. |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Upload GetUploadById(ctx, uploadId) Get Upload
Returns an upload for a given identifier. Requires activity:write scope.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
uploadId | int64 | The identifier of the upload. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]