thesportsdb-client

Tv
in package

FinalYes

TV listings. Free keys: 1 per call.

Table of Contents

Properties

$r  : Requester

Methods

channel()  : array<int, TvListing>
channelId()  : array<int, TvListing>
day()  : array<int, TvListing>
eventstv.php?d=: listings for a day, optionally a sport, or a country **and** sport. The API returns an empty body for a country without a sport, so that is rejected here.
listings()  : array<int, TvListing>

Properties

$r read-only

private Requester $r

Methods

channel()

public channel(string $name) : array<int, TvListing>
Parameters
$name : string
Return values
array<int, TvListing> —

eventstv.php?c=: a channel by name (e.g. "TSN 1")

channelId()

public channelId(int $channelId) : array<int, TvListing>
Parameters
$channelId : int
Return values
array<int, TvListing> —

eventstv.php?id=: by channel id (TvListing::$channelId), not event id

day()

eventstv.php?d=: listings for a day, optionally a sport, or a country **and** sport. The API returns an empty body for a country without a sport, so that is rejected here.

public day(DateTimeInterface $date[, string|null $sport = null ][, string|null $country = null ]) : array<int, TvListing>
Parameters
$date : DateTimeInterface
$sport : string|null = null
$country : string|null = null
Return values
array<int, TvListing>

listings()

private listings(array<string, scalar|DateTimeInterface|null> $params) : array<int, TvListing>
Parameters
$params : array<string, scalar|DateTimeInterface|null>
Return values
array<int, TvListing>
On this page

Search results