favourites.go
changeset 234 e37050f8a4bf
parent 233 b5fb9a1b68c4
child 235 263da7f71f03
equal deleted inserted replaced
233:b5fb9a1b68c4 234:e37050f8a4bf
     1 /*
       
     2 Copyright 2017-2018 Mikael Berthe
       
     3 
       
     4 Licensed under the MIT license.  Please see the LICENSE file is this directory.
       
     5 */
       
     6 
       
     7 package madon
       
     8 
       
     9 // GetFavourites returns the list of the user's favourites
       
    10 // If lopt.All is true, several requests will be made until the API server
       
    11 // has nothing to return.
       
    12 // If lopt.Limit is set (and not All), several queries can be made until the
       
    13 // limit is reached.
       
    14 func (mc *Client) GetFavourites(lopt *LimitParams) ([]Status, error) {
       
    15 	return mc.getMultipleStatuses("favourites", nil, lopt)
       
    16 }