UOF.API.Booking (UOF_API v3.0.0)

Copy Markdown View Source

Booking Calendar API.

Booking makes a sport event available for live odds. The HTTP response is only an acknowledgement (UOF.Schemas.Common.Response).

Functions return {:ok, response} | {:error, UOF.API.Error.t()}.

There are no GET endpoints for the booking calendar — booking state is exposed on schedule responses via the liveodds attribute ("booked", "bookable", "buyable", "not_available"). Filter a schedule by that state with the liveodds helpers in UOF.API.Sports.Fixtures (e.g. UOF.API.Sports.Fixtures.bookable/1).

Summary

Functions

Book the given sport_event (e.g. "sr:match:12345") for live odds.

Functions

book(sport_event, opts \\ [])

Book the given sport_event (e.g. "sr:match:12345") for live odds.

The trailing opts is a keyword list merged into the Req request (see UOF.API.Utils.HTTP).