Esempio n. 1
0
 public string Login(string username, string password)
 {
     this.CheckAppKey();
     try
     {
         var    req  = YifyAPI.GetUserKeyRequest(username, password, appKey, false);
         var    res  = YifyAPI.SendPostRequest(req);
         string ukey = _parser.ParseGetUserKeyResponse(res);
         this.userKey = ukey;
         return(ukey);
     }
     catch (Exception ex)
     {
         throw new YifyException("An error occurred. See inner exception for more details", ex);
     }
 }