public DeleteRateLimitResponse DeleteRateLimit(string id) { DeleteRateLimitResponse deleteRateLimitResponse = new DeleteRateLimitResponse(); string url = "{2}/zones/{0}/rate_limits/{1}"; url = string.Format(url, _zoneId, id, _apiUrlPrefix); string json = ""; string content = HttpDelete(url, json, 90); deleteRateLimitResponse = JsonConvert.DeserializeObject <DeleteRateLimitResponse>(content); return(deleteRateLimitResponse); }
public DeleteRateLimitResponse DeleteRateLimit(string zoneId, string authEmail, string authKey, string id) { DeleteRateLimitResponse deleteRateLimitResponse = new DeleteRateLimitResponse(); string url = "https://api.cloudflare.com/client/v4/zones/{0}/rate_limits/{1}"; url = string.Format(url, zoneId, id); string json = ""; //解密 var authKeyDecrypt = Utils.AesDecrypt(authKey); string content = HttpDelete(authEmail, authKeyDecrypt, url, json, 90); deleteRateLimitResponse = JsonConvert.DeserializeObject <DeleteRateLimitResponse>(content); return(deleteRateLimitResponse); }