Esempio n. 1
0
 def find_by_username(username):
     c = Connection()
     data = c.make_request("vimeo.people.findByUserName", username=username)
     if "stat" in data and data["stat"] == "ok":
         u = User()
         u.load_user(data["user"]["id"])
         return u
Esempio n. 2
0
 def find_by_email(email):
     c = Connection()
     data = c.make_request("vimeo.people.findByEmail", find_email=email)
     if "stat" in data and data["stat"] == "ok":
         u = User()
         u.load_user(data["user"]["id"])
         return u