author | convert-repo |
Mon, 01 May 2017 13:55:10 +0000 | |
changeset 171 | 1a311b0316d2 |
parent 160 | 9f7e683b323f |
child 207 | 301d5b94be3f |
permissions | -rw-r--r-- |
130 | 1 |
/* |
2 |
Copyright 2017 Mikael Berthe |
|
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 |
} |