aboutsummaryrefslogtreecommitdiff
path: root/client/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/client.go')
-rw-r--r--client/client.go6
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")