There are currently two data providers that you can switch out based on your needs. One for async, and one for synchronous code.
OWLApiDataProvider
OWLAsyncApiDataProvider
// Create the providerOWLApiDataProviderprovider=newOWLApiDataProvider();// Get the data that you need, in a nice deserialised object.ScheduleResponsescheduleResponse=provider.FetchSchedule();// create providerOWLAsyncApiDataProviderasyncProvider=newOWLAsyncApiDataProvider();// get schedule objectScheduleResponseschedule=awaitasyncProvider.FetchSchedule();// get the stage using the name, index/id can also be usedStagestage=schedule.GetStage("Stage 1");// get the next match in this stageStageMatchnextMatch=stage.GetNextMatch();Console.Out.WriteLine($"Next match is: {nextMatch.Team1.Name} vs {nextMatch.Team2.Name} at {nextMatch.StartDateTimeOffset()}");// create providerOWLAsyncApiDataProviderasyncProvider=newOWLAsyncApiDataProvider();// get schedule objectScheduleResponseschedule=awaitasyncProvider.FetchSchedule();// get next stageStagestage=schedule.GetNextStage();Console.Out.WriteLine($"The next stage of the current OWL season is: {stage.Name}");- RestSharp
- 09-Jan-2018: First release.
- Locale support.
- Pagination support.