You are here

function TwitterOAuth::getAuthorizeURL in Tweet Feed 7.3

Same name and namespace in other branches
  1. 6 inc/twitter-oauth.inc \TwitterOAuth::getAuthorizeURL()
  2. 7 inc/twitter-oauth.inc \TwitterOAuth::getAuthorizeURL()
  3. 7.2 inc/twitter-oauth.inc \TwitterOAuth::getAuthorizeURL()

Get the authorize URL

@returns a string

File

inc/twitter-oauth.inc, line 88

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}";
  }
}