Romain de Laage 83e1f154b5 Add optional sort option in category page 3 năm trước cách đây
..
README.md a352aff93b Remove deprecated io/ioutil package 5 năm trước cách đây
client.go cd7f01f573 client.New(): accept endpoint URLs with /v1/ 3 năm trước cách đây
doc.go cecab91298 Fix some linter issues 3 năm trước cách đây
model.go 83e1f154b5 Add optional sort option in category page 3 năm trước cách đây
request.go 638643cda7 client: Try to parse response Body on InternalServerError 4 năm trước cách đây

README.md

Miniflux API Client

PkgGoDev

Client library for Miniflux REST API.

Installation

go get -u miniflux.app/client

Example

package main

import (
	"fmt"
	"os"

	miniflux "miniflux.app/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
    }
}