private InputStream getImageAsStream(String imageUrl) throws IOException {
    URL url = urlFactory.apply(imageUrl);
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.connect();
    return conn.getInputStream();
  }
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