miniflux-v2/client/doc.go

34 lines
754 B
Go
Raw Normal View History

2018-08-25 07:23:03 +02:00
// Copyright 2018 Frédéric Guillot. All rights reserved.
2018-10-09 00:50:15 +02:00
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
2018-08-25 07:23:03 +02:00
/*
Package client implements a client library for the Miniflux REST API.
2022-08-09 06:33:38 +02:00
# Examples
2018-08-25 07:23:03 +02:00
This code snippet fetch the list of users:
import (
miniflux "miniflux.app/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/client"