![]() |
VOOZH | about |
The CData Excel Add-In for Strava provides formulas that can query Strava data. The following three steps show how you can automate the following task: Search Strava data for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as APIConnection1, or a connection string. The connection string consists of the required properties for connecting to Strava data, separated by semicolons.
To authenticate to Strava, and connect to your own data or to allow other users to connect to their data, you can use the OAuth standard.
You must create a custom OAuth application to connect to Strava. To create a custom OAuth application:
After setting the following connection properties, you are ready to connect:
Profile=C:\profiles\Strava.apip;AuthScheme=OAuth;InitiateOAuth=GETANDREFRESH;OAuthClientId=your_client_id;OAuthClientSecret=your_client_secret;CallbackURL=http://localhost:33333;
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM Athlete WHERE = '"&B7&"'","Profile="&B1&";AuthScheme="&B2&";InitiateOAuth="&B3&";OAuthClientId="&B4&";OAuthClientSecret="&B5&";CallbackURL="&B6&";Provider=API",B8)
👁 Formula inputs used in this example. (Google Apps is shown.)Connect to live data from Strava with the API Driver
Connect to Strava