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:
parent
7a1653a2e9
commit
5cacae6cf2
9 changed files with 96 additions and 23 deletions
6
vendor/github.com/miniflux/miniflux-go/README.md
generated
vendored
6
vendor/github.com/miniflux/miniflux-go/README.md
generated
vendored
|
@ -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!")
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue