1.0.2 • Published 5 years ago

rages-captcha v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

#How to use

Example:

let captcha = require('rages-captcha');

let capClient = new captcha(key, url, gKey, proxy, proxytype); 

/*

key - 2captcha API key, 

url - website url where captcha you are trying to solve is on,

gKey - found in the captcha element (data-sitekey attribute of captcha element),

proxy and proxytype are not used for now


*/

//send request to solve captcha - if the request succseeds it will call getToken after 20s  with id it got from response
capClient.makeRequest();



//MAKE SURE YOU OVERWRITE `onResponse()` function and pass an argument for TOKEN!

capClient.onResponse = function(token){
	//captcha solved got token!
};
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago