feat: list entries to archive from miniflux

This commit is contained in:
Alexander Navarro 2024-12-18 16:15:52 -03:00
parent 22b4abf73b
commit 43cd24e4d0
6 changed files with 30 additions and 14 deletions

View file

@ -13,5 +13,11 @@ func Archive(minifluxConfig miniflux.MinifluxConfig, serviceConfig ServiceConfig
logger.Fatal("Could not connect to the miniflux server: %v", err)
}
fmt.Println(mf)
result, err := mf.GetEntries()
if err != nil {
logger.Fatal("Could not retrieve entries from the miniflux feed: %v", err)
}
entry := result.Entries[0]
fmt.Println(entry.Title, entry.Status, entry.Tags)
}