using System.Net.Http; using System.Threading.Tasks; public class CaptchaService { private readonly HttpClient _httpClient; public CaptchaService(HttpClient httpClient) { _httpClient = httpClient; } public async Task ValidateCaptcha(string token, string ip) { var requestData = new { id = "67134feddc0ff12924d9aaf4", secretkey = "c3e08b07b8034e6b961f010abed5586a", scene = 3, token = token, ip = ip }; var response = await _httpClient.PostAsJsonAsync("your-captcha-endpoint", requestData); var result = await response.Content.ReadAsAsync(); return result.success == 1; } }