Furry / 2captcha

A wrapper around the 2captcha api
71 stars 23 forks source link

fix: add missing action field #24

Closed divine closed 2 years ago

Furry commented 2 years ago

Action is specified within this libraries function calls, and not by the user for the sake of convenience, so I don't think it should be included in the parameters a user can pass in, unless there's an actual use case of having it optional?

divine commented 2 years ago

Hello,

I can't pass optional parameters as it's not allowed in typed properties.

Please see: https://2captcha.com/2captcha-api#solving_recaptchav3

version | String | Yes | v3 — defines that you're sending a reCAPTCHA V3 -- | -- | -- | -- enterprise | StringDefault: 0 | No | 1 - defines that you're sending reCAPTCHA Enterpise V3 action | StringDefault: verify | No | Value of action parameter you found on page min_score | IntegerDefault: 0.4 | No | The score needed for resolution. Currently it's almost impossible to get token with score higher than 0.3

Thanks!

Furry commented 2 years ago

Merged, I'll push an update to NPM tonight.