package main
import (
"fmt"
cloud "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common"
"github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/profile"
faceid "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/faceid/v20180301"
)
func main() {
prof := profile.NewClientProfile()
prof.HttpProfile.ReqTimeout = 60
credential := cloud.NewCredential("SecretId", "SecretKey")
FaceIdClient, _ := faceid.NewClient(credential, "ap-singapore", prof)
request := faceid.NewGetFaceIdTokenIntlRequest()
var SecureLevel = "4"
request.SecureLevel = &SecureLevel
response, _ := FaceIdClient.GetFaceIdTokenIntl(request)
fmt.Println("response: ", *response.Response.SdkToken)
}
本页内容是否解决了您的问题?