Oara\Network\Publisher\FoxTransfer::login PHP Method

login() public method

public login ( $credentials )
$credentials
    public function login($credentials)
    {
        $this->_client = new \Oara\Curl\Access($credentials);
        $this->_credentials = $credentials;
        $valuesLogin = array(new \Oara\Curl\Parameter('action', "user_login"), new \Oara\Curl\Parameter('email', $this->_credentials['user']), new \Oara\Curl\Parameter('password', $this->_credentials['password']));
        $loginUrl = 'https://foxtransfer.eu/index.php?page=login&out=1&language=1';
        $urls = array();
        $urls[] = new \Oara\Curl\Request($loginUrl, $valuesLogin);
        $this->_client->post($urls);
    }