private List<Map<String, Object>> requestData(TokensAndUrlAuthData authData, String url)
      throws IOException {
    Request.Builder requestBuilder = new Request.Builder().url(url);
    requestBuilder.header("Authorization", "Bearer " + authData.getAccessToken());
    try (Response response = client.newCall(requestBuilder.build()).execute()) {
      ResponseBody body = response.body();
      if (body == null) {
        return null;
      }
      String contentBody = new String(body.bytes());
      Map contentMap = objectMapper.reader().forType(Map.class).readValue(contentBody);
      return (List<Map<String, Object>>) contentMap.get("data");
    }
  }
Performs request to the given endpoint and returns received data

@param authData authentication data for the operation
@param url query endpoint
@return collection of data
extensions/data-transfer/portability-data-transfer-imgur/src/main/java/org/datatransferproject/datatransfer/imgur/photos/ImgurPhotosExporter.java