    # File lib/fog/cloudstack/compute.rb, line 179
            def request(params)
              params.reject!{|k,v| v.nil?}

              params.merge!('response' => 'json')

              if has_session?
                params, headers = authorize_session(params)
              elsif has_keys?
                params, headers = authorize_api_keys(params)
              end

              response = issue_request(params,headers)
              response = Fog::JSON.decode(response.body) unless response.body.empty?
              response
            end