diff options
author | 2018-08-24 22:23:03 -0700 | |
---|---|---|
committer | 2018-08-24 22:23:03 -0700 | |
commit | f43a055d63d33599404d2616bf54216bc74a2506 (patch) | |
tree | 3221257db03ca139d7e9e3cbfb84fb50799870d9 /client/doc.go | |
parent | dbcc5d8a972f4f169e9e2c0636450555a06152b9 (diff) |
Move Golang API client here
Diffstat (limited to 'client/doc.go')
-rw-r--r-- | client/doc.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/client/doc.go b/client/doc.go new file mode 100644 index 0000000..60d63aa --- /dev/null +++ b/client/doc.go @@ -0,0 +1,35 @@ +// Copyright 2018 Frédéric Guillot. All rights reserved. +// Use of this source code is governed by the MIT 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" |