添加网站文件

This commit is contained in:
2025-12-22 13:59:40 +08:00
commit 117aaf83d1
19468 changed files with 2111999 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
/**
* QcloudApi_Common_Base
*/
abstract class QcloudApi_Common_Base
{
/**
* $_error
* 错误号
*/
protected $_error = 0;
/**
* setError
* 设置错误信息
*
* @param int $code 错误号
* @param string $message 错误信息
* @param string $ext 扩展信息
* @return object
*/
public function setError($code, $message, $ext = '')
{
require_once QCLOUDAPI_ROOT_PATH . '/Common/Error.php';
$this->_error = new QcloudApi_Common_Error($code, $message, $ext);
return $this->_error;
}
/**
* getError
* 获取错误信息
*
* @return object
*/
public function getError()
{
return $this->_error;
}
}

View File

@@ -0,0 +1,75 @@
<?php
/**
* QcloudApi_Common_Error
*/
class QcloudApi_Common_Error
{
/**
* LOCAL_ERROR_CODE
*/
const LOCAL_ERROR_CODE = 3000;
/**
* RESOURCE_PARTLY_FAILED
*/
const RESOURCE_PARTLY_FAILED = 5400;
/**
* $_code
* 错误号
*/
protected $_code;
/**
* $_message
* 错误信息
*/
protected $_message;
/**
* $_ext
* 扩展信息
*/
protected $_ext;
/**
* __construct
* @param int $code 错误号
* @param string $message 错误信息
* @param string $ext 扩展信息
*/
public function __construct($code, $message, $ext = '')
{
$code = (int) $code;
$this->_code = $code ? $code : self::LOCAL_ERROR_CODE;
$this->_message = $message;
$this->_ext = $ext;
}
/**
* getCode
* 获取错误号
*/
public function getCode()
{
return $this->_code;
}
/**
* getMessage
* 获取错误信息
*/
public function getMessage()
{
return $this->_message;
}
/**
* getExt
* 获取扩展信息
*/
public function getExt()
{
return $this->_ext;
}
}

View File

@@ -0,0 +1,183 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Common/Sign.php';
/**
* QcloudApi_Common_Request
*/
class QcloudApi_Common_Request
{
/**
* $_requestUrl
* 请求url
* @var string
*/
protected static $_requestUrl = '';
/**
* $_rawResponse
* 原始的返回信息
* @var string
*/
protected static $_rawResponse = '';
/**
* $_version
* @var string
*/
protected static $_version = 'SDK_PHP_2.0.6';
/**
* $_timeOut
* 设置连接主机的超时时间
* @var int 数量级:秒
* */
protected static $_timeOut = 10;
/**
* getRequestUrl
* 获取请求url
*/
public static function getRequestUrl()
{
return self::$_requestUrl;
}
/**
* getRawResponse
* 获取原始的返回信息
*/
public static function getRawResponse()
{
return self::$_rawResponse;
}
/**
* generateUrl
* 生成请求的URL
*
* @param array $paramArray
* @param string $secretId
* @param string $secretKey
* @param string $requestHost
* @param string $requestPath
* @param string $requestMethod
* @return
*/
public static function generateUrl($paramArray, $secretId, $secretKey, $requestMethod, $requestHost, $requestPath) {
if(!isset($paramArray['SecretId']))
$paramArray['SecretId'] = $secretId;
if (!isset($paramArray['Nonce']))
$paramArray['Nonce'] = rand(1, 65535);
if (!isset($paramArray['Timestamp']))
$paramArray['Timestamp'] = time();
$signMethod = 'HmacSHA1';
if (isset($paramArray['SignatureMethod']) && $paramArray['SignatureMethod'] == "HmacSHA256")
$signMethod= 'HmacSHA256';
$paramArray['RequestClient'] = self::$_version;
$plainText = QcloudApi_Common_Sign::makeSignPlainText($paramArray,
$requestMethod, $requestHost, $requestPath);
$paramArray['Signature'] = QcloudApi_Common_Sign::sign($plainText, $secretKey, $signMethod);
$url = 'https://' . $requestHost . $requestPath;
if ($requestMethod == 'GET') {
$url .= '?' . http_build_query($paramArray);
}
return $url;
}
/**
* send
* 发起请求
* @param array $paramArray 请求参数
* @param string $secretId secretId
* @param string $secretKey secretKey
* @param string $requestMethod 请求方式GET/POST
* @param string $requestHost 接口域名
* @param string $requestPath url路径
* @return
*/
public static function send($paramArray, $secretId, $secretKey, $requestMethod, $requestHost, $requestPath)
{
if(!isset($paramArray['SecretId']))
$paramArray['SecretId'] = $secretId;
if (!isset($paramArray['Nonce']))
$paramArray['Nonce'] = rand(1, 65535);
if (!isset($paramArray['Timestamp']))
$paramArray['Timestamp'] = time();
$signMethod = 'HmacSHA1';
if (isset($paramArray['SignatureMethod']) && $paramArray['SignatureMethod'] == "HmacSHA256")
$signMethod= 'HmacSHA256';
$paramArray['RequestClient'] = self::$_version;
$plainText = QcloudApi_Common_Sign::makeSignPlainText($paramArray,
$requestMethod, $requestHost, $requestPath);
$paramArray['Signature'] = QcloudApi_Common_Sign::sign($plainText, $secretKey, $signMethod);
$url = 'https://' . $requestHost . $requestPath;
$ret = self::_sendRequest($url, $paramArray, $requestMethod);
return $ret;
}
/**
* _sendRequest
* @param string $url 请求url
* @param array $paramArray 请求参数
* @param string $method 请求方法
* @return
*/
protected static function _sendRequest($url, $paramArray, $method = 'POST')
{
$ch = curl_init();
if ($method == 'POST')
{
$paramArray = is_array( $paramArray ) ? http_build_query( $paramArray ) : $paramArray;
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $paramArray);
}
else
{
$url .= '?' . http_build_query($paramArray);
}
self::$_requestUrl = $url;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_TIMEOUT,self::$_timeOut);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
if (false !== strpos($url, "https")) {
// 证书
// curl_setopt($ch,CURLOPT_CAINFO,"ca.crt");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
}
$resultStr = curl_exec($ch);
self::$_rawResponse = $resultStr;
$result = json_decode($resultStr, true);
if (!$result)
{
return $resultStr;
}
return $result;
}
}

View File

@@ -0,0 +1,102 @@
<?php
/**
* QcloudApi_Common_Sign
* 签名类
*/
class QcloudApi_Common_Sign
{
/**
* sign
* 生成签名
* @param string $srcStr 拼接签名源文字符串
* @param string $secretKey secretKey
* @param string $method 请求方法
* @return
*/
public static function sign($srcStr, $secretKey, $method = 'HmacSHA1')
{
switch ($method) {
case 'HmacSHA1':
$retStr = base64_encode(hash_hmac('sha1', $srcStr, $secretKey, true));
break;
case 'HmacSHA256':
$retStr = base64_encode(hash_hmac('sha256', $srcStr, $secretKey, true));
break;
default:
throw new Exception($method . ' is not a supported encrypt method');
return false;
break;
}
return $retStr;
}
/**
* makeSignPlainText
* 生成拼接签名源文字符串
* @param array $requestParams 请求参数
* @param string $requestMethod 请求方法
* @param string $requestHost 接口域名
* @param string $requestPath url路径
* @return
*/
public static function makeSignPlainText($requestParams,
$requestMethod = 'GET', $requestHost = YUNAPI_URL,
$requestPath = '/v2/index.php')
{
$url = $requestHost . $requestPath;
// 取出所有的参数
$paramStr = self::_buildParamStr($requestParams, $requestMethod);
$plainText = $requestMethod . $url . $paramStr;
return $plainText;
}
/**
* _buildParamStr
* 拼接参数
* @param array $requestParams 请求参数
* @param string $requestMethod 请求方法
* @return
*/
protected static function _buildParamStr($requestParams, $requestMethod = 'GET')
{
$paramStr = '';
ksort($requestParams);
$i = 0;
foreach ($requestParams as $key => $value)
{
if ($key == 'Signature')
{
continue;
}
// 排除上传文件的参数
if ($requestMethod == 'POST' && substr($value, 0, 1) == '@') {
continue;
}
// 把 参数中的 _ 替换成 .
if (strpos($key, '_'))
{
$key = str_replace('_', '.', $key);
}
if ($i == 0)
{
$paramStr .= '?';
}
else
{
$paramStr .= '&';
}
$paramStr .= $key . '=' . $value;
++$i;
}
return $paramStr;
}
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Account
* 用户账户模块类
*/
class QcloudApi_Module_Account extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'account.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Apigateway
* API网关
*/
class QcloudApi_Module_Apigateway extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'apigateway.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Athena
* https://cloud.tencent.com/document/product/671
*/
class QcloudApi_Module_Athena extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'athena.api.qcloud.com';
}

View File

@@ -0,0 +1,262 @@
<?php
if (!defined('QCLOUDAPI_ROOT_PATH')) {
// 目录入口
define('QCLOUDAPI_ROOT_PATH', dirname(dirname(__FILE__)));
}
require_once QCLOUDAPI_ROOT_PATH . '/Common/Base.php';
/**
* QcloudApi_Module_Base
* 模块基类
*/
abstract class QcloudApi_Module_Base extends QcloudApi_Common_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = '';
/**
* $_serverUri
* url路径
* @var string
*/
protected $_serverUri = '/v2/index.php';
/**
* $_secretId
* secretId
* @var string
*/
protected $_secretId = "";
/**
* $_secretKey
* secretKey
* @var string
*/
protected $_secretKey = "";
/**
* $_defaultRegion
* 区域参数
* @var string
*/
protected $_defaultRegion = "";
/**
* $_requestMethod
* 请求方法
* @var string
*/
protected $_requestMethod = "GET";
/**
* __construct
* @param array $config [description]
*/
public function __construct($config = array())
{
if (!empty($config))
$this->setConfig($config);
}
/**
* setConfig
* 设置配置
* @param array $config 模块配置
*/
public function setConfig($config)
{
if (!is_array($config) || !count($config))
return false;
foreach ($config as $key => $val) {
switch ($key) {
case 'SecretId':
$this->setConfigSecretId($val);
break;
case 'SecretKey':
$this->setConfigSecretKey($val);
break;
case 'DefaultRegion':
$this->setConfigDefaultRegion($val);
break;
case 'RequestMethod':
$this->setConfigRequestMethod($val);
break;
default:
;
break;
}
}
return true;
}
/**
* setConfigSecretId
* 设置secretId
* @param string $secretId secretId
*/
public function setConfigSecretId($secretId)
{
$this->_secretId = $secretId;
return $this;
}
/**
* setConfigSecretKey
* 设置secretKey
* @param string $secretKey
*/
public function setConfigSecretKey($secretKey)
{
$this->_secretKey = $secretKey;
return $this;
}
/**
* setConfigDefaultRegion
* 设置区域参数
* @param string $region
*/
public function setConfigDefaultRegion($region)
{
$this->_defaultRegion = $region;
return $this;
}
/**
* setConfigRequestMethod
* 设置请求方法
* @param string $method
*/
public function setConfigRequestMethod($method)
{
$this->_requestMethod = strtoupper($method);
return $this;
}
/**
* getLastRequest
* 获取上次请求的url
* @return
*/
public function getLastRequest()
{
require_once QCLOUDAPI_ROOT_PATH . '/Common/Request.php';
return QcloudApi_Common_Request::getRequestUrl();
}
/**
* getLastResponse
* 获取请求的原始返回
* @return
*/
public function getLastResponse()
{
require_once QCLOUDAPI_ROOT_PATH . '/Common/Request.php';
return QcloudApi_Common_Request::getRawResponse();
}
/**
* generateUrl
* 生成请求的URL不发起请求
* @param string $name 接口方法名
* @param array $params 请求参数
* @return
*/
public function generateUrl($name, $params)
{
require_once QCLOUDAPI_ROOT_PATH . '/Common/Request.php';
$action = ucfirst($name);
$params['Action'] = $action;
if (!isset($params['Region']))
$params['Region'] = $this->_defaultRegion;
return QcloudApi_Common_Request::generateUrl($params, $this->_secretId, $this->_secretKey, $this->_requestMethod,
$this->_serverHost, $this->_serverUri);
}
/**
* __call
* 通过__call转发请求
* @param string $name 方法名
* @param array $arguments 参数
* @return
*/
public function __call($name, $arguments)
{
$response = $this->_dispatchRequest($name, $arguments);
return $this->_dealResponse($response);
}
/**
* _dispatchRequest
* 发起接口请求
* @param string $name 接口名
* @param array $arguments 接口参数
* @return
*/
protected function _dispatchRequest($name, $arguments)
{
$action = ucfirst($name);
$params = array();
if (is_array($arguments) && !empty($arguments)) {
$params = (array) $arguments[0];
}
$params['Action'] = $action;
if (!isset($params['Region']))
$params['Region'] = $this->_defaultRegion;
require_once QCLOUDAPI_ROOT_PATH . '/Common/Request.php';
$response = QcloudApi_Common_Request::send($params, $this->_secretId, $this->_secretKey, $this->_requestMethod,
$this->_serverHost, $this->_serverUri);
return $response;
}
/**
* _dealResponse
* 处理返回
* @param array $rawResponse
* @return
*/
protected function _dealResponse($rawResponse)
{
if (!is_array($rawResponse) || (!isset($rawResponse['code']) && !isset($rawResponse['Response']))) {
$this->setError("", 'request falied!');
return false;
}
if ($rawResponse['code']) {
$ext = '';
require_once QCLOUDAPI_ROOT_PATH . '/Common/Error.php';
if (isset($rawResponse['detail'])) {
// 批量异步操作,返回任务失败信息
$ext = $rawResponse['detail'];
}
$this->setError($rawResponse['code'], $rawResponse['message'], $ext);
return false;
}
unset($rawResponse['code'], $rawResponse['message']);
if (count($rawResponse))
return $rawResponse;
else
return true;
}
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Batch
* 批量计算
*/
class QcloudApi_Module_Batch extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'batch.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Bgpip
* 大禹网络安全模块
*/
class QcloudApi_Module_Bgpip extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'bgpip.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Bill
* Bill账单模块类
*/
class QcloudApi_Module_Bill extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'bill.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Bm
* 黑石类
*/
class QcloudApi_Module_Bm extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'bm.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Bmeip
* 黑石eip模块类
*/
class QcloudApi_Module_Bmeip extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'bmeip.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Bmlb
* 黑石LB类
*/
class QcloudApi_Module_Bmlb extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'bmlb.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Bmvpc
* 黑石VPC模块类
*/
class QcloudApi_Module_Bmvpc extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'bmvpc.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Cbs
* 云硬盘模块类
*/
class QcloudApi_Module_Cbs extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'cbs.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Ccs
* 容器服务
*/
class QcloudApi_Module_Ccs extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'ccs.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Cdb
* CDB数据库模块类
*/
class QcloudApi_Module_Cdb extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'cdb.api.qcloud.com';
}

View File

@@ -0,0 +1,51 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Cdn
* CDN模块类
*/
class QcloudApi_Module_Cdn extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'cdn.api.qcloud.com';
/**
* UploadCdnEntity
* 上传CDN文件
* @param array $params 请求参数
*/
public function UploadCdnEntity($params) {
$name = 'UploadCdnEntity';
$entityFile = $params['entityFile'];
if (!file_exists($entityFile)) {
$this->setError('', 'entityFile is not exists.');
return false;
}
if (!$params['entityFileMd5']) {
$params['entityFileMd5'] = md5_file($entityFile);
}
$params['entityFile'] = '@' . $entityFile;
$response = $this->_dispatchRequest($name, array($params));
if (!$response) {
$this->setError("", 'request falied!');
return false;
}
if (is_array($response) && $response['code']) {
$this->setError($response['code'], $response['message']);
return false;
}
unset($response['code'], $response['message']);
return $response;
}
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Cloudaudit
* 云审计模块类
*/
class QcloudApi_Module_Cloudaudit extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'cloudaudit.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Cmem
* 云缓存模块类
*/
class QcloudApi_Module_Cmem extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'cmem.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Cns
* 云解析模块类
*/
class QcloudApi_Module_Cns extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'cns.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Cvm
* 云服务器模块类
*/
class QcloudApi_Module_Cvm extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'cvm.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Dfw
* 安全组
*/
class QcloudApi_Module_Dfw extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'dfw.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Eip
* 弹性公网Ip模块类
*/
class QcloudApi_Module_Eip extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'eip.api.qcloud.com';
}

View File

@@ -0,0 +1,14 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* https://cloud.tencent.com/document/product/589
*/
class QcloudApi_Module_Emr extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'emr.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Feecenter
* 费用中心类
*/
class QcloudApi_Module_Feecenter extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'feecenter.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Image
* 镜像模块类
*/
class QcloudApi_Module_Image extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'image.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Lb
* 负载均衡模块类
*/
class QcloudApi_Module_Lb extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'lb.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Live
* 直播模块类
*/
class QcloudApi_Module_Live extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'live.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Market
* Market模块类
*/
class QcloudApi_Module_Market extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'market.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Monitor
* 云监控模块类
*/
class QcloudApi_Module_Monitor extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'monitor.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Partners
* 渠道合作伙伴
*/
class QcloudApi_Module_Partners extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'partners.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Redis
* 弹性缓存
*/
class QcloudApi_Module_Redis extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'redis.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Scaling
* 弹性伸缩模块类
*/
class QcloudApi_Module_Scaling extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'Scaling.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Scf
* 无服务器云函数
*/
class QcloudApi_Module_Scf extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'scf.api.qcloud.com';
}

View File

@@ -0,0 +1,45 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Sec
* 云安全模块类
*/
class QcloudApi_Module_Sec extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'csec.api.qcloud.com';
/**
* captchaQuery
* 获取验证码
* @param array $params 请求参数
* @return
*/
public function captchaQuery($params) {
$name = 'captchaQuery';
$response = $this->_dispatchRequest($name, array($params));
if (!$response) {
$this->setError("", 'request falied!');
return false;
}
if (is_array($response) && $response['code']) {
$this->setError($response['code'], $response['message']);
return false;
}
if ($params['script'] == 1) {
return $response;
}
unset($response['code'], $response['message']);
return $response;
}
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Snapshot
* 快照模块类
*/
class QcloudApi_Module_Snapshot extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'snapshot.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Sts
* https://cloud.tencent.com/document/product/598
*/
class QcloudApi_Module_Sts extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'sts.api.qcloud.com';
}

View File

@@ -0,0 +1,14 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* https://cloud.tencent.com/document/product/663
*/
class QcloudApi_Module_Tbaas extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'tbaas.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Tdsql
* 云数据库Tdsql模块类
*/
class QcloudApi_Module_Tdsql extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'tdsql.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Tmt
* 机器翻译
*/
class QcloudApi_Module_Tmt extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'tmt.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Trade
* 产品售卖模块类
*/
class QcloudApi_Module_Trade extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'trade.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Vod
* 视频云模块类
*/
class QcloudApi_Module_Vod extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'vod.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Vpc
* VPC模块类
*/
class QcloudApi_Module_Vpc extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'vpc.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_WENZHI
* 文智模块类
*/
class QcloudApi_Module_Wenzhi extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'wenzhi.api.qcloud.com';
}

View File

@@ -0,0 +1,15 @@
<?php
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
/**
* QcloudApi_Module_Vod
* 视频云模块类
*/
class QcloudApi_Module_Yunsou extends QcloudApi_Module_Base
{
/**
* $_serverHost
* 接口域名
* @var string
*/
protected $_serverHost = 'yunsou.api.qcloud.com';
}

View File

@@ -0,0 +1,283 @@
<?php
// 目录入口
define('QCLOUDAPI_ROOT_PATH', dirname(__FILE__));
/**
* QcloudApi
* SDK入口文件
*/
class QcloudApi
{
/**
* MODULE_ACCOUNT
* 用户账户
*/
const MODULE_ACCOUNT = 'account';
/**
* MODULE_CVM
* 云服务器
*/
const MODULE_CVM = 'cvm';
/**
* MODULE_CDB
* CDB数据库
*/
const MODULE_CDB = 'cdb';
/**
* MODULE_LB
* 负载均衡
*/
const MODULE_LB = 'lb';
/**
* MODULE_TRADE
* 产品售卖
*/
const MODULE_TRADE = 'trade';
/**
* MODULE_BILL
* 账单
*/
const MODULE_BILL = 'bill';
/**
* MODULE_SEC
* 云安全
*/
const MODULE_SEC = 'sec';
/**
* MODULE_IMAGE
* 镜像
*/
const MODULE_IMAGE = 'image';
/**
* MODULE_MONITOR
* 云监控
*/
const MODULE_MONITOR = 'monitor';
/**
* MODULE_CDN
* CDN
*/
const MODULE_CDN = 'cdn';
/**
* MODULE_VPC
* VPC
*/
const MODULE_VPC = 'vpc';
/**
* MODULE_VOD
* VOD
*/
const MODULE_VOD = 'vod';
/**
* YUNSOU
*/
const MODULE_YUNSOU = 'yunsou';
/**
* cns
*/
const MODULE_CNS = 'cns';
/**
* wenzhi
*/
const MODULE_WENZHI = 'wenzhi';
/**
* MARKET
*/
const MODULE_MARKET = 'market';
/**
* MODULE_EIP
* 弹性公网Ip
*/
const MODULE_EIP = 'eip';
/**
* MODULE_LIVE
* 直播
*/
const MODULE_LIVE = 'live';
/**
* MODULE_SNAPSHOT
* 快照
*/
const MODULE_SNAPSHOT = 'snapshot';
/**
* MODULE_CBS
* 云硬盘
*/
const MODULE_CBS = 'cbs';
/**
* MODULE_SCALING
* 弹性伸缩
*/
const MODULE_SCALING = 'scaling';
/**
* MODULE_CMEM
* 云缓存
*/
const MODULE_CMEM = 'cmem';
/**
* MODULE_TDSQL
* 云数据库TDSQL
*/
const MODULE_TDSQL = 'tdsql';
/**
* MODULE_BM
* 黑石BM
*/
const MODULE_BM = 'bm';
/**
* MODULE_BMLB
* 黑石BMLB
*/
const MODULE_BMLB = 'bmlb';
/**
* MODULE_FEECENTER
* 费用中心
*/
const MODULE_FEECENTER = 'feecenter';
/**
* MODULE_BMEIP
* 黑石eip
*/
const MODULE_BMEIP = 'bmeip';
/**
* MODULE_BMVPC
* 黑石vpc
*/
const MODULE_BMVPC = 'bmvpc';
/**
* MODULE_BGPIP
* 大禹网络安全
*/
const MODULE_BGPIP = 'bgpip';
/**
* MODULE_CLOUDAUDIT
* 云审计模块
*/
const MODULE_CLOUDAUDIT = 'cloudaudit';
/**
* MODULE_DFW
* 安全组模块
*/
const MODULE_DFW = 'dfw';
/**
* MODULE_SCF
* 无服务器云函数
*/
const MODULE_SCF = 'scf';
/**
* MODULE_APIGATEWAY
* API网关
*/
const MODULE_APIGATEWAY = 'apigateway';
/**
* MODULE_TMT
* 机器翻译
*/
const MODULE_TMT = 'tmt';
/**
* MODULE_BATCH
* 批量计算
*/
const MODULE_BATCH = 'batch';
/**
* MODULE_CCS
* 容器服务
*/
const MODULE_CCS = 'ccs';
/**
* MODULE_REDIS
* 弹性缓存
*/
const MODULE_REDIS = 'redis';
/**
* MODULE_PARTNERS
* 渠道合作伙伴
*/
const MODULE_PARTNERS = 'partners';
/**
* MODULE_STS
*/
const MODULE_STS = "sts";
/**
* MODULE_ATHENA
* 金融智能客服
*/
const MODULE_ATHENA = "athena";
/**
* MODULE_TBAAS
* 区块链服务
*/
const MODULE_TBAAS = "tbaas";
/**
* MODULE_EMR
* 弹性 MapReduce
*/
const MODULE_EMR = "emr";
/**
* load
* 加载模块文件
* @param string $moduleName 模块名称
* @param array $moduleConfig 模块配置
* @return
*/
public static function load($moduleName, $moduleConfig = array())
{
$moduleName = ucfirst($moduleName);
$moduleClassFile = QCLOUDAPI_ROOT_PATH . '/Module/' . $moduleName . '.php';
if (!file_exists($moduleClassFile)) {
return false;
}
require_once $moduleClassFile;
$moduleClassName = 'QcloudApi_Module_' . $moduleName;
$moduleInstance = new $moduleClassName();
if (!empty($moduleConfig)) {
$moduleInstance->setConfig($moduleConfig);
}
return $moduleInstance;
}
}

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224;
use TencentCloud\Common\AbstractClient;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Credential;
use TencentCloud\Aa\V20200224\Models as Models;
/**
* @method Models\ManageMarketingRiskResponse ManageMarketingRisk(Models\ManageMarketingRiskRequest $req) 活动防刷、注册保护、登录保护等营销产品的高级版本
* @method Models\QueryActivityAntiRushResponse QueryActivityAntiRush(Models\QueryActivityAntiRushRequest $req) 腾讯云活动防刷ActivityAntiRushAA是针对电商、O2O、P2P、游戏、支付等行业在促销活动中遇到“羊毛党”恶意刷取优惠福利的行为时通过防刷引擎精准识别出“薅羊毛”恶意行为的活动防刷服务避免了企业被刷带来的巨大经济损失。
* @method Models\QueryActivityAntiRushAdvancedResponse QueryActivityAntiRushAdvanced(Models\QueryActivityAntiRushAdvancedRequest $req) 活动防刷高级版,支持对网赚众包、网赚防刷、引流反诈骗场景的检测识别
*/
class AaClient extends AbstractClient
{
/**
* @var string
*/
protected $endpoint = "aa.tencentcloudapi.com";
/**
* @var string
*/
protected $service = "aa";
/**
* @var string
*/
protected $version = "2020-02-24";
/**
* @param Credential $credential
* @param string $region
* @param ClientProfile|null $profile
* @throws TencentCloudSDKException
*/
function __construct($credential, $region, $profile=null)
{
parent::__construct($this->endpoint, $this->version, $credential, $region, $profile);
}
public function returnResponse($action, $response)
{
$respClass = "TencentCloud"."\\".ucfirst("aa")."\\"."V20200224\\Models"."\\".ucfirst($action)."Response";
$obj = new $respClass();
$obj->deserialize($response);
return $obj;
}
}

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 账号信息。
*
* @method integer getAccountType() 获取用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
1QQ开放账号。
2微信开放账号。
4手机号暂仅支持国内手机号
8设备号imei/imeiMD5/idfa/idfaMd5
0其他。
10004手机号MD5标准中国大陆手机号11位MD5后取32位小写值
* @method void setAccountType(integer $AccountType) 设置用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
1QQ开放账号。
2微信开放账号。
4手机号暂仅支持国内手机号
8设备号imei/imeiMD5/idfa/idfaMd5
0其他。
10004手机号MD5标准中国大陆手机号11位MD5后取32位小写值
* @method QQAccountInfo getQQAccount() 获取QQ账号信息AccountType是1时该字段必填。
* @method void setQQAccount(QQAccountInfo $QQAccount) 设置QQ账号信息AccountType是1时该字段必填。
* @method WeChatAccountInfo getWeChatAccount() 获取微信账号信息AccountType是2时该字段必填。
* @method void setWeChatAccount(WeChatAccountInfo $WeChatAccount) 设置微信账号信息AccountType是2时该字段必填。
* @method OtherAccountInfo getOtherAccount() 获取其它账号信息AccountType是0、4、8或10004时该字段必填。
* @method void setOtherAccount(OtherAccountInfo $OtherAccount) 设置其它账号信息AccountType是0、4、8或10004时该字段必填。
*/
class AccountInfo extends AbstractModel
{
/**
* @var integer 用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
1QQ开放账号。
2微信开放账号。
4手机号暂仅支持国内手机号
8设备号imei/imeiMD5/idfa/idfaMd5
0其他。
10004手机号MD5标准中国大陆手机号11位MD5后取32位小写值
*/
public $AccountType;
/**
* @var QQAccountInfo QQ账号信息AccountType是1时该字段必填。
*/
public $QQAccount;
/**
* @var WeChatAccountInfo 微信账号信息AccountType是2时该字段必填。
*/
public $WeChatAccount;
/**
* @var OtherAccountInfo 其它账号信息AccountType是0、4、8或10004时该字段必填。
*/
public $OtherAccount;
/**
* @param integer $AccountType 用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
1QQ开放账号。
2微信开放账号。
4手机号暂仅支持国内手机号
8设备号imei/imeiMD5/idfa/idfaMd5
0其他。
10004手机号MD5标准中国大陆手机号11位MD5后取32位小写值
* @param QQAccountInfo $QQAccount QQ账号信息AccountType是1时该字段必填。
* @param WeChatAccountInfo $WeChatAccount 微信账号信息AccountType是2时该字段必填。
* @param OtherAccountInfo $OtherAccount 其它账号信息AccountType是0、4、8或10004时该字段必填。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AccountType",$param) and $param["AccountType"] !== null) {
$this->AccountType = $param["AccountType"];
}
if (array_key_exists("QQAccount",$param) and $param["QQAccount"] !== null) {
$this->QQAccount = new QQAccountInfo();
$this->QQAccount->deserialize($param["QQAccount"]);
}
if (array_key_exists("WeChatAccount",$param) and $param["WeChatAccount"] !== null) {
$this->WeChatAccount = new WeChatAccountInfo();
$this->WeChatAccount->deserialize($param["WeChatAccount"]);
}
if (array_key_exists("OtherAccount",$param) and $param["OtherAccount"] !== null) {
$this->OtherAccount = new OtherAccountInfo();
$this->OtherAccount->deserialize($param["OtherAccount"]);
}
}
}

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 网赚防刷相关参数
*
* @method string getSponsorOpenId() 获取助力场景建议填写活动发起人微信OpenID。
* @method void setSponsorOpenId(string $SponsorOpenId) 设置助力场景建议填写活动发起人微信OpenID。
* @method string getSponsorDeviceNumber() 获取助力场景建议填写:发起人设备号。
* @method void setSponsorDeviceNumber(string $SponsorDeviceNumber) 设置助力场景建议填写:发起人设备号。
* @method string getSponsorPhone() 获取助力场景建议填写:发起人手机号。
* @method void setSponsorPhone(string $SponsorPhone) 设置助力场景建议填写:发起人手机号。
* @method string getSponsorIp() 获取助力场景建议填写发起人IP。
* @method void setSponsorIp(string $SponsorIp) 设置助力场景建议填写发起人IP。
* @method string getCampaignUrl() 获取助力场景建议填写:活动链接。
* @method void setCampaignUrl(string $CampaignUrl) 设置助力场景建议填写:活动链接。
*/
class CrowdAntiRushInfo extends AbstractModel
{
/**
* @var string 助力场景建议填写活动发起人微信OpenID。
*/
public $SponsorOpenId;
/**
* @var string 助力场景建议填写:发起人设备号。
*/
public $SponsorDeviceNumber;
/**
* @var string 助力场景建议填写:发起人手机号。
*/
public $SponsorPhone;
/**
* @var string 助力场景建议填写发起人IP。
*/
public $SponsorIp;
/**
* @var string 助力场景建议填写:活动链接。
*/
public $CampaignUrl;
/**
* @param string $SponsorOpenId 助力场景建议填写活动发起人微信OpenID。
* @param string $SponsorDeviceNumber 助力场景建议填写:发起人设备号。
* @param string $SponsorPhone 助力场景建议填写:发起人手机号。
* @param string $SponsorIp 助力场景建议填写发起人IP。
* @param string $CampaignUrl 助力场景建议填写:活动链接。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SponsorOpenId",$param) and $param["SponsorOpenId"] !== null) {
$this->SponsorOpenId = $param["SponsorOpenId"];
}
if (array_key_exists("SponsorDeviceNumber",$param) and $param["SponsorDeviceNumber"] !== null) {
$this->SponsorDeviceNumber = $param["SponsorDeviceNumber"];
}
if (array_key_exists("SponsorPhone",$param) and $param["SponsorPhone"] !== null) {
$this->SponsorPhone = $param["SponsorPhone"];
}
if (array_key_exists("SponsorIp",$param) and $param["SponsorIp"] !== null) {
$this->SponsorIp = $param["SponsorIp"];
}
if (array_key_exists("CampaignUrl",$param) and $param["CampaignUrl"] !== null) {
$this->CampaignUrl = $param["CampaignUrl"];
}
}
}

View File

@@ -0,0 +1,232 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 活动防刷高级版业务入参。
*
* @method AccountInfo getAccount() 获取账号信息。
* @method void setAccount(AccountInfo $Account) 设置账号信息。
* @method string getUserIp() 获取用户IP外网有效IP地址
* @method void setUserIp(string $UserIp) 设置用户IP外网有效IP地址
* @method integer getPostTime() 获取用户操作时间戳单位秒格林威治时间精确到秒如1501590972
* @method void setPostTime(integer $PostTime) 设置用户操作时间戳单位秒格林威治时间精确到秒如1501590972
* @method SponsorInfo getSponsor() 获取可选填写。详情请跳转至SponsorInfo查看。
* @method void setSponsor(SponsorInfo $Sponsor) 设置可选填写。详情请跳转至SponsorInfo查看。
* @method OnlineScamInfo getOnlineScam() 获取可选填写。详情请跳转至OnlineScamInfo查看。
* @method void setOnlineScam(OnlineScamInfo $OnlineScam) 设置可选填写。详情请跳转至OnlineScamInfo查看。
* @method integer getBusinessId() 获取业务ID。网站或应用在多个业务中使用此服务通过此ID区分统计数据。
* @method void setBusinessId(integer $BusinessId) 设置业务ID。网站或应用在多个业务中使用此服务通过此ID区分统计数据。
* @method string getNickname() 获取昵称UTF-8 编码。
* @method void setNickname(string $Nickname) 设置昵称UTF-8 编码。
* @method string getEmailAddress() 获取用户邮箱地址(非系统自动生成)。
* @method void setEmailAddress(string $EmailAddress) 设置用户邮箱地址(非系统自动生成)。
* @method integer getCheckDevice() 获取是否识别设备异常:
0不识别。
1识别。
* @method void setCheckDevice(integer $CheckDevice) 设置是否识别设备异常:
0不识别。
1识别。
* @method string getCookieHash() 获取用户HTTP请求中的Cookie进行2次hash的值只要保证相同Cookie的hash值一致即可。
* @method void setCookieHash(string $CookieHash) 设置用户HTTP请求中的Cookie进行2次hash的值只要保证相同Cookie的hash值一致即可。
* @method string getReferer() 获取用户HTTP请求的Referer值。
* @method void setReferer(string $Referer) 设置用户HTTP请求的Referer值。
* @method string getUserAgent() 获取用户HTTP请求的User-Agent值。
* @method void setUserAgent(string $UserAgent) 设置用户HTTP请求的User-Agent值。
* @method string getXForwardedFor() 获取用户HTTP请求的X-Forwarded-For值。
* @method void setXForwardedFor(string $XForwardedFor) 设置用户HTTP请求的X-Forwarded-For值。
* @method string getMacAddress() 获取MAC地址或设备唯一标识。
* @method void setMacAddress(string $MacAddress) 设置MAC地址或设备唯一标识。
* @method string getVendorId() 获取手机制造商ID如果手机注册请带上此信息。
* @method void setVendorId(string $VendorId) 设置手机制造商ID如果手机注册请带上此信息。
*/
class InputActivityAntiRushAdvanced extends AbstractModel
{
/**
* @var AccountInfo 账号信息。
*/
public $Account;
/**
* @var string 用户IP外网有效IP地址
*/
public $UserIp;
/**
* @var integer 用户操作时间戳单位秒格林威治时间精确到秒如1501590972
*/
public $PostTime;
/**
* @var SponsorInfo 可选填写。详情请跳转至SponsorInfo查看。
*/
public $Sponsor;
/**
* @var OnlineScamInfo 可选填写。详情请跳转至OnlineScamInfo查看。
*/
public $OnlineScam;
/**
* @var integer 业务ID。网站或应用在多个业务中使用此服务通过此ID区分统计数据。
*/
public $BusinessId;
/**
* @var string 昵称UTF-8 编码。
*/
public $Nickname;
/**
* @var string 用户邮箱地址(非系统自动生成)。
*/
public $EmailAddress;
/**
* @var integer 是否识别设备异常:
0不识别。
1识别。
*/
public $CheckDevice;
/**
* @var string 用户HTTP请求中的Cookie进行2次hash的值只要保证相同Cookie的hash值一致即可。
*/
public $CookieHash;
/**
* @var string 用户HTTP请求的Referer值。
*/
public $Referer;
/**
* @var string 用户HTTP请求的User-Agent值。
*/
public $UserAgent;
/**
* @var string 用户HTTP请求的X-Forwarded-For值。
*/
public $XForwardedFor;
/**
* @var string MAC地址或设备唯一标识。
*/
public $MacAddress;
/**
* @var string 手机制造商ID如果手机注册请带上此信息。
*/
public $VendorId;
/**
* @param AccountInfo $Account 账号信息。
* @param string $UserIp 用户IP外网有效IP地址
* @param integer $PostTime 用户操作时间戳单位秒格林威治时间精确到秒如1501590972
* @param SponsorInfo $Sponsor 可选填写。详情请跳转至SponsorInfo查看。
* @param OnlineScamInfo $OnlineScam 可选填写。详情请跳转至OnlineScamInfo查看。
* @param integer $BusinessId 业务ID。网站或应用在多个业务中使用此服务通过此ID区分统计数据。
* @param string $Nickname 昵称UTF-8 编码。
* @param string $EmailAddress 用户邮箱地址(非系统自动生成)。
* @param integer $CheckDevice 是否识别设备异常:
0不识别。
1识别。
* @param string $CookieHash 用户HTTP请求中的Cookie进行2次hash的值只要保证相同Cookie的hash值一致即可。
* @param string $Referer 用户HTTP请求的Referer值。
* @param string $UserAgent 用户HTTP请求的User-Agent值。
* @param string $XForwardedFor 用户HTTP请求的X-Forwarded-For值。
* @param string $MacAddress MAC地址或设备唯一标识。
* @param string $VendorId 手机制造商ID如果手机注册请带上此信息。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Account",$param) and $param["Account"] !== null) {
$this->Account = new AccountInfo();
$this->Account->deserialize($param["Account"]);
}
if (array_key_exists("UserIp",$param) and $param["UserIp"] !== null) {
$this->UserIp = $param["UserIp"];
}
if (array_key_exists("PostTime",$param) and $param["PostTime"] !== null) {
$this->PostTime = $param["PostTime"];
}
if (array_key_exists("Sponsor",$param) and $param["Sponsor"] !== null) {
$this->Sponsor = new SponsorInfo();
$this->Sponsor->deserialize($param["Sponsor"]);
}
if (array_key_exists("OnlineScam",$param) and $param["OnlineScam"] !== null) {
$this->OnlineScam = new OnlineScamInfo();
$this->OnlineScam->deserialize($param["OnlineScam"]);
}
if (array_key_exists("BusinessId",$param) and $param["BusinessId"] !== null) {
$this->BusinessId = $param["BusinessId"];
}
if (array_key_exists("Nickname",$param) and $param["Nickname"] !== null) {
$this->Nickname = $param["Nickname"];
}
if (array_key_exists("EmailAddress",$param) and $param["EmailAddress"] !== null) {
$this->EmailAddress = $param["EmailAddress"];
}
if (array_key_exists("CheckDevice",$param) and $param["CheckDevice"] !== null) {
$this->CheckDevice = $param["CheckDevice"];
}
if (array_key_exists("CookieHash",$param) and $param["CookieHash"] !== null) {
$this->CookieHash = $param["CookieHash"];
}
if (array_key_exists("Referer",$param) and $param["Referer"] !== null) {
$this->Referer = $param["Referer"];
}
if (array_key_exists("UserAgent",$param) and $param["UserAgent"] !== null) {
$this->UserAgent = $param["UserAgent"];
}
if (array_key_exists("XForwardedFor",$param) and $param["XForwardedFor"] !== null) {
$this->XForwardedFor = $param["XForwardedFor"];
}
if (array_key_exists("MacAddress",$param) and $param["MacAddress"] !== null) {
$this->MacAddress = $param["MacAddress"];
}
if (array_key_exists("VendorId",$param) and $param["VendorId"] !== null) {
$this->VendorId = $param["VendorId"];
}
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 入参的详细参数信息
*
* @method string getFieldName() 获取字段名称
* @method void setFieldName(string $FieldName) 设置字段名称
* @method string getFieldValue() 获取字段值
* @method void setFieldValue(string $FieldValue) 设置字段值
*/
class InputDetails extends AbstractModel
{
/**
* @var string 字段名称
*/
public $FieldName;
/**
* @var string 字段值
*/
public $FieldValue;
/**
* @param string $FieldName 字段名称
* @param string $FieldValue 字段值
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("FieldName",$param) and $param["FieldName"] !== null) {
$this->FieldName = $param["FieldName"];
}
if (array_key_exists("FieldValue",$param) and $param["FieldValue"] !== null) {
$this->FieldValue = $param["FieldValue"];
}
}
}

View File

@@ -0,0 +1,320 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 营销风控入参
*
* @method AccountInfo getAccount() 获取账号信息。
* @method void setAccount(AccountInfo $Account) 设置账号信息。
* @method string getUserIp() 获取登录来源的外网IP
* @method void setUserIp(string $UserIp) 设置登录来源的外网IP
* @method integer getPostTime() 获取用户操作时间戳单位秒格林威治时间精确到秒如1501590972
* @method void setPostTime(integer $PostTime) 设置用户操作时间戳单位秒格林威治时间精确到秒如1501590972
* @method integer getSceneType() 获取场景类型。(后续不再支持请使用SceneCode字段)
1活动防刷
2登录保护
3注册保护
4活动防刷高级版网赚
* @method void setSceneType(integer $SceneType) 设置场景类型。(后续不再支持请使用SceneCode字段)
1活动防刷
2登录保护
3注册保护
4活动防刷高级版网赚
* @method string getUserId() 获取用户唯一标识。
* @method void setUserId(string $UserId) 设置用户唯一标识。
* @method string getDeviceToken() 获取设备指纹token。
* @method void setDeviceToken(string $DeviceToken) 设置设备指纹token。
* @method integer getDeviceBusinessId() 获取设备指纹BusinessId
* @method void setDeviceBusinessId(integer $DeviceBusinessId) 设置设备指纹BusinessId
* @method integer getBusinessId() 获取业务ID。网站或应用在多个业务中使用此服务通过此ID区分统计数据。
* @method void setBusinessId(integer $BusinessId) 设置业务ID。网站或应用在多个业务中使用此服务通过此ID区分统计数据。
* @method string getNickname() 获取昵称UTF-8 编码。
* @method void setNickname(string $Nickname) 设置昵称UTF-8 编码。
* @method string getEmailAddress() 获取用户邮箱地址(非系统自动生成)。
* @method void setEmailAddress(string $EmailAddress) 设置用户邮箱地址(非系统自动生成)。
* @method integer getCheckDevice() 获取是否识别设备异常:
0不识别。
1识别。
* @method void setCheckDevice(integer $CheckDevice) 设置是否识别设备异常:
0不识别。
1识别。
* @method string getCookieHash() 获取用户HTTP请求中的Cookie进行2次hash的值只要保证相同Cookie的hash值一致即可。
* @method void setCookieHash(string $CookieHash) 设置用户HTTP请求中的Cookie进行2次hash的值只要保证相同Cookie的hash值一致即可。
* @method string getReferer() 获取用户HTTP请求的Referer值。
* @method void setReferer(string $Referer) 设置用户HTTP请求的Referer值。
* @method string getUserAgent() 获取用户HTTP请求的User-Agent值。
* @method void setUserAgent(string $UserAgent) 设置用户HTTP请求的User-Agent值。
* @method string getXForwardedFor() 获取用户HTTP请求的X-Forwarded-For值。
* @method void setXForwardedFor(string $XForwardedFor) 设置用户HTTP请求的X-Forwarded-For值。
* @method string getMacAddress() 获取MAC地址或设备唯一标识。
* @method void setMacAddress(string $MacAddress) 设置MAC地址或设备唯一标识。
* @method CrowdAntiRushInfo getCrowdAntiRush() 获取网赚防刷相关信息。SceneType为4时填写。
* @method void setCrowdAntiRush(CrowdAntiRushInfo $CrowdAntiRush) 设置网赚防刷相关信息。SceneType为4时填写。
* @method string getSceneCode() 获取场景Code控制台上获取
* @method void setSceneCode(string $SceneCode) 设置场景Code控制台上获取
* @method array getDetails() 获取详细信息
* @method void setDetails(array $Details) 设置详细信息
* @method integer getDeviceType() 获取设备类型:
1Android
2IOS
* @method void setDeviceType(integer $DeviceType) 设置设备类型:
1Android
2IOS
*/
class InputManageMarketingRisk extends AbstractModel
{
/**
* @var AccountInfo 账号信息。
*/
public $Account;
/**
* @var string 登录来源的外网IP
*/
public $UserIp;
/**
* @var integer 用户操作时间戳单位秒格林威治时间精确到秒如1501590972
*/
public $PostTime;
/**
* @var integer 场景类型。(后续不再支持请使用SceneCode字段)
1活动防刷
2登录保护
3注册保护
4活动防刷高级版网赚
*/
public $SceneType;
/**
* @var string 用户唯一标识。
*/
public $UserId;
/**
* @var string 设备指纹token。
*/
public $DeviceToken;
/**
* @var integer 设备指纹BusinessId
*/
public $DeviceBusinessId;
/**
* @var integer 业务ID。网站或应用在多个业务中使用此服务通过此ID区分统计数据。
*/
public $BusinessId;
/**
* @var string 昵称UTF-8 编码。
*/
public $Nickname;
/**
* @var string 用户邮箱地址(非系统自动生成)。
*/
public $EmailAddress;
/**
* @var integer 是否识别设备异常:
0不识别。
1识别。
*/
public $CheckDevice;
/**
* @var string 用户HTTP请求中的Cookie进行2次hash的值只要保证相同Cookie的hash值一致即可。
*/
public $CookieHash;
/**
* @var string 用户HTTP请求的Referer值。
*/
public $Referer;
/**
* @var string 用户HTTP请求的User-Agent值。
*/
public $UserAgent;
/**
* @var string 用户HTTP请求的X-Forwarded-For值。
*/
public $XForwardedFor;
/**
* @var string MAC地址或设备唯一标识。
*/
public $MacAddress;
/**
* @var CrowdAntiRushInfo 网赚防刷相关信息。SceneType为4时填写。
*/
public $CrowdAntiRush;
/**
* @var string 场景Code控制台上获取
*/
public $SceneCode;
/**
* @var array 详细信息
*/
public $Details;
/**
* @var integer 设备类型:
1Android
2IOS
*/
public $DeviceType;
/**
* @param AccountInfo $Account 账号信息。
* @param string $UserIp 登录来源的外网IP
* @param integer $PostTime 用户操作时间戳单位秒格林威治时间精确到秒如1501590972
* @param integer $SceneType 场景类型。(后续不再支持请使用SceneCode字段)
1活动防刷
2登录保护
3注册保护
4活动防刷高级版网赚
* @param string $UserId 用户唯一标识。
* @param string $DeviceToken 设备指纹token。
* @param integer $DeviceBusinessId 设备指纹BusinessId
* @param integer $BusinessId 业务ID。网站或应用在多个业务中使用此服务通过此ID区分统计数据。
* @param string $Nickname 昵称UTF-8 编码。
* @param string $EmailAddress 用户邮箱地址(非系统自动生成)。
* @param integer $CheckDevice 是否识别设备异常:
0不识别。
1识别。
* @param string $CookieHash 用户HTTP请求中的Cookie进行2次hash的值只要保证相同Cookie的hash值一致即可。
* @param string $Referer 用户HTTP请求的Referer值。
* @param string $UserAgent 用户HTTP请求的User-Agent值。
* @param string $XForwardedFor 用户HTTP请求的X-Forwarded-For值。
* @param string $MacAddress MAC地址或设备唯一标识。
* @param CrowdAntiRushInfo $CrowdAntiRush 网赚防刷相关信息。SceneType为4时填写。
* @param string $SceneCode 场景Code控制台上获取
* @param array $Details 详细信息
* @param integer $DeviceType 设备类型:
1Android
2IOS
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Account",$param) and $param["Account"] !== null) {
$this->Account = new AccountInfo();
$this->Account->deserialize($param["Account"]);
}
if (array_key_exists("UserIp",$param) and $param["UserIp"] !== null) {
$this->UserIp = $param["UserIp"];
}
if (array_key_exists("PostTime",$param) and $param["PostTime"] !== null) {
$this->PostTime = $param["PostTime"];
}
if (array_key_exists("SceneType",$param) and $param["SceneType"] !== null) {
$this->SceneType = $param["SceneType"];
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("DeviceToken",$param) and $param["DeviceToken"] !== null) {
$this->DeviceToken = $param["DeviceToken"];
}
if (array_key_exists("DeviceBusinessId",$param) and $param["DeviceBusinessId"] !== null) {
$this->DeviceBusinessId = $param["DeviceBusinessId"];
}
if (array_key_exists("BusinessId",$param) and $param["BusinessId"] !== null) {
$this->BusinessId = $param["BusinessId"];
}
if (array_key_exists("Nickname",$param) and $param["Nickname"] !== null) {
$this->Nickname = $param["Nickname"];
}
if (array_key_exists("EmailAddress",$param) and $param["EmailAddress"] !== null) {
$this->EmailAddress = $param["EmailAddress"];
}
if (array_key_exists("CheckDevice",$param) and $param["CheckDevice"] !== null) {
$this->CheckDevice = $param["CheckDevice"];
}
if (array_key_exists("CookieHash",$param) and $param["CookieHash"] !== null) {
$this->CookieHash = $param["CookieHash"];
}
if (array_key_exists("Referer",$param) and $param["Referer"] !== null) {
$this->Referer = $param["Referer"];
}
if (array_key_exists("UserAgent",$param) and $param["UserAgent"] !== null) {
$this->UserAgent = $param["UserAgent"];
}
if (array_key_exists("XForwardedFor",$param) and $param["XForwardedFor"] !== null) {
$this->XForwardedFor = $param["XForwardedFor"];
}
if (array_key_exists("MacAddress",$param) and $param["MacAddress"] !== null) {
$this->MacAddress = $param["MacAddress"];
}
if (array_key_exists("CrowdAntiRush",$param) and $param["CrowdAntiRush"] !== null) {
$this->CrowdAntiRush = new CrowdAntiRushInfo();
$this->CrowdAntiRush->deserialize($param["CrowdAntiRush"]);
}
if (array_key_exists("SceneCode",$param) and $param["SceneCode"] !== null) {
$this->SceneCode = $param["SceneCode"];
}
if (array_key_exists("Details",$param) and $param["Details"] !== null) {
$this->Details = [];
foreach ($param["Details"] as $key => $value){
$obj = new InputDetails();
$obj->deserialize($value);
array_push($this->Details, $obj);
}
}
if (array_key_exists("DeviceType",$param) and $param["DeviceType"] !== null) {
$this->DeviceType = $param["DeviceType"];
}
}
}

View File

@@ -0,0 +1,54 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* ManageMarketingRisk请求参数结构体
*
* @method InputManageMarketingRisk getBusinessSecurityData() 获取业务入参
* @method void setBusinessSecurityData(InputManageMarketingRisk $BusinessSecurityData) 设置业务入参
*/
class ManageMarketingRiskRequest extends AbstractModel
{
/**
* @var InputManageMarketingRisk 业务入参
*/
public $BusinessSecurityData;
/**
* @param InputManageMarketingRisk $BusinessSecurityData 业务入参
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("BusinessSecurityData",$param) and $param["BusinessSecurityData"] !== null) {
$this->BusinessSecurityData = new InputManageMarketingRisk();
$this->BusinessSecurityData->deserialize($param["BusinessSecurityData"]);
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* ManageMarketingRisk返回参数结构体
*
* @method OutputManageMarketingRisk getData() 获取业务出参
注意:此字段可能返回 null表示取不到有效值。
* @method void setData(OutputManageMarketingRisk $Data) 设置业务出参
注意:此字段可能返回 null表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class ManageMarketingRiskResponse extends AbstractModel
{
/**
* @var OutputManageMarketingRisk 业务出参
注意:此字段可能返回 null表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param OutputManageMarketingRisk $Data 业务出参
注意:此字段可能返回 null表示取不到有效值。
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new OutputManageMarketingRisk();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,125 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 诈骗信息。
*
* @method string getContentLabel() 获取内容标签。
* @method void setContentLabel(string $ContentLabel) 设置内容标签。
* @method integer getContentRiskLevel() 获取内容风险等级:
0正常。
1可疑。
* @method void setContentRiskLevel(integer $ContentRiskLevel) 设置内容风险等级:
0正常。
1可疑。
* @method integer getContentType() 获取内容产生形式:
0对话。
1广播。
* @method void setContentType(integer $ContentType) 设置内容产生形式:
0对话。
1广播。
* @method integer getFraudType() 获取诈骗账号类型:
111位手机号。
2QQ账号。
* @method void setFraudType(integer $FraudType) 设置诈骗账号类型:
111位手机号。
2QQ账号。
* @method string getFraudAccount() 获取诈骗账号手机号或QQ账号。
* @method void setFraudAccount(string $FraudAccount) 设置诈骗账号手机号或QQ账号。
*/
class OnlineScamInfo extends AbstractModel
{
/**
* @var string 内容标签。
*/
public $ContentLabel;
/**
* @var integer 内容风险等级:
0正常。
1可疑。
*/
public $ContentRiskLevel;
/**
* @var integer 内容产生形式:
0对话。
1广播。
*/
public $ContentType;
/**
* @var integer 诈骗账号类型:
111位手机号。
2QQ账号。
*/
public $FraudType;
/**
* @var string 诈骗账号手机号或QQ账号。
*/
public $FraudAccount;
/**
* @param string $ContentLabel 内容标签。
* @param integer $ContentRiskLevel 内容风险等级:
0正常。
1可疑。
* @param integer $ContentType 内容产生形式:
0对话。
1广播。
* @param integer $FraudType 诈骗账号类型:
111位手机号。
2QQ账号。
* @param string $FraudAccount 诈骗账号手机号或QQ账号。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("ContentLabel",$param) and $param["ContentLabel"] !== null) {
$this->ContentLabel = $param["ContentLabel"];
}
if (array_key_exists("ContentRiskLevel",$param) and $param["ContentRiskLevel"] !== null) {
$this->ContentRiskLevel = $param["ContentRiskLevel"];
}
if (array_key_exists("ContentType",$param) and $param["ContentType"] !== null) {
$this->ContentType = $param["ContentType"];
}
if (array_key_exists("FraudType",$param) and $param["FraudType"] !== null) {
$this->FraudType = $param["FraudType"];
}
if (array_key_exists("FraudAccount",$param) and $param["FraudAccount"] !== null) {
$this->FraudAccount = $param["FraudAccount"];
}
}
}

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 其它账号信息。
*
* @method string getAccountId() 获取其它账号信息:
AccountType是4时填入真实的手机号如13123456789
AccountType是8时支持 imei、idfa、imeiMD5、idfaMD5 入参。
AccountType是0时填入账号信息。
AccountType是10004时填入手机号的MD5值。
imeiMd5 加密方式为imei 明文小写后,进行 MD5 加密加密后取小写值。IdfaMd5 加密方式为idfa 明文大写后,进行 MD5 加密,加密后取小写值。
* @method void setAccountId(string $AccountId) 设置其它账号信息:
AccountType是4时填入真实的手机号如13123456789
AccountType是8时支持 imei、idfa、imeiMD5、idfaMD5 入参。
AccountType是0时填入账号信息。
AccountType是10004时填入手机号的MD5值。
imeiMd5 加密方式为imei 明文小写后,进行 MD5 加密加密后取小写值。IdfaMd5 加密方式为idfa 明文大写后,进行 MD5 加密,加密后取小写值。
* @method string getMobilePhone() 获取手机号,若 AccountType 是4手机号、或10004手机号 MD5则无需重复填写否则填入对应的手机号如13123456789
* @method void setMobilePhone(string $MobilePhone) 设置手机号,若 AccountType 是4手机号、或10004手机号 MD5则无需重复填写否则填入对应的手机号如13123456789
* @method string getDeviceId() 获取用户设备号。若 AccountType 是8设备号则无需重复填写否则填入对应的设备号。
* @method void setDeviceId(string $DeviceId) 设置用户设备号。若 AccountType 是8设备号则无需重复填写否则填入对应的设备号。
*/
class OtherAccountInfo extends AbstractModel
{
/**
* @var string 其它账号信息:
AccountType是4时填入真实的手机号如13123456789
AccountType是8时支持 imei、idfa、imeiMD5、idfaMD5 入参。
AccountType是0时填入账号信息。
AccountType是10004时填入手机号的MD5值。
imeiMd5 加密方式为imei 明文小写后,进行 MD5 加密加密后取小写值。IdfaMd5 加密方式为idfa 明文大写后,进行 MD5 加密,加密后取小写值。
*/
public $AccountId;
/**
* @var string 手机号,若 AccountType 是4手机号、或10004手机号 MD5则无需重复填写否则填入对应的手机号如13123456789
*/
public $MobilePhone;
/**
* @var string 用户设备号。若 AccountType 是8设备号则无需重复填写否则填入对应的设备号。
*/
public $DeviceId;
/**
* @param string $AccountId 其它账号信息:
AccountType是4时填入真实的手机号如13123456789
AccountType是8时支持 imei、idfa、imeiMD5、idfaMD5 入参。
AccountType是0时填入账号信息。
AccountType是10004时填入手机号的MD5值。
imeiMd5 加密方式为imei 明文小写后,进行 MD5 加密加密后取小写值。IdfaMd5 加密方式为idfa 明文大写后,进行 MD5 加密,加密后取小写值。
* @param string $MobilePhone 手机号,若 AccountType 是4手机号、或10004手机号 MD5则无需重复填写否则填入对应的手机号如13123456789
* @param string $DeviceId 用户设备号。若 AccountType 是8设备号则无需重复填写否则填入对应的设备号。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AccountId",$param) and $param["AccountId"] !== null) {
$this->AccountId = $param["AccountId"];
}
if (array_key_exists("MobilePhone",$param) and $param["MobilePhone"] !== null) {
$this->MobilePhone = $param["MobilePhone"];
}
if (array_key_exists("DeviceId",$param) and $param["DeviceId"] !== null) {
$this->DeviceId = $param["DeviceId"];
}
}
}

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 活动防刷高级版业务出参。
*
* @method integer getCode() 获取返回码。0表示成功非0标识失败错误码。
* @method void setCode(integer $Code) 设置返回码。0表示成功非0标识失败错误码。
* @method string getMessage() 获取UTF-8编码出错消息。
* @method void setMessage(string $Message) 设置UTF-8编码出错消息。
* @method OutputActivityAntiRushAdvancedValue getValue() 获取服务调用结果。
* @method void setValue(OutputActivityAntiRushAdvancedValue $Value) 设置服务调用结果。
*/
class OutputActivityAntiRushAdvanced extends AbstractModel
{
/**
* @var integer 返回码。0表示成功非0标识失败错误码。
*/
public $Code;
/**
* @var string UTF-8编码出错消息。
*/
public $Message;
/**
* @var OutputActivityAntiRushAdvancedValue 服务调用结果。
*/
public $Value;
/**
* @param integer $Code 返回码。0表示成功非0标识失败错误码。
* @param string $Message UTF-8编码出错消息。
* @param OutputActivityAntiRushAdvancedValue $Value 服务调用结果。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Code",$param) and $param["Code"] !== null) {
$this->Code = $param["Code"];
}
if (array_key_exists("Message",$param) and $param["Message"] !== null) {
$this->Message = $param["Message"];
}
if (array_key_exists("Value",$param) and $param["Value"] !== null) {
$this->Value = new OutputActivityAntiRushAdvancedValue();
$this->Value->deserialize($param["Value"]);
}
}
}

View File

@@ -0,0 +1,153 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 活动防刷高级版业务出参。
*
* @method string getUserId() 获取账号ID。对应输入参数
AccountType是1时对应QQ的OpenID。
AccountType是2时对应微信的OpenID/UnionID。
AccountType是4时对应手机号。
AccountType是8时对应imei、idfa、imeiMD5或者idfaMD5。
AccountType是0时对应账号信息。
AccountType是10004时对应手机号的MD5。
* @method void setUserId(string $UserId) 设置账号ID。对应输入参数
AccountType是1时对应QQ的OpenID。
AccountType是2时对应微信的OpenID/UnionID。
AccountType是4时对应手机号。
AccountType是8时对应imei、idfa、imeiMD5或者idfaMD5。
AccountType是0时对应账号信息。
AccountType是10004时对应手机号的MD5。
* @method integer getPostTime() 获取操作时间戳,单位秒(对应输入参数)。
* @method void setPostTime(integer $PostTime) 设置操作时间戳,单位秒(对应输入参数)。
* @method string getAssociateAccount() 获取AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID对应输入参数
注意:此字段可能返回 null表示取不到有效值。
* @method void setAssociateAccount(string $AssociateAccount) 设置AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID对应输入参数
注意:此字段可能返回 null表示取不到有效值。
* @method string getUserIp() 获取操作来源的外网IP对应输入参数
* @method void setUserIp(string $UserIp) 设置操作来源的外网IP对应输入参数
* @method integer getLevel() 获取风险值:
0表示无恶意。
14恶意等级由低到高。
* @method void setLevel(integer $Level) 设置风险值:
0表示无恶意。
14恶意等级由低到高。
* @method array getRiskType() 获取风险类型详情请参见下文RiskType详细说明。
注意:此字段可能返回 null表示取不到有效值。
* @method void setRiskType(array $RiskType) 设置风险类型详情请参见下文RiskType详细说明。
注意:此字段可能返回 null表示取不到有效值。
*/
class OutputActivityAntiRushAdvancedValue extends AbstractModel
{
/**
* @var string 账号ID。对应输入参数
AccountType是1时对应QQ的OpenID。
AccountType是2时对应微信的OpenID/UnionID。
AccountType是4时对应手机号。
AccountType是8时对应imei、idfa、imeiMD5或者idfaMD5。
AccountType是0时对应账号信息。
AccountType是10004时对应手机号的MD5。
*/
public $UserId;
/**
* @var integer 操作时间戳,单位秒(对应输入参数)。
*/
public $PostTime;
/**
* @var string AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID对应输入参数
注意:此字段可能返回 null表示取不到有效值。
*/
public $AssociateAccount;
/**
* @var string 操作来源的外网IP对应输入参数
*/
public $UserIp;
/**
* @var integer 风险值:
0表示无恶意。
14恶意等级由低到高。
*/
public $Level;
/**
* @var array 风险类型详情请参见下文RiskType详细说明。
注意:此字段可能返回 null表示取不到有效值。
*/
public $RiskType;
/**
* @param string $UserId 账号ID。对应输入参数
AccountType是1时对应QQ的OpenID。
AccountType是2时对应微信的OpenID/UnionID。
AccountType是4时对应手机号。
AccountType是8时对应imei、idfa、imeiMD5或者idfaMD5。
AccountType是0时对应账号信息。
AccountType是10004时对应手机号的MD5。
* @param integer $PostTime 操作时间戳,单位秒(对应输入参数)。
* @param string $AssociateAccount AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID对应输入参数
注意:此字段可能返回 null表示取不到有效值。
* @param string $UserIp 操作来源的外网IP对应输入参数
* @param integer $Level 风险值:
0表示无恶意。
14恶意等级由低到高。
* @param array $RiskType 风险类型详情请参见下文RiskType详细说明。
注意:此字段可能返回 null表示取不到有效值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("PostTime",$param) and $param["PostTime"] !== null) {
$this->PostTime = $param["PostTime"];
}
if (array_key_exists("AssociateAccount",$param) and $param["AssociateAccount"] !== null) {
$this->AssociateAccount = $param["AssociateAccount"];
}
if (array_key_exists("UserIp",$param) and $param["UserIp"] !== null) {
$this->UserIp = $param["UserIp"];
}
if (array_key_exists("Level",$param) and $param["Level"] !== null) {
$this->Level = $param["Level"];
}
if (array_key_exists("RiskType",$param) and $param["RiskType"] !== null) {
$this->RiskType = $param["RiskType"];
}
}
}

View File

@@ -0,0 +1,90 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 影响风控出参
*
* @method integer getCode() 获取返回码。0表示成功非0标识失败错误码。
注意:此字段可能返回 null表示取不到有效值。
* @method void setCode(integer $Code) 设置返回码。0表示成功非0标识失败错误码。
注意:此字段可能返回 null表示取不到有效值。
* @method string getMessage() 获取UTF-8编码出错消息。
注意:此字段可能返回 null表示取不到有效值。
* @method void setMessage(string $Message) 设置UTF-8编码出错消息。
注意:此字段可能返回 null表示取不到有效值。
* @method OutputManageMarketingRiskValue getValue() 获取业务详情。
注意:此字段可能返回 null表示取不到有效值。
* @method void setValue(OutputManageMarketingRiskValue $Value) 设置业务详情。
注意:此字段可能返回 null表示取不到有效值。
*/
class OutputManageMarketingRisk extends AbstractModel
{
/**
* @var integer 返回码。0表示成功非0标识失败错误码。
注意:此字段可能返回 null表示取不到有效值。
*/
public $Code;
/**
* @var string UTF-8编码出错消息。
注意:此字段可能返回 null表示取不到有效值。
*/
public $Message;
/**
* @var OutputManageMarketingRiskValue 业务详情。
注意:此字段可能返回 null表示取不到有效值。
*/
public $Value;
/**
* @param integer $Code 返回码。0表示成功非0标识失败错误码。
注意:此字段可能返回 null表示取不到有效值。
* @param string $Message UTF-8编码出错消息。
注意:此字段可能返回 null表示取不到有效值。
* @param OutputManageMarketingRiskValue $Value 业务详情。
注意:此字段可能返回 null表示取不到有效值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Code",$param) and $param["Code"] !== null) {
$this->Code = $param["Code"];
}
if (array_key_exists("Message",$param) and $param["Message"] !== null) {
$this->Message = $param["Message"];
}
if (array_key_exists("Value",$param) and $param["Value"] !== null) {
$this->Value = new OutputManageMarketingRiskValue();
$this->Value->deserialize($param["Value"]);
}
}
}

View File

@@ -0,0 +1,173 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 营销风控出参值
*
* @method string getUserId() 获取账号ID。对应输入参数
AccountType是1时对应QQ的OpenID。
AccountType是2时对应微信的OpenID/UnionID。
AccountType是4时对应手机号。
AccountType是8时对应imei、idfa、imeiMD5或者idfaMD5。
AccountType是0时对应账号信息。
AccountType是10004时对应手机号的MD5。
注意:此字段可能返回 null表示取不到有效值。
* @method void setUserId(string $UserId) 设置账号ID。对应输入参数
AccountType是1时对应QQ的OpenID。
AccountType是2时对应微信的OpenID/UnionID。
AccountType是4时对应手机号。
AccountType是8时对应imei、idfa、imeiMD5或者idfaMD5。
AccountType是0时对应账号信息。
AccountType是10004时对应手机号的MD5。
注意:此字段可能返回 null表示取不到有效值。
* @method integer getPostTime() 获取操作时间戳,单位秒(对应输入参数)。
注意:此字段可能返回 null表示取不到有效值。
* @method void setPostTime(integer $PostTime) 设置操作时间戳,单位秒(对应输入参数)。
注意:此字段可能返回 null表示取不到有效值。
* @method string getAssociateAccount() 获取对应输入参数AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID。
注意:此字段可能返回 null表示取不到有效值。
* @method void setAssociateAccount(string $AssociateAccount) 设置对应输入参数AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID。
注意:此字段可能返回 null表示取不到有效值。
* @method string getUserIp() 获取操作来源的外网IP对应输入参数
注意:此字段可能返回 null表示取不到有效值。
* @method void setUserIp(string $UserIp) 设置操作来源的外网IP对应输入参数
注意:此字段可能返回 null表示取不到有效值。
* @method string getRiskLevel() 获取风险值
pass : 无恶意
review需要人工审核
reject拒绝高风险恶意
注意:此字段可能返回 null表示取不到有效值。
* @method void setRiskLevel(string $RiskLevel) 设置风险值
pass : 无恶意
review需要人工审核
reject拒绝高风险恶意
注意:此字段可能返回 null表示取不到有效值。
* @method array getRiskType() 获取风险类型,请参考官网风险类型
注意:此字段可能返回 null表示取不到有效值。
* @method void setRiskType(array $RiskType) 设置风险类型,请参考官网风险类型
注意:此字段可能返回 null表示取不到有效值。
*/
class OutputManageMarketingRiskValue extends AbstractModel
{
/**
* @var string 账号ID。对应输入参数
AccountType是1时对应QQ的OpenID。
AccountType是2时对应微信的OpenID/UnionID。
AccountType是4时对应手机号。
AccountType是8时对应imei、idfa、imeiMD5或者idfaMD5。
AccountType是0时对应账号信息。
AccountType是10004时对应手机号的MD5。
注意:此字段可能返回 null表示取不到有效值。
*/
public $UserId;
/**
* @var integer 操作时间戳,单位秒(对应输入参数)。
注意:此字段可能返回 null表示取不到有效值。
*/
public $PostTime;
/**
* @var string 对应输入参数AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID。
注意:此字段可能返回 null表示取不到有效值。
*/
public $AssociateAccount;
/**
* @var string 操作来源的外网IP对应输入参数
注意:此字段可能返回 null表示取不到有效值。
*/
public $UserIp;
/**
* @var string 风险值
pass : 无恶意
review需要人工审核
reject拒绝高风险恶意
注意:此字段可能返回 null表示取不到有效值。
*/
public $RiskLevel;
/**
* @var array 风险类型,请参考官网风险类型
注意:此字段可能返回 null表示取不到有效值。
*/
public $RiskType;
/**
* @param string $UserId 账号ID。对应输入参数
AccountType是1时对应QQ的OpenID。
AccountType是2时对应微信的OpenID/UnionID。
AccountType是4时对应手机号。
AccountType是8时对应imei、idfa、imeiMD5或者idfaMD5。
AccountType是0时对应账号信息。
AccountType是10004时对应手机号的MD5。
注意:此字段可能返回 null表示取不到有效值。
* @param integer $PostTime 操作时间戳,单位秒(对应输入参数)。
注意:此字段可能返回 null表示取不到有效值。
* @param string $AssociateAccount 对应输入参数AccountType 是 QQ 或微信开放账号时,用于标识 QQ 或微信用户登录后关联业务自身的账号ID。
注意:此字段可能返回 null表示取不到有效值。
* @param string $UserIp 操作来源的外网IP对应输入参数
注意:此字段可能返回 null表示取不到有效值。
* @param string $RiskLevel 风险值
pass : 无恶意
review需要人工审核
reject拒绝高风险恶意
注意:此字段可能返回 null表示取不到有效值。
* @param array $RiskType 风险类型,请参考官网风险类型
注意:此字段可能返回 null表示取不到有效值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("PostTime",$param) and $param["PostTime"] !== null) {
$this->PostTime = $param["PostTime"];
}
if (array_key_exists("AssociateAccount",$param) and $param["AssociateAccount"] !== null) {
$this->AssociateAccount = $param["AssociateAccount"];
}
if (array_key_exists("UserIp",$param) and $param["UserIp"] !== null) {
$this->UserIp = $param["UserIp"];
}
if (array_key_exists("RiskLevel",$param) and $param["RiskLevel"] !== null) {
$this->RiskLevel = $param["RiskLevel"];
}
if (array_key_exists("RiskType",$param) and $param["RiskType"] !== null) {
$this->RiskType = $param["RiskType"];
}
}
}

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* QQ账号信息。
*
* @method string getQQOpenId() 获取QQ的OpenID。
* @method void setQQOpenId(string $QQOpenId) 设置QQ的OpenID。
* @method string getAppIdUser() 获取QQ分配给网站或应用的AppId用来唯一标识网站或应用。
* @method void setAppIdUser(string $AppIdUser) 设置QQ分配给网站或应用的AppId用来唯一标识网站或应用。
* @method string getAssociateAccount() 获取用于标识QQ用户登录后所关联业务自身的账号ID。
* @method void setAssociateAccount(string $AssociateAccount) 设置用于标识QQ用户登录后所关联业务自身的账号ID。
* @method string getMobilePhone() 获取账号绑定的手机号。
* @method void setMobilePhone(string $MobilePhone) 设置账号绑定的手机号。
* @method string getDeviceId() 获取用户设备号。
* @method void setDeviceId(string $DeviceId) 设置用户设备号。
*/
class QQAccountInfo extends AbstractModel
{
/**
* @var string QQ的OpenID。
*/
public $QQOpenId;
/**
* @var string QQ分配给网站或应用的AppId用来唯一标识网站或应用。
*/
public $AppIdUser;
/**
* @var string 用于标识QQ用户登录后所关联业务自身的账号ID。
*/
public $AssociateAccount;
/**
* @var string 账号绑定的手机号。
*/
public $MobilePhone;
/**
* @var string 用户设备号。
*/
public $DeviceId;
/**
* @param string $QQOpenId QQ的OpenID。
* @param string $AppIdUser QQ分配给网站或应用的AppId用来唯一标识网站或应用。
* @param string $AssociateAccount 用于标识QQ用户登录后所关联业务自身的账号ID。
* @param string $MobilePhone 账号绑定的手机号。
* @param string $DeviceId 用户设备号。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("QQOpenId",$param) and $param["QQOpenId"] !== null) {
$this->QQOpenId = $param["QQOpenId"];
}
if (array_key_exists("AppIdUser",$param) and $param["AppIdUser"] !== null) {
$this->AppIdUser = $param["AppIdUser"];
}
if (array_key_exists("AssociateAccount",$param) and $param["AssociateAccount"] !== null) {
$this->AssociateAccount = $param["AssociateAccount"];
}
if (array_key_exists("MobilePhone",$param) and $param["MobilePhone"] !== null) {
$this->MobilePhone = $param["MobilePhone"];
}
if (array_key_exists("DeviceId",$param) and $param["DeviceId"] !== null) {
$this->DeviceId = $param["DeviceId"];
}
}
}

View File

@@ -0,0 +1,54 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* QueryActivityAntiRushAdvanced请求参数结构体
*
* @method InputActivityAntiRushAdvanced getBusinessSecurityData() 获取业务入参
* @method void setBusinessSecurityData(InputActivityAntiRushAdvanced $BusinessSecurityData) 设置业务入参
*/
class QueryActivityAntiRushAdvancedRequest extends AbstractModel
{
/**
* @var InputActivityAntiRushAdvanced 业务入参
*/
public $BusinessSecurityData;
/**
* @param InputActivityAntiRushAdvanced $BusinessSecurityData 业务入参
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("BusinessSecurityData",$param) and $param["BusinessSecurityData"] !== null) {
$this->BusinessSecurityData = new InputActivityAntiRushAdvanced();
$this->BusinessSecurityData->deserialize($param["BusinessSecurityData"]);
}
}
}

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* QueryActivityAntiRushAdvanced返回参数结构体
*
* @method OutputActivityAntiRushAdvanced getData() 获取结果信息
* @method void setData(OutputActivityAntiRushAdvanced $Data) 设置结果信息
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class QueryActivityAntiRushAdvancedResponse extends AbstractModel
{
/**
* @var OutputActivityAntiRushAdvanced 结果信息
*/
public $Data;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param OutputActivityAntiRushAdvanced $Data 结果信息
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new OutputActivityAntiRushAdvanced();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,501 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* QueryActivityAntiRush请求参数结构体
*
* @method string getAccountType() 获取用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
1QQ 开放帐号。
2微信开放账号。
4手机号。
0其他。
10004手机号 MD5。
* @method void setAccountType(string $AccountType) 设置用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
1QQ 开放帐号。
2微信开放账号。
4手机号。
0其他。
10004手机号 MD5。
* @method string getUid() 获取用户 ID 不同的 accountType 对应不同的用户 ID。如果是 QQ则填入对应的 openid微信用户则填入对应的 openid/unionid手机号则填入对应真实用户手机号如13123456789
* @method void setUid(string $Uid) 设置用户 ID 不同的 accountType 对应不同的用户 ID。如果是 QQ则填入对应的 openid微信用户则填入对应的 openid/unionid手机号则填入对应真实用户手机号如13123456789
* @method string getUserIp() 获取用户的真实外网 IP。若填入非外网有效ip会返回level=0的风控结果risktype中会有205的风险码返回作为标识
* @method void setUserIp(string $UserIp) 设置用户的真实外网 IP。若填入非外网有效ip会返回level=0的风控结果risktype中会有205的风险码返回作为标识
* @method string getPostTime() 获取用户操作时间戳。
* @method void setPostTime(string $PostTime) 设置用户操作时间戳。
* @method string getAppIdU() 获取accountType 是QQ开放账号时该参数必填表示 QQ 开放平台分配给网站或应用的 AppID用来唯一标识网站或应用。
* @method void setAppIdU(string $AppIdU) 设置accountType 是QQ开放账号时该参数必填表示 QQ 开放平台分配给网站或应用的 AppID用来唯一标识网站或应用。
* @method string getNickName() 获取昵称UTF-8 编码。
* @method void setNickName(string $NickName) 设置昵称UTF-8 编码。
* @method string getPhoneNumber() 获取手机号。若 accountType 选4手机号、或10004手机号 MD5则无需重复填写。否则填入对应的手机号如15912345687。accountType为1或2时该字段支持MD5值
* @method void setPhoneNumber(string $PhoneNumber) 设置手机号。若 accountType 选4手机号、或10004手机号 MD5则无需重复填写。否则填入对应的手机号如15912345687。accountType为1或2时该字段支持MD5值
* @method string getEmailAddress() 获取用户邮箱地址。
* @method void setEmailAddress(string $EmailAddress) 设置用户邮箱地址。
* @method string getRegisterTime() 获取注册时间戳。
* @method void setRegisterTime(string $RegisterTime) 设置注册时间戳。
* @method string getRegisterIp() 获取注册来源的外网 IP。
* @method void setRegisterIp(string $RegisterIp) 设置注册来源的外网 IP。
* @method string getCookieHash() 获取用户 HTTP 请求中的 cookie 进行2次 hash 的值,只要保证相同 cookie 的 hash 值一致即可。
* @method void setCookieHash(string $CookieHash) 设置用户 HTTP 请求中的 cookie 进行2次 hash 的值,只要保证相同 cookie 的 hash 值一致即可。
* @method string getAddress() 获取地址。
* @method void setAddress(string $Address) 设置地址。
* @method string getLoginSource() 获取登录来源:
0其他。
1PC 网页。
2移动页面。
3App。
4微信公众号。
* @method void setLoginSource(string $LoginSource) 设置登录来源:
0其他。
1PC 网页。
2移动页面。
3App。
4微信公众号。
* @method string getLoginType() 获取登录方式:
0其他。
1手动账号密码输入。
2动态短信密码登录。
3二维码扫描登录。
* @method void setLoginType(string $LoginType) 设置登录方式:
0其他。
1手动账号密码输入。
2动态短信密码登录。
3二维码扫描登录。
* @method string getLoginSpend() 获取登录耗时,单位:秒。
* @method void setLoginSpend(string $LoginSpend) 设置登录耗时,单位:秒。
* @method string getRootId() 获取用户操作的目的 ID如点赞等该字段就是被点赞的消息 ID如果是投票则为被投号码的 ID。
* @method void setRootId(string $RootId) 设置用户操作的目的 ID如点赞等该字段就是被点赞的消息 ID如果是投票则为被投号码的 ID。
* @method string getReferer() 获取用户 HTTP 请求的 referer 值。
* @method void setReferer(string $Referer) 设置用户 HTTP 请求的 referer 值。
* @method string getJumpUrl() 获取登录成功后跳转页面。
* @method void setJumpUrl(string $JumpUrl) 设置登录成功后跳转页面。
* @method string getUserAgent() 获取用户 HTTP 请求的 userAgent。
* @method void setUserAgent(string $UserAgent) 设置用户 HTTP 请求的 userAgent。
* @method string getXForwardedFor() 获取用户 HTTP 请求中的 x_forward_for。
* @method void setXForwardedFor(string $XForwardedFor) 设置用户 HTTP 请求中的 x_forward_for。
* @method string getMouseClickCount() 获取用户操作过程中鼠标单击次数。
* @method void setMouseClickCount(string $MouseClickCount) 设置用户操作过程中鼠标单击次数。
* @method string getKeyboardClickCount() 获取用户操作过程中键盘单击次数。
* @method void setKeyboardClickCount(string $KeyboardClickCount) 设置用户操作过程中键盘单击次数。
* @method string getMacAddress() 获取MAC 地址或设备唯一标识。
* @method void setMacAddress(string $MacAddress) 设置MAC 地址或设备唯一标识。
* @method string getVendorId() 获取手机制造商 ID如果手机注册请带上此信息。
* @method void setVendorId(string $VendorId) 设置手机制造商 ID如果手机注册请带上此信息。
* @method string getImei() 获取手机设备号。支持以下格式:
1.imei明文
2.idfa明文,
3.imei小写后MD5值小写
4.idfa大写后MD5值小写
* @method void setImei(string $Imei) 设置手机设备号。支持以下格式:
1.imei明文
2.idfa明文,
3.imei小写后MD5值小写
4.idfa大写后MD5值小写
* @method string getAppVersion() 获取App 客户端版本。
* @method void setAppVersion(string $AppVersion) 设置App 客户端版本。
* @method string getBusinessId() 获取业务 ID 网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据。
* @method void setBusinessId(string $BusinessId) 设置业务 ID 网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据。
* @method string getWxSubType() 获取1微信公众号。
2微信小程序。
* @method void setWxSubType(string $WxSubType) 设置1微信公众号。
2微信小程序。
* @method string getRandNum() 获取Token 签名随机数WxSubType为微信小程序时必填建议16个字符。
* @method void setRandNum(string $RandNum) 设置Token 签名随机数WxSubType为微信小程序时必填建议16个字符。
* @method string getWxToken() 获取如果 accountType为2而且wxSubType有填该字段必选否则不需要填写
如果是微信小程序WxSubType=2该字段为以ssesion_key为key去签名随机数radnNum得到的值 hmac_sha256签名算法如果是微信公众号或第三方登录则为授权的access_token网页版本的access_Token,而且获取token的scope字段必需填写snsapi_userinfo
* @method void setWxToken(string $WxToken) 设置如果 accountType为2而且wxSubType有填该字段必选否则不需要填写
如果是微信小程序WxSubType=2该字段为以ssesion_key为key去签名随机数radnNum得到的值 hmac_sha256签名算法如果是微信公众号或第三方登录则为授权的access_token网页版本的access_Token,而且获取token的scope字段必需填写snsapi_userinfo
* @method string getCheckDevice() 获取是否识别设备异常:
0不识别。
1识别。
* @method void setCheckDevice(string $CheckDevice) 设置是否识别设备异常:
0不识别。
1识别。
*/
class QueryActivityAntiRushRequest extends AbstractModel
{
/**
* @var string 用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
1QQ 开放帐号。
2微信开放账号。
4手机号。
0其他。
10004手机号 MD5。
*/
public $AccountType;
/**
* @var string 用户 ID 不同的 accountType 对应不同的用户 ID。如果是 QQ则填入对应的 openid微信用户则填入对应的 openid/unionid手机号则填入对应真实用户手机号如13123456789
*/
public $Uid;
/**
* @var string 用户的真实外网 IP。若填入非外网有效ip会返回level=0的风控结果risktype中会有205的风险码返回作为标识
*/
public $UserIp;
/**
* @var string 用户操作时间戳。
*/
public $PostTime;
/**
* @var string accountType 是QQ开放账号时该参数必填表示 QQ 开放平台分配给网站或应用的 AppID用来唯一标识网站或应用。
*/
public $AppIdU;
/**
* @var string 昵称UTF-8 编码。
*/
public $NickName;
/**
* @var string 手机号。若 accountType 选4手机号、或10004手机号 MD5则无需重复填写。否则填入对应的手机号如15912345687。accountType为1或2时该字段支持MD5值
*/
public $PhoneNumber;
/**
* @var string 用户邮箱地址。
*/
public $EmailAddress;
/**
* @var string 注册时间戳。
*/
public $RegisterTime;
/**
* @var string 注册来源的外网 IP。
*/
public $RegisterIp;
/**
* @var string 用户 HTTP 请求中的 cookie 进行2次 hash 的值,只要保证相同 cookie 的 hash 值一致即可。
*/
public $CookieHash;
/**
* @var string 地址。
*/
public $Address;
/**
* @var string 登录来源:
0其他。
1PC 网页。
2移动页面。
3App。
4微信公众号。
*/
public $LoginSource;
/**
* @var string 登录方式:
0其他。
1手动账号密码输入。
2动态短信密码登录。
3二维码扫描登录。
*/
public $LoginType;
/**
* @var string 登录耗时,单位:秒。
*/
public $LoginSpend;
/**
* @var string 用户操作的目的 ID如点赞等该字段就是被点赞的消息 ID如果是投票则为被投号码的 ID。
*/
public $RootId;
/**
* @var string 用户 HTTP 请求的 referer 值。
*/
public $Referer;
/**
* @var string 登录成功后跳转页面。
*/
public $JumpUrl;
/**
* @var string 用户 HTTP 请求的 userAgent。
*/
public $UserAgent;
/**
* @var string 用户 HTTP 请求中的 x_forward_for。
*/
public $XForwardedFor;
/**
* @var string 用户操作过程中鼠标单击次数。
*/
public $MouseClickCount;
/**
* @var string 用户操作过程中键盘单击次数。
*/
public $KeyboardClickCount;
/**
* @var string MAC 地址或设备唯一标识。
*/
public $MacAddress;
/**
* @var string 手机制造商 ID如果手机注册请带上此信息。
*/
public $VendorId;
/**
* @var string 手机设备号。支持以下格式:
1.imei明文
2.idfa明文,
3.imei小写后MD5值小写
4.idfa大写后MD5值小写
*/
public $Imei;
/**
* @var string App 客户端版本。
*/
public $AppVersion;
/**
* @var string 业务 ID 网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据。
*/
public $BusinessId;
/**
* @var string 1微信公众号。
2微信小程序。
*/
public $WxSubType;
/**
* @var string Token 签名随机数WxSubType为微信小程序时必填建议16个字符。
*/
public $RandNum;
/**
* @var string 如果 accountType为2而且wxSubType有填该字段必选否则不需要填写
如果是微信小程序WxSubType=2该字段为以ssesion_key为key去签名随机数radnNum得到的值 hmac_sha256签名算法如果是微信公众号或第三方登录则为授权的access_token网页版本的access_Token,而且获取token的scope字段必需填写snsapi_userinfo
*/
public $WxToken;
/**
* @var string 是否识别设备异常:
0不识别。
1识别。
*/
public $CheckDevice;
/**
* @param string $AccountType 用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
1QQ 开放帐号。
2微信开放账号。
4手机号。
0其他。
10004手机号 MD5。
* @param string $Uid 用户 ID 不同的 accountType 对应不同的用户 ID。如果是 QQ则填入对应的 openid微信用户则填入对应的 openid/unionid手机号则填入对应真实用户手机号如13123456789
* @param string $UserIp 用户的真实外网 IP。若填入非外网有效ip会返回level=0的风控结果risktype中会有205的风险码返回作为标识
* @param string $PostTime 用户操作时间戳。
* @param string $AppIdU accountType 是QQ开放账号时该参数必填表示 QQ 开放平台分配给网站或应用的 AppID用来唯一标识网站或应用。
* @param string $NickName 昵称UTF-8 编码。
* @param string $PhoneNumber 手机号。若 accountType 选4手机号、或10004手机号 MD5则无需重复填写。否则填入对应的手机号如15912345687。accountType为1或2时该字段支持MD5值
* @param string $EmailAddress 用户邮箱地址。
* @param string $RegisterTime 注册时间戳。
* @param string $RegisterIp 注册来源的外网 IP。
* @param string $CookieHash 用户 HTTP 请求中的 cookie 进行2次 hash 的值,只要保证相同 cookie 的 hash 值一致即可。
* @param string $Address 地址。
* @param string $LoginSource 登录来源:
0其他。
1PC 网页。
2移动页面。
3App。
4微信公众号。
* @param string $LoginType 登录方式:
0其他。
1手动账号密码输入。
2动态短信密码登录。
3二维码扫描登录。
* @param string $LoginSpend 登录耗时,单位:秒。
* @param string $RootId 用户操作的目的 ID如点赞等该字段就是被点赞的消息 ID如果是投票则为被投号码的 ID。
* @param string $Referer 用户 HTTP 请求的 referer 值。
* @param string $JumpUrl 登录成功后跳转页面。
* @param string $UserAgent 用户 HTTP 请求的 userAgent。
* @param string $XForwardedFor 用户 HTTP 请求中的 x_forward_for。
* @param string $MouseClickCount 用户操作过程中鼠标单击次数。
* @param string $KeyboardClickCount 用户操作过程中键盘单击次数。
* @param string $MacAddress MAC 地址或设备唯一标识。
* @param string $VendorId 手机制造商 ID如果手机注册请带上此信息。
* @param string $Imei 手机设备号。支持以下格式:
1.imei明文
2.idfa明文,
3.imei小写后MD5值小写
4.idfa大写后MD5值小写
* @param string $AppVersion App 客户端版本。
* @param string $BusinessId 业务 ID 网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据。
* @param string $WxSubType 1微信公众号。
2微信小程序。
* @param string $RandNum Token 签名随机数WxSubType为微信小程序时必填建议16个字符。
* @param string $WxToken 如果 accountType为2而且wxSubType有填该字段必选否则不需要填写
如果是微信小程序WxSubType=2该字段为以ssesion_key为key去签名随机数radnNum得到的值 hmac_sha256签名算法如果是微信公众号或第三方登录则为授权的access_token网页版本的access_Token,而且获取token的scope字段必需填写snsapi_userinfo
* @param string $CheckDevice 是否识别设备异常:
0不识别。
1识别。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AccountType",$param) and $param["AccountType"] !== null) {
$this->AccountType = $param["AccountType"];
}
if (array_key_exists("Uid",$param) and $param["Uid"] !== null) {
$this->Uid = $param["Uid"];
}
if (array_key_exists("UserIp",$param) and $param["UserIp"] !== null) {
$this->UserIp = $param["UserIp"];
}
if (array_key_exists("PostTime",$param) and $param["PostTime"] !== null) {
$this->PostTime = $param["PostTime"];
}
if (array_key_exists("AppIdU",$param) and $param["AppIdU"] !== null) {
$this->AppIdU = $param["AppIdU"];
}
if (array_key_exists("NickName",$param) and $param["NickName"] !== null) {
$this->NickName = $param["NickName"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("EmailAddress",$param) and $param["EmailAddress"] !== null) {
$this->EmailAddress = $param["EmailAddress"];
}
if (array_key_exists("RegisterTime",$param) and $param["RegisterTime"] !== null) {
$this->RegisterTime = $param["RegisterTime"];
}
if (array_key_exists("RegisterIp",$param) and $param["RegisterIp"] !== null) {
$this->RegisterIp = $param["RegisterIp"];
}
if (array_key_exists("CookieHash",$param) and $param["CookieHash"] !== null) {
$this->CookieHash = $param["CookieHash"];
}
if (array_key_exists("Address",$param) and $param["Address"] !== null) {
$this->Address = $param["Address"];
}
if (array_key_exists("LoginSource",$param) and $param["LoginSource"] !== null) {
$this->LoginSource = $param["LoginSource"];
}
if (array_key_exists("LoginType",$param) and $param["LoginType"] !== null) {
$this->LoginType = $param["LoginType"];
}
if (array_key_exists("LoginSpend",$param) and $param["LoginSpend"] !== null) {
$this->LoginSpend = $param["LoginSpend"];
}
if (array_key_exists("RootId",$param) and $param["RootId"] !== null) {
$this->RootId = $param["RootId"];
}
if (array_key_exists("Referer",$param) and $param["Referer"] !== null) {
$this->Referer = $param["Referer"];
}
if (array_key_exists("JumpUrl",$param) and $param["JumpUrl"] !== null) {
$this->JumpUrl = $param["JumpUrl"];
}
if (array_key_exists("UserAgent",$param) and $param["UserAgent"] !== null) {
$this->UserAgent = $param["UserAgent"];
}
if (array_key_exists("XForwardedFor",$param) and $param["XForwardedFor"] !== null) {
$this->XForwardedFor = $param["XForwardedFor"];
}
if (array_key_exists("MouseClickCount",$param) and $param["MouseClickCount"] !== null) {
$this->MouseClickCount = $param["MouseClickCount"];
}
if (array_key_exists("KeyboardClickCount",$param) and $param["KeyboardClickCount"] !== null) {
$this->KeyboardClickCount = $param["KeyboardClickCount"];
}
if (array_key_exists("MacAddress",$param) and $param["MacAddress"] !== null) {
$this->MacAddress = $param["MacAddress"];
}
if (array_key_exists("VendorId",$param) and $param["VendorId"] !== null) {
$this->VendorId = $param["VendorId"];
}
if (array_key_exists("Imei",$param) and $param["Imei"] !== null) {
$this->Imei = $param["Imei"];
}
if (array_key_exists("AppVersion",$param) and $param["AppVersion"] !== null) {
$this->AppVersion = $param["AppVersion"];
}
if (array_key_exists("BusinessId",$param) and $param["BusinessId"] !== null) {
$this->BusinessId = $param["BusinessId"];
}
if (array_key_exists("WxSubType",$param) and $param["WxSubType"] !== null) {
$this->WxSubType = $param["WxSubType"];
}
if (array_key_exists("RandNum",$param) and $param["RandNum"] !== null) {
$this->RandNum = $param["RandNum"];
}
if (array_key_exists("WxToken",$param) and $param["WxToken"] !== null) {
$this->WxToken = $param["WxToken"];
}
if (array_key_exists("CheckDevice",$param) and $param["CheckDevice"] !== null) {
$this->CheckDevice = $param["CheckDevice"];
}
}
}

View File

@@ -0,0 +1,257 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* QueryActivityAntiRush返回参数结构体
*
* @method string getPostTime() 获取操作时间戳,单位:秒。
注意:此字段可能返回 null表示取不到有效值。
* @method void setPostTime(string $PostTime) 设置操作时间戳,单位:秒。
注意:此字段可能返回 null表示取不到有效值。
* @method string getUserIp() 获取用户操作的真实外网 IP。
注意:此字段可能返回 null表示取不到有效值。
* @method void setUserIp(string $UserIp) 设置用户操作的真实外网 IP。
注意:此字段可能返回 null表示取不到有效值。
* @method integer getLevel() 获取0表示无恶意。
1 - 4恶意等级由低到高。
* @method void setLevel(integer $Level) 设置0表示无恶意。
1 - 4恶意等级由低到高。
* @method array getRiskType() 获取风险类型。
账号风险:
1账号信用低账号近期存在因恶意被处罚历史网络低活跃被举报等因素
2垃圾账号疑似批量注册小号近期存在严重违规或大量举报
3无效账号送检账号参数无法成功解析请检查微信openid是否有误 QQopenid是否与appidU对应手机号是否有误。
4黑名单该账号在业务侧有过拉黑记录
5白名单该账号在业务侧有过加白名单记录
行为风险:
101批量操作存在ip/设备/环境等因素的聚集性异常;
102自动机疑似自动机批量请求
104微信登录态无效检查wxToken参数是否已经失效
环境风险:
201环境异常操作ip/设备/环境存在异常。当前ip为非常用ip或恶意ip段
205非公网有效ip传进来的IP地址为内网ip地址或者ip保留地址
206设备异常该设备存在异常的使用行为
* @method void setRiskType(array $RiskType) 设置风险类型。
账号风险:
1账号信用低账号近期存在因恶意被处罚历史网络低活跃被举报等因素
2垃圾账号疑似批量注册小号近期存在严重违规或大量举报
3无效账号送检账号参数无法成功解析请检查微信openid是否有误 QQopenid是否与appidU对应手机号是否有误。
4黑名单该账号在业务侧有过拉黑记录
5白名单该账号在业务侧有过加白名单记录
行为风险:
101批量操作存在ip/设备/环境等因素的聚集性异常;
102自动机疑似自动机批量请求
104微信登录态无效检查wxToken参数是否已经失效
环境风险:
201环境异常操作ip/设备/环境存在异常。当前ip为非常用ip或恶意ip段
205非公网有效ip传进来的IP地址为内网ip地址或者ip保留地址
206设备异常该设备存在异常的使用行为
* @method string getAssociateAccount() 获取accountType是QQ或微信开放账号时用于标识QQ或微信用户登录后关联业务自身的账号ID
注意:此字段可能返回 null表示取不到有效值。
* @method void setAssociateAccount(string $AssociateAccount) 设置accountType是QQ或微信开放账号时用于标识QQ或微信用户登录后关联业务自身的账号ID
注意:此字段可能返回 null表示取不到有效值。
* @method string getUid() 获取用户ID
accountType不同对应不同的用户ID。如果是QQ或微信用户则填入对应的openId
注意:此字段可能返回 null表示取不到有效值。
* @method void setUid(string $Uid) 设置用户ID
accountType不同对应不同的用户ID。如果是QQ或微信用户则填入对应的openId
注意:此字段可能返回 null表示取不到有效值。
* @method string getRootId() 获取用户操作的目的ID
比如:点赞,该字段就是被点 赞的消息 id如果是投票就是被投号码的 ID
注意:此字段可能返回 null表示取不到有效值。
* @method void setRootId(string $RootId) 设置用户操作的目的ID
比如:点赞,该字段就是被点 赞的消息 id如果是投票就是被投号码的 ID
注意:此字段可能返回 null表示取不到有效值。
* @method string getCodeDesc() 获取业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @method void setCodeDesc(string $CodeDesc) 设置业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class QueryActivityAntiRushResponse extends AbstractModel
{
/**
* @var string 操作时间戳,单位:秒。
注意:此字段可能返回 null表示取不到有效值。
*/
public $PostTime;
/**
* @var string 用户操作的真实外网 IP。
注意:此字段可能返回 null表示取不到有效值。
*/
public $UserIp;
/**
* @var integer 0表示无恶意。
1 - 4恶意等级由低到高。
*/
public $Level;
/**
* @var array 风险类型。
账号风险:
1账号信用低账号近期存在因恶意被处罚历史网络低活跃被举报等因素
2垃圾账号疑似批量注册小号近期存在严重违规或大量举报
3无效账号送检账号参数无法成功解析请检查微信openid是否有误 QQopenid是否与appidU对应手机号是否有误。
4黑名单该账号在业务侧有过拉黑记录
5白名单该账号在业务侧有过加白名单记录
行为风险:
101批量操作存在ip/设备/环境等因素的聚集性异常;
102自动机疑似自动机批量请求
104微信登录态无效检查wxToken参数是否已经失效
环境风险:
201环境异常操作ip/设备/环境存在异常。当前ip为非常用ip或恶意ip段
205非公网有效ip传进来的IP地址为内网ip地址或者ip保留地址
206设备异常该设备存在异常的使用行为
*/
public $RiskType;
/**
* @var string accountType是QQ或微信开放账号时用于标识QQ或微信用户登录后关联业务自身的账号ID
注意:此字段可能返回 null表示取不到有效值。
*/
public $AssociateAccount;
/**
* @var string 用户ID
accountType不同对应不同的用户ID。如果是QQ或微信用户则填入对应的openId
注意:此字段可能返回 null表示取不到有效值。
*/
public $Uid;
/**
* @var string 用户操作的目的ID
比如:点赞,该字段就是被点 赞的消息 id如果是投票就是被投号码的 ID
注意:此字段可能返回 null表示取不到有效值。
*/
public $RootId;
/**
* @var string 业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
*/
public $CodeDesc;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $PostTime 操作时间戳,单位:秒。
注意:此字段可能返回 null表示取不到有效值。
* @param string $UserIp 用户操作的真实外网 IP。
注意:此字段可能返回 null表示取不到有效值。
* @param integer $Level 0表示无恶意。
1 - 4恶意等级由低到高。
* @param array $RiskType 风险类型。
账号风险:
1账号信用低账号近期存在因恶意被处罚历史网络低活跃被举报等因素
2垃圾账号疑似批量注册小号近期存在严重违规或大量举报
3无效账号送检账号参数无法成功解析请检查微信openid是否有误 QQopenid是否与appidU对应手机号是否有误。
4黑名单该账号在业务侧有过拉黑记录
5白名单该账号在业务侧有过加白名单记录
行为风险:
101批量操作存在ip/设备/环境等因素的聚集性异常;
102自动机疑似自动机批量请求
104微信登录态无效检查wxToken参数是否已经失效
环境风险:
201环境异常操作ip/设备/环境存在异常。当前ip为非常用ip或恶意ip段
205非公网有效ip传进来的IP地址为内网ip地址或者ip保留地址
206设备异常该设备存在异常的使用行为
* @param string $AssociateAccount accountType是QQ或微信开放账号时用于标识QQ或微信用户登录后关联业务自身的账号ID
注意:此字段可能返回 null表示取不到有效值。
* @param string $Uid 用户ID
accountType不同对应不同的用户ID。如果是QQ或微信用户则填入对应的openId
注意:此字段可能返回 null表示取不到有效值。
* @param string $RootId 用户操作的目的ID
比如:点赞,该字段就是被点 赞的消息 id如果是投票就是被投号码的 ID
注意:此字段可能返回 null表示取不到有效值。
* @param string $CodeDesc 业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PostTime",$param) and $param["PostTime"] !== null) {
$this->PostTime = $param["PostTime"];
}
if (array_key_exists("UserIp",$param) and $param["UserIp"] !== null) {
$this->UserIp = $param["UserIp"];
}
if (array_key_exists("Level",$param) and $param["Level"] !== null) {
$this->Level = $param["Level"];
}
if (array_key_exists("RiskType",$param) and $param["RiskType"] !== null) {
$this->RiskType = $param["RiskType"];
}
if (array_key_exists("AssociateAccount",$param) and $param["AssociateAccount"] !== null) {
$this->AssociateAccount = $param["AssociateAccount"];
}
if (array_key_exists("Uid",$param) and $param["Uid"] !== null) {
$this->Uid = $param["Uid"];
}
if (array_key_exists("RootId",$param) and $param["RootId"] !== null) {
$this->RootId = $param["RootId"];
}
if (array_key_exists("CodeDesc",$param) and $param["CodeDesc"] !== null) {
$this->CodeDesc = $param["CodeDesc"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 助力场景信息
*
* @method string getSponsorOpenId() 获取助力场景建议填写活动发起人微信OpenID。
* @method void setSponsorOpenId(string $SponsorOpenId) 设置助力场景建议填写活动发起人微信OpenID。
* @method string getSponsorDeviceId() 获取助力场景建议填写:发起人设备号。
* @method void setSponsorDeviceId(string $SponsorDeviceId) 设置助力场景建议填写:发起人设备号。
* @method string getSponsorPhone() 获取助力场景建议填写:发起人手机号。
* @method void setSponsorPhone(string $SponsorPhone) 设置助力场景建议填写:发起人手机号。
* @method string getSponsorIp() 获取助力场景建议填写发起人IP。
* @method void setSponsorIp(string $SponsorIp) 设置助力场景建议填写发起人IP。
* @method string getCampaignUrl() 获取助力场景建议填写:活动链接。
* @method void setCampaignUrl(string $CampaignUrl) 设置助力场景建议填写:活动链接。
*/
class SponsorInfo extends AbstractModel
{
/**
* @var string 助力场景建议填写活动发起人微信OpenID。
*/
public $SponsorOpenId;
/**
* @var string 助力场景建议填写:发起人设备号。
*/
public $SponsorDeviceId;
/**
* @var string 助力场景建议填写:发起人手机号。
*/
public $SponsorPhone;
/**
* @var string 助力场景建议填写发起人IP。
*/
public $SponsorIp;
/**
* @var string 助力场景建议填写:活动链接。
*/
public $CampaignUrl;
/**
* @param string $SponsorOpenId 助力场景建议填写活动发起人微信OpenID。
* @param string $SponsorDeviceId 助力场景建议填写:发起人设备号。
* @param string $SponsorPhone 助力场景建议填写:发起人手机号。
* @param string $SponsorIp 助力场景建议填写发起人IP。
* @param string $CampaignUrl 助力场景建议填写:活动链接。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SponsorOpenId",$param) and $param["SponsorOpenId"] !== null) {
$this->SponsorOpenId = $param["SponsorOpenId"];
}
if (array_key_exists("SponsorDeviceId",$param) and $param["SponsorDeviceId"] !== null) {
$this->SponsorDeviceId = $param["SponsorDeviceId"];
}
if (array_key_exists("SponsorPhone",$param) and $param["SponsorPhone"] !== null) {
$this->SponsorPhone = $param["SponsorPhone"];
}
if (array_key_exists("SponsorIp",$param) and $param["SponsorIp"] !== null) {
$this->SponsorIp = $param["SponsorIp"];
}
if (array_key_exists("CampaignUrl",$param) and $param["CampaignUrl"] !== null) {
$this->CampaignUrl = $param["CampaignUrl"];
}
}
}

View File

@@ -0,0 +1,137 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aa\V20200224\Models;
use TencentCloud\Common\AbstractModel;
/**
* 微信账号信息。
*
* @method string getWeChatOpenId() 获取微信的OpenID/UnionID 。
* @method void setWeChatOpenId(string $WeChatOpenId) 设置微信的OpenID/UnionID 。
* @method integer getWeChatSubType() 获取微信开放账号类型:
1微信公众号/微信第三方登录。
2微信小程序。
* @method void setWeChatSubType(integer $WeChatSubType) 设置微信开放账号类型:
1微信公众号/微信第三方登录。
2微信小程序。
* @method string getRandStr() 获取随机串。如果WeChatSubType是2该字段必填。Token签名随机数建议16个字符。
* @method void setRandStr(string $RandStr) 设置随机串。如果WeChatSubType是2该字段必填。Token签名随机数建议16个字符。
* @method string getWeChatAccessToken() 获取如果WeChatSubType是1填入授权的access_token注意不是普通access_token详情请参阅官方说明文档。获取网页版本的access_token时scope字段必需填写snsapi_userinfo。
如果WeChatSubType是2填入以session_key为密钥签名随机数RandStrhmac_sha256签名算法得到的字符串。
* @method void setWeChatAccessToken(string $WeChatAccessToken) 设置如果WeChatSubType是1填入授权的access_token注意不是普通access_token详情请参阅官方说明文档。获取网页版本的access_token时scope字段必需填写snsapi_userinfo。
如果WeChatSubType是2填入以session_key为密钥签名随机数RandStrhmac_sha256签名算法得到的字符串。
* @method string getAssociateAccount() 获取用于标识微信用户登录后所关联业务自身的账号ID。
* @method void setAssociateAccount(string $AssociateAccount) 设置用于标识微信用户登录后所关联业务自身的账号ID。
* @method string getMobilePhone() 获取账号绑定的手机号。
* @method void setMobilePhone(string $MobilePhone) 设置账号绑定的手机号。
* @method string getDeviceId() 获取用户设备号。
* @method void setDeviceId(string $DeviceId) 设置用户设备号。
*/
class WeChatAccountInfo extends AbstractModel
{
/**
* @var string 微信的OpenID/UnionID 。
*/
public $WeChatOpenId;
/**
* @var integer 微信开放账号类型:
1微信公众号/微信第三方登录。
2微信小程序。
*/
public $WeChatSubType;
/**
* @var string 随机串。如果WeChatSubType是2该字段必填。Token签名随机数建议16个字符。
*/
public $RandStr;
/**
* @var string 如果WeChatSubType是1填入授权的access_token注意不是普通access_token详情请参阅官方说明文档。获取网页版本的access_token时scope字段必需填写snsapi_userinfo。
如果WeChatSubType是2填入以session_key为密钥签名随机数RandStrhmac_sha256签名算法得到的字符串。
*/
public $WeChatAccessToken;
/**
* @var string 用于标识微信用户登录后所关联业务自身的账号ID。
*/
public $AssociateAccount;
/**
* @var string 账号绑定的手机号。
*/
public $MobilePhone;
/**
* @var string 用户设备号。
*/
public $DeviceId;
/**
* @param string $WeChatOpenId 微信的OpenID/UnionID 。
* @param integer $WeChatSubType 微信开放账号类型:
1微信公众号/微信第三方登录。
2微信小程序。
* @param string $RandStr 随机串。如果WeChatSubType是2该字段必填。Token签名随机数建议16个字符。
* @param string $WeChatAccessToken 如果WeChatSubType是1填入授权的access_token注意不是普通access_token详情请参阅官方说明文档。获取网页版本的access_token时scope字段必需填写snsapi_userinfo。
如果WeChatSubType是2填入以session_key为密钥签名随机数RandStrhmac_sha256签名算法得到的字符串。
* @param string $AssociateAccount 用于标识微信用户登录后所关联业务自身的账号ID。
* @param string $MobilePhone 账号绑定的手机号。
* @param string $DeviceId 用户设备号。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("WeChatOpenId",$param) and $param["WeChatOpenId"] !== null) {
$this->WeChatOpenId = $param["WeChatOpenId"];
}
if (array_key_exists("WeChatSubType",$param) and $param["WeChatSubType"] !== null) {
$this->WeChatSubType = $param["WeChatSubType"];
}
if (array_key_exists("RandStr",$param) and $param["RandStr"] !== null) {
$this->RandStr = $param["RandStr"];
}
if (array_key_exists("WeChatAccessToken",$param) and $param["WeChatAccessToken"] !== null) {
$this->WeChatAccessToken = $param["WeChatAccessToken"];
}
if (array_key_exists("AssociateAccount",$param) and $param["AssociateAccount"] !== null) {
$this->AssociateAccount = $param["AssociateAccount"];
}
if (array_key_exists("MobilePhone",$param) and $param["MobilePhone"] !== null) {
$this->MobilePhone = $param["MobilePhone"];
}
if (array_key_exists("DeviceId",$param) and $param["DeviceId"] !== null) {
$this->DeviceId = $param["DeviceId"];
}
}
}

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522;
use TencentCloud\Common\AbstractClient;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Credential;
use TencentCloud\Aai\V20180522\Models as Models;
/**
* @method Models\ChatResponse Chat(Models\ChatRequest $req) 提供基于文本的基础聊天能力,可以让您的应用快速拥有具备深度语义理解的机器聊天功能。
* @method Models\SentenceRecognitionResponse SentenceRecognition(Models\SentenceRecognitionRequest $req) 识别60s内的短语音当音频放在请求body中传输时整个请求大小不能超过600KB当音频以url方式传输时音频时长不可超过60s。所有请求参数放在post的body中采用x-www-form-urlencoded数据转换成一个字符串name1=value1&name2=value2…进行urlencode后编码传输。现暂只支持中文普通话识别支持识别8k(16k)的16bit的mp3或者wav音频。
* @method Models\SimultaneousInterpretingResponse SimultaneousInterpreting(Models\SimultaneousInterpretingRequest $req) 该接口是实时流式识别可同时返回语音识别文本及翻译文本当前仅支持中文和英文。该接口可配合同传windows客户端提供会议现场同传服务。
* @method Models\TextToVoiceResponse TextToVoice(Models\TextToVoiceRequest $req) 腾讯云语音合成技术TTS可以将任意文本转化为语音实现让机器和应用张口说话。
腾讯TTS技术可以应用到很多场景比如移动APP语音播报新闻智能设备语音提醒依靠网上现有节目或少量录音快速合成明星语音降低邀约成本支持车载导航语音合成的个性化语音播报。
内测期间免费使用。
*/
class AaiClient extends AbstractClient
{
/**
* @var string
*/
protected $endpoint = "aai.tencentcloudapi.com";
/**
* @var string
*/
protected $service = "aai";
/**
* @var string
*/
protected $version = "2018-05-22";
/**
* @param Credential $credential
* @param string $region
* @param ClientProfile|null $profile
* @throws TencentCloudSDKException
*/
function __construct($credential, $region, $profile=null)
{
parent::__construct($this->endpoint, $this->version, $credential, $region, $profile);
}
public function returnResponse($action, $response)
{
$respClass = "TencentCloud"."\\".ucfirst("aai")."\\"."V20180522\\Models"."\\".ucfirst($action)."Response";
$obj = new $respClass();
$obj->deserialize($response);
return $obj;
}
}

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522\Models;
use TencentCloud\Common\AbstractModel;
/**
* Chat请求参数结构体
*
* @method string getText() 获取聊天输入文本
* @method void setText(string $Text) 设置聊天输入文本
* @method integer getProjectId() 获取腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @method void setProjectId(integer $ProjectId) 设置腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @method string getUser() 获取json格式比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id非必须但强烈建议传入否则多轮聊天功能会受影响
* @method void setUser(string $User) 设置json格式比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id非必须但强烈建议传入否则多轮聊天功能会受影响
*/
class ChatRequest extends AbstractModel
{
/**
* @var string 聊天输入文本
*/
public $Text;
/**
* @var integer 腾讯云项目 ID可填 0总长度不超过 1024 字节。
*/
public $ProjectId;
/**
* @var string json格式比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id非必须但强烈建议传入否则多轮聊天功能会受影响
*/
public $User;
/**
* @param string $Text 聊天输入文本
* @param integer $ProjectId 腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @param string $User json格式比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id非必须但强烈建议传入否则多轮聊天功能会受影响
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Text",$param) and $param["Text"] !== null) {
$this->Text = $param["Text"];
}
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
$this->ProjectId = $param["ProjectId"];
}
if (array_key_exists("User",$param) and $param["User"] !== null) {
$this->User = $param["User"];
}
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522\Models;
use TencentCloud\Common\AbstractModel;
/**
* Chat返回参数结构体
*
* @method string getAnswer() 获取聊天输出文本
* @method void setAnswer(string $Answer) 设置聊天输出文本
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class ChatResponse extends AbstractModel
{
/**
* @var string 聊天输出文本
*/
public $Answer;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $Answer 聊天输出文本
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Answer",$param) and $param["Answer"] !== null) {
$this->Answer = $param["Answer"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,149 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522\Models;
use TencentCloud\Common\AbstractModel;
/**
* SentenceRecognition请求参数结构体
*
* @method integer getProjectId() 获取腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @method void setProjectId(integer $ProjectId) 设置腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @method integer getSubServiceType() 获取子服务类型。2一句话识别。
* @method void setSubServiceType(integer $SubServiceType) 设置子服务类型。2一句话识别。
* @method string getEngSerViceType() 获取引擎类型。8k电话 8k 通用模型16k16k 通用模型。只支持单声道音频识别。
* @method void setEngSerViceType(string $EngSerViceType) 设置引擎类型。8k电话 8k 通用模型16k16k 通用模型。只支持单声道音频识别。
* @method integer getSourceType() 获取语音数据来源。0语音 URL1语音数据post body
* @method void setSourceType(integer $SourceType) 设置语音数据来源。0语音 URL1语音数据post body
* @method string getVoiceFormat() 获取识别音频的音频格式支持mp3,wav
* @method void setVoiceFormat(string $VoiceFormat) 设置识别音频的音频格式支持mp3,wav
* @method string getUsrAudioKey() 获取用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
* @method void setUsrAudioKey(string $UsrAudioKey) 设置用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
* @method string getUrl() 获取语音 URL公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填URL 的长度大于 0小于 2048需进行urlencode编码。音频时间长度要小于60s。
* @method void setUrl(string $Url) 设置语音 URL公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填URL 的长度大于 0小于 2048需进行urlencode编码。音频时间长度要小于60s。
* @method string getData() 获取语音数据当SourceType 值为1时必须填写为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于600kB。
* @method void setData(string $Data) 设置语音数据当SourceType 值为1时必须填写为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于600kB。
* @method integer getDataLen() 获取数据长度,当 SourceType 值为1时必须填写为0可不写此数据长度为数据未进行base64编码时的数据长度
* @method void setDataLen(integer $DataLen) 设置数据长度,当 SourceType 值为1时必须填写为0可不写此数据长度为数据未进行base64编码时的数据长度
*/
class SentenceRecognitionRequest extends AbstractModel
{
/**
* @var integer 腾讯云项目 ID可填 0总长度不超过 1024 字节。
*/
public $ProjectId;
/**
* @var integer 子服务类型。2一句话识别。
*/
public $SubServiceType;
/**
* @var string 引擎类型。8k电话 8k 通用模型16k16k 通用模型。只支持单声道音频识别。
*/
public $EngSerViceType;
/**
* @var integer 语音数据来源。0语音 URL1语音数据post body
*/
public $SourceType;
/**
* @var string 识别音频的音频格式支持mp3,wav
*/
public $VoiceFormat;
/**
* @var string 用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
*/
public $UsrAudioKey;
/**
* @var string 语音 URL公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填URL 的长度大于 0小于 2048需进行urlencode编码。音频时间长度要小于60s。
*/
public $Url;
/**
* @var string 语音数据当SourceType 值为1时必须填写为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于600kB。
*/
public $Data;
/**
* @var integer 数据长度,当 SourceType 值为1时必须填写为0可不写此数据长度为数据未进行base64编码时的数据长度
*/
public $DataLen;
/**
* @param integer $ProjectId 腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @param integer $SubServiceType 子服务类型。2一句话识别。
* @param string $EngSerViceType 引擎类型。8k电话 8k 通用模型16k16k 通用模型。只支持单声道音频识别。
* @param integer $SourceType 语音数据来源。0语音 URL1语音数据post body
* @param string $VoiceFormat 识别音频的音频格式支持mp3,wav
* @param string $UsrAudioKey 用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
* @param string $Url 语音 URL公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填URL 的长度大于 0小于 2048需进行urlencode编码。音频时间长度要小于60s。
* @param string $Data 语音数据当SourceType 值为1时必须填写为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于600kB。
* @param integer $DataLen 数据长度,当 SourceType 值为1时必须填写为0可不写此数据长度为数据未进行base64编码时的数据长度
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
$this->ProjectId = $param["ProjectId"];
}
if (array_key_exists("SubServiceType",$param) and $param["SubServiceType"] !== null) {
$this->SubServiceType = $param["SubServiceType"];
}
if (array_key_exists("EngSerViceType",$param) and $param["EngSerViceType"] !== null) {
$this->EngSerViceType = $param["EngSerViceType"];
}
if (array_key_exists("SourceType",$param) and $param["SourceType"] !== null) {
$this->SourceType = $param["SourceType"];
}
if (array_key_exists("VoiceFormat",$param) and $param["VoiceFormat"] !== null) {
$this->VoiceFormat = $param["VoiceFormat"];
}
if (array_key_exists("UsrAudioKey",$param) and $param["UsrAudioKey"] !== null) {
$this->UsrAudioKey = $param["UsrAudioKey"];
}
if (array_key_exists("Url",$param) and $param["Url"] !== null) {
$this->Url = $param["Url"];
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = $param["Data"];
}
if (array_key_exists("DataLen",$param) and $param["DataLen"] !== null) {
$this->DataLen = $param["DataLen"];
}
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522\Models;
use TencentCloud\Common\AbstractModel;
/**
* SentenceRecognition返回参数结构体
*
* @method string getResult() 获取识别结果。
* @method void setResult(string $Result) 设置识别结果。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class SentenceRecognitionResponse extends AbstractModel
{
/**
* @var string 识别结果。
*/
public $Result;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $Result 识别结果。
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Result",$param) and $param["Result"] !== null) {
$this->Result = $param["Result"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,185 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522\Models;
use TencentCloud\Common\AbstractModel;
/**
* SimultaneousInterpreting请求参数结构体
*
* @method integer getProjectId() 获取腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @method void setProjectId(integer $ProjectId) 设置腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @method integer getSubServiceType() 获取子服务类型。0离线语音识别。1实时流式识别2一句话识别。3同传。
* @method void setSubServiceType(integer $SubServiceType) 设置子服务类型。0离线语音识别。1实时流式识别2一句话识别。3同传。
* @method string getRecEngineModelType() 获取识别引擎类型。8k_zh 8k 中文会场模型16k_zh16k 中文会场模型8k_en 8k 英文会场模型16k_en16k 英文会场模型。当前仅支持16K。
* @method void setRecEngineModelType(string $RecEngineModelType) 设置识别引擎类型。8k_zh 8k 中文会场模型16k_zh16k 中文会场模型8k_en 8k 英文会场模型16k_en16k 英文会场模型。当前仅支持16K。
* @method string getData() 获取语音数据要base64编码。
* @method void setData(string $Data) 设置语音数据要base64编码。
* @method integer getDataLen() 获取数据长度。
* @method void setDataLen(integer $DataLen) 设置数据长度。
* @method string getVoiceId() 获取声音id标识一句话。
* @method void setVoiceId(string $VoiceId) 设置声音id标识一句话。
* @method integer getIsEnd() 获取是否是一句话的结束。
* @method void setIsEnd(integer $IsEnd) 设置是否是一句话的结束。
* @method integer getVoiceFormat() 获取声音编码的格式1:pcm4:speex6:silk默认为1。
* @method void setVoiceFormat(integer $VoiceFormat) 设置声音编码的格式1:pcm4:speex6:silk默认为1。
* @method integer getOpenTranslate() 获取是否需要翻译结果1表示需要翻译0是不需要。
* @method void setOpenTranslate(integer $OpenTranslate) 设置是否需要翻译结果1表示需要翻译0是不需要。
* @method string getSourceLanguage() 获取如果需要翻译表示源语言类型可取值zhen。
* @method void setSourceLanguage(string $SourceLanguage) 设置如果需要翻译表示源语言类型可取值zhen。
* @method string getTargetLanguage() 获取如果需要翻译表示目标语言类型可取值zhen。
* @method void setTargetLanguage(string $TargetLanguage) 设置如果需要翻译表示目标语言类型可取值zhen。
* @method integer getSeq() 获取表明当前语音分片的索引从0开始
* @method void setSeq(integer $Seq) 设置表明当前语音分片的索引从0开始
*/
class SimultaneousInterpretingRequest extends AbstractModel
{
/**
* @var integer 腾讯云项目 ID可填 0总长度不超过 1024 字节。
*/
public $ProjectId;
/**
* @var integer 子服务类型。0离线语音识别。1实时流式识别2一句话识别。3同传。
*/
public $SubServiceType;
/**
* @var string 识别引擎类型。8k_zh 8k 中文会场模型16k_zh16k 中文会场模型8k_en 8k 英文会场模型16k_en16k 英文会场模型。当前仅支持16K。
*/
public $RecEngineModelType;
/**
* @var string 语音数据要base64编码。
*/
public $Data;
/**
* @var integer 数据长度。
*/
public $DataLen;
/**
* @var string 声音id标识一句话。
*/
public $VoiceId;
/**
* @var integer 是否是一句话的结束。
*/
public $IsEnd;
/**
* @var integer 声音编码的格式1:pcm4:speex6:silk默认为1。
*/
public $VoiceFormat;
/**
* @var integer 是否需要翻译结果1表示需要翻译0是不需要。
*/
public $OpenTranslate;
/**
* @var string 如果需要翻译表示源语言类型可取值zhen。
*/
public $SourceLanguage;
/**
* @var string 如果需要翻译表示目标语言类型可取值zhen。
*/
public $TargetLanguage;
/**
* @var integer 表明当前语音分片的索引从0开始
*/
public $Seq;
/**
* @param integer $ProjectId 腾讯云项目 ID可填 0总长度不超过 1024 字节。
* @param integer $SubServiceType 子服务类型。0离线语音识别。1实时流式识别2一句话识别。3同传。
* @param string $RecEngineModelType 识别引擎类型。8k_zh 8k 中文会场模型16k_zh16k 中文会场模型8k_en 8k 英文会场模型16k_en16k 英文会场模型。当前仅支持16K。
* @param string $Data 语音数据要base64编码。
* @param integer $DataLen 数据长度。
* @param string $VoiceId 声音id标识一句话。
* @param integer $IsEnd 是否是一句话的结束。
* @param integer $VoiceFormat 声音编码的格式1:pcm4:speex6:silk默认为1。
* @param integer $OpenTranslate 是否需要翻译结果1表示需要翻译0是不需要。
* @param string $SourceLanguage 如果需要翻译表示源语言类型可取值zhen。
* @param string $TargetLanguage 如果需要翻译表示目标语言类型可取值zhen。
* @param integer $Seq 表明当前语音分片的索引从0开始
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
$this->ProjectId = $param["ProjectId"];
}
if (array_key_exists("SubServiceType",$param) and $param["SubServiceType"] !== null) {
$this->SubServiceType = $param["SubServiceType"];
}
if (array_key_exists("RecEngineModelType",$param) and $param["RecEngineModelType"] !== null) {
$this->RecEngineModelType = $param["RecEngineModelType"];
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = $param["Data"];
}
if (array_key_exists("DataLen",$param) and $param["DataLen"] !== null) {
$this->DataLen = $param["DataLen"];
}
if (array_key_exists("VoiceId",$param) and $param["VoiceId"] !== null) {
$this->VoiceId = $param["VoiceId"];
}
if (array_key_exists("IsEnd",$param) and $param["IsEnd"] !== null) {
$this->IsEnd = $param["IsEnd"];
}
if (array_key_exists("VoiceFormat",$param) and $param["VoiceFormat"] !== null) {
$this->VoiceFormat = $param["VoiceFormat"];
}
if (array_key_exists("OpenTranslate",$param) and $param["OpenTranslate"] !== null) {
$this->OpenTranslate = $param["OpenTranslate"];
}
if (array_key_exists("SourceLanguage",$param) and $param["SourceLanguage"] !== null) {
$this->SourceLanguage = $param["SourceLanguage"];
}
if (array_key_exists("TargetLanguage",$param) and $param["TargetLanguage"] !== null) {
$this->TargetLanguage = $param["TargetLanguage"];
}
if (array_key_exists("Seq",$param) and $param["Seq"] !== null) {
$this->Seq = $param["Seq"];
}
}
}

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522\Models;
use TencentCloud\Common\AbstractModel;
/**
* SimultaneousInterpreting返回参数结构体
*
* @method string getAsrText() 获取语音识别的结果
* @method void setAsrText(string $AsrText) 设置语音识别的结果
* @method string getNmtText() 获取机器翻译的结果
* @method void setNmtText(string $NmtText) 设置机器翻译的结果
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class SimultaneousInterpretingResponse extends AbstractModel
{
/**
* @var string 语音识别的结果
*/
public $AsrText;
/**
* @var string 机器翻译的结果
*/
public $NmtText;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $AsrText 语音识别的结果
* @param string $NmtText 机器翻译的结果
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AsrText",$param) and $param["AsrText"] !== null) {
$this->AsrText = $param["AsrText"];
}
if (array_key_exists("NmtText",$param) and $param["NmtText"] !== null) {
$this->NmtText = $param["NmtText"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,169 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522\Models;
use TencentCloud\Common\AbstractModel;
/**
* TextToVoice请求参数结构体
*
* @method string getText() 获取合成语音的源文本按UTF-8编码统一计算。
中文最大支持100个汉字全角标点符号算一个汉字英文最大支持400个字母半角标点符号算一个字母。包含空格等字符时需要url encode再传输。
* @method void setText(string $Text) 设置合成语音的源文本按UTF-8编码统一计算。
中文最大支持100个汉字全角标点符号算一个汉字英文最大支持400个字母半角标点符号算一个字母。包含空格等字符时需要url encode再传输。
* @method string getSessionId() 获取一次请求对应一个SessionId会原样返回建议传入类似于uuid的字符串防止重复。
* @method void setSessionId(string $SessionId) 设置一次请求对应一个SessionId会原样返回建议传入类似于uuid的字符串防止重复。
* @method integer getModelType() 获取模型类型1-默认模型。
* @method void setModelType(integer $ModelType) 设置模型类型1-默认模型。
* @method float getVolume() 获取音量大小,范围:[010]分别对应11个等级的音量默认为0代表正常音量。没有静音选项。
输入除以上整数之外的其他参数不生效,按默认值处理。
* @method void setVolume(float $Volume) 设置音量大小,范围:[010]分别对应11个等级的音量默认为0代表正常音量。没有静音选项。
输入除以上整数之外的其他参数不生效,按默认值处理。
* @method float getSpeed() 获取语速,范围:[-22],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
* @method void setSpeed(float $Speed) 设置语速,范围:[-22],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
* @method integer getProjectId() 获取项目id用户自定义默认为0。
* @method void setProjectId(integer $ProjectId) 设置项目id用户自定义默认为0。
* @method integer getVoiceType() 获取音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
* @method void setVoiceType(integer $VoiceType) 设置音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
* @method integer getPrimaryLanguage() 获取主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
* @method void setPrimaryLanguage(integer $PrimaryLanguage) 设置主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
* @method integer getSampleRate() 获取音频采样率:<li>1600016k默认</li><li>80008k</li>
* @method void setSampleRate(integer $SampleRate) 设置音频采样率:<li>1600016k默认</li><li>80008k</li>
* @method string getCodec() 获取返回音频格式可取值wav默认mp3
* @method void setCodec(string $Codec) 设置返回音频格式可取值wav默认mp3
*/
class TextToVoiceRequest extends AbstractModel
{
/**
* @var string 合成语音的源文本按UTF-8编码统一计算。
中文最大支持100个汉字全角标点符号算一个汉字英文最大支持400个字母半角标点符号算一个字母。包含空格等字符时需要url encode再传输。
*/
public $Text;
/**
* @var string 一次请求对应一个SessionId会原样返回建议传入类似于uuid的字符串防止重复。
*/
public $SessionId;
/**
* @var integer 模型类型1-默认模型。
*/
public $ModelType;
/**
* @var float 音量大小,范围:[010]分别对应11个等级的音量默认为0代表正常音量。没有静音选项。
输入除以上整数之外的其他参数不生效,按默认值处理。
*/
public $Volume;
/**
* @var float 语速,范围:[-22],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
*/
public $Speed;
/**
* @var integer 项目id用户自定义默认为0。
*/
public $ProjectId;
/**
* @var integer 音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
*/
public $VoiceType;
/**
* @var integer 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
*/
public $PrimaryLanguage;
/**
* @var integer 音频采样率:<li>1600016k默认</li><li>80008k</li>
*/
public $SampleRate;
/**
* @var string 返回音频格式可取值wav默认mp3
*/
public $Codec;
/**
* @param string $Text 合成语音的源文本按UTF-8编码统一计算。
中文最大支持100个汉字全角标点符号算一个汉字英文最大支持400个字母半角标点符号算一个字母。包含空格等字符时需要url encode再传输。
* @param string $SessionId 一次请求对应一个SessionId会原样返回建议传入类似于uuid的字符串防止重复。
* @param integer $ModelType 模型类型1-默认模型。
* @param float $Volume 音量大小,范围:[010]分别对应11个等级的音量默认为0代表正常音量。没有静音选项。
输入除以上整数之外的其他参数不生效,按默认值处理。
* @param float $Speed 语速,范围:[-22],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
* @param integer $ProjectId 项目id用户自定义默认为0。
* @param integer $VoiceType 音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
* @param integer $PrimaryLanguage 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
* @param integer $SampleRate 音频采样率:<li>1600016k默认</li><li>80008k</li>
* @param string $Codec 返回音频格式可取值wav默认mp3
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Text",$param) and $param["Text"] !== null) {
$this->Text = $param["Text"];
}
if (array_key_exists("SessionId",$param) and $param["SessionId"] !== null) {
$this->SessionId = $param["SessionId"];
}
if (array_key_exists("ModelType",$param) and $param["ModelType"] !== null) {
$this->ModelType = $param["ModelType"];
}
if (array_key_exists("Volume",$param) and $param["Volume"] !== null) {
$this->Volume = $param["Volume"];
}
if (array_key_exists("Speed",$param) and $param["Speed"] !== null) {
$this->Speed = $param["Speed"];
}
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
$this->ProjectId = $param["ProjectId"];
}
if (array_key_exists("VoiceType",$param) and $param["VoiceType"] !== null) {
$this->VoiceType = $param["VoiceType"];
}
if (array_key_exists("PrimaryLanguage",$param) and $param["PrimaryLanguage"] !== null) {
$this->PrimaryLanguage = $param["PrimaryLanguage"];
}
if (array_key_exists("SampleRate",$param) and $param["SampleRate"] !== null) {
$this->SampleRate = $param["SampleRate"];
}
if (array_key_exists("Codec",$param) and $param["Codec"] !== null) {
$this->Codec = $param["Codec"];
}
}
}

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Aai\V20180522\Models;
use TencentCloud\Common\AbstractModel;
/**
* TextToVoice返回参数结构体
*
* @method string getAudio() 获取base64编码的wav/mp3音频数据
* @method void setAudio(string $Audio) 设置base64编码的wav/mp3音频数据
* @method string getSessionId() 获取一次请求对应一个SessionId
* @method void setSessionId(string $SessionId) 设置一次请求对应一个SessionId
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class TextToVoiceResponse extends AbstractModel
{
/**
* @var string base64编码的wav/mp3音频数据
*/
public $Audio;
/**
* @var string 一次请求对应一个SessionId
*/
public $SessionId;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $Audio base64编码的wav/mp3音频数据
* @param string $SessionId 一次请求对应一个SessionId
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Audio",$param) and $param["Audio"] !== null) {
$this->Audio = $param["Audio"];
}
if (array_key_exists("SessionId",$param) and $param["SessionId"] !== null) {
$this->SessionId = $param["SessionId"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Af\V20200226;
use TencentCloud\Common\AbstractClient;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Credential;
use TencentCloud\Af\V20200226\Models as Models;
/**
* @method Models\QueryAntiFraudResponse QueryAntiFraud(Models\QueryAntiFraudRequest $req) 天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
的损失。
*/
class AfClient extends AbstractClient
{
/**
* @var string
*/
protected $endpoint = "af.tencentcloudapi.com";
/**
* @var string
*/
protected $service = "af";
/**
* @var string
*/
protected $version = "2020-02-26";
/**
* @param Credential $credential
* @param string $region
* @param ClientProfile|null $profile
* @throws TencentCloudSDKException
*/
function __construct($credential, $region, $profile=null)
{
parent::__construct($this->endpoint, $this->version, $credential, $region, $profile);
}
public function returnResponse($action, $response)
{
$respClass = "TencentCloud"."\\".ucfirst("af")."\\"."V20200226\\Models"."\\".ucfirst($action)."Response";
$obj = new $respClass();
$obj->deserialize($response);
return $obj;
}
}

View File

@@ -0,0 +1,361 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Af\V20200226\Models;
use TencentCloud\Common\AbstractModel;
/**
* QueryAntiFraud请求参数结构体
*
* @method string getPhoneNumber() 获取电话号码(五选二)
* @method void setPhoneNumber(string $PhoneNumber) 设置电话号码(五选二)
* @method string getIdNumber() 获取Id(五选二)
* @method void setIdNumber(string $IdNumber) 设置Id(五选二)
* @method string getBankCardNumber() 获取银行卡号(五选二)
* @method void setBankCardNumber(string $BankCardNumber) 设置银行卡号(五选二)
* @method string getUserIp() 获取用户请求来源 IP(五选二)
* @method void setUserIp(string $UserIp) 设置用户请求来源 IP(五选二)
* @method string getImei() 获取国际移动设备识别码(五选二)
* @method void setImei(string $Imei) 设置国际移动设备识别码(五选二)
* @method string getIdfa() 获取ios 系统广告标示符(五选二)
* @method void setIdfa(string $Idfa) 设置ios 系统广告标示符(五选二)
* @method string getScene() 获取业务场景 ID需要找技术对接
* @method void setScene(string $Scene) 设置业务场景 ID需要找技术对接
* @method string getName() 获取姓名
* @method void setName(string $Name) 设置姓名
* @method string getEmailAddress() 获取用户邮箱地址
* @method void setEmailAddress(string $EmailAddress) 设置用户邮箱地址
* @method string getAddress() 获取用户住址
* @method void setAddress(string $Address) 设置用户住址
* @method string getMac() 获取MAC 地址
* @method void setMac(string $Mac) 设置MAC 地址
* @method string getImsi() 获取国际移动用户识别码
* @method void setImsi(string $Imsi) 设置国际移动用户识别码
* @method string getAccountType() 获取关联的腾讯帐号 QQ1
开放帐号微信: 2
* @method void setAccountType(string $AccountType) 设置关联的腾讯帐号 QQ1
开放帐号微信: 2
* @method string getUid() 获取可选的 QQ 或微信 openid
* @method void setUid(string $Uid) 设置可选的 QQ 或微信 openid
* @method string getAppIdU() 获取qq 或微信分配给网站或应用的 appid用来
唯一标识网站或应用
* @method void setAppIdU(string $AppIdU) 设置qq 或微信分配给网站或应用的 appid用来
唯一标识网站或应用
* @method string getWifiMac() 获取WIFI MAC
* @method void setWifiMac(string $WifiMac) 设置WIFI MAC
* @method string getWifiSSID() 获取WIFI 服务集标识
* @method void setWifiSSID(string $WifiSSID) 设置WIFI 服务集标识
* @method string getWifiBSSID() 获取WIFI-BSSID
* @method void setWifiBSSID(string $WifiBSSID) 设置WIFI-BSSID
* @method string getBusinessId() 获取业务 ID在多个业务中使用此服务通过此
ID 区分统计数据
* @method void setBusinessId(string $BusinessId) 设置业务 ID在多个业务中使用此服务通过此
ID 区分统计数据
* @method string getIdCryptoType() 获取Id加密类型
0不加密默认值
1md5
2sha256
3SM3
* @method void setIdCryptoType(string $IdCryptoType) 设置Id加密类型
0不加密默认值
1md5
2sha256
3SM3
* @method string getPhoneCryptoType() 获取手机号加密类型
0不加密默认值
1md5, 2sha256
3SM3
* @method void setPhoneCryptoType(string $PhoneCryptoType) 设置手机号加密类型
0不加密默认值
1md5, 2sha256
3SM3
* @method string getNameCryptoType() 获取姓名加密类型
0不加密默认值
1md5
2sha256
3SM3
* @method void setNameCryptoType(string $NameCryptoType) 设置姓名加密类型
0不加密默认值
1md5
2sha256
3SM3
*/
class QueryAntiFraudRequest extends AbstractModel
{
/**
* @var string 电话号码(五选二)
*/
public $PhoneNumber;
/**
* @var string Id(五选二)
*/
public $IdNumber;
/**
* @var string 银行卡号(五选二)
*/
public $BankCardNumber;
/**
* @var string 用户请求来源 IP(五选二)
*/
public $UserIp;
/**
* @var string 国际移动设备识别码(五选二)
*/
public $Imei;
/**
* @var string ios 系统广告标示符(五选二)
*/
public $Idfa;
/**
* @var string 业务场景 ID需要找技术对接
*/
public $Scene;
/**
* @var string 姓名
*/
public $Name;
/**
* @var string 用户邮箱地址
*/
public $EmailAddress;
/**
* @var string 用户住址
*/
public $Address;
/**
* @var string MAC 地址
*/
public $Mac;
/**
* @var string 国际移动用户识别码
*/
public $Imsi;
/**
* @var string 关联的腾讯帐号 QQ1
开放帐号微信: 2
*/
public $AccountType;
/**
* @var string 可选的 QQ 或微信 openid
*/
public $Uid;
/**
* @var string qq 或微信分配给网站或应用的 appid用来
唯一标识网站或应用
*/
public $AppIdU;
/**
* @var string WIFI MAC
*/
public $WifiMac;
/**
* @var string WIFI 服务集标识
*/
public $WifiSSID;
/**
* @var string WIFI-BSSID
*/
public $WifiBSSID;
/**
* @var string 业务 ID在多个业务中使用此服务通过此
ID 区分统计数据
*/
public $BusinessId;
/**
* @var string Id加密类型
0不加密默认值
1md5
2sha256
3SM3
*/
public $IdCryptoType;
/**
* @var string 手机号加密类型
0不加密默认值
1md5, 2sha256
3SM3
*/
public $PhoneCryptoType;
/**
* @var string 姓名加密类型
0不加密默认值
1md5
2sha256
3SM3
*/
public $NameCryptoType;
/**
* @param string $PhoneNumber 电话号码(五选二)
* @param string $IdNumber Id(五选二)
* @param string $BankCardNumber 银行卡号(五选二)
* @param string $UserIp 用户请求来源 IP(五选二)
* @param string $Imei 国际移动设备识别码(五选二)
* @param string $Idfa ios 系统广告标示符(五选二)
* @param string $Scene 业务场景 ID需要找技术对接
* @param string $Name 姓名
* @param string $EmailAddress 用户邮箱地址
* @param string $Address 用户住址
* @param string $Mac MAC 地址
* @param string $Imsi 国际移动用户识别码
* @param string $AccountType 关联的腾讯帐号 QQ1
开放帐号微信: 2
* @param string $Uid 可选的 QQ 或微信 openid
* @param string $AppIdU qq 或微信分配给网站或应用的 appid用来
唯一标识网站或应用
* @param string $WifiMac WIFI MAC
* @param string $WifiSSID WIFI 服务集标识
* @param string $WifiBSSID WIFI-BSSID
* @param string $BusinessId 业务 ID在多个业务中使用此服务通过此
ID 区分统计数据
* @param string $IdCryptoType Id加密类型
0不加密默认值
1md5
2sha256
3SM3
* @param string $PhoneCryptoType 手机号加密类型
0不加密默认值
1md5, 2sha256
3SM3
* @param string $NameCryptoType 姓名加密类型
0不加密默认值
1md5
2sha256
3SM3
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("IdNumber",$param) and $param["IdNumber"] !== null) {
$this->IdNumber = $param["IdNumber"];
}
if (array_key_exists("BankCardNumber",$param) and $param["BankCardNumber"] !== null) {
$this->BankCardNumber = $param["BankCardNumber"];
}
if (array_key_exists("UserIp",$param) and $param["UserIp"] !== null) {
$this->UserIp = $param["UserIp"];
}
if (array_key_exists("Imei",$param) and $param["Imei"] !== null) {
$this->Imei = $param["Imei"];
}
if (array_key_exists("Idfa",$param) and $param["Idfa"] !== null) {
$this->Idfa = $param["Idfa"];
}
if (array_key_exists("Scene",$param) and $param["Scene"] !== null) {
$this->Scene = $param["Scene"];
}
if (array_key_exists("Name",$param) and $param["Name"] !== null) {
$this->Name = $param["Name"];
}
if (array_key_exists("EmailAddress",$param) and $param["EmailAddress"] !== null) {
$this->EmailAddress = $param["EmailAddress"];
}
if (array_key_exists("Address",$param) and $param["Address"] !== null) {
$this->Address = $param["Address"];
}
if (array_key_exists("Mac",$param) and $param["Mac"] !== null) {
$this->Mac = $param["Mac"];
}
if (array_key_exists("Imsi",$param) and $param["Imsi"] !== null) {
$this->Imsi = $param["Imsi"];
}
if (array_key_exists("AccountType",$param) and $param["AccountType"] !== null) {
$this->AccountType = $param["AccountType"];
}
if (array_key_exists("Uid",$param) and $param["Uid"] !== null) {
$this->Uid = $param["Uid"];
}
if (array_key_exists("AppIdU",$param) and $param["AppIdU"] !== null) {
$this->AppIdU = $param["AppIdU"];
}
if (array_key_exists("WifiMac",$param) and $param["WifiMac"] !== null) {
$this->WifiMac = $param["WifiMac"];
}
if (array_key_exists("WifiSSID",$param) and $param["WifiSSID"] !== null) {
$this->WifiSSID = $param["WifiSSID"];
}
if (array_key_exists("WifiBSSID",$param) and $param["WifiBSSID"] !== null) {
$this->WifiBSSID = $param["WifiBSSID"];
}
if (array_key_exists("BusinessId",$param) and $param["BusinessId"] !== null) {
$this->BusinessId = $param["BusinessId"];
}
if (array_key_exists("IdCryptoType",$param) and $param["IdCryptoType"] !== null) {
$this->IdCryptoType = $param["IdCryptoType"];
}
if (array_key_exists("PhoneCryptoType",$param) and $param["PhoneCryptoType"] !== null) {
$this->PhoneCryptoType = $param["PhoneCryptoType"];
}
if (array_key_exists("NameCryptoType",$param) and $param["NameCryptoType"] !== null) {
$this->NameCryptoType = $param["NameCryptoType"];
}
}
}

View File

@@ -0,0 +1,122 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Af\V20200226\Models;
use TencentCloud\Common\AbstractModel;
/**
* QueryAntiFraud返回参数结构体
*
* @method integer getFound() 获取表示该条记录能否查到1为能查到-1为查不到
* @method void setFound(integer $Found) 设置表示该条记录能否查到1为能查到-1为查不到
* @method integer getIdFound() 获取表示该条Id能否查到1为能查到-1为查不到
* @method void setIdFound(integer $IdFound) 设置表示该条Id能否查到1为能查到-1为查不到
* @method integer getRiskScore() 获取0~100;值越高 欺诈可能性越大
* @method void setRiskScore(integer $RiskScore) 设置0~100;值越高 欺诈可能性越大
* @method array getRiskInfo() 获取扩展字段,对风险类型的说明
* @method void setRiskInfo(array $RiskInfo) 设置扩展字段,对风险类型的说明
* @method string getCodeDesc() 获取业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @method void setCodeDesc(string $CodeDesc) 设置业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class QueryAntiFraudResponse extends AbstractModel
{
/**
* @var integer 表示该条记录能否查到1为能查到-1为查不到
*/
public $Found;
/**
* @var integer 表示该条Id能否查到1为能查到-1为查不到
*/
public $IdFound;
/**
* @var integer 0~100;值越高 欺诈可能性越大
*/
public $RiskScore;
/**
* @var array 扩展字段,对风险类型的说明
*/
public $RiskInfo;
/**
* @var string 业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
*/
public $CodeDesc;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $Found 表示该条记录能否查到1为能查到-1为查不到
* @param integer $IdFound 表示该条Id能否查到1为能查到-1为查不到
* @param integer $RiskScore 0~100;值越高 欺诈可能性越大
* @param array $RiskInfo 扩展字段,对风险类型的说明
* @param string $CodeDesc 业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Found",$param) and $param["Found"] !== null) {
$this->Found = $param["Found"];
}
if (array_key_exists("IdFound",$param) and $param["IdFound"] !== null) {
$this->IdFound = $param["IdFound"];
}
if (array_key_exists("RiskScore",$param) and $param["RiskScore"] !== null) {
$this->RiskScore = $param["RiskScore"];
}
if (array_key_exists("RiskInfo",$param) and $param["RiskInfo"] !== null) {
$this->RiskInfo = [];
foreach ($param["RiskInfo"] as $key => $value){
$obj = new RiskDetail();
$obj->deserialize($value);
array_push($this->RiskInfo, $obj);
}
}
if (array_key_exists("CodeDesc",$param) and $param["CodeDesc"] !== null) {
$this->CodeDesc = $param["CodeDesc"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Af\V20200226\Models;
use TencentCloud\Common\AbstractModel;
/**
* 扩展字段,对风险类型的说明
*
* @method integer getRiskCode() 获取风险码 参数详细定义请加微信TYXGJ-01
* @method void setRiskCode(integer $RiskCode) 设置风险码 参数详细定义请加微信TYXGJ-01
*/
class RiskDetail extends AbstractModel
{
/**
* @var integer 风险码 参数详细定义请加微信TYXGJ-01
*/
public $RiskCode;
/**
* @param integer $RiskCode 风险码 参数详细定义请加微信TYXGJ-01
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("RiskCode",$param) and $param["RiskCode"] !== null) {
$this->RiskCode = $param["RiskCode"];
}
}
}

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Afc\V20200226;
use TencentCloud\Common\AbstractClient;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Credential;
use TencentCloud\Afc\V20200226\Models as Models;
/**
* @method Models\QueryAntiFraudVipResponse QueryAntiFraudVip(Models\QueryAntiFraudVipRequest $req) 天御反欺诈服务主要应用于银行、证券、保险、P2P等金融行业客户通过腾讯的大数据风控能力
可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
的损失。
*/
class AfcClient extends AbstractClient
{
/**
* @var string
*/
protected $endpoint = "afc.tencentcloudapi.com";
/**
* @var string
*/
protected $service = "afc";
/**
* @var string
*/
protected $version = "2020-02-26";
/**
* @param Credential $credential
* @param string $region
* @param ClientProfile|null $profile
* @throws TencentCloudSDKException
*/
function __construct($credential, $region, $profile=null)
{
parent::__construct($this->endpoint, $this->version, $credential, $region, $profile);
}
public function returnResponse($action, $response)
{
$respClass = "TencentCloud"."\\".ucfirst("afc")."\\"."V20200226\\Models"."\\".ucfirst($action)."Response";
$obj = new $respClass();
$obj->deserialize($response);
return $obj;
}
}

View File

@@ -0,0 +1,361 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Afc\V20200226\Models;
use TencentCloud\Common\AbstractModel;
/**
* QueryAntiFraudVip请求参数结构体
*
* @method string getPhoneNumber() 获取电话号码(五选二)
* @method void setPhoneNumber(string $PhoneNumber) 设置电话号码(五选二)
* @method string getIdNumber() 获取Id号(五选二)
* @method void setIdNumber(string $IdNumber) 设置Id号(五选二)
* @method string getBankCardNumber() 获取银行卡号(五选二)
* @method void setBankCardNumber(string $BankCardNumber) 设置银行卡号(五选二)
* @method string getUserIp() 获取用户请求来源 IP(五选二)
* @method void setUserIp(string $UserIp) 设置用户请求来源 IP(五选二)
* @method string getImei() 获取国际移动设备识别码(五选二)
* @method void setImei(string $Imei) 设置国际移动设备识别码(五选二)
* @method string getIdfa() 获取ios 系统广告标示符(五选二)
* @method void setIdfa(string $Idfa) 设置ios 系统广告标示符(五选二)
* @method string getScene() 获取业务场景 ID需要找技术对接
* @method void setScene(string $Scene) 设置业务场景 ID需要找技术对接
* @method string getName() 获取姓名
* @method void setName(string $Name) 设置姓名
* @method string getEmailAddress() 获取用户邮箱地址
* @method void setEmailAddress(string $EmailAddress) 设置用户邮箱地址
* @method string getAddress() 获取用户住址
* @method void setAddress(string $Address) 设置用户住址
* @method string getAccountType() 获取关联的腾讯帐号 QQ1
开放帐号微信: 2
* @method void setAccountType(string $AccountType) 设置关联的腾讯帐号 QQ1
开放帐号微信: 2
* @method string getUid() 获取可选的 QQ 或微信 openid
* @method void setUid(string $Uid) 设置可选的 QQ 或微信 openid
* @method string getAppIdU() 获取qq 或微信分配给网站或应用的 appid用来
唯一标识网站或应用
* @method void setAppIdU(string $AppIdU) 设置qq 或微信分配给网站或应用的 appid用来
唯一标识网站或应用
* @method string getWifiMac() 获取WIFI MAC
* @method void setWifiMac(string $WifiMac) 设置WIFI MAC
* @method string getWifiSSID() 获取WIFI 服务集标识
* @method void setWifiSSID(string $WifiSSID) 设置WIFI 服务集标识
* @method string getWifiBSSID() 获取WIFI-BSSID
* @method void setWifiBSSID(string $WifiBSSID) 设置WIFI-BSSID
* @method string getBusinessId() 获取业务 ID在多个业务中使用此服务通过此
ID 区分统计数据
* @method void setBusinessId(string $BusinessId) 设置业务 ID在多个业务中使用此服务通过此
ID 区分统计数据
* @method string getIdCryptoType() 获取Id加密类型
0不加密默认值
1md5
2sha256
3SM3
* @method void setIdCryptoType(string $IdCryptoType) 设置Id加密类型
0不加密默认值
1md5
2sha256
3SM3
* @method string getPhoneCryptoType() 获取手机号加密类型
0不加密默认值
1md5, 2sha256
3SM3
* @method void setPhoneCryptoType(string $PhoneCryptoType) 设置手机号加密类型
0不加密默认值
1md5, 2sha256
3SM3
* @method string getMac() 获取MAC 地址
* @method void setMac(string $Mac) 设置MAC 地址
* @method string getImsi() 获取国际移动用户识别码
* @method void setImsi(string $Imsi) 设置国际移动用户识别码
* @method string getNameCryptoType() 获取姓名加密类型
0不加密默认值
1md5
2sha256
3SM3
* @method void setNameCryptoType(string $NameCryptoType) 设置姓名加密类型
0不加密默认值
1md5
2sha256
3SM3
*/
class QueryAntiFraudVipRequest extends AbstractModel
{
/**
* @var string 电话号码(五选二)
*/
public $PhoneNumber;
/**
* @var string Id号(五选二)
*/
public $IdNumber;
/**
* @var string 银行卡号(五选二)
*/
public $BankCardNumber;
/**
* @var string 用户请求来源 IP(五选二)
*/
public $UserIp;
/**
* @var string 国际移动设备识别码(五选二)
*/
public $Imei;
/**
* @var string ios 系统广告标示符(五选二)
*/
public $Idfa;
/**
* @var string 业务场景 ID需要找技术对接
*/
public $Scene;
/**
* @var string 姓名
*/
public $Name;
/**
* @var string 用户邮箱地址
*/
public $EmailAddress;
/**
* @var string 用户住址
*/
public $Address;
/**
* @var string 关联的腾讯帐号 QQ1
开放帐号微信: 2
*/
public $AccountType;
/**
* @var string 可选的 QQ 或微信 openid
*/
public $Uid;
/**
* @var string qq 或微信分配给网站或应用的 appid用来
唯一标识网站或应用
*/
public $AppIdU;
/**
* @var string WIFI MAC
*/
public $WifiMac;
/**
* @var string WIFI 服务集标识
*/
public $WifiSSID;
/**
* @var string WIFI-BSSID
*/
public $WifiBSSID;
/**
* @var string 业务 ID在多个业务中使用此服务通过此
ID 区分统计数据
*/
public $BusinessId;
/**
* @var string Id加密类型
0不加密默认值
1md5
2sha256
3SM3
*/
public $IdCryptoType;
/**
* @var string 手机号加密类型
0不加密默认值
1md5, 2sha256
3SM3
*/
public $PhoneCryptoType;
/**
* @var string MAC 地址
*/
public $Mac;
/**
* @var string 国际移动用户识别码
*/
public $Imsi;
/**
* @var string 姓名加密类型
0不加密默认值
1md5
2sha256
3SM3
*/
public $NameCryptoType;
/**
* @param string $PhoneNumber 电话号码(五选二)
* @param string $IdNumber Id号(五选二)
* @param string $BankCardNumber 银行卡号(五选二)
* @param string $UserIp 用户请求来源 IP(五选二)
* @param string $Imei 国际移动设备识别码(五选二)
* @param string $Idfa ios 系统广告标示符(五选二)
* @param string $Scene 业务场景 ID需要找技术对接
* @param string $Name 姓名
* @param string $EmailAddress 用户邮箱地址
* @param string $Address 用户住址
* @param string $AccountType 关联的腾讯帐号 QQ1
开放帐号微信: 2
* @param string $Uid 可选的 QQ 或微信 openid
* @param string $AppIdU qq 或微信分配给网站或应用的 appid用来
唯一标识网站或应用
* @param string $WifiMac WIFI MAC
* @param string $WifiSSID WIFI 服务集标识
* @param string $WifiBSSID WIFI-BSSID
* @param string $BusinessId 业务 ID在多个业务中使用此服务通过此
ID 区分统计数据
* @param string $IdCryptoType Id加密类型
0不加密默认值
1md5
2sha256
3SM3
* @param string $PhoneCryptoType 手机号加密类型
0不加密默认值
1md5, 2sha256
3SM3
* @param string $Mac MAC 地址
* @param string $Imsi 国际移动用户识别码
* @param string $NameCryptoType 姓名加密类型
0不加密默认值
1md5
2sha256
3SM3
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("IdNumber",$param) and $param["IdNumber"] !== null) {
$this->IdNumber = $param["IdNumber"];
}
if (array_key_exists("BankCardNumber",$param) and $param["BankCardNumber"] !== null) {
$this->BankCardNumber = $param["BankCardNumber"];
}
if (array_key_exists("UserIp",$param) and $param["UserIp"] !== null) {
$this->UserIp = $param["UserIp"];
}
if (array_key_exists("Imei",$param) and $param["Imei"] !== null) {
$this->Imei = $param["Imei"];
}
if (array_key_exists("Idfa",$param) and $param["Idfa"] !== null) {
$this->Idfa = $param["Idfa"];
}
if (array_key_exists("Scene",$param) and $param["Scene"] !== null) {
$this->Scene = $param["Scene"];
}
if (array_key_exists("Name",$param) and $param["Name"] !== null) {
$this->Name = $param["Name"];
}
if (array_key_exists("EmailAddress",$param) and $param["EmailAddress"] !== null) {
$this->EmailAddress = $param["EmailAddress"];
}
if (array_key_exists("Address",$param) and $param["Address"] !== null) {
$this->Address = $param["Address"];
}
if (array_key_exists("AccountType",$param) and $param["AccountType"] !== null) {
$this->AccountType = $param["AccountType"];
}
if (array_key_exists("Uid",$param) and $param["Uid"] !== null) {
$this->Uid = $param["Uid"];
}
if (array_key_exists("AppIdU",$param) and $param["AppIdU"] !== null) {
$this->AppIdU = $param["AppIdU"];
}
if (array_key_exists("WifiMac",$param) and $param["WifiMac"] !== null) {
$this->WifiMac = $param["WifiMac"];
}
if (array_key_exists("WifiSSID",$param) and $param["WifiSSID"] !== null) {
$this->WifiSSID = $param["WifiSSID"];
}
if (array_key_exists("WifiBSSID",$param) and $param["WifiBSSID"] !== null) {
$this->WifiBSSID = $param["WifiBSSID"];
}
if (array_key_exists("BusinessId",$param) and $param["BusinessId"] !== null) {
$this->BusinessId = $param["BusinessId"];
}
if (array_key_exists("IdCryptoType",$param) and $param["IdCryptoType"] !== null) {
$this->IdCryptoType = $param["IdCryptoType"];
}
if (array_key_exists("PhoneCryptoType",$param) and $param["PhoneCryptoType"] !== null) {
$this->PhoneCryptoType = $param["PhoneCryptoType"];
}
if (array_key_exists("Mac",$param) and $param["Mac"] !== null) {
$this->Mac = $param["Mac"];
}
if (array_key_exists("Imsi",$param) and $param["Imsi"] !== null) {
$this->Imsi = $param["Imsi"];
}
if (array_key_exists("NameCryptoType",$param) and $param["NameCryptoType"] !== null) {
$this->NameCryptoType = $param["NameCryptoType"];
}
}
}

View File

@@ -0,0 +1,126 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Afc\V20200226\Models;
use TencentCloud\Common\AbstractModel;
/**
* QueryAntiFraudVip返回参数结构体
*
* @method integer getFound() 获取表示该条记录能否查到1为能查到-1为查不到
* @method void setFound(integer $Found) 设置表示该条记录能否查到1为能查到-1为查不到
* @method integer getIdFound() 获取表示该条Id能否查到1为能查到-1为查不到
* @method void setIdFound(integer $IdFound) 设置表示该条Id能否查到1为能查到-1为查不到
* @method integer getRiskScore() 获取0~100;值越高 欺诈可能性越大
* @method void setRiskScore(integer $RiskScore) 设置0~100;值越高 欺诈可能性越大
* @method array getRiskInfo() 获取扩展字段,对风险类型的说明
注意:此字段可能返回 null表示取不到有效值。
* @method void setRiskInfo(array $RiskInfo) 设置扩展字段,对风险类型的说明
注意:此字段可能返回 null表示取不到有效值。
* @method string getCodeDesc() 获取业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @method void setCodeDesc(string $CodeDesc) 设置业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class QueryAntiFraudVipResponse extends AbstractModel
{
/**
* @var integer 表示该条记录能否查到1为能查到-1为查不到
*/
public $Found;
/**
* @var integer 表示该条Id能否查到1为能查到-1为查不到
*/
public $IdFound;
/**
* @var integer 0~100;值越高 欺诈可能性越大
*/
public $RiskScore;
/**
* @var array 扩展字段,对风险类型的说明
注意:此字段可能返回 null表示取不到有效值。
*/
public $RiskInfo;
/**
* @var string 业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
*/
public $CodeDesc;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $Found 表示该条记录能否查到1为能查到-1为查不到
* @param integer $IdFound 表示该条Id能否查到1为能查到-1为查不到
* @param integer $RiskScore 0~100;值越高 欺诈可能性越大
* @param array $RiskInfo 扩展字段,对风险类型的说明
注意:此字段可能返回 null表示取不到有效值。
* @param string $CodeDesc 业务侧错误码。成功时返回Success错误时返回具体业务错误原因。
注意:此字段可能返回 null表示取不到有效值。
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Found",$param) and $param["Found"] !== null) {
$this->Found = $param["Found"];
}
if (array_key_exists("IdFound",$param) and $param["IdFound"] !== null) {
$this->IdFound = $param["IdFound"];
}
if (array_key_exists("RiskScore",$param) and $param["RiskScore"] !== null) {
$this->RiskScore = $param["RiskScore"];
}
if (array_key_exists("RiskInfo",$param) and $param["RiskInfo"] !== null) {
$this->RiskInfo = [];
foreach ($param["RiskInfo"] as $key => $value){
$obj = new RiskDetail();
$obj->deserialize($value);
array_push($this->RiskInfo, $obj);
}
}
if (array_key_exists("CodeDesc",$param) and $param["CodeDesc"] !== null) {
$this->CodeDesc = $param["CodeDesc"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Afc\V20200226\Models;
use TencentCloud\Common\AbstractModel;
/**
* 扩展字段,对风险类型的说明
*
* @method integer getRiskCode() 获取风险码
* @method void setRiskCode(integer $RiskCode) 设置风险码
*/
class RiskDetail extends AbstractModel
{
/**
* @var integer 风险码
*/
public $RiskCode;
/**
* @param integer $RiskCode 风险码
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("RiskCode",$param) and $param["RiskCode"] !== null) {
$this->RiskCode = $param["RiskCode"];
}
}
}

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916;
use TencentCloud\Common\AbstractClient;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Credential;
use TencentCloud\Ame\V20190916\Models as Models;
/**
* @method Models\DescribeAuthInfoResponse DescribeAuthInfo(Models\DescribeAuthInfoRequest $req) 获取授权项目信息列表
* @method Models\DescribeCloudMusicResponse DescribeCloudMusic(Models\DescribeCloudMusicRequest $req) 获取云音乐播放信息接口
* @method Models\DescribeCloudMusicPurchasedResponse DescribeCloudMusicPurchased(Models\DescribeCloudMusicPurchasedRequest $req) 获取授权项目下已购云音乐列表
* @method Models\DescribeItemByIdResponse DescribeItemById(Models\DescribeItemByIdRequest $req) 根据歌曲ID查询歌曲信息
* @method Models\DescribeItemsResponse DescribeItems(Models\DescribeItemsRequest $req) 该服务后续会停用,不再建议使用
* @method Models\DescribeKTVMusicDetailResponse DescribeKTVMusicDetail(Models\DescribeKTVMusicDetailRequest $req) 根据 Id 查询歌曲的详细信息,包含基础信息及播放信息。
* @method Models\DescribeLyricResponse DescribeLyric(Models\DescribeLyricRequest $req) 根据接口的模式及歌曲ID来取得歌词信息。
* @method Models\DescribeMusicResponse DescribeMusic(Models\DescribeMusicRequest $req) 获取曲库包歌曲播放信息接口
* @method Models\DescribePackageItemsResponse DescribePackageItems(Models\DescribePackageItemsRequest $req) 获取曲库包下已核销歌曲列表接口
* @method Models\DescribePackagesResponse DescribePackages(Models\DescribePackagesRequest $req) 获取已购曲库包列表接口
* @method Models\DescribeStationsResponse DescribeStations(Models\DescribeStationsRequest $req) 该服务后续会停用,不再建议使用
* @method Models\ModifyMusicOnShelvesResponse ModifyMusicOnShelves(Models\ModifyMusicOnShelvesRequest $req) 根据资源方,需要变更的参数,请求该接口进行变更,为空的参数默认为无变更
* @method Models\PutMusicOnTheShelvesResponse PutMusicOnTheShelves(Models\PutMusicOnTheShelvesRequest $req) 根据资源方所传歌曲信息,进行歌曲上架,多个歌曲同时请求时,需构造复合结构进行请求
* @method Models\ReportDataResponse ReportData(Models\ReportDataRequest $req) 客户上报用户数据功能,为了更好地为用户提供优质服务
* @method Models\SearchKTVMusicsResponse SearchKTVMusics(Models\SearchKTVMusicsRequest $req) 根据搜索条件,返回匹配的歌曲列表。
* @method Models\TakeMusicOffShelvesResponse TakeMusicOffShelves(Models\TakeMusicOffShelvesRequest $req) 根据资源方所传MusicId进行将歌曲进行下架多个MusicId使用逗号隔开
*/
class AmeClient extends AbstractClient
{
/**
* @var string
*/
protected $endpoint = "ame.tencentcloudapi.com";
/**
* @var string
*/
protected $service = "ame";
/**
* @var string
*/
protected $version = "2019-09-16";
/**
* @param Credential $credential
* @param string $region
* @param ClientProfile|null $profile
* @throws TencentCloudSDKException
*/
function __construct($credential, $region, $profile=null)
{
parent::__construct($this->endpoint, $this->version, $credential, $region, $profile);
}
public function returnResponse($action, $response)
{
$respClass = "TencentCloud"."\\".ucfirst("ame")."\\"."V20190916\\Models"."\\".ucfirst($action)."Response";
$obj = new $respClass();
$obj->deserialize($response);
return $obj;
}
}

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* Album
*
* @method string getAlbumName() 获取专辑名
* @method void setAlbumName(string $AlbumName) 设置专辑名
* @method array getImagePathMap() 获取专辑图片大小及类别
注意:此字段可能返回 null表示取不到有效值。
* @method void setImagePathMap(array $ImagePathMap) 设置专辑图片大小及类别
注意:此字段可能返回 null表示取不到有效值。
*/
class Album extends AbstractModel
{
/**
* @var string 专辑名
*/
public $AlbumName;
/**
* @var array 专辑图片大小及类别
注意:此字段可能返回 null表示取不到有效值。
*/
public $ImagePathMap;
/**
* @param string $AlbumName 专辑名
* @param array $ImagePathMap 专辑图片大小及类别
注意:此字段可能返回 null表示取不到有效值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AlbumName",$param) and $param["AlbumName"] !== null) {
$this->AlbumName = $param["AlbumName"];
}
if (array_key_exists("ImagePathMap",$param) and $param["ImagePathMap"] !== null) {
$this->ImagePathMap = [];
foreach ($param["ImagePathMap"] as $key => $value){
$obj = new ImagePath();
$obj->deserialize($value);
array_push($this->ImagePathMap, $obj);
}
}
}
}

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* Artist
*
* @method string getArtistName() 获取歌手名
* @method void setArtistName(string $ArtistName) 设置歌手名
*/
class Artist extends AbstractModel
{
/**
* @var string 歌手名
*/
public $ArtistName;
/**
* @param string $ArtistName 歌手名
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("ArtistName",$param) and $param["ArtistName"] !== null) {
$this->ArtistName = $param["ArtistName"];
}
}
}

View File

@@ -0,0 +1,145 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* AuthInfo集合
*
* @method string getSubjectName() 获取主体名称
注意:此字段可能返回 null表示取不到有效值。
* @method void setSubjectName(string $SubjectName) 设置主体名称
注意:此字段可能返回 null表示取不到有效值。
* @method string getProjectName() 获取项目名称
注意:此字段可能返回 null表示取不到有效值。
* @method void setProjectName(string $ProjectName) 设置项目名称
注意:此字段可能返回 null表示取不到有效值。
* @method integer getAppScene() 获取应用场景
* @method void setAppScene(integer $AppScene) 设置应用场景
* @method integer getAppRegion() 获取应用地域
* @method void setAppRegion(integer $AppRegion) 设置应用地域
* @method integer getAuthPeriod() 获取授权时间
* @method void setAuthPeriod(integer $AuthPeriod) 设置授权时间
* @method integer getCommercialization() 获取是否可商业化
* @method void setCommercialization(integer $Commercialization) 设置是否可商业化
* @method integer getPlatform() 获取是否可跨平台
* @method void setPlatform(integer $Platform) 设置是否可跨平台
* @method string getId() 获取加密后Id
* @method void setId(string $Id) 设置加密后Id
*/
class AuthInfo extends AbstractModel
{
/**
* @var string 主体名称
注意:此字段可能返回 null表示取不到有效值。
*/
public $SubjectName;
/**
* @var string 项目名称
注意:此字段可能返回 null表示取不到有效值。
*/
public $ProjectName;
/**
* @var integer 应用场景
*/
public $AppScene;
/**
* @var integer 应用地域
*/
public $AppRegion;
/**
* @var integer 授权时间
*/
public $AuthPeriod;
/**
* @var integer 是否可商业化
*/
public $Commercialization;
/**
* @var integer 是否可跨平台
*/
public $Platform;
/**
* @var string 加密后Id
*/
public $Id;
/**
* @param string $SubjectName 主体名称
注意:此字段可能返回 null表示取不到有效值。
* @param string $ProjectName 项目名称
注意:此字段可能返回 null表示取不到有效值。
* @param integer $AppScene 应用场景
* @param integer $AppRegion 应用地域
* @param integer $AuthPeriod 授权时间
* @param integer $Commercialization 是否可商业化
* @param integer $Platform 是否可跨平台
* @param string $Id 加密后Id
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SubjectName",$param) and $param["SubjectName"] !== null) {
$this->SubjectName = $param["SubjectName"];
}
if (array_key_exists("ProjectName",$param) and $param["ProjectName"] !== null) {
$this->ProjectName = $param["ProjectName"];
}
if (array_key_exists("AppScene",$param) and $param["AppScene"] !== null) {
$this->AppScene = $param["AppScene"];
}
if (array_key_exists("AppRegion",$param) and $param["AppRegion"] !== null) {
$this->AppRegion = $param["AppRegion"];
}
if (array_key_exists("AuthPeriod",$param) and $param["AuthPeriod"] !== null) {
$this->AuthPeriod = $param["AuthPeriod"];
}
if (array_key_exists("Commercialization",$param) and $param["Commercialization"] !== null) {
$this->Commercialization = $param["Commercialization"];
}
if (array_key_exists("Platform",$param) and $param["Platform"] !== null) {
$this->Platform = $param["Platform"];
}
if (array_key_exists("Id",$param) and $param["Id"] !== null) {
$this->Id = $param["Id"];
}
}
}

View File

@@ -0,0 +1,101 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* 数据信息
*
* @method string getName() 获取Song Name
* @method void setName(string $Name) 设置Song Name
* @method string getVersion() 获取歌曲版本
* @method void setVersion(string $Version) 设置歌曲版本
* @method string getDuration() 获取歌曲总时长(非试听时长)
* @method void setDuration(string $Duration) 设置歌曲总时长(非试听时长)
* @method integer getAuditionBegin() 获取试听开始时间
* @method void setAuditionBegin(integer $AuditionBegin) 设置试听开始时间
* @method integer getAuditionEnd() 获取试听结束时间
* @method void setAuditionEnd(integer $AuditionEnd) 设置试听结束时间
*/
class DataInfo extends AbstractModel
{
/**
* @var string Song Name
*/
public $Name;
/**
* @var string 歌曲版本
*/
public $Version;
/**
* @var string 歌曲总时长(非试听时长)
*/
public $Duration;
/**
* @var integer 试听开始时间
*/
public $AuditionBegin;
/**
* @var integer 试听结束时间
*/
public $AuditionEnd;
/**
* @param string $Name Song Name
* @param string $Version 歌曲版本
* @param string $Duration 歌曲总时长(非试听时长)
* @param integer $AuditionBegin 试听开始时间
* @param integer $AuditionEnd 试听结束时间
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Name",$param) and $param["Name"] !== null) {
$this->Name = $param["Name"];
}
if (array_key_exists("Version",$param) and $param["Version"] !== null) {
$this->Version = $param["Version"];
}
if (array_key_exists("Duration",$param) and $param["Duration"] !== null) {
$this->Duration = $param["Duration"];
}
if (array_key_exists("AuditionBegin",$param) and $param["AuditionBegin"] !== null) {
$this->AuditionBegin = $param["AuditionBegin"];
}
if (array_key_exists("AuditionEnd",$param) and $param["AuditionEnd"] !== null) {
$this->AuditionEnd = $param["AuditionEnd"];
}
}
}

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeAuthInfo请求参数结构体
*
* @method integer getOffset() 获取偏移量Offset=Offset+Limit
* @method void setOffset(integer $Offset) 设置偏移量Offset=Offset+Limit
* @method integer getLimit() 获取数据条数
* @method void setLimit(integer $Limit) 设置数据条数
* @method string getKey() 获取搜索关键字
* @method void setKey(string $Key) 设置搜索关键字
*/
class DescribeAuthInfoRequest extends AbstractModel
{
/**
* @var integer 偏移量Offset=Offset+Limit
*/
public $Offset;
/**
* @var integer 数据条数
*/
public $Limit;
/**
* @var string 搜索关键字
*/
public $Key;
/**
* @param integer $Offset 偏移量Offset=Offset+Limit
* @param integer $Limit 数据条数
* @param string $Key 搜索关键字
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("Key",$param) and $param["Key"] !== null) {
$this->Key = $param["Key"];
}
}
}

View File

@@ -0,0 +1,82 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeAuthInfo返回参数结构体
*
* @method array getAuthInfo() 获取授权项目列表
* @method void setAuthInfo(array $AuthInfo) 设置授权项目列表
* @method integer getTotalCount() 获取总数
* @method void setTotalCount(integer $TotalCount) 设置总数
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeAuthInfoResponse extends AbstractModel
{
/**
* @var array 授权项目列表
*/
public $AuthInfo;
/**
* @var integer 总数
*/
public $TotalCount;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $AuthInfo 授权项目列表
* @param integer $TotalCount 总数
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AuthInfo",$param) and $param["AuthInfo"] !== null) {
$this->AuthInfo = [];
foreach ($param["AuthInfo"] as $key => $value){
$obj = new AuthInfo();
$obj->deserialize($value);
array_push($this->AuthInfo, $obj);
}
}
if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
$this->TotalCount = $param["TotalCount"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeCloudMusicPurchased请求参数结构体
*
* @method string getAuthInfoId() 获取授权项目Id
* @method void setAuthInfoId(string $AuthInfoId) 设置授权项目Id
*/
class DescribeCloudMusicPurchasedRequest extends AbstractModel
{
/**
* @var string 授权项目Id
*/
public $AuthInfoId;
/**
* @param string $AuthInfoId 授权项目Id
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AuthInfoId",$param) and $param["AuthInfoId"] !== null) {
$this->AuthInfoId = $param["AuthInfoId"];
}
}
}

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeCloudMusicPurchased返回参数结构体
*
* @method array getMusicOpenDetail() 获取云音乐列表
注意:此字段可能返回 null表示取不到有效值。
* @method void setMusicOpenDetail(array $MusicOpenDetail) 设置云音乐列表
注意:此字段可能返回 null表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeCloudMusicPurchasedResponse extends AbstractModel
{
/**
* @var array 云音乐列表
注意:此字段可能返回 null表示取不到有效值。
*/
public $MusicOpenDetail;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $MusicOpenDetail 云音乐列表
注意:此字段可能返回 null表示取不到有效值。
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("MusicOpenDetail",$param) and $param["MusicOpenDetail"] !== null) {
$this->MusicOpenDetail = [];
foreach ($param["MusicOpenDetail"] as $key => $value){
$obj = new MusicOpenDetail();
$obj->deserialize($value);
array_push($this->MusicOpenDetail, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeCloudMusic请求参数结构体
*
* @method string getMusicId() 获取歌曲Id
* @method void setMusicId(string $MusicId) 设置歌曲Id
* @method string getMusicType() 获取歌曲类型,可选值有:
<li>MP3-128K-FTW含有水印的试听资源</li>
<li>MP3-320K-FTD-P320kbps歌曲热门片段</li>
<li>MP3-320K-FTD320kbps已核验歌曲完整资源。</li>
默认为MP3-128K-FTW
* @method void setMusicType(string $MusicType) 设置歌曲类型,可选值有:
<li>MP3-128K-FTW含有水印的试听资源</li>
<li>MP3-320K-FTD-P320kbps歌曲热门片段</li>
<li>MP3-320K-FTD320kbps已核验歌曲完整资源。</li>
默认为MP3-128K-FTW
*/
class DescribeCloudMusicRequest extends AbstractModel
{
/**
* @var string 歌曲Id
*/
public $MusicId;
/**
* @var string 歌曲类型,可选值有:
<li>MP3-128K-FTW含有水印的试听资源</li>
<li>MP3-320K-FTD-P320kbps歌曲热门片段</li>
<li>MP3-320K-FTD320kbps已核验歌曲完整资源。</li>
默认为MP3-128K-FTW
*/
public $MusicType;
/**
* @param string $MusicId 歌曲Id
* @param string $MusicType 歌曲类型,可选值有:
<li>MP3-128K-FTW含有水印的试听资源</li>
<li>MP3-320K-FTD-P320kbps歌曲热门片段</li>
<li>MP3-320K-FTD320kbps已核验歌曲完整资源。</li>
默认为MP3-128K-FTW
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("MusicId",$param) and $param["MusicId"] !== null) {
$this->MusicId = $param["MusicId"];
}
if (array_key_exists("MusicType",$param) and $param["MusicType"] !== null) {
$this->MusicType = $param["MusicType"];
}
}
}

View File

@@ -0,0 +1,137 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeCloudMusic返回参数结构体
*
* @method string getMusicId() 获取歌曲Id
* @method void setMusicId(string $MusicId) 设置歌曲Id
* @method string getMusicName() 获取歌曲名称
* @method void setMusicName(string $MusicName) 设置歌曲名称
* @method integer getDuration() 获取歌曲时长
注意:此字段可能返回 null表示取不到有效值。
* @method void setDuration(integer $Duration) 设置歌曲时长
注意:此字段可能返回 null表示取不到有效值。
* @method string getMusicUrl() 获取歌曲链接
* @method void setMusicUrl(string $MusicUrl) 设置歌曲链接
* @method string getMusicImageUrl() 获取歌曲图片
注意:此字段可能返回 null表示取不到有效值。
* @method void setMusicImageUrl(string $MusicImageUrl) 设置歌曲图片
注意:此字段可能返回 null表示取不到有效值。
* @method array getSingers() 获取歌手列表
注意:此字段可能返回 null表示取不到有效值。
* @method void setSingers(array $Singers) 设置歌手列表
注意:此字段可能返回 null表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeCloudMusicResponse extends AbstractModel
{
/**
* @var string 歌曲Id
*/
public $MusicId;
/**
* @var string 歌曲名称
*/
public $MusicName;
/**
* @var integer 歌曲时长
注意:此字段可能返回 null表示取不到有效值。
*/
public $Duration;
/**
* @var string 歌曲链接
*/
public $MusicUrl;
/**
* @var string 歌曲图片
注意:此字段可能返回 null表示取不到有效值。
*/
public $MusicImageUrl;
/**
* @var array 歌手列表
注意:此字段可能返回 null表示取不到有效值。
*/
public $Singers;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $MusicId 歌曲Id
* @param string $MusicName 歌曲名称
* @param integer $Duration 歌曲时长
注意:此字段可能返回 null表示取不到有效值。
* @param string $MusicUrl 歌曲链接
* @param string $MusicImageUrl 歌曲图片
注意:此字段可能返回 null表示取不到有效值。
* @param array $Singers 歌手列表
注意:此字段可能返回 null表示取不到有效值。
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("MusicId",$param) and $param["MusicId"] !== null) {
$this->MusicId = $param["MusicId"];
}
if (array_key_exists("MusicName",$param) and $param["MusicName"] !== null) {
$this->MusicName = $param["MusicName"];
}
if (array_key_exists("Duration",$param) and $param["Duration"] !== null) {
$this->Duration = $param["Duration"];
}
if (array_key_exists("MusicUrl",$param) and $param["MusicUrl"] !== null) {
$this->MusicUrl = $param["MusicUrl"];
}
if (array_key_exists("MusicImageUrl",$param) and $param["MusicImageUrl"] !== null) {
$this->MusicImageUrl = $param["MusicImageUrl"];
}
if (array_key_exists("Singers",$param) and $param["Singers"] !== null) {
$this->Singers = $param["Singers"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeItemById请求参数结构体
*
* @method string getItemIDs() 获取歌曲ID目前暂不支持批量查询
* @method void setItemIDs(string $ItemIDs) 设置歌曲ID目前暂不支持批量查询
*/
class DescribeItemByIdRequest extends AbstractModel
{
/**
* @var string 歌曲ID目前暂不支持批量查询
*/
public $ItemIDs;
/**
* @param string $ItemIDs 歌曲ID目前暂不支持批量查询
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("ItemIDs",$param) and $param["ItemIDs"] !== null) {
$this->ItemIDs = $param["ItemIDs"];
}
}
}

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeItemById返回参数结构体
*
* @method array getItems() 获取歌曲信息
注意:此字段可能返回 null表示取不到有效值。
* @method void setItems(array $Items) 设置歌曲信息
注意:此字段可能返回 null表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeItemByIdResponse extends AbstractModel
{
/**
* @var array 歌曲信息
注意:此字段可能返回 null表示取不到有效值。
*/
public $Items;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $Items 歌曲信息
注意:此字段可能返回 null表示取不到有效值。
* @param string $RequestId 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Items",$param) and $param["Items"] !== null) {
$this->Items = [];
foreach ($param["Items"] as $key => $value){
$obj = new Item();
$obj->deserialize($value);
array_push($this->Items, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Ame\V20190916\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeItems请求参数结构体
*
* @method integer getOffset() 获取offset (Default = 0)(当前页-1) * Limit
* @method void setOffset(integer $Offset) 设置offset (Default = 0)(当前页-1) * Limit
* @method integer getLimit() 获取条数必须大于0最大值为30
* @method void setLimit(integer $Limit) 设置条数必须大于0最大值为30
* @method string getCategoryId() 获取(电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
* @method void setCategoryId(string $CategoryId) 设置(电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
* @method string getCategoryCode() 获取(电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
* @method void setCategoryCode(string $CategoryCode) 设置(电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
*/
class DescribeItemsRequest extends AbstractModel
{
/**
* @var integer offset (Default = 0)(当前页-1) * Limit
*/
public $Offset;
/**
* @var integer 条数必须大于0最大值为30
*/
public $Limit;
/**
* @var string (电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
*/
public $CategoryId;
/**
* @var string (电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
*/
public $CategoryCode;
/**
* @param integer $Offset offset (Default = 0)(当前页-1) * Limit
* @param integer $Limit 条数必须大于0最大值为30
* @param string $CategoryId (电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
* @param string $CategoryCode (电台/歌单IDCategoryId和CategoryCode两个必传1个可以从<a href="https://cloud.tencent.com/document/product/1155/40109">获取分类内容Station列表接口</a>中获取。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("CategoryId",$param) and $param["CategoryId"] !== null) {
$this->CategoryId = $param["CategoryId"];
}
if (array_key_exists("CategoryCode",$param) and $param["CategoryCode"] !== null) {
$this->CategoryCode = $param["CategoryCode"];
}
}
}

Some files were not shown because too many files have changed in this diff Show More