diff options
author | 2022-12-11 18:07:01 +0100 | |
---|---|---|
committer | 2022-12-12 19:41:30 -0800 | |
commit | ce35b46fee3c891e959d4e5376c26636e5eb90fc (patch) | |
tree | 3fe5bd9fef8884bee51771ca631473ab85c0ec01 /client/client.go | |
parent | e12c263fc9a662bdd8096534c84a006515288ce7 (diff) | |
download | v2-ce35b46fee3c891e959d4e5376c26636e5eb90fc.tar.gz v2-ce35b46fee3c891e959d4e5376c26636e5eb90fc.tar.zst v2-ce35b46fee3c891e959d4e5376c26636e5eb90fc.zip |
Add category feeds refresh
Diffstat (limited to 'client/client.go')
-rw-r--r-- | client/client.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/client.go b/client/client.go index 218e7899..e1276d06 100644 --- a/client/client.go +++ b/client/client.go @@ -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") |