This document describes how to call Tencent Cloud FaceID APIs through API 3.0 Explorer and integrate SDKs in the corresponding programming language into your project after you purchase the FaceID service. You can access FaceID APIs quickly in the following steps.
Enter API 3.0 Explorer to call APIs in the following steps.
Select the CompareFace API on the left sidebar.
Enter your private key information and required parameters.
faceid.ap-shanghai.tencentcloudapi.comindicates that Shanghai is the access point. The common parameter
Regionspecifies the region of business resources to be accessed; for example,
Region=ap-beijingindicates resources in the Beijing region will be accessed. If the region information is not specified in the domain name, nearby access will be enabled by default, which may cause problems. If an IP cannot be resolved, Guangzhou region will be used by default. The region for the domain name and the common parameter
Regioncan be different, but this may increase access latency. We recommend using the same region for the domain name and the common parameter
Region, such as South China (Guangzhou)/ap-guangzhou.
Select the programming language to generate codes.
Enter the parameters on the left to generate codes. Part of the field information in the generated code is subject to the entered content. To adjust an input parameter, modify its value on the left and generate the code again.
Integrate the SDK into the project.
Integrate the SDK into the project as instructed in the usage guide on the upper right-hand corner. You can call the corresponding API using the code generated in [step 3](#Step 3).
Regionfield in common parameters when using SDKs to make calls. We recommend using
ap-guangzhoufor both the domain name and
data:image/jpg;base64,prefix and the
Configure the signature type:
[TencentCloudSDKException]message:AuthFailure.SignatureFailure-The provided credentials could not be validated because of exceeding request size limit, please use new signature method `TC3-HMAC-SHA256`. requestId:719970d4-5814-4dd9-9757-a3f11ecc9b20
clientProfile.setSignMethod("TC3-HMAC-SHA256"); // Specify the signature algorithm (default value: HmacSHA256)