public function getEvents($brandId = null)
    {
        $params = array(
            'method' => 'sp.event.get_list'
        );

        if (strlen($brandId) > 0) {
            $params['brand_id'] = $brandId;
        }

        return $this->_makeApiRequest($params);
    }
public function getEvents($brandId = null)
    {
        $params = array(
            'method' => 'sp.event.get_list'
        );

        if (strlen($brandId) > 0) {
            $params['brand_id'] = $brandId;
        }

        return $this->_makeApiRequest($params);
    }
public function getEvents ( $ brandId = null ) { $ params = array ( 'method' => 'sp.event.get_list' ) ; if ( strlen ( $ brandId ) > 0 ) { $ params [ 'brand_id' ] = $ brandId ; } return $ this -> _makeApiRequest ( $ params ) ; }
Method to return all the open events for a studio

@param integer $brandId Brand ID to retrieve for.
@return array
Method to return all the open events for a studio