You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

doc.go 754B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2018 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. /*
  5. Package client implements a client library for the Miniflux REST API.
  6. Examples
  7. This code snippet fetch the list of users:
  8. import (
  9. miniflux "miniflux.app/client"
  10. )
  11. client := miniflux.New("https://api.example.org", "admin", "secret")
  12. users, err := client.Users()
  13. if err != nil {
  14. fmt.Println(err)
  15. return
  16. }
  17. fmt.Println(users, err)
  18. This one discover subscriptions on a website:
  19. subscriptions, err := client.Discover("https://example.org/")
  20. if err != nil {
  21. fmt.Println(err)
  22. return
  23. }
  24. fmt.Println(subscriptions)
  25. */
  26. package client // import "miniflux.app/client"