author | Mikael Berthe <mikael@lilotux.net> |
Tue, 20 Mar 2018 19:20:31 +0100 | |
changeset 214 | 642d690de0ba |
parent 207 | 301d5b94be3f |
permissions | -rw-r--r-- |
130 | 1 |
/* |
207 | 2 |
Copyright 2017-2018 Mikael Berthe |
130 | 3 |
|
4 |
Licensed under the MIT license. Please see the LICENSE file is this directory. |
|
5 |
*/ |
|
6 |
||
138
23d3a518d0ad
Update package name in source files
Mikael Berthe <mikael@lilotux.net>
parents:
130
diff
changeset
|
7 |
package madon |
93 | 8 |
|
9 |
// GetFavourites returns the list of the user's favourites |
|
156
70aadba26338
Add field "All" to LimitParams, change Limit behaviour
Mikael Berthe <mikael@lilotux.net>
parents:
155
diff
changeset
|
10 |
// If lopt.All is true, several requests will be made until the API server |
70aadba26338
Add field "All" to LimitParams, change Limit behaviour
Mikael Berthe <mikael@lilotux.net>
parents:
155
diff
changeset
|
11 |
// has nothing to return. |
70aadba26338
Add field "All" to LimitParams, change Limit behaviour
Mikael Berthe <mikael@lilotux.net>
parents:
155
diff
changeset
|
12 |
// If lopt.Limit is set (and not All), several queries can be made until the |
70aadba26338
Add field "All" to LimitParams, change Limit behaviour
Mikael Berthe <mikael@lilotux.net>
parents:
155
diff
changeset
|
13 |
// limit is reached. |
149
5f922977d7c7
Add support for limits and paging ({since,max}_id) API parameters
Mikael Berthe <mikael@lilotux.net>
parents:
138
diff
changeset
|
14 |
func (mc *Client) GetFavourites(lopt *LimitParams) ([]Status, error) { |
160
9f7e683b323f
Refactor methods returning a list of statuses
Mikael Berthe <mikael@lilotux.net>
parents:
156
diff
changeset
|
15 |
return mc.getMultipleStatuses("favourites", nil, lopt) |
93 | 16 |
} |