Пример #1
0
def get_random_user():
    profile = proxies.get_json_resource('random')
    return TIMJUser(**profile['person'])
Пример #2
0
 def from_user(cls, username):
     raw_jam = proxies.get_json_resource(username).get('jam')
     if raw_jam:
         return cls(**util.fix(raw_jam))
     else:
         return None
Пример #3
0
 def from_user(cls, username):
     raw_jam = proxies.get_json_resource(username).get('jam')
     if raw_jam:
         return cls(**util.fix(raw_jam))
     else:
         return None