Skip to content

Commit fd6b66a

Browse files
author
victorkowalski
committed
SetApiServer
1 parent 7ba4e7f commit fd6b66a

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

TwoCaptcha.Examples/CaptchafoxExample.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public CaptchafoxExample(string apiKey)
1515
captcha.SetUrl("https://mysite.com/page/with/captchafox");
1616
captcha.SetUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36");
1717
captcha.SetProxy("HTTPS", "login:password@IP_address:PORT");
18+
captcha.SetApiServer("api_server");
1819

1920
try
2021
{

TwoCaptcha/Captcha/Captchafox.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,11 @@ public void SetUrl(string url)
1616
{
1717
parameters["pageurl"] = url;
1818
}
19+
20+
public void SetApiServer(string apiServer)
21+
{
22+
parameters["api_server"] = apiServer;
23+
}
24+
1925
}
2026
}

0 commit comments

Comments
 (0)