status.go
changeset 234 e37050f8a4bf
parent 231 741291bb4772
child 238 1c0042e76902
--- a/status.go	Wed Sep 05 10:52:58 2018 +0200
+++ b/status.go	Wed Sep 05 13:11:54 2018 +0200
@@ -298,3 +298,12 @@
 	err := mc.updateStatusData("unmute", o, &status)
 	return &status, err
 }
+
+// GetFavourites returns the list of the user's favourites
+// If lopt.All is true, several requests will be made until the API server
+// has nothing to return.
+// If lopt.Limit is set (and not All), several queries can be made until the
+// limit is reached.
+func (mc *Client) GetFavourites(lopt *LimitParams) ([]Status, error) {
+	return mc.getMultipleStatuses("favourites", nil, lopt)
+}