Beispiel #1
0
 public static FollwitResponse TestAccount(FollwitAccountTestData data)
 {
     string json = CallAPI(FollwitConfig.URL.TestAccount, JSONUtil.ToJSON(data));
     return JSONUtil.FromJSON<FollwitResponse>(json);
 }
Beispiel #2
0
        public static FollwitResponse TestAccount(FollwitAccountTestData data)
        {
            string json = CallAPI(FollwitConfig.URL.TestAccount, JSONUtil.ToJSON(data));

            return(JSONUtil.FromJSON <FollwitResponse>(json));
        }
 public bool TestCredentials(string username, string password)
 {
     var data = new FollwitAccountTestData()
     {
         UserName = username,
         Password = FollwitAPI.GeneratePasswordHash(password)
     };
     var resp = FollwitAPI.TestAccount(data);
     return resp.Response == "success";
 }