code: public String getCSVRequest(String url, String apiKey, String accessToken) throws IOException, KiteException, JSONException {
          Request request = new Request.Builder().url(url).header("User-Agent", USER_AGENT).header("X-Kite-Version", "3").header("Authorization", "token "+apiKey+":"+accessToken).build();
          Response response = client.newCall(request).execute();
          String body = response.body().string();
          return new KiteResponseHandler().handle(response, body, "csv");
      }
docs: Makes GET request to fetch CSV dump.
  @return String which is received from server.
  @param url is the endpoint to which request has to be done.
  @param apiKey is the api key of the Kite Connect app.
  @param accessToken is the access token obtained after successful login process.
  @throws IOException is thrown when there is a connection related error.
  @throws KiteException is thrown for all Kite Trade related errors.