Skip to content

Repository files navigation

OWLeagueLib - a library for interacting with the Overwatch League web API

License: MIT

Build status

Providers:

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

Usage:

Basic

// Create the providerOWLApiDataProviderprovider=newOWLApiDataProvider();// Get the data that you need, in a nice deserialised object.ScheduleResponsescheduleResponse=provider.FetchSchedule();

Getting next match (using async)

// 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()}");

Getting next stage (using async, you can combine this with "Getting next match" if you want)

// 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}");

Requirements

  • RestSharp

Changelog

  • 09-Jan-2018: First release.

Future

  • Locale support.
  • Pagination support.

About

An easy-to-use library for interacting with the Overwatch League web API

Topics

Resources

Stars

8 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages