DescribeFaceVerify API Return DeviceToken Field.

This commit is contained in:
sdk-team
2020-03-16 18:36:40 +08:00
parent b5434b7d6d
commit 8cc0896ed4
7 changed files with 24 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
2020-03-16 Version: 1.36.321
- DescribeFaceVerify API Return DeviceToken Field.
2020-03-16 Version: 1.36.320
- Release.
- Add virtual host modification API.

View File

@@ -1 +1 @@
1.36.320
1.36.321

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct ResultObject
{
std::string passed;
std::string deviceToken;
std::string identityInfo;
std::string materialInfo;
};

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setMerchant(const std::string& merchant);
std::string getAppVersion()const;
void setAppVersion(const std::string& appVersion);
std::string getDeviceToken()const;
void setDeviceToken(const std::string& deviceToken);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
std::string getOuterOrderNo()const;
@@ -61,6 +63,7 @@ namespace AlibabaCloud
std::string bizData_;
std::string merchant_;
std::string appVersion_;
std::string deviceToken_;
std::string certifyId_;
std::string outerOrderNo_;
std::string produceNode_;

View File

@@ -31,21 +31,21 @@ CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientCon
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::CloudauthClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::~CloudauthClient()

View File

@@ -46,6 +46,8 @@ void DescribeFaceVerifyResult::parse(const std::string &payload)
resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString();
if(!resultObjectNode["MaterialInfo"].isNull())
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
if(!resultObjectNode["DeviceToken"].isNull())
resultObject_.deviceToken = resultObjectNode["DeviceToken"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())

View File

@@ -71,6 +71,17 @@ void InitDeviceRequest::setAppVersion(const std::string& appVersion)
setParameter("AppVersion", appVersion);
}
std::string InitDeviceRequest::getDeviceToken()const
{
return deviceToken_;
}
void InitDeviceRequest::setDeviceToken(const std::string& deviceToken)
{
deviceToken_ = deviceToken;
setParameter("DeviceToken", deviceToken);
}
std::string InitDeviceRequest::getCertifyId()const
{
return certifyId_;