src/OpenTok/OpenTok.php
public function listStreams($sessionId)
    {
        Validators::validateSessionIdBelongsToKey($sessionId, $this->apiKey);
      
        // make API call
        $streamListData = $this->client->listStreams($sessionId);
        return new StreamList($streamListData);
    
    }
public function listStreams($sessionId)
    {
        Validators::validateSessionIdBelongsToKey($sessionId, $this->apiKey);
      
        // make API call
        $streamListData = $this->client->listStreams($sessionId);
        return new StreamList($streamListData);
    
    }
public function listStreams ( $ sessionId ) { Validators :: validateSessionIdBelongsToKey ( $ sessionId , $ this -> apiKey ) ; // make API call $ streamListData = $ this -> client -> listStreams ( $ sessionId ) ; return new StreamList ( $ streamListData ) ; }
Returns a StreamList Object for the given session ID.

@param String $sessionId The session ID.

@return StreamList A StreamList object. Call the items() method of the StreamList object
to return an array of Stream objects.
Returns a StreamList Object for the given session ID .