"RunKeeper" (Service Connection)

Connect your RunKeeper account to the Wolfram Language to analyze RunKeeper activities.

Connecting & Authenticating

ServiceConnect["RunKeeper"] creates a connection to the RunKeeper API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.

Requests

ServiceExecute["RunKeeper","request",params] sends a request to the RunKeeper API, using parameters params. The following give possible requests.

User Data

Requests:

"UserData" information about the authenticated user

"UserID" user ID of the authenticated user

"Profile" complete user profile information

"Records"  ▪  "Settings"  ▪  "Team"

Activity Lists

Requests:

"FitnessActivities" list of completed fitness activities

"BackgroundActivities" list of daily background activities

"StrengthTrainingActivities" list of strength training activities

"PathsMap" map of many paths

Parameters:
  • "NoLaterThan"Noneend date
    "NoEarlierThan"Nonestart date
  • Fitness Activities

    Requests:

    "FitnessActivity" data for the specified activity

    "StrengthTrainingActivity"  ▪  "BackgroundActivity"

    Parameters:
  • "ActivityID"(required)activity ID
  • Paths and Maps

    Requests:

    "Path" list of geo locations on a recorded path

    "PathMap" map of an activities path

    "AnimatedPathMap" animated activity map

    Parameters:
  • "ActivityID"(required)activity ID
  • User Measurements

    Requests:

    "Weight" history of the user's weight

    "GeneralMeasurements" measurements of the user

    "Diabetes"  ▪  "Nutrition"  ▪  "Sleep"

    Parameters:
  • "NoLaterThan"Noneend date
    "NoEarlierThan"Nonestart date
  • Examples

    Basic Examples  (1)

    Create a new connection by launching an authentication dialog:

    In[1]:=
    Click for copyable input
    Out[1]=

    Get information about the authenticated user:

    In[2]:=
    Click for copyable input
    Out[2]=

    Map the paths the user has taken:

    In[3]:=
    Click for copyable input
    Out[3]=

    Animate the path of the user's most recent activity:

    In[4]:=
    Click for copyable input
    Out[4]=
    In[5]:=
    Click for copyable input
    Out[5]=