Skip to content

Commit 5622d5b

Browse files
Merge pull request #7 from infosimples/develop
Develop
2 parents dc43c6c + d7e5e90 commit 5622d5b

13 files changed

+635
-96
lines changed

README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The returned value will be a `Captcha` object. Its properties are:
7777

7878
```javascript
7979
client.decodeRecaptchaV2({
80-
googlekey: 'the_key_extracted from the page',
80+
googlekey: 'the_key_extracted_from_the_page',
8181
pageurl: 'https://www.google.com/recaptcha/api2/demo'
8282
}).then(function(response) {
8383
console.log(response.text);
@@ -91,6 +91,30 @@ function are:
9191

9292
- `googlekey`: The google key for the ReCaptcha.
9393
- `pageurl`: The URL where the ReCaptcha is.
94+
- `invisible`: optional (Boolean) switch for invisible ReCaptcha, default is `false`
95+
- `enterprise`: optional (Boolean) switch for ReCaptcha Enterprise, default is `false`
96+
97+
#### ReCaptcha v3
98+
99+
```javascript
100+
client.decodeRecaptchaV3({
101+
googlekey: 'the_key_extracted_from_the_page',
102+
pageurl: 'https://www.site.with.recaptcha.v3/example',
103+
action: 'test'
104+
}).then(function(response) {
105+
console.log(response.text);
106+
});
107+
108+
>jTfh3o9uqafa-u5RtYofHHo2uDk0T78f78HvttFGYft8pG3wuhd-UHAIy271bQXPeUNRm...
109+
```
110+
111+
`decodeRecaptchaV3` is an async function. The parameters for `decodeRecaptchaV3`
112+
function are:
113+
114+
- `googlekey`: The google key for the ReCaptcha.
115+
- `pageurl`: The URL where the ReCaptcha is.
116+
- `action`: the action value used by the captcha.
117+
- `enterprise`: optional (Boolean) switch for ReCaptcha Enterprise, default is `false`
94118

95119
### 3. Retrieve a previously solved captcha
96120

docs/Captcha.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ <h4 class="name" id="Captcha"><span class="type-signature"></span>new Captcha<sp
121121

122122

123123

124+
125+
124126

125127
</div>
126128

@@ -413,6 +415,8 @@ <h4 class="name" id="coordinates"><span class="type-signature"></span>coordinate
413415

414416

415417

418+
419+
416420
<h5>Returns:</h5>
417421

418422

@@ -522,6 +526,8 @@ <h4 class="name" id="indexes"><span class="type-signature"></span>indexes<span c
522526

523527

524528

529+
530+
525531
<h5>Returns:</h5>
526532

527533

@@ -571,7 +577,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Captcha.h
571577
<br class="clear">
572578

573579
<footer>
574-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 10:38:09 GMT-0200 (Brasilia Summer Time)
580+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Mon May 17 2021 19:14:49 GMT-0300 (Brasilia Standard Time)
575581
</footer>
576582

577583
<script> prettyPrint(); </script>

docs/HTTPRequest.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ <h4 class="name" id="HTTPRequest"><span class="type-signature"></span>new HTTPRe
121121

122122

123123

124+
125+
124126

125127
</div>
126128

@@ -271,6 +273,8 @@ <h5>Parameters:</h5>
271273

272274

273275

276+
277+
274278
<h5>Returns:</h5>
275279

276280

@@ -610,6 +614,8 @@ <h6>Properties</h6>
610614

611615

612616

617+
618+
613619
<h5>Returns:</h5>
614620

615621

@@ -655,7 +661,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Captcha.h
655661
<br class="clear">
656662

657663
<footer>
658-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 10:38:09 GMT-0200 (Brasilia Summer Time)
664+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Mon May 17 2021 19:14:49 GMT-0300 (Brasilia Standard Time)
659665
</footer>
660666

661667
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)