@@ -256,10 +256,10 @@ export interface paramsRotateCaptcha {
256256
257257export interface paramsKeyCaptcha {
258258 pageurl : string ,
259- s_s_c_user_id : string ,
260- s_s_c_session_id : string ,
261- s_s_c_web_server_sign : string ,
262- s_s_c_web_server_sign2 : string ,
259+ userId : string ,
260+ sessionId : string ,
261+ webServerSign : string ,
262+ webServerSign2 : string ,
263263 pingback ?: string ,
264264 proxy ?: string ,
265265 proxytype ?: string
@@ -1629,12 +1629,12 @@ public async rotate(params: paramsRotateCaptcha): Promise<CaptchaAnswer> {
16291629* This method can be used to solve a KeyCaptcha. It is mostly used to bypass captchas that use KeyCaptcha technology.
16301630* [Read more about KeyCaptcha](https://2captcha.com/2captcha-api#solving_keycaptcha).
16311631*
1632- * @param {{ pageurl, s_s_c_user_id, s_s_c_session_id, s_s_c_web_server_sign, s_s_c_web_server_sign2 , pingback, proxy, proxytype } } params Parameters for solving KeyCaptcha as an object.
1632+ * @param {{ pageurl, userId, sessionId, webServerSign, webServerSign2 , pingback, proxy, proxytype } } params Parameters for solving KeyCaptcha as an object.
16331633* @param {string } params.pageurl The URL where the captcha is located.
1634- * @param {string } params.s_s_c_user_id The user ID provided by KeyCaptcha .
1635- * @param {string } params.s_s_c_session_id The session ID provided by KeyCaptcha .
1636- * @param {string } params.s_s_c_web_server_sign The web server sign provided by KeyCaptcha .
1637- * @param {string } params.s_s_c_web_server_sign2 The second web server sign provided by KeyCaptcha .
1634+ * @param {string } params.userId Value of `s_s_c_user_id` parameter you found on page .
1635+ * @param {string } params.sessionId Value of `s_s_c_session_id` parameter you found on page .
1636+ * @param {string } params.webServerSign Value of `s_s_c_web_server_sign` parameter you found on page .
1637+ * @param {string } params.webServerSign2 Value of `s_s_c_web_server_sign2` parameter you found on page .
16381638* @param {string } [params.pingback] Optional param. URL for pingback (callback) response when captcha is solved.
16391639* @param {string } [params.proxy] Optional param. Proxy to use while solving the captcha. Format: `login:password@123.123.123.123:3128`.
16401640* @param {string } [params.proxytype] Optional param. Type of your proxy: `HTTP`, `HTTPS`, `SOCKS4`, `SOCKS5`.
@@ -1644,11 +1644,11 @@ public async rotate(params: paramsRotateCaptcha): Promise<CaptchaAnswer> {
16441644*
16451645* @example
16461646* solver.keyCaptcha({
1647- * pageurl: "https://example .com/captcha ",
1648- * s_s_c_user_id : "12345 ",
1649- * s_s_c_session_id : "session123 ",
1650- * s_s_c_web_server_sign : "sign123 ",
1651- * s_s_c_web_server_sign2 : "sign456 "
1647+ * pageurl: "https://2captcha .com/demo/keycaptcha ",
1648+ * userId : "184015 ",
1649+ * sessionId : "11975dc265ce9174a54edb1619af15b7 ",
1650+ * webServerSign : "73ef77fd3cf0ce02947d9088bdc8412a ",
1651+ * webServerSign2 : "93836d9e7007f38f072ce07d89bb7e2b "
16521652* })
16531653* .then((res) => {
16541654* console.log(res);
@@ -1658,6 +1658,7 @@ public async rotate(params: paramsRotateCaptcha): Promise<CaptchaAnswer> {
16581658* })
16591659*/
16601660public async keyCaptcha ( params : paramsKeyCaptcha ) : Promise < CaptchaAnswer > {
1661+ params = await renameParams ( params )
16611662 checkCaptchaParams ( params , "keycaptcha" )
16621663
16631664 const payload = {
0 commit comments