Skip to content

Latest commit

 

History

History
224 lines (175 loc) · 8.5 KB

DatadigitalFincloudGeneralsaasFaceCertifyApi.md

File metadata and controls

224 lines (175 loc) · 8.5 KB

DatadigitalFincloudGeneralsaasFaceCertifyApi

All URIs are relative to https://openapi.alipay.com

Method HTTP request Description
initialize POST /v3/datadigital/fincloud/generalsaas/face/certify/initialize 跳转支付宝人脸核身初始化
query GET /v3/datadigital/fincloud/generalsaas/face/certify/query 跳转支付宝人脸核身查询记录
verify POST /v3/datadigital/fincloud/generalsaas/face/certify/verify 跳转支付宝人脸核身开始认证

initialize

DatadigitalFincloudGeneralsaasFaceCertifyInitializeResponseModel initialize(datadigitalFincloudGeneralsaasFaceCertifyInitializeModel)

跳转支付宝人脸核身初始化

人脸核身初始化服务,用于创建认证流程。供外部客户使用该项服务。

Example

// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.DatadigitalFincloudGeneralsaasFaceCertifyApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://openapi.alipay.com");
    // 设置alipayConfig参数(全局设置一次)
    AlipayConfig config = new AlipayConfig();
    config.setAppId("app_id");
    config.setPrivateKey("private_key");
    config.setAlipayPublicKey("alipay_public_key");
    config.setEncryptKey("encrypt_key");
    defaultClient.setAlipayConfig(config);

    DatadigitalFincloudGeneralsaasFaceCertifyApi apiInstance = new DatadigitalFincloudGeneralsaasFaceCertifyApi(defaultClient);
    DatadigitalFincloudGeneralsaasFaceCertifyInitializeModel datadigitalFincloudGeneralsaasFaceCertifyInitializeModel = new DatadigitalFincloudGeneralsaasFaceCertifyInitializeModel(); // DatadigitalFincloudGeneralsaasFaceCertifyInitializeModel | 
    try {
      DatadigitalFincloudGeneralsaasFaceCertifyInitializeResponseModel result = apiInstance.initialize(datadigitalFincloudGeneralsaasFaceCertifyInitializeModel);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DatadigitalFincloudGeneralsaasFaceCertifyApi#initialize");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
datadigitalFincloudGeneralsaasFaceCertifyInitializeModel DatadigitalFincloudGeneralsaasFaceCertifyInitializeModel [optional]

Return type

DatadigitalFincloudGeneralsaasFaceCertifyInitializeResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

query

DatadigitalFincloudGeneralsaasFaceCertifyQueryResponseModel query(certifyId)

跳转支付宝人脸核身查询记录

商户在用户使用支付宝完成刷脸之后,调用本接口查询核身结果状态及相关数据

Example

// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.DatadigitalFincloudGeneralsaasFaceCertifyApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://openapi.alipay.com");
    // 设置alipayConfig参数(全局设置一次)
    AlipayConfig config = new AlipayConfig();
    config.setAppId("app_id");
    config.setPrivateKey("private_key");
    config.setAlipayPublicKey("alipay_public_key");
    config.setEncryptKey("encrypt_key");
    defaultClient.setAlipayConfig(config);

    DatadigitalFincloudGeneralsaasFaceCertifyApi apiInstance = new DatadigitalFincloudGeneralsaasFaceCertifyApi(defaultClient);
    String certifyId = "03cdsfsss20048373"; // String | 本次申请操作的唯一标识,通过datadigital.fincloud.generalsaas.face.certify.initialize 接口同步响应获取。
    try {
      DatadigitalFincloudGeneralsaasFaceCertifyQueryResponseModel result = apiInstance.query(certifyId);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DatadigitalFincloudGeneralsaasFaceCertifyApi#query");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
certifyId String 本次申请操作的唯一标识,通过datadigital.fincloud.generalsaas.face.certify.initialize 接口同步响应获取。 [optional]

Return type

DatadigitalFincloudGeneralsaasFaceCertifyQueryResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

verify

DatadigitalFincloudGeneralsaasFaceCertifyVerifyResponseModel verify(datadigitalFincloudGeneralsaasFaceCertifyVerifyModel)

跳转支付宝人脸核身开始认证

人脸核身服务开始认证。请根据返回结果渲染页面。

Example

// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.DatadigitalFincloudGeneralsaasFaceCertifyApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://openapi.alipay.com");
    // 设置alipayConfig参数(全局设置一次)
    AlipayConfig config = new AlipayConfig();
    config.setAppId("app_id");
    config.setPrivateKey("private_key");
    config.setAlipayPublicKey("alipay_public_key");
    config.setEncryptKey("encrypt_key");
    defaultClient.setAlipayConfig(config);

    DatadigitalFincloudGeneralsaasFaceCertifyApi apiInstance = new DatadigitalFincloudGeneralsaasFaceCertifyApi(defaultClient);
    DatadigitalFincloudGeneralsaasFaceCertifyVerifyModel datadigitalFincloudGeneralsaasFaceCertifyVerifyModel = new DatadigitalFincloudGeneralsaasFaceCertifyVerifyModel(); // DatadigitalFincloudGeneralsaasFaceCertifyVerifyModel | 
    try {
      DatadigitalFincloudGeneralsaasFaceCertifyVerifyResponseModel result = apiInstance.verify(datadigitalFincloudGeneralsaasFaceCertifyVerifyModel);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DatadigitalFincloudGeneralsaasFaceCertifyApi#verify");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
datadigitalFincloudGeneralsaasFaceCertifyVerifyModel DatadigitalFincloudGeneralsaasFaceCertifyVerifyModel [optional]

Return type

DatadigitalFincloudGeneralsaasFaceCertifyVerifyResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -