Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.38 KB

GettingStarted.md

File metadata and controls

20 lines (15 loc) · 1.38 KB

Getting started

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

using StravaSharp;
...

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.IAuthenticator interface here. The purpose of the authenticator is to provide an access token which lets you access Strava API.

Some possible authenticator implementations: