mirror of
https://github.com/miniflux/v2.git
synced 2024-09-12 05:57:57 +02:00
33 lines
713 B
Go
33 lines
713 B
Go
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/*
|
|
Package client implements a client library for the Miniflux REST API.
|
|
|
|
# Examples
|
|
|
|
This code snippet fetch the list of users:
|
|
|
|
import (
|
|
miniflux "miniflux.app/v2/client"
|
|
)
|
|
|
|
client := miniflux.New("https://api.example.org", "admin", "secret")
|
|
users, err := client.Users()
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
return
|
|
}
|
|
fmt.Println(users, err)
|
|
|
|
This one discover subscriptions on a website:
|
|
|
|
subscriptions, err := client.Discover("https://example.org/")
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
return
|
|
}
|
|
fmt.Println(subscriptions)
|
|
*/
|
|
package client // import "miniflux.app/v2/client"
|