From 2a797139960a9e0a9c4368f8d3692b93f8600b53 Mon Sep 17 00:00:00 2001 From: James Blanksby Date: Tue, 18 Jul 2017 16:07:06 +0100 Subject: [PATCH] Fixed missing type parameter --- csrest_general.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/csrest_general.php b/csrest_general.php index d69ae36..7fae996 100644 --- a/csrest_general.php +++ b/csrest_general.php @@ -23,8 +23,9 @@ class CS_REST_General extends CS_REST_Wrapper_Base { * @access public **/ public static function authorize_url( - $client_id, $redirect_uri, $scope, $state = NULL) { - $qs = "client_id=".urlencode($client_id); + $type, $client_id, $redirect_uri, $scope, $state = NULL) { + $qs = "type=".$type; + $qs .= "&client_id=".urlencode($client_id); $qs .= "&redirect_uri=".urlencode($redirect_uri); $qs .= "&scope=".urlencode($scope); if ($state) { @@ -211,4 +212,4 @@ function external_session_url($session_options) { return $this->put_request($this->_base_route.'externalsession.json', $session_options); } } -} \ No newline at end of file +}