function TwitterOAuth::getAuthorizeURL in Tweet Feed 6
Same name and namespace in other branches
- 7.3 inc/twitter-oauth.inc \TwitterOAuth::getAuthorizeURL()
- 7 inc/twitter-oauth.inc \TwitterOAuth::getAuthorizeURL()
- 7.2 inc/twitter-oauth.inc \TwitterOAuth::getAuthorizeURL()
Get the authorize URL
@returns a string
File
- inc/
twitter-oauth.inc, line 89
Class
- TwitterOAuth
- Twitter OAuth class
Code
function getAuthorizeURL($token, $sign_in_with_twitter = TRUE) {
if (is_array($token)) {
$token = $token['oauth_token'];
}
if (empty($sign_in_with_twitter)) {
return $this
->authorizeURL() . "?oauth_token={$token}";
}
else {
return $this
->authenticateURL() . "?oauth_token={$token}";
}
}