public VerifyKey ( String domain ) : System.Boolean | ||
domain | String | |
return | System.Boolean |
public Boolean VerifyKey(String domain)
{
// prepare pars for the request
NameValueCollection pars = PreparePars(m_key, domain);
if (null != pars)
{
// extract result from the request
return ExtractResult(PostRequest("http://rest.akismet.com/1.1/verify-key", pars));
}
// return failure
return false;
}
private IValidator get_api() { var api = new Validator(AksimetKey); if (api.VerifyKey(Domain) == false) { return null; } return api; }