public oAuthAuthenticate ( string $token, bool[optional] $force = false, string[optional] $screen_name = false ) | ||
$token | string | The token. |
$force | bool[optional] | |
$screen_name | string[optional] |
public function oAuthAuthenticate($token, $force = false, $screen_name = false)
{
$url = self::SECURE_API_URL . '/oauth/authenticate?oauth_token=' . $token;
if ($force) {
$url .= '&force_login=true';
}
if ($screen_name) {
$url .= '&screen_name=' . $screen_name;
}
header('Location: ' . $url);
}