GET api/Account/ValidateCaptcha?encodedResponse={encodedResponse}&type={type}

Validate Google captcha

Request Information

URI Parameters

NameDescriptionTypeAdditional information
encodedResponse

Captcha response

string

Required

type

Mobile platform type

MobilePlatform

Required

Body Parameters

None.

Response Information

Resource Description

Validity of captcha response

ResponseOfRecaptchaResponseDto
NameDescriptionTypeAdditional information
StatusCode

StatusCode

None.

Message

string

None.

Data

RecaptchaResponseDto

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1000,
  "Message": "sample string 1",
  "Data": {
    "success": true,
    "error-codes": [
      "sample string 1",
      "sample string 2"
    ],
    "challenge_ts": "2019-12-10T09:10:11.394696Z",
    "hostname": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<ResponseOfRecaptchaResponseDtokvwhp91_P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/enTT.ZS.Dto.User">
    <d2p1:ChallengeTs>2019-12-10T09:10:11.394696Z</d2p1:ChallengeTs>
    <d2p1:ErrorCodes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:ErrorCodes>
    <d2p1:Hostname>sample string 3</d2p1:Hostname>
    <d2p1:Success>true</d2p1:Success>
  </Data>
  <Message>sample string 1</Message>
  <Result />
  <StatusCode>Success</StatusCode>
</ResponseOfRecaptchaResponseDtokvwhp91_P>