All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aiwiown.face.request.RawRandomNumberRequest Maven / Gradle / Ivy

There is a newer version: 3.0.9
Show newest version
package com.aiwiown.face.request;

import com.aiwiown.face.ApiMethod;
import com.aiwiown.face.ApiObject;
import com.aiwiown.face.ApiRequest;
import com.aiwiown.face.internal.util.RequestParamUtils;
import com.aiwiown.face.response.RawRandomNumberResponse;

import java.util.Map;

/**
 * 
 *
 * 此接口可获取基于视频活体验证过程中,所需要朗读的四位随机数字。
 *
 * 仅当appkey有使用网页KYC验证API服务的视频验证权限时,才可以调用此API,否则返回错误码 403(AUTHORIZATION_ERROR:Denied)
 * https://faceid.com/pages/documents/7775613
 * 
* RawRandomNumberRequest * Date: 2020/5/12 0012 * Time: 13:47 * * @author [email protected] */ public class RawRandomNumberRequest implements ApiRequest { private static String apiUrl = "/lite/raw/get_random_number"; private String bizContent; private ApiObject bizModel = null; @Override public ApiMethod getApiMethod() { return ApiMethod.POST; } @Override public String getApiUrl() { return apiUrl; } @Override public Map getTextParams() throws IllegalAccessException { return RequestParamUtils.getTextParams(this.bizModel); } @Override public Map getByteArrayParams() throws IllegalAccessException { return RequestParamUtils.getByteArrayParams(this.bizModel); } @Override public String getApiVersion() { return null; } @Override public Class getResponseClass() { return RawRandomNumberResponse.class; } @Override public String getBizContent() { return this.bizContent; } public void setBizModel(ApiObject bizModel) { this.bizModel = bizModel; } @Override public String signVersion() { return null; } @Override public String getSignInfo(String apiKey, String secretKey) throws Exception { return null; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy