def make_request(method, path, params: {}, headers: {})
      headers = @headers.merge(headers)

      Request.new(@connection, method, build_path(path), params: params,
                                                         headers: headers)
             .make_request
    end
def make_request(method, path, params: {}, headers: {})
      headers = @headers.merge(headers)

      Request.new(@connection, method, build_path(path), params: params,
                                                         headers: headers)
             .make_request
    end
Instantiates a {ApiService} for dispatching requests to the Starling Bank API

 @param base_url [String] The base URL for the Starling API, including the protocol
                          and hostname, to which the {BASE_PATH} and request paths
                          will be added
 @param access_token [String] A personal access token for the Starling Bank API
 @param http_adapter [Array] The HTTP adapter to be used, defaulting to
                             {DEFAULT_ADAPTER}
 @param connection_options [Hash] A hash of options to be passed in when
                                  instantiating Faraday (for example for setting
                                  the request timeout)
 @param default_headers [Hash] A set of user-provided HTTP headers to add to each
                               request, alongside the library's defaults defined in
                               {#library_default_headers}
 @return [Starling::ApiService] The configured ApiService
 Makes an HTTP request to the Starling Bank API with the specified method and path

 @param method [Symbol] The HTTP method which will be used for the request
 @param path [String] The path of the API endpoint, which will be appended to the
                      {BASE_PATH}
 @param params [Hash] The parameters which will be included in the request, either
                      in the URL or the body, depending on the method
 @param headers [Hash] Additional headers to be included in your request, which will
                       be merged on top of the service's default headers
 @return [Faraday::Response] The response from the server to the dispatched request