Oara\Network\Publisher\Etrader::login PHP 메소드

login() 공개 메소드

public login ( $credentials )
$credentials
    public function login($credentials)
    {
        $this->_credentials = $credentials;
        $this->_client = new \Oara\Curl\Access($credentials);
        $valuesLogin = array(new \Oara\Curl\Parameter('j_username', $this->_credentials['user']), new \Oara\Curl\Parameter('j_password', $this->_credentials['password']), new \Oara\Curl\Parameter('_spring_security_remember_me', 'true'));
        $loginUrl = 'http://etrader.kalahari.com/login?';
        $urls = array();
        $urls[] = new \Oara\Curl\Request($loginUrl, $valuesLogin);
        $this->_client->post($urls);
    }