public function setEventAccessLevel($eventId, $accessLevel, $password)
    {
        if (is_null($accessLevel) || $accessLevel == '') {
            throw new Exception('The access level is required.');
        }

        $params = array(
            'method' => 'sp.event.set_access_level',
            'event_id' => $eventId,
            'access_level' => $accessLevel,
            'password' => $password
        );

        return $this->_makeApiRequest($params);
    }
public function setEventAccessLevel($eventId, $accessLevel, $password)
    {
        if (is_null($accessLevel) || $accessLevel == '') {
            throw new Exception('The access level is required.');
        }

        $params = array(
            'method' => 'sp.event.set_access_level',
            'event_id' => $eventId,
            'access_level' => $accessLevel,
            'password' => $password
        );

        return $this->_makeApiRequest($params);
    }
public function setEventAccessLevel ( $ eventId , $ accessLevel , $ password ) { if ( is_null ( $ accessLevel ) || $ accessLevel == '' ) { throw new Exception ( 'The access level is required.' ) ; } $ params = array ( 'method' => 'sp.event.set_access_level' , 'event_id' => $ eventId , 'access_level' => $ accessLevel , 'password' => $ password ) ; return $ this -> _makeApiRequest ( $ params ) ; }
Method to set the event access level and password

@param integer $eventId
@param string $accessLevel
@param string $password
@return array
Method to set the event access level and password