in legacy-content-import/src/main/scala/legacycontentimport/audit/Article.scala [24:30]
def fromCapiHelpSection(capiDomain: String, capiKey: String): Seq[Article] = {
val fetch = pageFromCapiHelpSection(capiDomain, capiKey) _
val articlesAndPageCount = firstPageFromCapiHelpSection(capiDomain, capiKey)
val pageIndices = 1 until articlesAndPageCount.pageCount
val firstPageArticles = articlesAndPageCount.articles
pageIndices.foldLeft(firstPageArticles)((acc, pageIndex) => acc ++ fetch(pageIndex))
}