1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-05 18:41:01 +00:00

Add API endpoint to import OPML file

This commit is contained in:
Frédéric Guillot 2018-04-29 18:56:40 -07:00
parent 7a1653a2e9
commit 5cacae6cf2
9 changed files with 96 additions and 23 deletions

View file

@ -26,7 +26,7 @@ package main
import (
"fmt"
"io/ioutil"
"github.com/miniflux/miniflux-go"
)
@ -41,7 +41,7 @@ func main() {
}
fmt.Println(feeds)
// Backup to opml file.
// Backup your feeds to an OPML file.
opml, err := client.Export()
if err != nil {
fmt.Println(err)
@ -53,8 +53,8 @@ func main() {
fmt.Println(err)
return
}
fmt.Println("backup done!")
fmt.Println("backup done!")
}
```