You are here

function TwitterOAuth::getAuthorizeURL in jQuery social stream 8

Same name and namespace in other branches
  1. 8.2 src/Twitter/TwitterOAuth.php \Drupal\jquery_social_stream\Twitter\TwitterOAuth::getAuthorizeURL()

Get the authorize URL

@returns a string

File

src/Twitter/TwitterOAuth.php, line 97

Class

TwitterOAuth
Twitter OAuth class

Namespace

Drupal\jquery_social_stream\Twitter

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