Example #1
0
def get_suggested_users(results=10):
    get_function = proxies.get_json_resource
    raw = proxies.get_listed_things(get_function, "suggestedPeople", 'people', results)
    return [TIMJUser(**util.fix(raw_person)) for raw_person in raw]
Example #2
0
def _search_users_by(by, q, results):
    get_function = proxies.get_json_resource
    raw = proxies.get_listed_things(get_function, "search/person", 'people', results, by=by, q=q)
    return [TIMJUser(**util.fix(raw_person)) for raw_person in raw]