def append_from(session, data, page):
    """ Collect paginated data."""
    r = session.api_request(page)
    url_next = r["links"]["next"]
    if url_next:
        append_from(session, data, url_next[len(session.base_url):])
    data.extend(r["data"])
    return data