mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
docs: update client README to not reference deprecated function
This commit is contained in:
parent
d7c504f48e
commit
86b3593fec
2 changed files with 3 additions and 2 deletions
|
@ -27,10 +27,10 @@ import (
|
|||
|
||||
func main() {
|
||||
// Authentication with username/password:
|
||||
client := miniflux.New("https://api.example.org", "admin", "secret")
|
||||
client := miniflux.NewClient("https://api.example.org", "admin", "secret")
|
||||
|
||||
// Authentication with an API Key:
|
||||
client := miniflux.New("https://api.example.org", "my-secret-token")
|
||||
client := miniflux.NewClient("https://api.example.org", "my-secret-token")
|
||||
|
||||
// Fetch all feeds.
|
||||
feeds, err := client.Feeds()
|
||||
|
|
|
@ -18,6 +18,7 @@ type Client struct {
|
|||
}
|
||||
|
||||
// New returns a new Miniflux client.
|
||||
//
|
||||
// Deprecated: use NewClient instead.
|
||||
func New(endpoint string, credentials ...string) *Client {
|
||||
return NewClient(endpoint, credentials...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue