public static FollwitResponse TestAccount(FollwitAccountTestData data) { string json = CallAPI(FollwitConfig.URL.TestAccount, JSONUtil.ToJSON(data)); return JSONUtil.FromJSON<FollwitResponse>(json); }
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"; }