Пример #1
0
    def get_timeline(self, paginator=None):
        if paginator is None:
            paginator = Paginator(1, PAGINATION_PER_PAGE, 0)

        properties = {"offset": paginator.offset, "limit": paginator.limit}
        response = self.send("GET", "/users/%s/timeline" % self.uuid, properties, use_cache=False)
        paginator.total_count = response.get("count", 0)
        return [Event(event) for event in response["events"]]