Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions csrest_general.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -211,4 +212,4 @@ function external_session_url($session_options) {
return $this->put_request($this->_base_route.'externalsession.json', $session_options);
}
}
}
}