kopia lustrzana https://github.com/halcy/Mastodon.py
add offset parameter to trending_statuses
rodzic
cd86887d88
commit
3b131b4286
|
@ -47,12 +47,14 @@ class Mastodon(Internals):
|
|||
return self.__api_request('GET', '/api/v1/trends', params, lang_override=lang)
|
||||
|
||||
@api_version("3.5.0", "3.5.0", _DICT_VERSION_STATUS)
|
||||
def trending_statuses(self, limit: Optional[int] = None, lang: Optional[str] = None) -> NonPaginatableList[Status]:
|
||||
def trending_statuses(self, limit: Optional[int] = None, offset: Optional[int] = None, lang: Optional[str] = None) -> NonPaginatableList[Status]:
|
||||
"""
|
||||
Fetch trending-status information, if the instance provides such information.
|
||||
|
||||
Specify `limit` to limit how many results are returned (the maximum number
|
||||
of results is 10, the endpoint is not paginated).
|
||||
Specify `limit` to limit how many results are returned (default 20, the maximum
|
||||
number of results is 40).
|
||||
|
||||
Specify `offset` to paginate results. Default 0.
|
||||
|
||||
Pass `lang` to override the global locale parameter, which may affect trend ordering.
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue