Bram Duvigneau 5d56902c7f feat(client): expose feed and entry language on public Go client structs 2 ngày trước cách đây
..
README.md 4cd66aef5f docs(client): improve Godoc comments for exported functions 5 tháng trước cách đây
client.go f96bee0d61 feat(client): add missing fields to match API server 1 tuần trước cách đây
client_test.go bcb2cf2aa2 feat(api): Allow API client to set "starred" to true or false using the "PUT /v1/entries" endpoint 2 tuần trước cách đây
doc.go 4cd66aef5f docs(client): improve Godoc comments for exported functions 5 tháng trước cách đây
model.go 5d56902c7f feat(client): expose feed and entry language on public Go client structs 2 ngày trước cách đây
options.go 385d8bb969 feat(client): allow http.Client as option and add context to api methods 8 tháng trước cách đây
request.go 385d8bb969 feat(client): allow http.Client as option and add context to api methods 8 tháng trước cách đây

README.md

Miniflux API Client

PkgGoDev

Go client for the Miniflux REST API. It supports API tokens or basic authentication and mirrors the server endpoints closely.

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.NewClient("https://api.example.org", "admin", "secret")

    // Authentication with an API Key:
    client := miniflux.NewClient("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
    }
}