Skip to content

Commit

Permalink
Update client README to not reference deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Limero committed Feb 27, 2025
1 parent d7c504f commit 3e0c850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit 3e0c850

Please sign in to comment.