You are here

function TwittersOAuth::getAuthorizeURL in jQuery social stream 7

Same name and namespace in other branches
  1. 7.2 jquery_social_stream.js.inc \TwittersOAuth::getAuthorizeURL()

Get the authorize URL

@returns a string

File

./jquery_social_stream.js.inc, line 169
JS callbacks.

Class

TwittersOAuth
Twitter sOAuth 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}";
  }
}