tbm0115 / FlashLive

A helper library for accessing the FlashLive API for sports on RapidAPI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlashLive

Package


Introduction

This is an unofficial wrapper for consuming the FlashLive Sports API.

Getting Started

FlashLive is packaged and hosted on NuGet.org using GitHub Actions.

> dotnet add package FlashLive

Be ready with your RapidAPI key and use the FlashLive.WebAccessor:

string apiKey = ...; // Get RapidAPI key

using (var accessor = new WebAccessor(apiKey)) {
  // Get American Football events
  var requestOptions = new FlashLive.Models.RequestOptions.EventsRequestOptions<FlashLive.Models.AmericanFootballEvent>() {
    Sport = FlashLive.Models.Contracts.Enums.SportType.AMERICAN_FOOTBALL
  };
  var footballGames = await accessor.GetEventsAsync(requestOptions);
  
  // Do something with game information
}

Sponsors

Please consider supporting this project by becoming a sponsor.

About

A helper library for accessing the FlashLive API for sports on RapidAPI.

License:GNU Affero General Public License v3.0


Languages

Language:C# 100.0%