添加网站文件
This commit is contained in:
52940
vendor/tencentcloud/tencentcloud-sdk-php/CHANGELOG.md
vendored
Normal file
52940
vendor/tencentcloud/tencentcloud-sdk-php/CHANGELOG.md
vendored
Normal file
File diff suppressed because it is too large
Load Diff
201
vendor/tencentcloud/tencentcloud-sdk-php/LICENSE
vendored
Normal file
201
vendor/tencentcloud/tencentcloud-sdk-php/LICENSE
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
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.
|
||||
164
vendor/tencentcloud/tencentcloud-sdk-php/README.MD
vendored
Normal file
164
vendor/tencentcloud/tencentcloud-sdk-php/README.MD
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
# 简介
|
||||
欢迎使用腾讯云开发者工具套件(SDK)3.0,SDK3.0是云 API3.0 平台的配套工具。目前已经支持cvm、vpc、cbs等产品,后续所有的云服务产品都会接入进来。新版SDK实现了统一化,具有各个语言版本的SDK使用方法相同,接口调用方式相同,统一的错误码和返回包格式这些优点。
|
||||
为方便 PHP 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 PHP 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 PHP SDK 并开始调用。
|
||||
# 依赖环境
|
||||
1. PHP 5.6.0 版本及以上
|
||||
2. 从腾讯云控制台 开通相应产品
|
||||
3. 获取 SecretID、SecretKey 以及调用地址(endpoint),endpoint 一般形式为*.tencentcloudapi.com,如CVM 的调用地址为 cvm.tencentcloudapi.com,具体参考各产品说明。
|
||||
|
||||
# 获取安装
|
||||
安装 PHP SDK 前,先获取安全凭证。在第一次使用云API之前,用户首先需要在腾讯云控制台上申请安全凭证,安全凭证包括 SecretID 和 SecretKey, SecretID 是用于标识 API 调用者的身份,SecretKey是用于加密签名字符串和服务器端验证签名字符串的密钥。SecretKey 必须严格保管,避免泄露。
|
||||
## 通过 Composer 安装
|
||||
通过 Composer 获取安装是使用 PHP SDK 的推荐方法,Composer 是 PHP 的依赖管理工具,支持您项目所需的依赖项,并将其安装到项目中。关于 Composer 详细可参考 Composer 官网 。
|
||||
1. 安装Composer:
|
||||
windows环境请访问[Composer官网](https://getcomposer.org/download/)下载安装包安装。
|
||||
|
||||
unix环境在命令行中执行以下命令安装。
|
||||
> curl -sS https://getcomposer.org/installer | php
|
||||
|
||||
> sudo mv composer.phar /usr/local/bin/composer
|
||||
2. 建议中国大陆地区的用户设置腾讯云镜像源:`composer config -g repos.packagist composer https://mirrors.tencent.com/composer/`
|
||||
3. 执行命令 `composer require tencentcloud/tencentcloud-sdk-php` 添加依赖。如果只想安装某个产品的,可以使用`composer require tencentcloud/产品名`,例如`composer require tencentcloud/cvm`。
|
||||
4. 在代码中添加以下引用代码。注意:如下仅为示例,composer 会在项目根目录下生成 vendor 目录,`/path/to/`为项目根目录的实际绝对路径,如果是在当前目录执行,可以省略绝对路径。
|
||||
|
||||
> require '/path/to/vendor/autoload.php';
|
||||
|
||||
# 示例
|
||||
|
||||
推荐使用 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer),提供在线调用、签名验证、SDK 代码生成和快速检索接口等能力,能显著降低使用云 API 3.0 和 SDK 的难度。
|
||||
|
||||
还可以参考 SDK 仓库中 [examples](https://github.com/TencentCloud/tencentcloud-sdk-php/tree/master/examples) 目录中的示例,展示了更多的用法。
|
||||
|
||||
下面以查询实例接口DescribeInstances为例:
|
||||
|
||||
### 简略版
|
||||
|
||||
```php
|
||||
<?php
|
||||
require_once '/path/to/vendor/autoload.php';
|
||||
|
||||
use TencentCloud\Cvm\V20170312\Models\DescribeInstancesRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
|
||||
try {
|
||||
$cred = new Credential("secretId", "secretKey");
|
||||
$client = new CvmClient($cred, "ap-guangzhou");
|
||||
$req = new DescribeInstancesRequest();
|
||||
$resp = $client->DescribeInstances($req);
|
||||
print_r($resp->toJsonString());
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
```
|
||||
|
||||
### 详细版
|
||||
|
||||
```php
|
||||
<?php
|
||||
require_once '/path/to/vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Cvm\V20170312\CvmClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Cvm\V20170312\Models\DescribeInstancesRequest;
|
||||
use TencentCloud\Cvm\V20170312\Models\Filter;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("secretId", "secretKey");
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
// 配置代理
|
||||
// $httpProfile->setProxy("https://ip:port");
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("cvm.ap-shanghai.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以cvm为例)的client对象,clientProfile是可选的
|
||||
$client = new CvmClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个cvm实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new DescribeInstancesRequest();
|
||||
|
||||
// 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
// 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
$respFilter = new Filter(); // 创建Filter对象, 以zone的维度来查询cvm实例
|
||||
$respFilter->Name = "zone";
|
||||
$respFilter->Values = ["ap-shanghai-1", "ap-shanghai-2"];
|
||||
$req->Filters = [$respFilter]; // Filters 是成员为Filter对象的列表
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->DescribeInstances($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
# 常见问题
|
||||
|
||||
## 代理
|
||||
|
||||
如果是有代理的环境下,需要设置系统环境变量 `https_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
||||
|
||||
或者使用 GuzzleHttp 代理配置:
|
||||
```php
|
||||
$cred = new Credential("secretId", "secretKey");
|
||||
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setProxy('https://ip:port');
|
||||
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
$client = new OcrClient($cred, 'ap-beijing', $this->clientProfile);
|
||||
```
|
||||
|
||||
## 证书问题
|
||||
|
||||
如果你的 PHP 环境证书有问题,可能会遇到报错,类似于 `cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html`,请尝试按如下步骤解决:
|
||||
|
||||
1. 到 [https://curl.haxx.se/ca/cacert.pem](https://curl.haxx.se/ca/cacert.pem) 下载证书文件 `cacert.pem`,将其保存到 PHP 安装路径下。
|
||||
2. 编辑 `php.ini` 文件,删除 `curl.cainfo` 配置项前的分号注释符(;),值设置为保存的证书文件 `cacert.pem` 的绝对路径。
|
||||
3. 重启依赖 PHP 的服务。
|
||||
|
||||
## php_curl 扩展
|
||||
|
||||
此 SDK 依赖的 GuzzleHttp 需要开启 php_curl 扩展,查看环境上的 php.ini 环境确认是否已启用,例如在 Linux 环境下,PHP 7.1 版本,托管在 apache 下的服务,可以打开 /etc/php/7.1/apache2/php.ini 中查看 extension=php_curl.dll 配置项是否已被注释,请删除此项配置前的注释符并重启 apache。
|
||||
|
||||
## Web 访问异常
|
||||
|
||||
命令行下执行正常,但是放在 Web 服务器执行则报错:
|
||||
|
||||
cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
|
||||
|
||||
此问题出现情况不一。可以运行 `php -r "echo sys_get_temp_dir();"` 打印系统默认临时目录绝对路径,然后在 `php.ini` 配置 `sys_temp_dir` 为这个值尝试是否能解决。
|
||||
|
||||
## 源码安装问题
|
||||
|
||||
为了支持部分源码安装的需要,我们将依赖的包文件放在 vendor 目录中,又考虑到不能造成对 composer 的不兼容,github 不得不设置禁止导出 vendor 目录,造成必须使用 `git clone` 命令才能拿到 vendor 目录的情况,对一些不熟悉 github 的用户造成了困扰。从 3.0.188 版本开始,我们暂时移除了源码安装,必须使用 composer 安装 SDK 和依赖的包。
|
||||
|
||||
# 旧版SDK
|
||||
新版SDK兼容旧版SDK。旧版本的SDK存放于QcloudApi目录,但不再维护更新,推荐使用新版SDK。
|
||||
28
vendor/tencentcloud/tencentcloud-sdk-php/composer.json
vendored
Normal file
28
vendor/tencentcloud/tencentcloud-sdk-php/composer.json
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "tencentcloud/tencentcloud-sdk-php",
|
||||
"description": "TencentCloudApi php sdk",
|
||||
"type": "library",
|
||||
"homepage": "https://github.com/TencentCloud/tencentcloud-sdk-php",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "coolli",
|
||||
"email": "tencentcloudapi@tencent.com",
|
||||
"homepage": "https://cloud.tencent.com/document/sdk/PHP",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6.0",
|
||||
"guzzlehttp/guzzle": "^6.3 || ^7.0.1",
|
||||
"guzzlehttp/psr7": "^1.4"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/QcloudApi/QcloudApi.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"TencentCloud\\": "./src/TencentCloud"
|
||||
}
|
||||
}
|
||||
}
|
||||
69
vendor/tencentcloud/tencentcloud-sdk-php/examples/cvm/v20170312/DescribeInstances.php
vendored
Normal file
69
vendor/tencentcloud/tencentcloud-sdk-php/examples/cvm/v20170312/DescribeInstances.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Cvm\V20170312\CvmClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Cvm\V20170312\Models\DescribeInstancesRequest;
|
||||
use TencentCloud\Cvm\V20170312\Models\Filter;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
//$cred = new Credential("secretId", "secretKey");
|
||||
$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("cvm.ap-shanghai.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
//$httpProfile->setRootDomain("ap-shanghai.tencentcloudapi.com"); // 指定根域名,默认为tencentcloudapi.com
|
||||
//$httpProfile->setKeepAlive(true);
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以cvm为例)的client对象,clientProfile是可选的
|
||||
$client = new CvmClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个cvm实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new DescribeInstancesRequest();
|
||||
|
||||
// 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
// 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
$respFilter = new Filter(); // 创建Filter对象, 以zone的维度来查询cvm实例
|
||||
$respFilter->Name = "zone";
|
||||
$respFilter->Values = ["ap-shanghai-1", "ap-shanghai-2"];
|
||||
$req->Filters = [$respFilter]; // Filters 是成员为Filter对象的列表
|
||||
|
||||
// 这里还支持以标准json格式的string来赋值请求参数的方式。下面的代码跟上面的参数赋值是等效的
|
||||
$params = [
|
||||
"Filters" => [
|
||||
[
|
||||
"Name" => "zone",
|
||||
"Values" => ["ap-shanghai-1", "ap-shanghai-2"]
|
||||
]
|
||||
]
|
||||
];
|
||||
$req->fromJsonString(json_encode($params));
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->DescribeInstances($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
29
vendor/tencentcloud/tencentcloud-sdk-php/examples/cvm/v20170312/DescribeZones.php
vendored
Normal file
29
vendor/tencentcloud/tencentcloud-sdk-php/examples/cvm/v20170312/DescribeZones.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Cvm\V20170312\CvmClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Cvm\V20170312\Models\DescribeZonesRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
$clientProfile = new ClientProfile();
|
||||
//$clientProfile->setLanguage(ClientProfile::$ZH_CN);
|
||||
$clientProfile->setSignMethod(ClientProfile::$SIGN_HMAC_SHA256);
|
||||
// # 实例化要请求产品(以cvm为例)的client对象
|
||||
$client = new CvmClient($cred, "ap-guangzhou", $clientProfile);
|
||||
|
||||
// 实例化一个请求对象
|
||||
$req = new DescribeZonesRequest();
|
||||
|
||||
// 通过client对象调用想要访问的接口,需要传入请求对象
|
||||
$resp = $client->DescribeZones($req);
|
||||
|
||||
print_r($resp->toJsonString());
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
49
vendor/tencentcloud/tencentcloud-sdk-php/examples/ecc/v20181213/ecc_correct.php
vendored
Normal file
49
vendor/tencentcloud/tencentcloud-sdk-php/examples/ecc/v20181213/ecc_correct.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Ecc\V20181213\EccClient;
|
||||
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Ecc\V20181213\Models\ECCRequest;
|
||||
use TencentCloud\Ecc\V20181213\Models\ECCResponse;
|
||||
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("", "");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
//$httpProfile->setReqMethod("post"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("ecc.ap-shanghai.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("HmacSHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
$client = new EccClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个ecc实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new ECCRequest();
|
||||
$req->Content = "this composition content";
|
||||
|
||||
$resp = $client->ECC($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
50
vendor/tencentcloud/tencentcloud-sdk-php/examples/ecc/v20181213/ecc_ocr.php
vendored
Normal file
50
vendor/tencentcloud/tencentcloud-sdk-php/examples/ecc/v20181213/ecc_ocr.php
vendored
Normal file
File diff suppressed because one or more lines are too long
49
vendor/tencentcloud/tencentcloud-sdk-php/examples/hcm/v20181106/hcm_ocr.php
vendored
Normal file
49
vendor/tencentcloud/tencentcloud-sdk-php/examples/hcm/v20181106/hcm_ocr.php
vendored
Normal file
File diff suppressed because one or more lines are too long
30
vendor/tencentcloud/tencentcloud-sdk-php/examples/scf/v20180416/ListFunctions.php
vendored
Normal file
30
vendor/tencentcloud/tencentcloud-sdk-php/examples/scf/v20180416/ListFunctions.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
use TencentCloud\Common\Credential;
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Scf\V20180416\ScfClient;
|
||||
use TencentCloud\Scf\V20180416\Models\ListFunctionsRequest;
|
||||
try {
|
||||
$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setEndpoint("scf.tencentcloudapi.com");
|
||||
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
$client = new ScfClient($cred, "ap-guangzhou", $clientProfile);
|
||||
|
||||
$req = new ListFunctionsRequest();
|
||||
|
||||
$params = '{}';
|
||||
$req->fromJsonString($params);
|
||||
|
||||
|
||||
$resp = $client->ListFunctions($req);
|
||||
|
||||
print_r($resp->toJsonString());
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
73
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/CallbackStatusStatistics.php
vendored
Normal file
73
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/CallbackStatusStatistics.php
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Sms\V20190711\SmsClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Sms\V20190711\Models\CallbackStatusStatisticsRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
/* 必要步骤:
|
||||
* 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。
|
||||
* 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
* 你也可以直接在代码中写死密钥对,但是小心不要将代码复制、上传或者分享给他人,
|
||||
* 以免泄露密钥对危及你的财产安全。
|
||||
* CAM密匙查询: https://console.cloud.tencent.com/cam/capi*/
|
||||
|
||||
$cred = new Credential("xxx", "xxx");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("sms.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以sms为例)的client对象,clientProfile是可选的
|
||||
$client = new SmsClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个 sms 发送短信请求对象,每个接口都会对应一个request对象。
|
||||
$req = new CallbackStatusStatisticsRequest();
|
||||
|
||||
/* 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
* 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
* 基本类型的设置:
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/sms/smslist
|
||||
* sms helper: https://cloud.tencent.com/document/product/382/3773 */
|
||||
|
||||
/* 短信应用ID: 短信SdkAppid在 [短信控制台] 添加应用后生成的实际SdkAppid,示例如1400006666 */
|
||||
$req->SmsSdkAppid = "1400787878";
|
||||
/* 拉取最大条数,最多100条 */
|
||||
$req->Limit = 10;
|
||||
/* 偏移量 注:目前固定设置为0 */
|
||||
$req->Offset = 0;
|
||||
/* 开始时间,yyyymmddhh 需要拉取的起始时间,精确到小时 */
|
||||
$req->StartDateTime = "2019122500";
|
||||
/* 结束时间,yyyymmddhh 需要拉取的截止时间,精确到小时
|
||||
* 注:EndDataTime 必须大于 StartDateTime */
|
||||
$req->EndDataTime = "2019122523";
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->CallbackStatusStatistics($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
67
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/PullSmsReplyStatus.php
vendored
Normal file
67
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/PullSmsReplyStatus.php
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Sms\V20190711\SmsClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Sms\V20190711\Models\PullSmsReplyStatusRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
/* 必要步骤:
|
||||
* 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。
|
||||
* 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
* 你也可以直接在代码中写死密钥对,但是小心不要将代码复制、上传或者分享给他人,
|
||||
* 以免泄露密钥对危及你的财产安全。
|
||||
* CAM密匙查询: https://console.cloud.tencent.com/cam/capi*/
|
||||
|
||||
$cred = new Credential("xxx", "xxx");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("sms.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以sms为例)的client对象,clientProfile是可选的
|
||||
$client = new SmsClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个 sms 发送短信请求对象,每个接口都会对应一个request对象。
|
||||
$req = new PullSmsReplyStatusRequest();
|
||||
|
||||
/* 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
* 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
* 基本类型的设置:
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/sms/smslist
|
||||
* sms helper: https://cloud.tencent.com/document/product/382/3773 */
|
||||
|
||||
/* 短信应用ID: 短信SdkAppid在 [短信控制台] 添加应用后生成的实际SdkAppid,示例如1400006666 */
|
||||
$req->SmsSdkAppid = "1400787878";
|
||||
/* 拉取最大条数,最多100条 */
|
||||
$req->Limit = 10;
|
||||
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->PullSmsReplyStatus($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Sms\V20190711\SmsClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Sms\V20190711\Models\PullSmsReplyStatusByPhoneNumberRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
/* 必要步骤:
|
||||
* 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。
|
||||
* 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
* 你也可以直接在代码中写死密钥对,但是小心不要将代码复制、上传或者分享给他人,
|
||||
* 以免泄露密钥对危及你的财产安全。
|
||||
* CAM密匙查询: https://console.cloud.tencent.com/cam/capi*/
|
||||
|
||||
$cred = new Credential("xxx", "xxx");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("sms.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以sms为例)的client对象,clientProfile是可选的
|
||||
$client = new SmsClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个 sms 发送短信请求对象,每个接口都会对应一个request对象。
|
||||
$req = new PullSmsReplyStatusByPhoneNumberRequest();
|
||||
|
||||
/* 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
* 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
* 基本类型的设置:
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/sms/smslist
|
||||
* sms helper: https://cloud.tencent.com/document/product/382/3773 */
|
||||
|
||||
/* 短信应用ID: 短信SdkAppid在 [短信控制台] 添加应用后生成的实际SdkAppid,示例如1400006666 */
|
||||
$req->SmsSdkAppid = "1400787878";
|
||||
/* 拉取最大条数,最多100条 */
|
||||
$req->Limit = 10;
|
||||
/* 偏移量 注:目前固定设置为0 */
|
||||
$req->Offset = 0;
|
||||
/* 下发手机号码,采用 e.164 标准,+[国家或地区码][手机号]
|
||||
* 示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号*/
|
||||
$req->PhoneNumber = "+8613711112222";
|
||||
/* 拉取起始时间,UNIX 时间戳(时间:秒) */
|
||||
$req->SendDateTime = 1577232000;
|
||||
|
||||
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->PullSmsReplyStatusByPhoneNumber($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
67
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/PullSmsSendStatus.php
vendored
Normal file
67
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/PullSmsSendStatus.php
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Sms\V20190711\SmsClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Sms\V20190711\Models\PullSmsSendStatusRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
/* 必要步骤:
|
||||
* 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。
|
||||
* 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
* 你也可以直接在代码中写死密钥对,但是小心不要将代码复制、上传或者分享给他人,
|
||||
* 以免泄露密钥对危及你的财产安全。
|
||||
* CAM密匙查询: https://console.cloud.tencent.com/cam/capi*/
|
||||
|
||||
$cred = new Credential("xxx", "xxx");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("sms.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以sms为例)的client对象,clientProfile是可选的
|
||||
$client = new SmsClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个 sms 发送短信请求对象,每个接口都会对应一个request对象。
|
||||
$req = new PullSmsSendStatusRequest();
|
||||
|
||||
/* 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
* 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
* 基本类型的设置:
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/sms/smslist
|
||||
* sms helper: https://cloud.tencent.com/document/product/382/3773 */
|
||||
|
||||
/* 短信应用ID: 短信SdkAppid在 [短信控制台] 添加应用后生成的实际SdkAppid,示例如1400006666 */
|
||||
$req->SmsSdkAppid = "1400787878";
|
||||
/* 拉取最大条数,最多100条 */
|
||||
$req->Limit = 10;
|
||||
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->PullSmsSendStatus($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Sms\V20190711\SmsClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Sms\V20190711\Models\PullSmsSendStatusByPhoneNumberRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
/* 必要步骤:
|
||||
* 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。
|
||||
* 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
* 你也可以直接在代码中写死密钥对,但是小心不要将代码复制、上传或者分享给他人,
|
||||
* 以免泄露密钥对危及你的财产安全。
|
||||
* CAM密匙查询: https://console.cloud.tencent.com/cam/capi*/
|
||||
|
||||
$cred = new Credential("xxx", "xxx");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("sms.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以sms为例)的client对象,clientProfile是可选的
|
||||
$client = new SmsClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个 sms 发送短信请求对象,每个接口都会对应一个request对象。
|
||||
$req = new PullSmsSendStatusByPhoneNumberRequest();
|
||||
|
||||
/* 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
* 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
* 基本类型的设置:
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/sms/smslist
|
||||
* sms helper: https://cloud.tencent.com/document/product/382/3773 */
|
||||
|
||||
/* 短信应用ID: 短信SdkAppid在 [短信控制台] 添加应用后生成的实际SdkAppid,示例如1400006666 */
|
||||
$req->SmsSdkAppid = "1400787878";
|
||||
/* 拉取最大条数,最多100条 */
|
||||
$req->Limit = 10;
|
||||
/* 偏移量 注:目前固定设置为0 */
|
||||
$req->Offset = 0;
|
||||
/* 下发手机号码,采用 e.164 标准,+[国家或地区码][手机号]
|
||||
* 示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号*/
|
||||
$req->PhoneNumber = "+8613711112222";
|
||||
/* 拉取起始时间,UNIX 时间戳(时间:秒) */
|
||||
$req->SendDateTime = 1577232000;
|
||||
|
||||
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->PullSmsSendStatusByPhoneNumber($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
80
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/SendSms.php
vendored
Normal file
80
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/SendSms.php
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Sms\V20190711\SmsClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Sms\V20190711\Models\SendSmsRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
/* 必要步骤:
|
||||
* 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。
|
||||
* 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
* 你也可以直接在代码中写死密钥对,但是小心不要将代码复制、上传或者分享给他人,
|
||||
* 以免泄露密钥对危及你的财产安全。
|
||||
* CAM密匙查询: https://console.cloud.tencent.com/cam/capi*/
|
||||
|
||||
$cred = new Credential("xxx", "xxx");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("sms.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以sms为例)的client对象,clientProfile是可选的
|
||||
$client = new SmsClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个 sms 发送短信请求对象,每个接口都会对应一个request对象。
|
||||
$req = new SendSmsRequest();
|
||||
|
||||
/* 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
* 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
* 基本类型的设置:
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/sms/smslist
|
||||
* sms helper: https://cloud.tencent.com/document/product/382/3773 */
|
||||
|
||||
/* 短信应用ID: 短信SdkAppid在 [短信控制台] 添加应用后生成的实际SdkAppid,示例如1400006666 */
|
||||
$req->SmsSdkAppid = "1400787878";
|
||||
/* 短信签名内容: 使用 UTF-8 编码,必须填写已审核通过的签名,签名信息可登录 [短信控制台] 查看 */
|
||||
$req->Sign = "xxx";
|
||||
/* 短信码号扩展号: 默认未开通,如需开通请联系 [sms helper] */
|
||||
$req->ExtendCode = "0";
|
||||
/* 下发手机号码,采用 e.164 标准,+[国家或地区码][手机号]
|
||||
* 示例如:+8613711112222, 其中前面有一个+号 ,86为国家码,13711112222为手机号,最多不要超过200个手机号*/
|
||||
$req->PhoneNumberSet = array("+8613711112222");
|
||||
/* 国际/港澳台短信 senderid: 国内短信填空,默认未开通,如需开通请联系 [sms helper] */
|
||||
$req->SenderId = "xxx";
|
||||
/* 用户的 session 内容: 可以携带用户侧 ID 等上下文信息,server 会原样返回 */
|
||||
$req->SessionContext = "xxx";
|
||||
/* 模板 ID: 必须填写已审核通过的模板 ID。模板ID可登录 [短信控制台] 查看 */
|
||||
$req->TemplateID = "449739";
|
||||
/* 模板参数: 若无模板参数,则设置为空*/
|
||||
$req->TemplateParamSet = array("0");
|
||||
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->SendSms($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
73
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/SendStatusStatistics.php
vendored
Normal file
73
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/SendStatusStatistics.php
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Sms\V20190711\SmsClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Sms\V20190711\Models\SendStatusStatisticsRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
/* 必要步骤:
|
||||
* 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。
|
||||
* 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
* 你也可以直接在代码中写死密钥对,但是小心不要将代码复制、上传或者分享给他人,
|
||||
* 以免泄露密钥对危及你的财产安全。
|
||||
* CAM密匙查询: https://console.cloud.tencent.com/cam/capi*/
|
||||
|
||||
$cred = new Credential("xxx", "xxx");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("sms.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以sms为例)的client对象,clientProfile是可选的
|
||||
$client = new SmsClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个 sms 发送短信请求对象,每个接口都会对应一个request对象。
|
||||
$req = new SendStatusStatisticsRequest();
|
||||
|
||||
/* 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
* 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
* 基本类型的设置:
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/sms/smslist
|
||||
* sms helper: https://cloud.tencent.com/document/product/382/3773 */
|
||||
|
||||
/* 短信应用ID: 短信SdkAppid在 [短信控制台] 添加应用后生成的实际SdkAppid,示例如1400006666 */
|
||||
$req->SmsSdkAppid = "1400787878";
|
||||
/* 拉取最大条数,最多100条 */
|
||||
$req->Limit = 10;
|
||||
/* 偏移量 注:目前固定设置为0 */
|
||||
$req->Offset = 0;
|
||||
/* 开始时间,yyyymmddhh 需要拉取的起始时间,精确到小时 */
|
||||
$req->StartDateTime = "2019122500";
|
||||
/* 结束时间,yyyymmddhh 需要拉取的截止时间,精确到小时
|
||||
* 注:EndDataTime 必须大于 StartDateTime */
|
||||
$req->EndDataTime = "2019122523";
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->SendStatusStatistics($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
68
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/SmsPackagesStatistics.php
vendored
Normal file
68
vendor/tencentcloud/tencentcloud-sdk-php/examples/sms/v20190711/SmsPackagesStatistics.php
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Sms\V20190711\SmsClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Sms\V20190711\Models\SmsPackagesStatisticsRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
/* 必要步骤:
|
||||
* 实例化一个认证对象,入参需要传入腾讯云账户密钥对secretId,secretKey。
|
||||
* 这里采用的是从环境变量读取的方式,需要在环境变量中先设置这两个值。
|
||||
* 你也可以直接在代码中写死密钥对,但是小心不要将代码复制、上传或者分享给他人,
|
||||
* 以免泄露密钥对危及你的财产安全。
|
||||
* CAM密匙查询: https://console.cloud.tencent.com/cam/capi*/
|
||||
|
||||
$cred = new Credential("xxx", "xxx");
|
||||
//$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"), getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("sms.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以sms为例)的client对象,clientProfile是可选的
|
||||
$client = new SmsClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个 sms 发送短信请求对象,每个接口都会对应一个request对象。
|
||||
$req = new SmsPackagesStatisticsRequest();
|
||||
|
||||
/* 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
* 你可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
* 基本类型的设置:
|
||||
* 帮助链接:
|
||||
* 短信控制台: https://console.cloud.tencent.com/sms/smslist
|
||||
* sms helper: https://cloud.tencent.com/document/product/382/3773 */
|
||||
|
||||
/* 短信应用ID: 短信SdkAppid在 [短信控制台] 添加应用后生成的实际SdkAppid,示例如1400006666 */
|
||||
$req->SmsSdkAppid = "1400787878";
|
||||
/* 最大上限(需要拉取的套餐包个数) */
|
||||
$req->Limit = 10;
|
||||
/* 偏移量 注:目前固定设置为0 */
|
||||
$req->Offset = 0;
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->SmsPackagesStatistics($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
52
vendor/tencentcloud/tencentcloud-sdk-php/examples/soe/v20180724/init_oral_process.php
vendored
Normal file
52
vendor/tencentcloud/tencentcloud-sdk-php/examples/soe/v20180724/init_oral_process.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Soe\V20180724\SoeClient;
|
||||
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Soe\V20180724\Models\InitOralProcessRequest;
|
||||
use TencentCloud\Soe\V20180724\Models\InitOralProcess;
|
||||
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("", "");
|
||||
//$cred = new Credential(getenv(""), getenv("");
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("POST"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("soe.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
$client = new SoeClient($cred, "", $clientProfile);
|
||||
|
||||
// 实例化一个ecc实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new InitOralProcessRequest();
|
||||
$req->RefText = "since";
|
||||
$req->WorkMode = 0;
|
||||
$req->EvalMode = 1;
|
||||
$req->ScoreCoeff = 3.5;
|
||||
$req->SessionId = "stress_test_956938";
|
||||
|
||||
$resp = $client->InitOralProcess($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
53
vendor/tencentcloud/tencentcloud-sdk-php/examples/soe/v20180724/transmit_oral_process.php
vendored
Normal file
53
vendor/tencentcloud/tencentcloud-sdk-php/examples/soe/v20180724/transmit_oral_process.php
vendored
Normal file
File diff suppressed because one or more lines are too long
48
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/DescribeAITaskResult.php
vendored
Normal file
48
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/DescribeAITaskResult.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Tci\V20190318\TciClient;
|
||||
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Tci\V20190318\Models\DescribeAITaskResultRequest;
|
||||
use TencentCloud\Tci\V20190318\Models\DescribeAITaskResult;
|
||||
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("", "");
|
||||
//$cred = new Credential(getenv(""), getenv("");
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("POST"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("tci.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
$client = new TciClient($cred, "", $clientProfile);
|
||||
|
||||
// 实例化一个ecc实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new DescribeAITaskResultRequest();
|
||||
$req->TaskId=2715135538;
|
||||
|
||||
$resp = $client->DescribeAITaskResult($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
53
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitFullBodyClassTask.php
vendored
Normal file
53
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitFullBodyClassTask.php
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Tci\V20190318\TciClient;
|
||||
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitFullBodyClassTaskRequest;
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitFullBodyClassTask;
|
||||
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("", "");
|
||||
//$cred = new Credential(getenv(""), getenv("");
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("POST"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("tci.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
$client = new TciClient($cred, "", $clientProfile);
|
||||
|
||||
// 实例化一个ecc实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new SubmitFullBodyClassTaskRequest();
|
||||
$req->FileContent = "https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4";
|
||||
$req->FileType = "vod_url";
|
||||
$req->Lang = 0;
|
||||
$req->LibrarySet = ["library_15603955264181591716"];
|
||||
$req->VocabLibNameList = ["testlib2"];
|
||||
$req->VoiceEncodeType = 1;
|
||||
$req->VoiceFileType = 10;
|
||||
$resp = $client->SubmitFullBodyClassTask($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
53
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitOneByOneClassTask.php
vendored
Normal file
53
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitOneByOneClassTask.php
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Tci\V20190318\TciClient;
|
||||
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitOneByOneClassTaskRequest;
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitOneByOneClassTask;
|
||||
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("", "");
|
||||
//$cred = new Credential(getenv(""), getenv("");
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("POST"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("tci.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
$client = new TciClient($cred, "", $clientProfile);
|
||||
|
||||
// 实例化一个ecc实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new SubmitOneByOneClassTaskRequest();
|
||||
$req->FileContent = "https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4";
|
||||
$req->FileType = "vod_url";
|
||||
$req->Lang = 0;
|
||||
$req->LibrarySet = ["library_15603955264181591716"];
|
||||
$req->VocabLibNameList = ["testlib2"];
|
||||
$req->VoiceEncodeType = 1;
|
||||
$req->VoiceFileType = 10;
|
||||
$resp = $client->SubmitOneByOneClassTask($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
51
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitOpenClassTask.php
vendored
Normal file
51
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitOpenClassTask.php
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Tci\V20190318\TciClient;
|
||||
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitOpenClassTaskRequest;
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitOpenClassTask;
|
||||
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("", "");
|
||||
//$cred = new Credential(getenv(""), getenv("");
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("POST"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("tci.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
$client = new TciClient($cred, "", $clientProfile);
|
||||
|
||||
// 实例化一个ecc实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new SubmitOpenClassTaskRequest();
|
||||
$req->FileContent="https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4";
|
||||
$req->FileType="vod_url";
|
||||
$req->LibrarySet=["library_15603955264181591716"];
|
||||
|
||||
|
||||
$resp = $client->SubmitOpenClassTask($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
53
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitPartialBodyClassTask.php
vendored
Normal file
53
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitPartialBodyClassTask.php
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Tci\V20190318\TciClient;
|
||||
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitPartialBodyClassTaskRequest;
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitPartialBodyClassTask;
|
||||
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("", "");
|
||||
//$cred = new Credential(getenv(""), getenv("");
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("POST"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("tci.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
$client = new TciClient($cred, "", $clientProfile);
|
||||
|
||||
// 实例化一个ecc实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new SubmitPartialBodyClassTaskRequest();
|
||||
$req->FileContent = "https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4";
|
||||
$req->FileType = "vod_url";
|
||||
$req->Lang = 0;
|
||||
$req->LibrarySet = ["library_15603955264181591716"];
|
||||
$req->VocabLibNameList = ["testlib2"];
|
||||
$req->VoiceEncodeType = 1;
|
||||
$req->VoiceFileType = 10;
|
||||
$resp = $client->SubmitPartialBodyClassTask($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
49
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitTraditionalClassTask.php
vendored
Normal file
49
vendor/tencentcloud/tencentcloud-sdk-php/examples/tci/v20190318/SubmitTraditionalClassTask.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
require_once __DIR__.'/../../../vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Tci\V20190318\TciClient;
|
||||
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitTraditionalClassTaskRequest;
|
||||
use TencentCloud\Tci\V20190318\Models\SubmitTraditionalClassTask;
|
||||
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户secretId,secretKey
|
||||
$cred = new Credential("", "");
|
||||
//$cred = new Credential(getenv(""), getenv("");
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setReqMethod("POST"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("tci.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
$client = new TciClient($cred, "", $clientProfile);
|
||||
|
||||
// 实例化一个ecc实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new SubmitTraditionalClassTaskRequest();
|
||||
$req->FileContent="https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4";
|
||||
$req->FileType="vod_url";
|
||||
$req->LibrarySet=["library_15603955264181591716"];
|
||||
$resp = $client->SubmitTraditionalClassTask($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 你可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
175
vendor/tencentcloud/tencentcloud-sdk-php/products.md
vendored
Normal file
175
vendor/tencentcloud/tencentcloud-sdk-php/products.md
vendored
Normal file
@@ -0,0 +1,175 @@
|
||||
| 包名 | 产品中文名 | 更新时间 |
|
||||
|-|-|-|
|
||||
| aa | [活动防刷](https://cloud.tencent.com/document/product/1189) | 2021-03-01 08:00:50 |
|
||||
| aai | [](https://cloud.tencent.com/document/product) | 2019-08-08 23:15:13 |
|
||||
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2021-01-07 08:00:37 |
|
||||
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2021-01-07 08:00:36 |
|
||||
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2021-06-17 08:10:06 |
|
||||
| ams | [音频内容检测](https://cloud.tencent.com/document/product/1219) | 2021-06-07 08:01:17 |
|
||||
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2021-03-30 08:00:17 |
|
||||
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2021-04-20 08:00:30 |
|
||||
| api | [云 API](https://cloud.tencent.com/document/product/546) | 2021-04-25 10:09:57 |
|
||||
| apigateway | [API网关](https://cloud.tencent.com/document/product/628) | 2021-05-14 08:10:21 |
|
||||
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2021-06-17 08:02:54 |
|
||||
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2021-06-17 08:01:12 |
|
||||
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2021-04-02 08:00:26 |
|
||||
| ba | [网站备案](https://cloud.tencent.com/document/product/243) | 2021-01-07 08:00:11 |
|
||||
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2021-02-24 08:01:57 |
|
||||
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2021-05-14 08:01:08 |
|
||||
| billing | [计费相关](https://cloud.tencent.com/document/product/555) | 2021-04-16 08:02:23 |
|
||||
| bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
|
||||
| bm | [黑石物理服务器1.0](https://cloud.tencent.com/document/product/386) | 2021-04-01 08:02:25 |
|
||||
| bmeip | [黑石弹性公网IP](https://cloud.tencent.com/document/product/1028) | 2021-04-23 08:02:32 |
|
||||
| bmlb | [黑石负载均衡](https://cloud.tencent.com/document/product/1027) | 2021-01-07 08:02:27 |
|
||||
| bmvpc | [黑石私有网络](https://cloud.tencent.com/document/product/1024) | 2021-01-07 08:02:33 |
|
||||
| bri | [业务风险情报](https://cloud.tencent.com/document/product/1064) | 2021-01-07 08:02:40 |
|
||||
| btoe | [区块链可信取证](https://cloud.tencent.com/document/product/1259) | 2021-06-07 08:00:24 |
|
||||
| cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2021-04-23 08:02:51 |
|
||||
| captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2021-03-22 08:03:03 |
|
||||
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2021-01-07 08:01:42 |
|
||||
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2021-06-14 08:03:25 |
|
||||
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2021-04-07 08:00:41 |
|
||||
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2021-06-08 08:03:57 |
|
||||
| cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2021-06-11 08:03:45 |
|
||||
| cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2021-01-07 08:03:25 |
|
||||
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2021-04-07 08:03:25 |
|
||||
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2021-06-02 08:11:06 |
|
||||
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2021-02-22 08:03:09 |
|
||||
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2021-05-08 15:29:47 |
|
||||
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
||||
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
||||
| ckafka | [消息队列 Ckafka](https://cloud.tencent.com/document/product/597) | 2021-05-17 08:10:03 |
|
||||
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2021-06-09 08:04:15 |
|
||||
| cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2021-06-17 08:11:39 |
|
||||
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2021-05-28 08:09:58 |
|
||||
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2021-05-31 17:22:23 |
|
||||
| cme | [腾讯云剪](https://cloud.tencent.com/document/product/1156) | 2021-06-17 08:02:44 |
|
||||
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2021-02-22 08:01:08 |
|
||||
| cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
|
||||
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2021-06-17 08:10:45 |
|
||||
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
||||
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2021-06-02 08:04:09 |
|
||||
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2021-06-16 08:11:12 |
|
||||
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
||||
| cynosdb | [云数据库 CynosDB](https://cloud.tencent.com/document/product/1003) | 2021-05-31 08:01:04 |
|
||||
| dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2021-04-26 08:04:08 |
|
||||
| dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2021-05-28 08:04:39 |
|
||||
| dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2021-06-08 08:05:23 |
|
||||
| dcdb | [分布式数据库 TDSQL](https://cloud.tencent.com/document/product/557) | 2021-06-01 08:05:28 |
|
||||
| dlc | [数据湖计算](https://cloud.tencent.com/document/product/1342) | 2021-06-16 08:00:39 |
|
||||
| dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2021-05-31 08:00:07 |
|
||||
| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2021-05-31 08:04:49 |
|
||||
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2021-01-07 08:04:33 |
|
||||
| ds | [电子合同服务](https://cloud.tencent.com/document/product/869) | 2021-01-07 08:04:34 |
|
||||
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2021-06-16 08:05:20 |
|
||||
| ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2021-01-07 08:04:40 |
|
||||
| ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2021-06-07 08:01:53 |
|
||||
| ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2021-06-17 08:01:43 |
|
||||
| eis | [企业集成服务](https://cloud.tencent.com/document/product/1270) | 2021-05-26 08:00:07 |
|
||||
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2021-05-28 08:05:02 |
|
||||
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2021-06-09 08:05:18 |
|
||||
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2021-05-07 08:04:04 |
|
||||
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2021-06-08 08:05:55 |
|
||||
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2021-03-16 08:02:03 |
|
||||
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2021-04-12 08:01:48 |
|
||||
| gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2021-03-24 08:05:04 |
|
||||
| gme | [游戏多媒体引擎](https://cloud.tencent.com/document/product/607) | 2021-04-20 08:05:33 |
|
||||
| gpm | [游戏玩家匹配](https://cloud.tencent.com/document/product/1294) | 2021-04-28 08:00:58 |
|
||||
| gs | [云游戏解决方案](https://cloud.tencent.com/document/product/1162) | 2021-06-16 08:02:50 |
|
||||
| gse | [游戏服务器伸缩](https://cloud.tencent.com/document/product/1165) | 2021-06-04 08:02:14 |
|
||||
| habo | [](https://cloud.tencent.com/document/product) | 2019-05-09 19:37:22 |
|
||||
| hcm | [数学作业批改](https://cloud.tencent.com/document/product/1004) | 2021-02-03 08:05:01 |
|
||||
| iai | [人脸识别](https://cloud.tencent.com/document/product/867) | 2021-06-17 08:05:41 |
|
||||
| ic | [物联卡](https://cloud.tencent.com/document/product/636) | 2021-06-10 08:00:25 |
|
||||
| ie | [智能编辑](https://cloud.tencent.com/document/product/1186) | 2021-06-09 08:01:32 |
|
||||
| iir | [智能识图](https://cloud.tencent.com/document/product/1217) | 2021-01-07 08:00:40 |
|
||||
| ims | [图片内容检测](https://cloud.tencent.com/document/product/1125) | 2021-05-12 08:00:38 |
|
||||
| iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2021-01-07 08:05:22 |
|
||||
| iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2021-06-08 08:06:29 |
|
||||
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2021-06-17 08:06:06 |
|
||||
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2021-01-07 08:05:49 |
|
||||
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2021-06-16 08:02:12 |
|
||||
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2021-05-08 15:18:48 |
|
||||
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2021-06-02 08:05:55 |
|
||||
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2021-06-18 08:01:16 |
|
||||
| live | [云直播](https://cloud.tencent.com/document/product/267) | 2021-05-25 08:07:04 |
|
||||
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2021-01-07 08:00:37 |
|
||||
| mariadb | [云数据库 MariaDB](https://cloud.tencent.com/document/product/237) | 2021-06-01 14:53:40 |
|
||||
| market | [云市场](https://cloud.tencent.com/document/product/306) | 2021-06-18 08:00:04 |
|
||||
| memcached | [云数据库 Memcached](https://cloud.tencent.com/document/product) | 2020-08-24 08:07:49 |
|
||||
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2021-01-26 08:00:28 |
|
||||
| mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2021-05-17 08:00:05 |
|
||||
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2021-05-27 08:06:27 |
|
||||
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2021-06-16 08:06:51 |
|
||||
| mps | [视频处理](https://cloud.tencent.com/document/product/862) | 2021-05-21 08:06:33 |
|
||||
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2021-06-16 08:00:15 |
|
||||
| ms | [移动应用安全](https://cloud.tencent.com/document/product) | 2020-06-05 08:13:52 |
|
||||
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2021-01-07 08:06:57 |
|
||||
| mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
|
||||
| nlp | [自然语言处理](https://cloud.tencent.com/document/product/271) | 2021-05-10 16:12:19 |
|
||||
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
||||
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2021-05-17 08:00:28 |
|
||||
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2021-06-02 08:06:51 |
|
||||
| organization | [企业组织](https://cloud.tencent.com/document/product/850) | 2021-03-31 08:06:30 |
|
||||
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2021-06-18 08:07:07 |
|
||||
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2021-05-28 08:07:07 |
|
||||
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2021-06-01 08:00:27 |
|
||||
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2021-05-08 15:29:43 |
|
||||
| redis | [云数据库 Redis](https://cloud.tencent.com/document/product/239) | 2021-06-09 08:07:24 |
|
||||
| rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2021-01-07 08:11:09 |
|
||||
| rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2021-01-07 08:00:38 |
|
||||
| scf | [云函数](https://cloud.tencent.com/document/product/583) | 2021-05-31 08:07:35 |
|
||||
| ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2021-05-13 08:10:37 |
|
||||
| smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2021-01-07 08:01:56 |
|
||||
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2021-06-03 08:00:16 |
|
||||
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2021-06-18 08:07:31 |
|
||||
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
||||
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2021-03-10 08:08:58 |
|
||||
| ssa | [态势感知](https://cloud.tencent.com/document/product/664) | 2021-01-14 08:00:06 |
|
||||
| ssl | [证书](https://cloud.tencent.com/document/product/400) | 2021-04-05 08:01:51 |
|
||||
| sslpod | [SSL 证书监控](https://cloud.tencent.com/document/product/1084) | 2021-01-07 08:00:15 |
|
||||
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2021-01-07 08:01:49 |
|
||||
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2021-05-17 08:10:58 |
|
||||
| taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2021-04-29 08:00:57 |
|
||||
| tag | [标签](https://cloud.tencent.com/document/product/651) | 2021-01-26 08:07:51 |
|
||||
| tat | [腾讯云自动化助手](https://cloud.tencent.com/document/product/1340) | 2021-06-18 08:11:11 |
|
||||
| tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 |
|
||||
| tbaas | [TBaaS](https://cloud.tencent.com/document/product/663) | 2021-03-18 08:07:48 |
|
||||
| tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 |
|
||||
| tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2021-01-07 08:07:55 |
|
||||
| tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2021-05-20 08:07:49 |
|
||||
| tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2021-06-18 08:07:55 |
|
||||
| tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2021-01-07 08:00:18 |
|
||||
| tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
|
||||
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2021-06-02 08:09:52 |
|
||||
| tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2021-06-18 08:10:37 |
|
||||
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2021-06-14 08:00:23 |
|
||||
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product) | 2020-03-16 08:18:42 |
|
||||
| tic | [腾讯云IaC平台](https://cloud.tencent.com/document/product/1213) | 2021-01-07 08:00:07 |
|
||||
| ticm | [智能鉴黄](https://cloud.tencent.com/document/product/864) | 2021-01-07 08:08:15 |
|
||||
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2021-01-07 08:08:14 |
|
||||
| tiems | [智能钛弹性模型服务](https://cloud.tencent.com/document/product/1120) | 2021-01-07 08:08:16 |
|
||||
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2021-01-07 08:08:12 |
|
||||
| tione | [智能钛机器学习平台](https://cloud.tencent.com/document/product/851) | 2021-01-07 08:01:07 |
|
||||
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2021-06-03 08:09:56 |
|
||||
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2021-06-18 08:08:14 |
|
||||
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
||||
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2021-01-28 08:00:40 |
|
||||
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2021-01-07 08:08:32 |
|
||||
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2021-05-27 08:09:49 |
|
||||
| tse | [腾讯云微服务引擎](https://cloud.tencent.com/document/product/1364) | 2021-05-25 08:00:36 |
|
||||
| tsf | [腾讯微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2021-06-16 08:08:41 |
|
||||
| tsw | [腾讯微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2021-04-30 08:10:47 |
|
||||
| tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2021-06-17 08:08:59 |
|
||||
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2021-03-11 08:00:14 |
|
||||
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2021-04-21 08:00:21 |
|
||||
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2021-04-28 08:00:35 |
|
||||
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2021-06-03 08:09:29 |
|
||||
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2021-06-17 08:09:03 |
|
||||
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2021-06-18 08:11:20 |
|
||||
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2021-06-17 08:00:11 |
|
||||
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
||||
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
||||
| yunjing | [主机安全](https://cloud.tencent.com/document/product) | 2020-09-15 08:08:47 |
|
||||
| yunsou | [腾讯云搜](https://cloud.tencent.com/document/product/270) | 2021-01-07 08:09:58 |
|
||||
| zj | [珠玑](https://cloud.tencent.com/document/product) | 2020-11-17 08:10:59 |
|
||||
40
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Base.php
vendored
Normal file
40
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Base.php
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
75
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Error.php
vendored
Normal file
75
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Error.php
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
183
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Request.php
vendored
Normal file
183
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Request.php
vendored
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
102
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Sign.php
vendored
Normal file
102
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Sign.php
vendored
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Account.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Account.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Apigateway.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Apigateway.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Athena.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Athena.php
vendored
Normal 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';
|
||||
}
|
||||
262
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Base.php
vendored
Normal file
262
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Base.php
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Batch.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Batch.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bgpip.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bgpip.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bill.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bill.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bm.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bm.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmeip.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmeip.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmlb.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmlb.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmvpc.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmvpc.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cbs.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cbs.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Ccs.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Ccs.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cdb.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cdb.php
vendored
Normal 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';
|
||||
}
|
||||
51
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cdn.php
vendored
Normal file
51
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cdn.php
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cloudaudit.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cloudaudit.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cmem.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cmem.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cns.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cns.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cvm.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cvm.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Dfw.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Dfw.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Eip.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Eip.php
vendored
Normal 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';
|
||||
}
|
||||
14
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Emr.php
vendored
Normal file
14
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Emr.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Feecenter.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Feecenter.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Image.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Image.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Lb.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Lb.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Live.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Live.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Market.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Market.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Monitor.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Monitor.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Partners.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Partners.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Redis.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Redis.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Scaling.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Scaling.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Scf.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Scf.php
vendored
Normal 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';
|
||||
}
|
||||
45
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Sec.php
vendored
Normal file
45
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Sec.php
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Snapshot.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Snapshot.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Sts.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Sts.php
vendored
Normal 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';
|
||||
}
|
||||
14
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tbaas.php
vendored
Normal file
14
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tbaas.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tdsql.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tdsql.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tmt.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tmt.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Trade.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Trade.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Vod.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Vod.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Vpc.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Vpc.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Wenzhi.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Wenzhi.php
vendored
Normal 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';
|
||||
}
|
||||
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Yunsou.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Yunsou.php
vendored
Normal 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';
|
||||
}
|
||||
283
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/QcloudApi.php
vendored
Normal file
283
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/QcloudApi.php
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
66
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/AaClient.php
vendored
Normal file
66
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/AaClient.php
vendored
Normal 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) 腾讯云活动防刷(ActivityAntiRush,AA)是针对电商、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;
|
||||
}
|
||||
}
|
||||
116
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/AccountInfo.php
vendored
Normal file
116
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/AccountInfo.php
vendored
Normal 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 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
||||
1:QQ开放账号。
|
||||
2:微信开放账号。
|
||||
4:手机号(暂仅支持国内手机号)。
|
||||
8:设备号(imei/imeiMD5/idfa/idfaMd5)。
|
||||
0:其他。
|
||||
10004:手机号MD5(标准中国大陆手机号11位,MD5后取32位小写值)
|
||||
* @method void setAccountType(integer $AccountType) 设置用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
||||
1:QQ开放账号。
|
||||
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 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
||||
1:QQ开放账号。
|
||||
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 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
||||
1:QQ开放账号。
|
||||
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"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
101
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/CrowdAntiRushInfo.php
vendored
Normal file
101
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/CrowdAntiRushInfo.php
vendored
Normal 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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/InputDetails.php
vendored
Normal file
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/InputDetails.php
vendored
Normal 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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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() 获取设备类型:
|
||||
1:Android
|
||||
2:IOS
|
||||
* @method void setDeviceType(integer $DeviceType) 设置设备类型:
|
||||
1:Android
|
||||
2:IOS
|
||||
*/
|
||||
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 设备类型:
|
||||
1:Android
|
||||
2:IOS
|
||||
*/
|
||||
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 设备类型:
|
||||
1:Android
|
||||
2:IOS
|
||||
*/
|
||||
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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
125
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/OnlineScamInfo.php
vendored
Normal file
125
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/OnlineScamInfo.php
vendored
Normal 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() 获取诈骗账号类型:
|
||||
1:11位手机号。
|
||||
2:QQ账号。
|
||||
* @method void setFraudType(integer $FraudType) 设置诈骗账号类型:
|
||||
1:11位手机号。
|
||||
2:QQ账号。
|
||||
* @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 诈骗账号类型:
|
||||
1:11位手机号。
|
||||
2:QQ账号。
|
||||
*/
|
||||
public $FraudType;
|
||||
|
||||
/**
|
||||
* @var string 诈骗账号,手机号或QQ账号。
|
||||
*/
|
||||
public $FraudAccount;
|
||||
|
||||
/**
|
||||
* @param string $ContentLabel 内容标签。
|
||||
* @param integer $ContentRiskLevel 内容风险等级:
|
||||
0:正常。
|
||||
1:可疑。
|
||||
* @param integer $ContentType 内容产生形式:
|
||||
0:对话。
|
||||
1:广播。
|
||||
* @param integer $FraudType 诈骗账号类型:
|
||||
1:11位手机号。
|
||||
2:QQ账号。
|
||||
* @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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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:表示无恶意。
|
||||
1~4:恶意等级由低到高。
|
||||
* @method void setLevel(integer $Level) 设置风险值:
|
||||
0:表示无恶意。
|
||||
1~4:恶意等级由低到高。
|
||||
* @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:表示无恶意。
|
||||
1~4:恶意等级由低到高。
|
||||
*/
|
||||
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:表示无恶意。
|
||||
1~4:恶意等级由低到高。
|
||||
* @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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
101
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/QQAccountInfo.php
vendored
Normal file
101
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/QQAccountInfo.php
vendored
Normal 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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
||||
1:QQ 开放帐号。
|
||||
2:微信开放账号。
|
||||
4:手机号。
|
||||
0:其他。
|
||||
10004:手机号 MD5。
|
||||
* @method void setAccountType(string $AccountType) 设置用户账号类型(默认开通 QQ 开放账号、手机号,手机 MD5 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
||||
1:QQ 开放帐号。
|
||||
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:其他。
|
||||
1:PC 网页。
|
||||
2:移动页面。
|
||||
3:App。
|
||||
4:微信公众号。
|
||||
* @method void setLoginSource(string $LoginSource) 设置登录来源:
|
||||
0:其他。
|
||||
1:PC 网页。
|
||||
2:移动页面。
|
||||
3:App。
|
||||
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 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
||||
1:QQ 开放帐号。
|
||||
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:其他。
|
||||
1:PC 网页。
|
||||
2:移动页面。
|
||||
3:App。
|
||||
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 账号类型查询。如需使用微信开放账号,则需要 提交工单 由腾讯云进行资格审核,审核通过后方可正常使用微信开放账号):
|
||||
1:QQ 开放帐号。
|
||||
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:其他。
|
||||
1:PC 网页。
|
||||
2:移动页面。
|
||||
3:App。
|
||||
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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
101
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/SponsorInfo.php
vendored
Normal file
101
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/SponsorInfo.php
vendored
Normal 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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
137
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/WeChatAccountInfo.php
vendored
Normal file
137
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aa/V20200224/Models/WeChatAccountInfo.php
vendored
Normal 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为密钥签名随机数RandStr(hmac_sha256签名算法)得到的字符串。
|
||||
* @method void setWeChatAccessToken(string $WeChatAccessToken) 设置如果WeChatSubType是1,填入授权的access_token(注意:不是普通access_token,详情请参阅官方说明文档。获取网页版本的access_token时,scope字段必需填写snsapi_userinfo。
|
||||
如果WeChatSubType是2,填入以session_key为密钥签名随机数RandStr(hmac_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为密钥签名随机数RandStr(hmac_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为密钥签名随机数RandStr(hmac_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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
69
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/AaiClient.php
vendored
Normal file
69
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/AaiClient.php
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/Models/ChatRequest.php
vendored
Normal file
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/Models/ChatRequest.php
vendored
Normal 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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/Models/ChatResponse.php
vendored
Normal file
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/Models/ChatResponse.php
vendored
Normal 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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 通用模型;16k:16k 通用模型。只支持单声道音频识别。
|
||||
* @method void setEngSerViceType(string $EngSerViceType) 设置引擎类型。8k:电话 8k 通用模型;16k:16k 通用模型。只支持单声道音频识别。
|
||||
* @method integer getSourceType() 获取语音数据来源。0:语音 URL;1:语音数据(post body)。
|
||||
* @method void setSourceType(integer $SourceType) 设置语音数据来源。0:语音 URL;1:语音数据(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 通用模型;16k:16k 通用模型。只支持单声道音频识别。
|
||||
*/
|
||||
public $EngSerViceType;
|
||||
|
||||
/**
|
||||
* @var integer 语音数据来源。0:语音 URL;1:语音数据(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 通用模型;16k:16k 通用模型。只支持单声道音频识别。
|
||||
* @param integer $SourceType 语音数据来源。0:语音 URL;1:语音数据(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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user