|
|
@@ -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()
|