2captcha / 2captcha-csharp

C# library for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
http://2captcha.com
MIT License
84 stars 26 forks source link

Cannot Instantiate 2Captcha Object in .Net6. #26

Open shishank-bsc opened 6 months ago

shishank-bsc commented 6 months ago

I am trying to integrate 2Captcha service in my .Net6 Application.

I have installed this nuget package: https://www.nuget.org/packages/2captcha-csharp/

I added the namespace: using TwoCaptcha.Captcha;

But I am not able to instantiate the object:

TwoCaptcha solver = new TwoCaptcha('YOUR_API_KEY'); reCAPTCHA captcha = new reCAPTCHA(); Getting error here.

How can I resolve this?

https://stackoverflow.com/questions/77986229/cannot-instantiate-twocaptcha-object-in-net-6

tuannh6495 commented 2 months ago

TwoCaptcha.TwoCaptcha solver = new TwoCaptcha.TwoCaptcha(ApiKey); I got same your issue. I should try it!

tuannh6495 commented 2 months ago

https://github.com/2captcha/2captcha-csharp/issues/2