P
P
Python Newbie2021-11-15 11:03:33
JavaScript
Python Newbie, 2021-11-15 11:03:33

How to call this function?

I do it according to this instruction - https://rucaptcha.com/api-rucaptcha#callback

I got the captcha parameters with this script - https://gist.github.com/2captcha/2ee70fa1130e756e1...

Here's what I got:

[{…}]
0:
callback: "___grecaptcha_cfg.clients['0']['U']['U']['callback']"
function: ƒ ()
id: "0"
pageurl: "url"
sitekey: "6LdrV*************XqNlrk0QAQIe"
version: "V2"
: Object
length: 1
: Array(0)


Then I called
___grecaptcha_cfg.clients['0']['U']['U']['callback']


And got How do I call it? I'm not very versed in js, so I can write something wrong. If anything, fix it. ƒ (e){this.props.onChange&&this.props.onChange(e)}


Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2021-11-15
@Levman5

___grecaptcha_cfg.clients['0']['U']['U']['callback']()
End brackets to call the function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question