private synchronized GooglePhotosInterface makePhotosInterface(TokensAndUrlAuthData authData) {
    Credential credential = credentialFactory.createCredential(authData);
    return new GooglePhotosInterface(
        credentialFactory, credential, jsonFactory, monitor, MAX_WRITES_PER_SECOND);
  }
Tries to call PhotosInterface.ListMediaItems, and retries on failure. If unsuccessful, throws a
FailedToListMediaItemsException.
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/media/GoogleMediaExporter.java