Interface: Broadcasts

Broadcasts

Provides data for future and past broadcasts.

Methods

<static> latest(limit, offset) → {Array.<Broadcast>}

/v2/broadcasts/latest/:limit/:offset

Returns array of past Broadcast objects.
Note, the parameters have a default value if an invalid value is passed.

Parameters:
Name Type Description
limit int

Number of broadcast objects (default 4)

offset int

Offset in number of hours (default 0)

See:
  • /v2/broadcasts/latest/12/0
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

<static> latest(limit, offset) → {Array.<Broadcast>}

/broadcasts/latest/:limit/:offset

Returns array of past Broadcast objects.
Note, the parameters have a default value if an invalid value is passed.

Parameters:
Name Type Description
limit int

Number of broadcast objects (default 4)

offset int

Offset in number of hours (default 0)

See:
  • /broadcasts/latest/12/0
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

<static> next(limit, offset) → {Array.<Broadcast>}

/broadcasts/next/:limit/:offset

Returns array of future Broadcast objects.
Note, the parameters have a default value if an invalid value is passed.

Parameters:
Name Type Description
limit int

Number of broadcast objects (default 4)

offset int

Offset in number of hours (default 0)

See:
  • /broadcasts/next/12/0
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

<static> next(limit, offset) → {Array.<Broadcast>}

/v2/broadcasts/next/:limit/:offset

Returns array of future Broadcast objects.
Note, the parameters have a default value if an invalid value is passed.

Parameters:
Name Type Description
limit int

Number of broadcast objects (default 4)

offset int

Offset in number of hours (default 0)

See:
  • /v2/broadcasts/next/12/0
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

<static> nextProgramBroadcast(slug) → {Broadcast}

/broadcasts/next/:slug

Returns the next broadcast of specific program

Parameters:
Name Type Argument Description
slug string <optional>

Slug for program

See:
  • /broadcasts/next/aflyttet
Returns:

Broadcast object

Type
Broadcast

<static> nextProgramBroadcast(slug) → {Broadcast}

/v2/broadcasts/next/:slug

Returns the next broadcast of specific program

Parameters:
Name Type Argument Description
slug string <optional>

Slug for program

See:
  • /v2/broadcasts/next/aflyttet
Returns:

Broadcast object

Type
Broadcast

<static> timeframe(start, end, includeNews) → {Array.<Broadcast>}

/v2/broadcasts/timeframe/?start=:start&end=:end&includeNews=:includeNews

Returns array of Broadcast objects from a given timerange.

Parameters:
Name Type Description
start date

The starting time of the timeframe

end date

The end time of the timeframe

includeNews bool

Whether or not to include news broadcasts, note this will change the response from combined broadcasts to single broadcasts, as the news broadcast happen inbetween program broadcasts

See:
  • /v2/broadcasts/timeframe/?start=2018-03-23T00%3A00%3A00.000Z&end=2018-03-24T02%3A59%3A59.999Z
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

Interface: Broadcasts

Broadcasts

Provides data for future and past broadcasts.

Methods

<static> latest(limit, offset) → {Array.<Broadcast>}

/v2/broadcasts/latest/:limit/:offset

Returns array of past Broadcast objects.
Note, the parameters have a default value if an invalid value is passed.

Parameters:
Name Type Description
limit int

Number of broadcast objects (default 4)

offset int

Offset in number of hours (default 0)

See:
  • /v2/broadcasts/latest/12/0
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

<static> latest(limit, offset) → {Array.<Broadcast>}

/broadcasts/latest/:limit/:offset

Returns array of past Broadcast objects.
Note, the parameters have a default value if an invalid value is passed.

Parameters:
Name Type Description
limit int

Number of broadcast objects (default 4)

offset int

Offset in number of hours (default 0)

See:
  • /broadcasts/latest/12/0
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

<static> next(limit, offset) → {Array.<Broadcast>}

/broadcasts/next/:limit/:offset

Returns array of future Broadcast objects.
Note, the parameters have a default value if an invalid value is passed.

Parameters:
Name Type Description
limit int

Number of broadcast objects (default 4)

offset int

Offset in number of hours (default 0)

See:
  • /broadcasts/next/12/0
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

<static> next(limit, offset) → {Array.<Broadcast>}

/v2/broadcasts/next/:limit/:offset

Returns array of future Broadcast objects.
Note, the parameters have a default value if an invalid value is passed.

Parameters:
Name Type Description
limit int

Number of broadcast objects (default 4)

offset int

Offset in number of hours (default 0)

See:
  • /v2/broadcasts/next/12/0
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>

<static> nextProgramBroadcast(slug) → {Broadcast}

/broadcasts/next/:slug

Returns the next broadcast of specific program

Parameters:
Name Type Argument Description
slug string <optional>

Slug for program

See:
  • /broadcasts/next/aflyttet
Returns:

Broadcast object

Type
Broadcast

<static> nextProgramBroadcast(slug) → {Broadcast}

/v2/broadcasts/next/:slug

Returns the next broadcast of specific program

Parameters:
Name Type Argument Description
slug string <optional>

Slug for program

See:
  • /v2/broadcasts/next/aflyttet
Returns:

Broadcast object

Type
Broadcast

<static> timeframe(start, end, includeNews) → {Array.<Broadcast>}

/v2/broadcasts/timeframe/?start=:start&end=:end&includeNews=:includeNews

Returns array of Broadcast objects from a given timerange.

Parameters:
Name Type Description
start date

The starting time of the timeframe

end date

The end time of the timeframe

includeNews bool

Whether or not to include news broadcasts, note this will change the response from combined broadcasts to single broadcasts, as the news broadcast happen inbetween program broadcasts

See:
  • /v2/broadcasts/timeframe/?start=2018-03-23T00%3A00%3A00.000Z&end=2018-03-24T02%3A59%3A59.999Z
Returns:

Array of Broadcast objects

Type
Array.<Broadcast>