alfianlosari / XCAFootballDataClient

Swift Client to interact with FootballData API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XCAFootbalDataClient

Swift Client to interact with Football-Data API. It uses Swift Async Await API to fetch data from API.

Register For API Key

To get a Free API Key with limited Quota, please visit Football-Data API

Usage

Initialize passing API Key

let client = FootballDataClient(apiKey: "Your API KEY")

Fetch Standings

Fetch latest table standings for EPL

let standings = try await client.fetchStandings(competitionId: 2021, filterOption: .latest)

Fetch Top Scorers

Fetch top scorers for Spanish La Liga on season 2020/2021

let scorers = try await client.fetchTopScorers(competitionId: 2014, filterOption: .year(2020)

About

Swift Client to interact with FootballData API

License:MIT License


Languages

Language:Swift 100.0%