|
|
API Documentation |
Authentication
Many My Cycling API methods require authentication. All responses are relative to the context of the authenticating user. For the time being, HTTP Basic Authentication is the only supported authentication scheme.
New Ride
Create new ride log entry.
- URL: https://www.mycyclinglog.net/api/restserver.php?method=ride.new
- Method(s): POST
- Parameters:
- event_date. Required. Format must be MM/DD/YYYY, i.e. 12/31/2008
- is_ride. Required. Possible values: T or F. Entry counts towards cycling total if and only if is_ride = T.
- h. Optional. Hours portion of ride time. Default: 0.
- m. Optional. Minutes portion of ride time. Default: 0.
- s. Optional. Seconds portion of ride time. Default: 0.
- distance. Optional. Distance in units specified by user_unit parameter. Default: 0.
- user_unit. Optional. Units used in distance, either km or mi. Default: mi.
- notes. Optional.
- heart_rate. Optional.
- max_speed. Optional.
- avg_cadence. Optional.
- weight. Optional.
- calories. Optional.
- elevation. Optional.
- tags. Optional. Tags help to classify each entry. Separate each tag with a plus (+), i.e. road+training
- bid. Optional. Bike ID as returned by New Bike API.
- Returns: On success, unique ID of new ride record.
List Rides
List ride log entries.
- URL: https://www.mycyclinglog.net/api/restserver.php?method=ride.list
- Method(s): GET
- Parameters:
- offset. Optional. Offset into entry list. Default: 0.
- limit. Optional. Maximum number of entries to return. Default: 10.
- Returns: On success, list of ride log entries.
New Bike
Create new bikes.
- URL: https://www.mycyclinglog.net/api/restserver.php?method=bike.new
- Method(s): POST
- Parameters:
- make. Required, i.e. Specialized
- model. Required, i.e. S-Works
- year. Optional, i.e. 2010
- enabled. Optional. Possible values: T or F. Default: F.
- Returns: On success, unique ID of new bike.
List Bikes
List bike
- URL: https://www.mycyclinglog.net/api/restserver.php?method=bike.list
- Method(s): GET
- Parameters:
- offset. Optional. Offset into entry list. Default: 0.
- limit. Optional. Maximum number of entries to return. Default: 10.
- Returns: On success, list of bikes.
|
|