目录

Prototype

ProtocolDirectionURL
HTTPS POSTApp server > Huawei fake user detection serverhttps://hirms.cloud.huawei.com/rms/v1/userRisks/verify?appId={appId}

Function

This API is used to obtain the fake user detection result.

Scenario

You want to obtain the fake user detection result from the Huawei fake user detection server.

URL Parameters

URL ParameterTypeDescription
appIdStringYour app ID applied in AppGallery Connect.

Input Parameters (JSON)

{“accessToken”:String,”response”:String}

ParameterTypeMandatory (M)/Optional (O)Description
accessTokenStringMAccess token.
responseStringMToken obtained from the fake user detection result returned to the app.

Output Parameters

ParameterTypeDescription
successbooleanFake user detection result. true: real user; false: fake user
challenge_tsStringResponse token generation time, which is in ISO format (yyyy-MM-dd’T’HH:mm:ssZZ).
apk_package_nameStringApp package name.
error-codesStringError code returned when an API call exception occurs.

Error Codes

Error CodeDescriptionSolution
missing-input-atThe accessToken parameter is lost.Add the accessToken parameter to the request body.
invalid-input-atThe accessToken parameter is invalid.Ensure that the accessToken parameter is valid.
missing-input-responseThe response parameter is lost.Add the response parameter to the request body.
invalid-input-responseThe response parameter is invalid.Ensure that the response parameter is valid.
timeout-or-duplicateThe response parameter is invalid, has expired, or has been used. Note: The response token returned by the userDetection API is valid only in 2 minutes and can be used only once.Call the userDetection API of the app to obtain another response token and use the token in 2 minutes.