mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Add category feeds refresh
This commit is contained in:
parent
e12c263fc9
commit
ce35b46fee
8 changed files with 89 additions and 0 deletions
|
@ -248,6 +248,12 @@ func (c *Client) DeleteCategory(categoryID int64) error {
|
|||
return c.request.Delete(fmt.Sprintf("/v1/categories/%d", categoryID))
|
||||
}
|
||||
|
||||
// RefreshCategory refreshes a category.
|
||||
func (c *Client) RefreshCategory(categoryID int64) error {
|
||||
_, err := c.request.Put(fmt.Sprintf("/v1/categories/%d/refresh", categoryID), nil)
|
||||
return err
|
||||
}
|
||||
|
||||
// Feeds gets all feeds.
|
||||
func (c *Client) Feeds() (Feeds, error) {
|
||||
body, err := c.request.Get("/v1/feeds")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue