Swiftpack.co - zachwick/OddsAPI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by zachwick.
zachwick/OddsAPI v0.0.5
A Swift5 API client library for https://the-odds-api.com
⭐️ 0
🕓 2 weeks ago
.package(url: "https://github.com/zachwick/OddsAPI.git", from: "v0.0.5")

OddsAPI

A Swift 5 client library for JSON API from the-odds-api.com.

See https://the-odds-api.com/liveapi/guides/v4/ for documentation

Usage

Fetch upcoming Odd objects

let oddsApi = OddsApi(withKey: "your-odds-api-key")
let odds = await oddsApi.fetchUpcomingOdds()

Fetch all Sport objects

let oddsApi = OddsApi(withKey: "your-odds-api-key")
let sports = await oddsApi.fetchSports()

Copyright & License

Copyright 2022 zach wick [email protected]

Licensed under the Apache 2.0 license

GitHub

link
Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics