Furry / 2captcha

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

Defautl variable "action" #7

Closed riabikov closed 3 years ago

riabikov commented 3 years ago

Does the "action" variable always have to be "get"? It depends on the action on the site for which we are performing a specific action, for example "login". The above is the corrected code.

const payload = {
   invisible: false,
   header_acao: false,
   action: "get",
   ...extra,
   googlekey: googlekey,
   pageurl: pageurl,
   method: "userrecaptcha",
   ...this.defaultPayload
}
Furry commented 3 years ago

Thank you for pointing this out! I just made a new commit in (70c741c) to resolve that issue, as well as pushed a new stable version with the change to NPM.