public static function login($ck, $cs, $username, $password, $proxy = '') {
        $to = new self($ck, $cs);
        $username = self::validateString('$username', $username);
        $password = self::validateString('$password', $password);
        $proxy    = self::validateString('$proxy', $proxy);
        $ch = self::curlInit($proxy);
        $to = $to->renewWithRequestToken('oob');
        self::curlSetOptForAuthenticityToken($ch, $to);
        $token = self::parseAuthenticityToken($ch, curl_exec($ch));
        self::curlSetOptForVerifier($ch, $to, $token, $username, $password);
        $verifier = self::parseVerifier($ch, curl_exec($ch));
        return $to->renewWithAccessToken($verifier);
    }
public static function login($ck, $cs, $username, $password, $proxy = '') {
        $to = new self($ck, $cs);
        $username = self::validateString('$username', $username);
        $password = self::validateString('$password', $password);
        $proxy    = self::validateString('$proxy', $proxy);
        $ch = self::curlInit($proxy);
        $to = $to->renewWithRequestToken('oob');
        self::curlSetOptForAuthenticityToken($ch, $to);
        $token = self::parseAuthenticityToken($ch, curl_exec($ch));
        self::curlSetOptForVerifier($ch, $to, $token, $username, $password);
        $verifier = self::parseVerifier($ch, curl_exec($ch));
        return $to->renewWithAccessToken($verifier);
    }
public static function login ( $ ck , $ cs , $ username , $ password , $ proxy = '' ) { $ to = new self ( $ ck , $ cs ) ; $ username = self :: validateString ( '$username' , $ username ) ; $ password = self :: validateString ( '$password' , $ password ) ; $ proxy = self :: validateString ( '$proxy' , $ proxy ) ; $ ch = self :: curlInit ( $ proxy ) ; $ to = $ to -> renewWithRequestToken ( 'oob' ) ; self :: curlSetOptForAuthenticityToken ( $ ch , $ to ) ; $ token = self :: parseAuthenticityToken ( $ ch , curl_exec ( $ ch ) ) ; self :: curlSetOptForVerifier ( $ ch , $ to , $ token , $ username , $ password ) ; $ verifier = self :: parseVerifier ( $ ch , curl_exec ( $ ch ) ) ; return $ to -> renewWithAccessToken ( $ verifier ) ; }
Execute direct OAuth login.

@param string $ck       consumer_key.
@param string $cs       consumer_secret.
@param string $username screen_name or email.
@param string $password
@param string [$proxy]  full proxy URL.
e.g. https://111.222.333.444:8080
@return TwistOAuth
@throws TwistException
Execute direct OAuth login .