Closed
Description
This is an API Proposal for the list broadcast API call.
List Broadcasts
The platform allows you to get a list of all broadcasts. See docs.
We propose to add a new method for getting all broadcast information in a session.
listBroadcasts()
// Get list of broadcasts
$broadcastList = $opentok->listBroadcasts();
$broadcastList->totalCount(); // total count
// Get list of broadcasts by sessionId
$broadcastList = $opentok->listBroadcasts($sessionId);
$broadcastList->totalCount(); // total count
You can also use offset
and count
when retrieving the broadcasts list:
$broadcastList = $opentok->listBroadcasts($offset=0, $count=null);