This is an unofficial wrapper for consuming the FlashLive Sports API.
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
}
Please consider supporting this project by becoming a sponsor.