src/BaiduBce/Services/Lss/LssClient.php
public function listSessionsByStatus($status, $options = array())
    {
        list($config) = $this->parseOptions($options, 'config');

        if (empty($status)) {
            throw new BceClientException("The parameter status "
                . "should NOT be null or empty string");
        }

        $params = array(
            'status' => $status,
        );

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
                'params' => $params,
            ),
            '/session'
        );
    }
public function listSessionsByStatus($status, $options = array())
    {
        list($config) = $this->parseOptions($options, 'config');

        if (empty($status)) {
            throw new BceClientException("The parameter status "
                . "should NOT be null or empty string");
        }

        $params = array(
            'status' => $status,
        );

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
                'params' => $params,
            ),
            '/session'
        );
    }
public function listSessionsByStatus ( $ status , $ options = array ( ) ) { list ( $ config ) = $ this -> parseOptions ( $ options , 'config' ) ; if ( empty ( $ status ) ) { throw new BceClientException ( "The parameter status " . "should NOT be null or empty string" ) ; } $ params = array ( 'status' => $ status , ) ; return $ this -> sendRequest ( HttpMethod :: GET , array ( 'config' => $ config , 'params' => $ params , ) , '/session' ) ; }
List sessions with a status filter.

@param $status string, session status as a filter,
valid values: READY / ONGOING / PAUSED
@param array $options Supported options:
{
config: the optional bce configuration, which will overwrite the
default client configuration that was passed in constructor.
}
@return mixed session list
@throws BceClientException
List sessions with a status filter .