Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.27 KB

GettingStarted.md

File metadata and controls

20 lines (15 loc) · 1.27 KB

Getting started

You can access the full functionality of StravaSharp through the Client class. Basically you have to do the following.

using StarvaSharp;
...

var client = new Client(authenticator);
// now you can use the Client
var activities = await client.Activities.GetAthleteActivities();

Notice the constructor of Client requires an authenticator. This is the only tricky part. You have to implement RestSharp.Portable.IAuthenticator interface here. The purpose of the authenticator is to provide an access token which lets you access Strava API.

Some possible authenticator implementations: