Add api.timeline_public method

pull/65/head
kakakaya 2018-03-06 03:00:37 +09:00 zatwierdzone przez Ivan Habunek
rodzic 09a138ba27
commit 08c5226ae2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CDBD63C43A30BB95
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -91,6 +91,10 @@ def timeline_home(app, user):
return http.get(app, user, '/api/v1/timelines/home').json()
def timeline_public(app, user, local=False):
return http.get(app, user, '/api/v1/timelines/public', {'local': 'true' if local else 'false'}).json()
def get_next_path(headers):
"""Given timeline response headers, returns the path to the next batch"""
links = headers.get('Link', '')