private ExportResult<PhotosContainerResource> requestPhotos(
      TokensAndUrlAuthData authData,
      IdOnlyContainerResource resource,
      PaginationData paginationData,
      UUID jobId)
      throws IOException {
    String albumId = resource.getId();

    // Means all other albums with photos are imported, so non-album photos can be determined
    if (albumId.equals(DEFAULT_ALBUM_ID)) {
      return requestNonAlbumPhotos(authData, paginationData, jobId);
    }

    String url = format(ALBUM_PHOTOS_URL_TEMPLATE, albumId);
    List<PhotoModel> photos = new ArrayList<>();

    List<Map<String, Object>> items = requestData(authData, url);
    for (Map<String, Object> item : items) {
      PhotoModel photoModel =
          new PhotoModel(
              (String) item.get("name"),
              (String) item.get("link"),
              (String) item.get("description"),
              (String) item.get("type"),
              (String) item.get("id"),
              albumId,
              true);
      photos.add(photoModel);

      InputStream inputStream = getImageAsStream(photoModel.getFetchableUrl());
      jobStore.create(jobId, photoModel.getFetchableUrl(), inputStream);

      // Save id of each album photo for finding non-album photos later
      albumPhotos.add((String) item.get("id"));
    }

    // This request doesn't support pages
    ExportResult.ResultType resultType = ExportResult.ResultType.END;

    if (photos.size() > 0) {
      monitor.info(() -> format("added albumPhotos, size: %s", photos.size()));
    }

    PhotosContainerResource photosContainerResource = new PhotosContainerResource(null, photos);
    return new ExportResult<>(resultType, photosContainerResource, new ContinuationData(null));
  }
Exports photos from album.

<p>This request doesn't support pages so it retrieves all photos at once for each album.

@param authData authentication information
@param resource contains album id
@param paginationData pagination information to use for subsequent calls.
extensions/data-transfer/portability-data-transfer-imgur/src/main/java/org/datatransferproject/datatransfer/imgur/photos/ImgurPhotosExporter.java