favourites.go
author Mikael Berthe <mikael@lilotux.net>
Fri, 26 May 2017 12:03:29 +0200
changeset 184 546db8bb5867
parent 160 9f7e683b323f
child 207 301d5b94be3f
permissions -rw-r--r--
Change prototypes and return Relationship entities Return Relationship entities for FollowAccount, MuteAccount and BlockAccount calls (and corresponding Un*Account methods).

/*
Copyright 2017 Mikael Berthe

Licensed under the MIT license.  Please see the LICENSE file is this directory.
*/

package madon

// 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)
}