formatting
This commit is contained in:
parent
899b034013
commit
4a3bbeec79
@ -335,13 +335,17 @@ class APnutI
|
||||
return $this->makeRequest('get', $end_point, $parameters, $content_type, $follow_redirect);
|
||||
}
|
||||
|
||||
public function getAuthURL()
|
||||
public function getAuthURL($append_redirect_query_string = null)
|
||||
{
|
||||
$redirect_uri = $this->redirect_uri;
|
||||
if (!empty($append_redirect_query_string)) {
|
||||
$redirect_uri .= $append_redirect_query_string;
|
||||
}
|
||||
$url = $this->auth_url
|
||||
. '?client_id='
|
||||
. $this->client_id
|
||||
. '&redirect_uri='
|
||||
. urlencode($this->redirect_uri)
|
||||
. urlencode($redirect_uri)
|
||||
. '&scope='.$this->needed_scope
|
||||
. '&response_type=code';
|
||||
$this->logger->debug('Auth URL: ' . $url);
|
||||
|
Loading…
Reference in New Issue
Block a user