aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/doc.go
blob: eb7a0472fb4b45c94aaa08e1c85610bc9974ecd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2018 Frédéric Guillot. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.

/*

Package client implements a client library for the Miniflux REST API.

Examples

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"