Frédéric Guillot 3b654fefa7 feat(api): rename integrations status endpoint 1 rok temu
..
README.md 168a870c02 Move internal packages to an internal folder 2 lat temu
client.go 3b654fefa7 feat(api): rename integrations status endpoint 1 rok temu
doc.go b68ada396a Rewrite API integration tests without build tags 2 lat temu
model.go e555e442fb feat: add new settings option to allow external fonts 1 rok temu
request.go 89ff33ddd0 fix(client): Return nil and error if endpoint is empty string 1 rok temu

README.md

Miniflux API Client

PkgGoDev

Client library for Miniflux REST API.

Installation

go get -u miniflux.app/v2/client

Example

package main

import (
	"fmt"
	"os"

	miniflux "miniflux.app/v2/client"
)

func main() {
    // Authentication with username/password:
    client := miniflux.New("https://api.example.org", "admin", "secret")

    // Authentication with an API Key:
    client := miniflux.New("https://api.example.org", "my-secret-token")

    // Fetch all feeds.
    feeds, err := client.Feeds()
    if err != nil {
        fmt.Println(err)
        return
    }
    fmt.Println(feeds)

    // Backup your feeds to an OPML file.
    opml, err := client.Export()
    if err != nil {
        fmt.Println(err)
        return
    }

    err = os.WriteFile("opml.xml", opml, 0644)
    if err != nil {
        fmt.Println(err)
        return
    }
}