getToken: सीधे टोकन प्राप्त करें
WARNING
चयनित कैप्चा प्रकार को हल करने के लिए सीधे कार्य प्राप्त करें।
पैरामीटर में कैप्चा के प्रकार को निर्दिष्ट करें।
वर्तमान में निम्नलिखित प्रकारों का समर्थन करता है:
-
ReCaptchaV2Task
-
ReCaptchaV2EnterpriseTask
-
ReCaptchaV2TaskProxyLess
-
ReCaptchaV2EnterpriseTaskProxyLess
-
ReCaptchaV3Task
-
ReCaptchaV3EnterpriseTask
-
ReCaptchaV3TaskProxyLess
-
ReCaptchaV3EnterpriseTaskProxyLess
अनुरोध का उदाहरण
POST https://api.capsolver.com/getToken
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey":"YOUR_API_KEY",
"appId": "APP_ID",
"task": {
"type":"ReCaptchaV3TaskProxyLess",// Write below the type you need to identify
"websiteURL": "https://demo.com/",
"websiteKey": "6LcpsXsnAAAAAbbAcafeiCCr3xxx2UeZ8qef1Hbb"
}
}
अनुरोध पैरामीटर
पैरामीटर | प्रकार | आवश्यक | विवरण |
---|---|---|---|
clientKey | String | Yes | क्लाइंट अकाउंट कुंजी, डैशबोर्ड में पाई जा सकती है |
appId | String | No | आपका डेवलपर ऐपआईडी, डैशबोर्ड के डेवलपर अनुभाग में आवेदन करें |
task | Object | Yes | कार्य वस्तु |
callbackUrl | String | No | टोकन इस एंडपॉइंट पर भेजा जाएगा (पोस्ट) |
प्रतिक्रिया का उदाहरण
{
"errorId": 0,
"taskId": "...",
"solution": {
"gRecaptchaResponse": "03AGdBq25SxXT-pmSeBXjzScW-EiocHwwpwqtk1QXlJnGnUJCZrgjwLLdt7cb0..."
},
"status": "ready"
}
प्रतिक्रिया संरचना
पैरामीटर | प्रकार | विवरण |
---|---|---|
errorId | Integer | त्रुटि संदेश: 0 - कोई त्रुटि नहीं 1 - त्रुटि के साथ |
errorCode | String | errorCode: full list of errors |
errorDescription | String | त्रुटि विवरण |
status | String | • ready |
solution | Object | कार्य परिणाम डेटा। प्रत्येक प्रकार के कार्य के लिए भिन्न होता है |
प्रतिक्रिया विनिर्देश
-
पहचान सफलता: जब
errorId
=0
औरstatus
=ready
हो, तो परिणामsolution
में होता है। -
त्रुटि: जब
errorId
0
से अधिक हो, तो कृपयाerrorDescription
के अनुसार त्रुटि जानकारी जानें।