generated from alecodes/base-template
feat: list entries to archive from miniflux
This commit is contained in:
parent
22b4abf73b
commit
43cd24e4d0
6 changed files with 30 additions and 14 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue