first commit

This commit is contained in:
Your Name
2026-01-19 14:19:22 +08:00
commit fe2d9c1868
4777 changed files with 665503 additions and 0 deletions

201
vendor/tencentcloud/common/LICENSE vendored Normal file
View 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.

19
vendor/tencentcloud/common/README.MD vendored Normal file
View File

@@ -0,0 +1,19 @@
# 简介
欢迎使用腾讯云开发者工具套件SDK3.0SDK3.0是云 API3.0 平台的配套工具。目前已经支持cvm、vpc、cbs等产品后续所有的云服务产品都会接入进来。新版SDK实现了统一化具有各个语言版本的SDK使用方法相同接口调用方式相同统一的错误码和返回包格式这些优点。
为方便 PHP 开发者调试和接入腾讯云产品 API这里向您介绍适用于 PHP 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 PHP SDK 并开始调用。
# 依赖环境
1. PHP 5.6.0 版本及以上
2. 从腾讯云控制台 开通相应产品
3. 获取 SecretID、SecretKey 以及调用地址endpointendpoint 一般形式为*.tencentcloudapi.com如CVM 的调用地址为 cvm.tencentcloudapi.com具体参考各产品说明。
# 获取安装
## 通过 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/common` 添加依赖。

View File

@@ -0,0 +1,24 @@
{
"name": "tencentcloud/common",
"description": "TencentCloudApi php sdk",
"type": "library",
"homepage": "https://github.com/tencentcloud-sdk-php/common",
"license": "Apache-2.0",
"authors": [
{
"name": "tencentcloudapi",
"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"
},
"autoload": {
"psr-4": {
"TencentCloud\\": "./src/TencentCloud"
}
}
}

View File

@@ -0,0 +1,593 @@
<?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\Common;
use \ReflectionClass;
use TencentCloud\Common\Http\HttpConnection;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Profile\HttpProfile;
use TencentCloud\Common\Profile\RegionBreakerProfile;
use TencentCloud\Common\CircuitBreaker;
use TencentCloud\Common\Exception\TencentCloudSDKException;
/**
* 抽象api类禁止client引用
* @package TencentCloud\Common
*/
abstract class AbstractClient
{
/**
* @var string SDK版本
*/
public static $SDK_VERSION = "SDK_PHP_3.0.990";
/**
* @var integer http响应码200
*/
public static $HTTP_RSP_OK = 200;
private $PHP_VERSION_MINIMUM = "5.6.0";
/**
* @var Credential 认证类实例,保存认证相关字段
*/
private $credential;
/**
* @var ClientProfile 会话配置信息类
*/
private $profile;
private $regionBreakerProfile;
private $circuitBreaker;
/**
* @var string 产品地域
*/
private $region;
/**
* @var string 请求路径
*/
private $path;
/**
* @var string sdk版本号
*/
private $sdkVersion;
/**
* @var string api版本号
*/
private $apiVersion;
/**
* @var HttpConnection
*/
private $httpConn;
/**
* 基础client类
* @param string $endpoint Deprecated, we use service+rootdomain instead
* @param string $version api版本
* @param Credential $credential 认证信息实例
* @param string $region 产品地域
* @param ClientProfile $profile
*/
function __construct($endpoint, $version, $credential, $region, $profile=null)
{
$this->path = "/";
$this->credential = $credential;
$this->region = $region;
if ($profile) {
$this->profile = $profile;
} else {
$this->profile = new ClientProfile();
}
$this->getRefreshedEndpoint();
$this->sdkVersion = AbstractClient::$SDK_VERSION;
$this->apiVersion = $version;
if ($this->profile->enableRegionBreaker) {
if (is_null($this->profile->getRegionBreakerProfile())) {
throw new TencentCloudSDKException("ClientError", "RegionBreakerProfile have not been set yet.");
}
$this->circuitBreaker = new CircuitBreaker($this->profile->getRegionBreakerProfile());
}
if (version_compare(phpversion(), $this->PHP_VERSION_MINIMUM, '<') && $profile->getCheckPHPVersion()) {
throw new TencentCloudSDKException("ClientError", "PHP version must >= ".$this->PHP_VERSION_MINIMUM.", your current is ".phpversion());
}
$this->httpConn = $this->createConnect();
}
/**
* 设置产品地域
* @param string $region 地域
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* 获取产品地域
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* 设置认证信息实例
* @param Credential $credential 认证信息实例
*/
public function setCredential($credential)
{
$this->credential = $credential;
}
/**
* 返回认证信息实例
* @return Credential
*/
public function getCredential()
{
return $this->credential;
}
/**
* 设置配置实例
* @param ClientProfile $profile 配置实例
*/
public function setClientProfile($profile)
{
$this->profile = $profile;
}
/**
* 返回配置实例
* @return ClientProfile
*/
public function getClientProfile()
{
return $this->profile;
}
/**
* @param string $action 方法名
* @param array $request 参数列表
* @return mixed
* @throws TencentCloudSDKException
*/
public function __call($action, $request)
{
if ($this->profile->enableRegionBreaker) {
return $this->doRequestWithOptionsOnRegionBreaker($action, $request[0], array());
}
else {
return $this->doRequestWithOptions($action, $request[0], array());
}
}
/**
* @param string $action
* @param array $headers
* @param string $body json content
* @return mixed
* @throws TencentCloudSDKException
*/
public function callJson($action, $body, $headers=null) {
try {
$responseData = null;
$options = array(
"IsCommonJson" => true,
);
if ($this->profile->getHttpProfile()->getReqMethod() == HttpProfile::$REQ_GET) {
throw new TencentCloudSDKException("ClientError", "Common client call doesn't support GET method");
}
if ($this->profile->getSignMethod() != ClientProfile::$SIGN_TC3_SHA256) {
throw new TencentCloudSDKException("ClientError", "Common client call must use TC3-HMAC-SHA256");
}
$responseData = $this->doRequestWithTC3($action, $body, $options, $headers, null);
if ($responseData->getStatusCode() !== AbstractClient::$HTTP_RSP_OK) {
throw new TencentCloudSDKException($responseData->getReasonPhrase(), $responseData->getBody());
}
$resp = json_decode($responseData->getBody(), true)["Response"];
if (array_key_exists("Error", $resp)) {
throw new TencentCloudSDKException($resp["Error"]["Code"], $resp["Error"]["Message"], $resp["RequestId"]);
}
return $resp;
} catch (\Exception $e) {
if (!($e instanceof TencentCloudSDKException)) {
throw new TencentCloudSDKException("", $e->getMessage());
} else {
throw $e;
}
}
}
/**
* @param string $action 方法名
* @param array $headers 自定义headers
* @param string $body content
* @return mixed
* @throws TencentCloudSDKException
*/
public function call_octet_stream($action, $headers, $body) {
try {
$responseData = null;
$options = array(
"IsOctetStream" => true,
);
switch ($this->profile->getSignMethod()) {
case ClientProfile::$SIGN_TC3_SHA256:
$responseData = $this->doRequestWithTC3($action, Null, $options, $headers, $body);
break;
default:
throw new TencentCloudSDKException("ClientError", "Invalid sign method");
break;
}
if ($responseData->getStatusCode() !== AbstractClient::$HTTP_RSP_OK) {
throw new TencentCloudSDKException($responseData->getReasonPhrase(), $responseData->getBody());
}
$tmpResp = json_decode($responseData->getBody(), true)["Response"];
if (array_key_exists("Error", $tmpResp)) {
throw new TencentCloudSDKException($tmpResp["Error"]["Code"], $tmpResp["Error"]["Message"], $tmpResp["RequestId"]);
}
return $this->returnResponse($action, $tmpResp);
} catch (\Exception $e) {
if (!($e instanceof TencentCloudSDKException)) {
throw new TencentCloudSDKException("", $e->getMessage());
} else {
throw $e;
}
}
}
protected function doRequestWithOptions($action, $request, $options)
{
try {
$responseData = null;
$serializeRequest = $request->serialize();
$method = $this->getPrivateMethod($request, "arrayMerge");
$serializeRequest = $method->invoke($request, $serializeRequest);
switch ($this->profile->getSignMethod()) {
case ClientProfile::$SIGN_HMAC_SHA1:
case ClientProfile::$SIGN_HMAC_SHA256:
$responseData = $this->doRequest($action, $serializeRequest);
break;
case ClientProfile::$SIGN_TC3_SHA256:
$responseData = $this->doRequestWithTC3($action, $request, $options, array(), "");
break;
default:
throw new TencentCloudSDKException("ClientError", "Invalid sign method");
break;
}
if ($responseData->getStatusCode() !== AbstractClient::$HTTP_RSP_OK) {
throw new TencentCloudSDKException($responseData->getReasonPhrase(), $responseData->getBody());
}
$tmpResp = json_decode($responseData->getBody(), true)["Response"];
if (array_key_exists("Error", $tmpResp)) {
throw new TencentCloudSDKException($tmpResp["Error"]["Code"], $tmpResp["Error"]["Message"], $tmpResp["RequestId"]);
}
return $this->returnResponse($action, $tmpResp);
} catch (\Exception $e) {
if (!($e instanceof TencentCloudSDKException)) {
throw new TencentCloudSDKException("", $e->getMessage());
} else {
throw $e;
}
}
}
protected function doRequestWithOptionsOnRegionBreaker($action, $request, $options)
{
try {
$endpoint = $this->profile->getRegionBreakerProfile()->masterEndpoint;
list($generation, $need_break) = $this->circuitBreaker->beforeRequests();
if ($need_break) {
$endpoint = $this->profile->getRegionBreakerProfile()->slaveEndpoint;
}
$this->profile->getHttpProfile()->setEndpoint($endpoint);
$responseData = null;
$serializeRequest = $request->serialize();
$method = $this->getPrivateMethod($request, "arrayMerge");
$serializeRequest = $method->invoke($request, $serializeRequest);
switch ($this->profile->getSignMethod()) {
case ClientProfile::$SIGN_HMAC_SHA1:
case ClientProfile::$SIGN_HMAC_SHA256:
$responseData = $this->doRequest($action, $serializeRequest);
break;
case ClientProfile::$SIGN_TC3_SHA256:
$responseData = $this->doRequestWithTC3($action, $request, $options, array(), "");
break;
default:
throw new TencentCloudSDKException("ClientError", "Invalid sign method");
break;
}
if ($responseData->getStatusCode() !== AbstractClient::$HTTP_RSP_OK) {
throw new TencentCloudSDKException($responseData->getReasonPhrase(), $responseData->getBody());
}
$tmpResp = json_decode($responseData->getBody(), true)["Response"];
if (array_key_exists("Error", $tmpResp)) {
$this->circuitBreaker->afterRequests($generation, True);
throw new TencentCloudSDKException($tmpResp["Error"]["Code"], $tmpResp["Error"]["Message"], $tmpResp["RequestId"]);
}
$this->circuitBreaker->afterRequests($generation, True);
return $this->returnResponse($action, $tmpResp);
} catch (\Exception $e) {
$this->circuitBreaker->afterRequests($generation, False);
if (!($e instanceof TencentCloudSDKException)) {
throw new TencentCloudSDKException("", $e->getMessage());
} else {
throw $e;
}
}
}
private function doRequest($action, $request)
{
switch ($this->profile->getHttpProfile()->getReqMethod()) {
case HttpProfile::$REQ_GET:
return $this->getRequest($action, $request);
break;
case HttpProfile::$REQ_POST:
return $this->postRequest($action, $request);
break;
default:
throw new TencentCloudSDKException("", "Method only support (GET, POST)");
break;
}
}
private function doRequestWithTC3($action, $request, $options, $headers, $payload)
{
$endpoint = $this->getRefreshedEndpoint();
$headers["Host"] = $endpoint;
$headers["X-TC-Action"] = ucfirst($action);
$headers["X-TC-RequestClient"] = $this->sdkVersion;
$headers["X-TC-Timestamp"] = time();
$headers["X-TC-Version"] = $this->apiVersion;
if ($this->region) {
$headers["X-TC-Region"] = $this->region;
}
if ($this->credential->getToken()) {
$headers["X-TC-Token"] = $this->credential->getToken();
}
$language = $this->profile->getLanguage();
if ($language) {
$headers["X-TC-Language"] = $language;
}
$canonicalUri = $this->path;
$reqmethod = $this->profile->getHttpProfile()->getReqMethod();
if (HttpProfile::$REQ_GET == $reqmethod) {
$headers["Content-Type"] = "application/x-www-form-urlencoded";
$rs = $request->serialize();
$am = $this->getPrivateMethod($request, "arrayMerge");
$rsam = $am->invoke($request, $rs);
$canonicalQueryString = http_build_query($rsam);
$payload = "";
}
if (HttpProfile::$REQ_POST == $reqmethod) {
if (isset($options["IsMultipart"]) && $options["IsMultipart"] === true) {
$boundary = uniqid();
$headers["Content-Type"] = "multipart/form-data; boundary=" . $boundary;
$canonicalQueryString = "";
$payload = $this->getMultipartPayload($request, $boundary, $options);
} else if (isset($options["IsOctetStream"]) && $options["IsOctetStream"] === true) {
$headers["Content-Type"] = "application/octet-stream";
$canonicalQueryString = "";
} else if (isset($options["IsCommonJson"]) && $options["IsCommonJson"] === true) {
$headers["Content-Type"] = "application/json";
$canonicalQueryString = "";
$payload = json_encode($request);
} else {
$headers["Content-Type"] = "application/json";
$canonicalQueryString = "";
$payload = $request->toJsonString();
}
}
if ($this->profile->getUnsignedPayload() == true) {
$headers["X-TC-Content-SHA256"] = "UNSIGNED-PAYLOAD";
$payloadHash = hash("SHA256", "UNSIGNED-PAYLOAD");
} else {
$payloadHash = hash("SHA256", $payload);
}
$canonicalHeaders = "content-type:".$headers["Content-Type"]."\n".
"host:".$headers["Host"]."\n";
$signedHeaders = "content-type;host";
$canonicalRequest = $reqmethod."\n".
$canonicalUri."\n".
$canonicalQueryString."\n".
$canonicalHeaders."\n".
$signedHeaders."\n".
$payloadHash;
$algo = "TC3-HMAC-SHA256";
// date_default_timezone_set('UTC');
// $date = date("Y-m-d", $headers["X-TC-Timestamp"]);
$date = gmdate("Y-m-d", $headers["X-TC-Timestamp"]);
$service = explode(".", $endpoint)[0];
$credentialScope = $date."/".$service."/tc3_request";
$hashedCanonicalRequest = hash("SHA256", $canonicalRequest);
$str2sign = $algo."\n".
$headers["X-TC-Timestamp"]."\n".
$credentialScope."\n".
$hashedCanonicalRequest;
$skey = $this->credential->getSecretKey();
$signature = Sign::signTC3($skey, $date, $service, $str2sign);
$sid = $this->credential->getSecretId();
$auth = $algo.
" Credential=".$sid."/".$credentialScope.
", SignedHeaders=content-type;host, Signature=".$signature;
$headers["Authorization"] = $auth;
if (HttpProfile::$REQ_GET == $reqmethod) {
$connect = $this->getConnect();
return $connect->getRequest($this->path, $canonicalQueryString, $headers);
} else {
$connect = $this->getConnect();
return $connect->postRequestRaw($this->path, $headers, $payload);
}
}
private function getMultipartPayload($request, $boundary, $options)
{
$body = "";
$params = $request->serialize();
foreach ($params as $key => $value) {
$body .= "--".$boundary."\r\n";
$body .= "Content-Disposition: form-data; name=\"".$key;
if (in_array($key, $options["BinaryParams"])) {
$body .= "\"; filename=\"".$key;
}
$body .= "\"\r\n";
if (is_array($value)) {
$value = json_encode($value);
$body .= "Content-Type: application/json\r\n";
}
$body .= "\r\n".$value."\r\n";
}
if ($body != "") {
$body .= "--".$boundary."--\r\n";
}
return $body;
}
/**
* @throws TencentCloudSDKException
*/
private function getRequest($action, $request)
{
$query = $this->formatRequestData($action, $request, httpProfile::$REQ_GET);
$connect = $this->getConnect();
return $connect->getRequest($this->path, $query, []);
}
/**
* @throws TencentCloudSDKException
*/
private function postRequest($action, $request)
{
$body = $this->formatRequestData($action, $request, httpProfile::$REQ_POST);
$connect = $this->getConnect();
return $connect->postRequest($this->path, [], $body);
}
/**
* @throws TencentCloudSDKException
*/
private function formatRequestData($action, $request, $reqMethod)
{
$param = $request;
$param["Action"] = ucfirst($action);
$param["RequestClient"] = $this->sdkVersion;
$param["Nonce"] = rand();
$param["Timestamp"] = time();
$param["Version"] = $this->apiVersion;
if ($this->credential->getSecretId()) {
$param["SecretId"] = $this->credential->getSecretId();
}
if ($this->region) {
$param["Region"] = $this->region;
}
if ($this->credential->getToken()) {
$param["Token"] = $this->credential->getToken();
}
if ($this->profile->getSignMethod()) {
$param["SignatureMethod"] = $this->profile->getSignMethod();
}
$language = $this->profile->getLanguage();
if ($language) {
$param["Language"] = $language;
}
$signStr = $this->formatSignString($this->getRefreshedEndpoint(), $this->path, $param, $reqMethod);
$param["Signature"] = Sign::sign($this->credential->getSecretKey(), $signStr, $this->profile->getSignMethod());
return $param;
}
private function createConnect()
{
$prot = $this->profile->getHttpProfile()->getProtocol();
return new HttpConnection($prot.$this->getRefreshedEndpoint(), $this->profile);
}
private function getConnect() {
$keepAlive = $this->profile->getHttpProfile()->getKeepAlive();
if (true === $keepAlive) {
return $this->httpConn;
} else {
return $this->createConnect();
}
}
private function formatSignString($host, $uri, $param, $requestMethod)
{
$tmpParam = [];
ksort($param);
foreach ($param as $key => $value) {
array_push($tmpParam, $key . "=" . $value);
}
$strParam = join ("&", $tmpParam);
$signStr = strtoupper($requestMethod) . $host . $uri ."?".$strParam;
return $signStr;
}
private function getPrivateMethod($obj, $methodName) {
$objReflectClass = new ReflectionClass(get_class($obj));
$method = $objReflectClass->getMethod($methodName);
$method->setAccessible(true);
return $method;
}
/**
* User might call httpProfile.SetEndpoint after client is initialized,
* so everytime we get the enpoint we need to check it.
* Or we must find a way to disable such usage.
*/
private function getRefreshedEndpoint() {
$this->endpoint = $this->profile->getHttpProfile()->getEndpoint();
if ($this->endpoint === null) {
$this->endpoint = $this->service.".".$this->profile->getHttpProfile()->getRootDomain();
}
return $this->endpoint;
}
}

View File

@@ -0,0 +1,129 @@
<?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\Common;
use \ReflectionClass;
/**
* 抽象model类禁止client引用
* @package TencentCloud\Common
*/
abstract class AbstractModel
{
/**
* 内部实现,用户禁止调用
*/
public function serialize()
{
$ret = $this->objSerialize($this);
return $ret;
}
private function objSerialize($obj) {
$memberRet = [];
$ref = new ReflectionClass(get_class($obj));
$memberList = $ref->getProperties();
foreach ($memberList as $x => $member)
{
$name = ucfirst($member->getName());
$member->setAccessible(true);
$value = $member->getValue($obj);
if ($value === null) {
continue;
}
if ($value instanceof AbstractModel) {
$memberRet[$name] = $this->objSerialize($value);
} else if (is_array($value)) {
$memberRet[$name] = $this->arraySerialize($value);
} else {
$memberRet[$name] = $value;
}
}
return $memberRet;
}
private function arraySerialize($memberList) {
$memberRet = [];
foreach ($memberList as $name => $value)
{
if ($value === null) {
continue;
}
if ($value instanceof AbstractModel) {
$memberRet[$name] = $this->objSerialize($value);
} elseif (is_array($value)) {
$memberRet[$name] = $this->arraySerialize($value);
}else {
$memberRet[$name] = $value;
}
}
return $memberRet;
}
private function arrayMerge($array, $prepend = null)
{
$results = array();
foreach ($array as $key => $value) {
if (is_array($value)) {
$results = array_merge($results, static::arrayMerge($value, $prepend.$key.'.'));
}
else {
if (is_bool($value)) {
$results[$prepend.$key] = json_encode($value);
} else {
$results[$prepend.$key] = $value;
}
}
}
return $results;
}
abstract public function deserialize($param);
/**
* @param string $jsonString json格式的字符串
*/
public function fromJsonString($jsonString)
{
$arr = json_decode($jsonString, true);
$this->deserialize($arr);
}
public function toJsonString()
{
$r = $this->serialize();
// it is an object rather than an array
if (empty($r)) {
return "{}";
}
return json_encode($r, JSON_UNESCAPED_UNICODE);
}
public function __call($member, $param)
{
$act = substr($member,0,3);
$attr = substr($member,3);
if ($act === "get") {
return $this->$attr;
} else if ($act === "set") {
$this->$attr = $param[0];
}
}
}

View File

@@ -0,0 +1,155 @@
<?php
namespace TencentCloud\Common;
define("STATE_CLOSED", 0);
define("STATE_HALF_OPEN", 1);
define("STATE_OPEN", 2);
class Counter
{
public $failures = 0;
public $total = 0;
public $consecutiveSuccesses = 0;
public $consecutiveFailures = 0;
public function onSuccess()
{
$this->total++;
$this->consecutiveSuccesses++;
$this->consecutiveFailures = 0;
}
public function onFailure()
{
$this->total++;
$this->failures++;
$this->consecutiveFailures++;
$this->consecutiveSuccesses = 0;
}
public function clear()
{
$this->failures = 0;
$this->total = 0;
$this->consecutiveSuccesses = 0;
$this->consecutiveFailures = 0;
}
public function getFailureRate()
{
if ($this->total == 0) {
return 0.0;
}
return floatval($this->failures) / $this->total;
}
}
class CircuitBreaker
{
public $breakerSetting;
public $counter;
public $state;
public $expiry;
public $generation;
public function __construct($breakerSetting)
{
$this->breakerSetting = $breakerSetting;
$this->counter = new Counter();
$this->state = STATE_CLOSED;
$this->expiry = time() + $breakerSetting->windowInterval;
$this->generation = 0;
}
public function readyToOpen()
{
return ($this->counter->failures >= $this->breakerSetting->maxFailNum &&
$this->counter->getFailureRate() >= $this->breakerSetting->maxFailPercent) ||
$this->counter->consecutiveFailures >= 5;
}
public function currentState($now)
{
if ($this->state == STATE_CLOSED) {
if ($this->expiry <= $now) {
$this->toNewGeneration($now);
}
} elseif ($this->state == STATE_OPEN) {
if ($this->expiry <= $now) {
$this->switchState(STATE_HALF_OPEN, $now);
}
}
return array($this->state, $this->generation);
}
public function switchState($newState, $now)
{
if ($this->state == $newState) {
return;
}
$this->state = $newState;
$this->toNewGeneration($now);
}
public function toNewGeneration($now)
{
$this->generation = ($this->generation + 1) % 10;
$this->counter->clear();
if ($this->state == STATE_CLOSED) {
$this->expiry = $now + $this->breakerSetting->windowInterval;
} elseif ($this->state == STATE_OPEN) {
$this->expiry = $now + $this->breakerSetting->timeout;
} else { // STATE_HALF_OPEN
$this->expiry = time();
}
}
public function beforeRequests()
{
$now = time();
list($state, $generation) = $this->currentState($now);
if ($state == STATE_OPEN) {
return array($generation, true);
}
return array($generation, false);
}
public function afterRequests($before, $success)
{
$now = time();
list($state, $generation) = $this->currentState($now);
if ($generation != $before) {
return;
}
if ($success) {
$this->onSuccess($state, $now);
} else {
$this->onFailure($state, $now);
}
}
public function onSuccess($state, $now)
{
if ($state == STATE_CLOSED) {
$this->counter->onSuccess();
} elseif ($state == STATE_HALF_OPEN) {
$this->counter->onSuccess();
if ($this->counter->total - $this->counter->failures >= $this->breakerSetting->maxRequests) {
$this->switchState(STATE_CLOSED, $now);
}
}
}
public function onFailure($state, $now)
{
if ($state == STATE_CLOSED) {
$this->counter->onFailure();
if ($this->readyToOpen()) {
$this->switchState(STATE_OPEN, $now);
}
} elseif ($state == STATE_HALF_OPEN) {
$this->counter->onFailure();
$this->switchState(STATE_OPEN, $now);
}
}
}

View File

@@ -0,0 +1,45 @@
<?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\Common;
use TencentCloud\Common\AbstractClient;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Credential;
class CommonClient extends AbstractClient
{
protected $endpoint;
protected $service;
protected $version;
/**
* @param string $service
* @param string $version
* @param Credential $credential
* @param string $region
* @param ClientProfile|null $profile
* @throws TencentCloudSDKException
*/
function __construct($service, $version, $credential, $region, $profile=null)
{
$this->service = $service;
$this->version = $version;
$this->endpoint = $service.".tencentcloudapi.com";
parent::__construct($this->endpoint, $version, $credential, $region, $profile);
}
}

View File

@@ -0,0 +1,107 @@
<?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\Common;
/**
* 证书类,保存认证相关参数
* @package TencentCloud\Common
*/
class Credential
{
/**
* @var string secretId
*/
private $secretId;
/**
* @var string secretKey
*/
private $secretKey;
/**
* @var string token
*/
private $token;
/**
* Credential constructor.
* @param string $secretId secretId
* @param string $secretKey secretKey
* @param string $token token
*/
public function __construct($secretId, $secretKey, $token = null)
{
$this->secretId = $secretId;
$this->secretKey = $secretKey;
$this->token = $token;
}
/**
* 设置secretId
* @param string $secretId secretId
*/
public function setSecretId($secretId)
{
$this->secretId = $secretId;
}
/**
* 设置secretKey
* @param string $secretKey secretKey
*/
public function setSecretKey($secretKey)
{
$this->secretKey = $secretKey;
}
/**
* @param string $token 要设置的token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* 获取secretId
* @return string secretId
*/
public function getSecretId()
{
return $this->secretId;
}
/**
* 获取secretKey
* @return string secretKey
*/
public function getSecretKey()
{
return $this->secretKey;
}
/**
* 获取token
* @return null|string token
*/
public function getToken()
{
return $this->token;
}
}

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud\Common\Exception;
/**
* sdk异常类
* @package TencentCloud\Common\Exception
*/
class TencentCloudSDKException extends \Exception
{
/**
* @var string 请求id
*/
private $requestId;
private $errorCode;
/**
* TencentCloudSDKException constructor.
* @param string $code 异常错误码
* @param string $message 异常信息
* @param string $requestId 请求ID
*/
public function __construct($code = "", $message = "", $requestId = "")
{
parent::__construct($message, 0);
$this->errorCode = $code;
$this->requestId = $requestId;
}
/**
* 返回请求id
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* 返回错误码
* @return string
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* 格式化输出异常码异常信息请求id
* @return string
*/
public function __toString()
{
return "[".__CLASS__."]"." code:".$this->errorCode.
" message:".$this->getMessage().
" requestId:".$this->requestId;
}
}

View File

@@ -0,0 +1,85 @@
<?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\Common\Http;
use GuzzleHttp\Client;
/**
* http连接类
* @package TencentCloud\Common\http
*/
class HttpConnection
{
private $client;
private $profile;
function __construct($url, $profile)
{
$this->client = new Client(["base_uri" => $url]);
$this->profile = $profile;
}
private function getOptions()
{
$options = ["allow_redirects" => false];
$options["timeout"] = $this->profile->getHttpProfile()->getReqTimeout();
$options["proxy"] = $this->profile->getHttpProfile()->getProxy();
return $options;
}
public function getRequest($uri = '', $query = [], $headers = [])
{
$options = $this->getOptions();
if ($query) {
$options["query"] = $query;
}
if ($headers) {
$options["headers"] = $headers;
}
return $this->client->get($uri, $options);
}
public function postRequest($uri = '', $headers = [], $body = '')
{
$options = $this->getOptions();
if ($headers) {
$options["headers"] = $headers;
}
if ($body) {
$options["form_params"] = $body;
}
return $this->client->post($uri, $options);
}
public function postRequestRaw($uri = '', $headers = [], $body = '')
{
$options = $this->getOptions();
if ($headers) {
$options["headers"] = $headers;
}
if ($body) {
$options["body"] = $body;
}
return $this->client->post($uri, $options);
}
}

View File

@@ -0,0 +1,227 @@
<?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\Common\Profile;
use TencentCloud\Common\Exception\TencentCloudSDKException;
/**
* client可选参数类
* Class ClientProfile
* @package TencentCloud\Common\Profile
*/
class ClientProfile
{
/**
* @var string hmacsha1算法
*/
public static $SIGN_HMAC_SHA1 = "HmacSHA1";
/**
* @var string hmacsha256算法
*/
public static $SIGN_HMAC_SHA256 = "HmacSHA256";
/**
* @var string 签名V3
*/
public static $SIGN_TC3_SHA256 = "TC3-HMAC-SHA256";
/**
* @var string Chinese simplified
*/
public static $ZH_CN = "zh-CN";
/**
* @var string English
*/
public static $EN_US = "en-US";
/**
* @var boolean 开启地域容器
*/
public $enableRegionBreaker;
/**
* @var HttpProfile http相关参数
*/
private $httpProfile;
/**
* @var string 签名方法
*/
private $signMethod;
/**
* @var string 忽略内容签名
*/
private $unsignedPayload;
/**
* @var boolean
*/
private $checkPHPVersion;
/**
* @var string
*/
private $language;
/**
* @var RegionBreakerProfile 地域容灾相关参数
*/
private $regionBreakerProfile;
/**
* ClientProfile constructor.
* @param string $signMethod 签名算法目前支持SHA256SHA1
* @param HttpProfile $httpProfile http参数类
* @param boolean $enableRegionBreaker 开启地域容灾
* @param RegionBreakerProfile $regionBreakerProfile 地域容灾相关参数
*/
public function __construct($signMethod = null, $httpProfile = null, $enableRegionBreaker = false, $regionBreakerProfile = null)
{
$this->signMethod = $signMethod ? $signMethod : ClientProfile::$SIGN_TC3_SHA256;
$this->httpProfile = $httpProfile ? $httpProfile : new HttpProfile();
$this->unsignedPayload = false;
$this->checkPHPVersion = true;
$this->enableRegionBreaker = $enableRegionBreaker;
$this->regionBreakerProfile = $regionBreakerProfile;
//$this->language = ClientProfile::$ZH_CN;
}
/**
* 设置签名算法
* @param string $signMethod 签名方法目前支持SHA256SHA1, TC3
*/
public function setSignMethod($signMethod)
{
$this->signMethod = $signMethod;
}
/**
* 设置http相关参数
* @param HttpProfile $httpProfile http相关参数
*/
public function setHttpProfile($httpProfile)
{
$this->httpProfile = $httpProfile;
}
/**
* 获取签名方法
* @return null|string 签名方法
*/
public function getSignMethod()
{
return $this->signMethod;
}
/**
* 设置是否忽略内容签名
* @param bool $flag true表示忽略签名
*/
public function setUnsignedPayload($flag)
{
$this->unsignedPayload = $flag;
}
/**
* 获取是否忽略内容签名标志位
* @return bool
*/
public function getUnsignedPayload()
{
return $this->unsignedPayload;
}
public function getCheckPHPVersion()
{
return $this->checkPHPVersion;
}
public function setCheckPHPVersion($flag)
{
$this->checkPHPVersion = $flag;
}
public function getLanguage()
{
return $this->language;
}
/**
* @param string $language Valid values: zh-CN, en-US
*/
public function setLanguage($language)
{
$this->language = $language;
}
public function getRegionBreakerProfile()
{
return $this->regionBreakerProfile;
}
/**
* 设置地域容灾相关参数
* @param RegionBreakerProfile $regionBreakerProfile 地域容灾相关参数
*/
public function setRegionBreakerProfile($regionBreakerProfile)
{
$this->regionBreakerProfile = $regionBreakerProfile;
}
/**
* 获取http选项实例
* @return null|HttpProfile http选项实例
*/
public function getHttpProfile()
{
return $this->httpProfile;
}
}
class RegionBreakerProfile {
public function __construct($masterEndpoint,
$slaveEndpoint,
$maxFailNum = 5,
$maxFailPercent = 0.75,
$windowInterval = 60*5,
$timeout = 60,
$maxRequests = 5) {
if (empty($masterEndpoint) || !(substr($masterEndpoint, -20) === '.tencentcloudapi.com')) {
throw new TencentCloudSDKException("", 'masterEndpoint must be provided and end with ".tencentcloudapi.com"');
}
if (empty($slaveEndpoint) || !(substr($slaveEndpoint, -20) === '.tencentcloudapi.com')) {
throw new TencentCloudSDKException("", 'slaveEndpoint must be provided and end with ".tencentcloudapi.com"');
}
$this->masterEndpoint = $masterEndpoint;
$this->slaveEndpoint = $slaveEndpoint;
$this->maxFailNum = $maxFailNum;
$this->maxFailPercent = $maxFailPercent;
if ($this->maxFailPercent < 0 || $this->maxFailPercent > 1) {
throw new TencentCloudSDKException("", "ClientError: max fail percent must be set between 0 and 1");
}
$this->windowInterval = $windowInterval;
$this->timeout = $timeout;
$this->maxRequests = $maxRequests;
}
}

View File

@@ -0,0 +1,215 @@
<?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\Common\Profile;
/**
* http相关参数类
* Class HttpProfile
* @package TencentCloud\Common\Profile
*/
class HttpProfile
{
/**
* @var string https访问
*/
public static $REQ_HTTPS = "https://";
/**
* @var string http访问
*/
public static $REQ_HTTP = "http://";
/**
* @var string post请求
*/
public static $REQ_POST = "POST";
/**
* @var string get请求
*/
public static $REQ_GET = "GET";
/**
* @var int 时间一分钟
*/
public static $TM_MINUTE = 60;
/**
* @var string http请求方法
*/
private $reqMethod;
/**
* @var string 请求接入点域名
*/
private $endpoint;
/**
* @var integer 请求超时时长,单位为秒
*/
private $reqTimeout;
/**
* @var string 请求协议
*/
private $protocol;
/**
* @var string|array 请求代理
*/
private $proxy;
/**
* @var string
*/
private $rootDomain;
/**
* @var boolean
*/
private $keepAlive;
/**
* HttpProfile constructor.
* @param string $protocol 请求协议
* @param string $endpoint 请求接入点域名(xx.[region.]tencentcloudapi.com)
* @param string $reqMethod http请求方法目前支持POST GET
* @param integer $reqTimeout 请求超时时间,单位:s
*/
public function __construct($protocol = null, $endpoint = null, $reqMethod = null, $reqTimeout = null)
{
$this->reqMethod = $reqMethod ? $reqMethod : HttpProfile::$REQ_POST;
$this->endpoint = $endpoint;
$this->reqTimeout = $reqTimeout ? $reqTimeout : HttpProfile::$TM_MINUTE;
$this->protocol = $protocol ? $protocol : HttpProfile::$REQ_HTTPS;
$this->rootDomain = "tencentcloudapi.com";
$this->keepAlive = false;
}
/**
* 设置http请求方法
* @param string $reqMethod http请求方法目前支持POST GET
*/
public function setReqMethod($reqMethod)
{
$this->reqMethod = $reqMethod;
}
/**
* 设置请求协议
* @param string $protocol 请求协议https:// http://
*/
public function setProtocol($protocol) {
$this->protocol = $protocol;
}
/**
* 设置请求接入点域名
* @param string $endpoint 请求接入点域名(xx.[region.]tencentcloudapi.com)
*/
public function setEndpoint($endpoint)
{
$this->endpoint = $endpoint;
}
/**
* 设置请求超时时间
* @param integer $reqTimeout 请求超时时间,单位:s
*/
public function setReqTimeout($reqTimeout)
{
$this->reqTimeout = $reqTimeout;
}
/**
* 设置请求代理
* @param string|array $proxy 请求代理配置
*/
public function setProxy($proxy)
{
$this->proxy = $proxy;
}
/**
* 获取请求方法
* @return null|string 请求方法
*/
public function getReqMethod()
{
return $this->reqMethod;
}
/**
* 获取请求协议
* @return null|string 请求协议
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* 获取请求超时时间
* @return int 请求超时时间
*/
public function getReqTimeout()
{
return $this->reqTimeout;
}
/**
* 获取请求接入点域名
* @return null|string 接入点域名
*/
public function getEndpoint()
{
return $this->endpoint;
}
/**
* 获取请求代理
* @return null|string|array
*/
public function getProxy()
{
return $this->proxy;
}
public function setRootDomain($domain)
{
$this->rootDomain = $domain;
}
public function getRootDomain()
{
return $this->rootDomain;
}
/**
* @param boolean $flag
*/
public function setKeepAlive($flag) {
$this->keepAlive = $flag;
}
public function getKeepAlive() {
return $this->keepAlive;
}
}

View File

@@ -0,0 +1,49 @@
<?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\Common;
use TencentCloud\Common\Exception\TencentCloudSDKException;
/**
* 签名类禁止client引用
* @package TencentCloud\Common
* @throws TencentCloudSDKException
*/
class Sign
{
/**
* @throws TencentCloudSDKException
*/
public static function sign($secretKey, $signStr, $signMethod)
{
$signMethodMap = ["HmacSHA1" => "SHA1", "HmacSHA256" => "SHA256"];
if (!array_key_exists($signMethod, $signMethodMap)) {
throw new TencentCloudSDKException("signMethod invalid", "signMethod only support (HmacSHA1, HmacSHA256)");
}
$signature = base64_encode(hash_hmac($signMethodMap[$signMethod], $signStr, $secretKey, true));
return $signature;
}
public static function signTC3($skey, $date, $service, $str2sign)
{
$dateKey = hash_hmac("SHA256", $date, "TC3".$skey, true);
$serviceKey = hash_hmac("SHA256", $service, $dateKey, true);
$reqKey = hash_hmac("SHA256", "tc3_request", $serviceKey, true);
return hash_hmac("SHA256", $str2sign, $reqKey);
}
}

201
vendor/tencentcloud/sms/LICENSE vendored Normal file
View 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.

20
vendor/tencentcloud/sms/README.MD vendored Normal file
View File

@@ -0,0 +1,20 @@
# 简介
欢迎使用腾讯云开发者工具套件SDK3.0SDK3.0是云 API3.0 平台的配套工具。新版SDK实现了统一化具有各个语言版本的SDK使用方法相同接口调用方式相同统一的错误码和返回包格式这些优点。
# 依赖环境
1. PHP 5.6.0 版本及以上
2. 从腾讯云控制台 开通相应产品
3. 获取 SecretID、SecretKey 以及调用地址endpointendpoint 为 sms.tencentcloudapi.com具体参考各产品说明。
# 获取安装
## 通过 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/sms` 添加依赖。

23
vendor/tencentcloud/sms/composer.json vendored Normal file
View File

@@ -0,0 +1,23 @@
{
"name": "tencentcloud/sms",
"description": "TencentCloudApi php sdk sms",
"type": "library",
"homepage": "https://github.com/tencentcloud-sdk-php/sms",
"license": "Apache-2.0",
"authors": [
{
"name": "tencentcloudapi",
"email": "tencentcloudapi@tencent.com",
"homepage": "https://github.com/tencentcloud-sdk-php/sms",
"role": "Developer"
}
],
"require": {
"tencentcloud/common": "3.0.990"
},
"autoload": {
"psr-4": {
"TencentCloud\\": "./src/TencentCloud"
}
}
}

View File

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

View File

@@ -0,0 +1,233 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* AddSmsSign请求参数结构体
*
* @method string getSignName() 获取签名名称。
注:不能重复申请已通过或待审核的签名。
* @method void setSignName(string $SignName) 设置签名名称。
注:不能重复申请已通过或待审核的签名。
* @method integer getSignType() 获取签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @method void setSignType(integer $SignType) 设置签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @method integer getDocumentType() 获取证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @method void setDocumentType(integer $DocumentType) 设置证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method integer getUsedMethod() 获取签名用途:
0自用。
1他用。
* @method void setUsedMethod(integer $UsedMethod) 设置签名用途:
0自用。
1他用。
* @method string getProofImage() 获取签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @method void setProofImage(string $ProofImage) 设置签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @method string getCommissionImage() 获取委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
* @method void setCommissionImage(string $CommissionImage) 设置委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
* @method string getRemark() 获取签名的申请备注。
* @method void setRemark(string $Remark) 设置签名的申请备注。
*/
class AddSmsSignRequest extends AbstractModel
{
/**
* @var string 签名名称。
注:不能重复申请已通过或待审核的签名。
*/
public $SignName;
/**
* @var integer 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
*/
public $SignType;
/**
* @var integer 证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
*/
public $DocumentType;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var integer 签名用途:
0自用。
1他用。
*/
public $UsedMethod;
/**
* @var string 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
*/
public $ProofImage;
/**
* @var string 委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
*/
public $CommissionImage;
/**
* @var string 签名的申请备注。
*/
public $Remark;
/**
* @param string $SignName 签名名称。
注:不能重复申请已通过或待审核的签名。
* @param integer $SignType 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @param integer $DocumentType 证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param integer $UsedMethod 签名用途:
0自用。
1他用。
* @param string $ProofImage 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @param string $CommissionImage 委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
* @param string $Remark 签名的申请备注。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SignName",$param) and $param["SignName"] !== null) {
$this->SignName = $param["SignName"];
}
if (array_key_exists("SignType",$param) and $param["SignType"] !== null) {
$this->SignType = $param["SignType"];
}
if (array_key_exists("DocumentType",$param) and $param["DocumentType"] !== null) {
$this->DocumentType = $param["DocumentType"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("UsedMethod",$param) and $param["UsedMethod"] !== null) {
$this->UsedMethod = $param["UsedMethod"];
}
if (array_key_exists("ProofImage",$param) and $param["ProofImage"] !== null) {
$this->ProofImage = $param["ProofImage"];
}
if (array_key_exists("CommissionImage",$param) and $param["CommissionImage"] !== null) {
$this->CommissionImage = $param["CommissionImage"];
}
if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
$this->Remark = $param["Remark"];
}
}
}

View File

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

View File

@@ -0,0 +1,109 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* AddSmsTemplate请求参数结构体
*
* @method string getTemplateName() 获取模板名称。
* @method void setTemplateName(string $TemplateName) 设置模板名称。
* @method string getTemplateContent() 获取模板内容。
* @method void setTemplateContent(string $TemplateContent) 设置模板内容。
* @method integer getSmsType() 获取短信类型0表示普通短信, 1表示营销短信。
* @method void setSmsType(integer $SmsType) 设置短信类型0表示普通短信, 1表示营销短信。
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method string getRemark() 获取模板备注,例如申请原因,使用场景等。
* @method void setRemark(string $Remark) 设置模板备注,例如申请原因,使用场景等。
*/
class AddSmsTemplateRequest extends AbstractModel
{
/**
* @var string 模板名称。
*/
public $TemplateName;
/**
* @var string 模板内容。
*/
public $TemplateContent;
/**
* @var integer 短信类型0表示普通短信, 1表示营销短信。
*/
public $SmsType;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var string 模板备注,例如申请原因,使用场景等。
*/
public $Remark;
/**
* @param string $TemplateName 模板名称。
* @param string $TemplateContent 模板内容。
* @param integer $SmsType 短信类型0表示普通短信, 1表示营销短信。
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param string $Remark 模板备注,例如申请原因,使用场景等。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TemplateName",$param) and $param["TemplateName"] !== null) {
$this->TemplateName = $param["TemplateName"];
}
if (array_key_exists("TemplateContent",$param) and $param["TemplateContent"] !== null) {
$this->TemplateContent = $param["TemplateContent"];
}
if (array_key_exists("SmsType",$param) and $param["SmsType"] !== null) {
$this->SmsType = $param["SmsType"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
$this->Remark = $param["Remark"];
}
}
}

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* AddSmsTemplate返回参数结构体
*
* @method AddTemplateStatus getAddTemplateStatus() 获取添加短信模板响应包体
* @method void setAddTemplateStatus(AddTemplateStatus $AddTemplateStatus) 设置添加短信模板响应包体
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class AddSmsTemplateResponse extends AbstractModel
{
/**
* @var AddTemplateStatus 添加短信模板响应包体
*/
public $AddTemplateStatus;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param AddTemplateStatus $AddTemplateStatus 添加短信模板响应包体
* @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("AddTemplateStatus",$param) and $param["AddTemplateStatus"] !== null) {
$this->AddTemplateStatus = new AddTemplateStatus();
$this->AddTemplateStatus->deserialize($param["AddTemplateStatus"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

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

View File

@@ -0,0 +1,149 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 回执数据统计响应包体
*
* @method integer getCallbackCount() 获取短信回执量统计。
* @method void setCallbackCount(integer $CallbackCount) 设置短信回执量统计。
* @method integer getRequestSuccessCount() 获取短信提交成功量统计。
* @method void setRequestSuccessCount(integer $RequestSuccessCount) 设置短信提交成功量统计。
* @method integer getCallbackFailCount() 获取短信回执失败量统计。
* @method void setCallbackFailCount(integer $CallbackFailCount) 设置短信回执失败量统计。
* @method integer getCallbackSuccessCount() 获取短信回执成功量统计。
* @method void setCallbackSuccessCount(integer $CallbackSuccessCount) 设置短信回执成功量统计。
* @method integer getInternalErrorCount() 获取运营商内部错误统计。
* @method void setInternalErrorCount(integer $InternalErrorCount) 设置运营商内部错误统计。
* @method integer getInvalidNumberCount() 获取号码无效或空号统计。
* @method void setInvalidNumberCount(integer $InvalidNumberCount) 设置号码无效或空号统计。
* @method integer getShutdownErrorCount() 获取停机、关机等错误统计。
* @method void setShutdownErrorCount(integer $ShutdownErrorCount) 设置停机、关机等错误统计。
* @method integer getBlackListCount() 获取号码拉入黑名单统计。
* @method void setBlackListCount(integer $BlackListCount) 设置号码拉入黑名单统计。
* @method integer getFrequencyLimitCount() 获取运营商频率限制统计。
* @method void setFrequencyLimitCount(integer $FrequencyLimitCount) 设置运营商频率限制统计。
*/
class CallbackStatusStatistics extends AbstractModel
{
/**
* @var integer 短信回执量统计。
*/
public $CallbackCount;
/**
* @var integer 短信提交成功量统计。
*/
public $RequestSuccessCount;
/**
* @var integer 短信回执失败量统计。
*/
public $CallbackFailCount;
/**
* @var integer 短信回执成功量统计。
*/
public $CallbackSuccessCount;
/**
* @var integer 运营商内部错误统计。
*/
public $InternalErrorCount;
/**
* @var integer 号码无效或空号统计。
*/
public $InvalidNumberCount;
/**
* @var integer 停机、关机等错误统计。
*/
public $ShutdownErrorCount;
/**
* @var integer 号码拉入黑名单统计。
*/
public $BlackListCount;
/**
* @var integer 运营商频率限制统计。
*/
public $FrequencyLimitCount;
/**
* @param integer $CallbackCount 短信回执量统计。
* @param integer $RequestSuccessCount 短信提交成功量统计。
* @param integer $CallbackFailCount 短信回执失败量统计。
* @param integer $CallbackSuccessCount 短信回执成功量统计。
* @param integer $InternalErrorCount 运营商内部错误统计。
* @param integer $InvalidNumberCount 号码无效或空号统计。
* @param integer $ShutdownErrorCount 停机、关机等错误统计。
* @param integer $BlackListCount 号码拉入黑名单统计。
* @param integer $FrequencyLimitCount 运营商频率限制统计。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("CallbackCount",$param) and $param["CallbackCount"] !== null) {
$this->CallbackCount = $param["CallbackCount"];
}
if (array_key_exists("RequestSuccessCount",$param) and $param["RequestSuccessCount"] !== null) {
$this->RequestSuccessCount = $param["RequestSuccessCount"];
}
if (array_key_exists("CallbackFailCount",$param) and $param["CallbackFailCount"] !== null) {
$this->CallbackFailCount = $param["CallbackFailCount"];
}
if (array_key_exists("CallbackSuccessCount",$param) and $param["CallbackSuccessCount"] !== null) {
$this->CallbackSuccessCount = $param["CallbackSuccessCount"];
}
if (array_key_exists("InternalErrorCount",$param) and $param["InternalErrorCount"] !== null) {
$this->InternalErrorCount = $param["InternalErrorCount"];
}
if (array_key_exists("InvalidNumberCount",$param) and $param["InvalidNumberCount"] !== null) {
$this->InvalidNumberCount = $param["InvalidNumberCount"];
}
if (array_key_exists("ShutdownErrorCount",$param) and $param["ShutdownErrorCount"] !== null) {
$this->ShutdownErrorCount = $param["ShutdownErrorCount"];
}
if (array_key_exists("BlackListCount",$param) and $param["BlackListCount"] !== null) {
$this->BlackListCount = $param["BlackListCount"];
}
if (array_key_exists("FrequencyLimitCount",$param) and $param["FrequencyLimitCount"] !== null) {
$this->FrequencyLimitCount = $param["FrequencyLimitCount"];
}
}
}

View File

@@ -0,0 +1,113 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* CallbackStatusStatistics请求参数结构体
*
* @method integer getStartDateTime() 获取开始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
* @method void setStartDateTime(integer $StartDateTime) 设置开始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
* @method integer getEndDataTime() 获取结束时间yyyymmddhh 需要拉取的截止时间,精确到小时。
EndDataTime 必须大于 StartDateTime。
* @method void setEndDataTime(integer $EndDataTime) 设置结束时间yyyymmddhh 需要拉取的截止时间,精确到小时。
EndDataTime 必须大于 StartDateTime。
* @method string getSmsSdkAppid() 获取短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @method void setSmsSdkAppid(string $SmsSdkAppid) 设置短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @method integer getLimit() 获取最大上限。
目前固定设置为0。
* @method void setLimit(integer $Limit) 设置最大上限。
目前固定设置为0。
* @method integer getOffset() 获取偏移量。
目前固定设置为0。
* @method void setOffset(integer $Offset) 设置偏移量。
目前固定设置为0。
*/
class CallbackStatusStatisticsRequest extends AbstractModel
{
/**
* @var integer 开始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
*/
public $StartDateTime;
/**
* @var integer 结束时间yyyymmddhh 需要拉取的截止时间,精确到小时。
EndDataTime 必须大于 StartDateTime。
*/
public $EndDataTime;
/**
* @var string 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
*/
public $SmsSdkAppid;
/**
* @var integer 最大上限。
目前固定设置为0。
*/
public $Limit;
/**
* @var integer 偏移量。
目前固定设置为0。
*/
public $Offset;
/**
* @param integer $StartDateTime 开始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
* @param integer $EndDataTime 结束时间yyyymmddhh 需要拉取的截止时间,精确到小时。
EndDataTime 必须大于 StartDateTime。
* @param string $SmsSdkAppid 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @param integer $Limit 最大上限。
目前固定设置为0。
* @param integer $Offset 偏移量。
目前固定设置为0。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StartDateTime",$param) and $param["StartDateTime"] !== null) {
$this->StartDateTime = $param["StartDateTime"];
}
if (array_key_exists("EndDataTime",$param) and $param["EndDataTime"] !== null) {
$this->EndDataTime = $param["EndDataTime"];
}
if (array_key_exists("SmsSdkAppid",$param) and $param["SmsSdkAppid"] !== null) {
$this->SmsSdkAppid = $param["SmsSdkAppid"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
}
}

View File

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

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 删除签名响应
*
* @method string getDeleteStatus() 获取删除状态信息。
* @method void setDeleteStatus(string $DeleteStatus) 设置删除状态信息。
* @method integer getDeleteTime() 获取删除时间UNIX 时间戳(单位:秒)。
* @method void setDeleteTime(integer $DeleteTime) 设置删除时间UNIX 时间戳(单位:秒)。
*/
class DeleteSignStatus extends AbstractModel
{
/**
* @var string 删除状态信息。
*/
public $DeleteStatus;
/**
* @var integer 删除时间UNIX 时间戳(单位:秒)。
*/
public $DeleteTime;
/**
* @param string $DeleteStatus 删除状态信息。
* @param integer $DeleteTime 删除时间UNIX 时间戳(单位:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("DeleteStatus",$param) and $param["DeleteStatus"] !== null) {
$this->DeleteStatus = $param["DeleteStatus"];
}
if (array_key_exists("DeleteTime",$param) and $param["DeleteTime"] !== null) {
$this->DeleteTime = $param["DeleteTime"];
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 删除模板响应
*
* @method string getDeleteStatus() 获取删除状态信息。
* @method void setDeleteStatus(string $DeleteStatus) 设置删除状态信息。
* @method integer getDeleteTime() 获取删除时间UNIX 时间戳(单位:秒)。
* @method void setDeleteTime(integer $DeleteTime) 设置删除时间UNIX 时间戳(单位:秒)。
*/
class DeleteTemplateStatus extends AbstractModel
{
/**
* @var string 删除状态信息。
*/
public $DeleteStatus;
/**
* @var integer 删除时间UNIX 时间戳(单位:秒)。
*/
public $DeleteTime;
/**
* @param string $DeleteStatus 删除状态信息。
* @param integer $DeleteTime 删除时间UNIX 时间戳(单位:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("DeleteStatus",$param) and $param["DeleteStatus"] !== null) {
$this->DeleteStatus = $param["DeleteStatus"];
}
if (array_key_exists("DeleteTime",$param) and $param["DeleteTime"] !== null) {
$this->DeleteTime = $param["DeleteTime"];
}
}
}

View File

@@ -0,0 +1,133 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 获取短信签名信息响应
*
* @method integer getSignId() 获取签名Id
* @method void setSignId(integer $SignId) 设置签名Id
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method integer getStatusCode() 获取申请签名状态。其中:
0表示审核通过。
1表示审核中。
-1表示审核未通过或审核失败。
* @method void setStatusCode(integer $StatusCode) 设置申请签名状态。其中:
0表示审核通过。
1表示审核中。
-1表示审核未通过或审核失败。
* @method string getReviewReply() 获取审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @method void setReviewReply(string $ReviewReply) 设置审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @method string getSignName() 获取签名名称。
* @method void setSignName(string $SignName) 设置签名名称。
* @method integer getCreateTime() 获取提交审核时间UNIX 时间戳(单位:秒)。
* @method void setCreateTime(integer $CreateTime) 设置提交审核时间UNIX 时间戳(单位:秒)。
*/
class DescribeSignListStatus extends AbstractModel
{
/**
* @var integer 签名Id
*/
public $SignId;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var integer 申请签名状态。其中:
0表示审核通过。
1表示审核中。
-1表示审核未通过或审核失败。
*/
public $StatusCode;
/**
* @var string 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
*/
public $ReviewReply;
/**
* @var string 签名名称。
*/
public $SignName;
/**
* @var integer 提交审核时间UNIX 时间戳(单位:秒)。
*/
public $CreateTime;
/**
* @param integer $SignId 签名Id
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param integer $StatusCode 申请签名状态。其中:
0表示审核通过。
1表示审核中。
-1表示审核未通过或审核失败。
* @param string $ReviewReply 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @param string $SignName 签名名称。
* @param integer $CreateTime 提交审核时间UNIX 时间戳(单位:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SignId",$param) and $param["SignId"] !== null) {
$this->SignId = $param["SignId"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("StatusCode",$param) and $param["StatusCode"] !== null) {
$this->StatusCode = $param["StatusCode"];
}
if (array_key_exists("ReviewReply",$param) and $param["ReviewReply"] !== null) {
$this->ReviewReply = $param["ReviewReply"];
}
if (array_key_exists("SignName",$param) and $param["SignName"] !== null) {
$this->SignName = $param["SignName"];
}
if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
$this->CreateTime = $param["CreateTime"];
}
}
}

View File

@@ -0,0 +1,73 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeSmsSignList请求参数结构体
*
* @method array getSignIdSet() 获取签名 ID 数组。
* @method void setSignIdSet(array $SignIdSet) 设置签名 ID 数组。
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
class DescribeSmsSignListRequest extends AbstractModel
{
/**
* @var array 签名 ID 数组。
*/
public $SignIdSet;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @param array $SignIdSet 签名 ID 数组。
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SignIdSet",$param) and $param["SignIdSet"] !== null) {
$this->SignIdSet = $param["SignIdSet"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeSmsSignList返回参数结构体
*
* @method array getDescribeSignListStatusSet() 获取获取签名信息响应
* @method void setDescribeSignListStatusSet(array $DescribeSignListStatusSet) 设置获取签名信息响应
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeSmsSignListResponse extends AbstractModel
{
/**
* @var array 获取签名信息响应
*/
public $DescribeSignListStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $DescribeSignListStatusSet 获取签名信息响应
* @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("DescribeSignListStatusSet",$param) and $param["DescribeSignListStatusSet"] !== null) {
$this->DescribeSignListStatusSet = [];
foreach ($param["DescribeSignListStatusSet"] as $key => $value){
$obj = new DescribeSignListStatus();
$obj->deserialize($value);
array_push($this->DescribeSignListStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,73 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeSmsTemplateList请求参数结构体
*
* @method array getTemplateIdSet() 获取模板 ID 数组。
* @method void setTemplateIdSet(array $TemplateIdSet) 设置模板 ID 数组。
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
class DescribeSmsTemplateListRequest extends AbstractModel
{
/**
* @var array 模板 ID 数组。
*/
public $TemplateIdSet;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @param array $TemplateIdSet 模板 ID 数组。
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TemplateIdSet",$param) and $param["TemplateIdSet"] !== null) {
$this->TemplateIdSet = $param["TemplateIdSet"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeSmsTemplateList返回参数结构体
*
* @method array getDescribeTemplateStatusSet() 获取获取短信模板信息响应
* @method void setDescribeTemplateStatusSet(array $DescribeTemplateStatusSet) 设置获取短信模板信息响应
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeSmsTemplateListResponse extends AbstractModel
{
/**
* @var array 获取短信模板信息响应
*/
public $DescribeTemplateStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $DescribeTemplateStatusSet 获取短信模板信息响应
* @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("DescribeTemplateStatusSet",$param) and $param["DescribeTemplateStatusSet"] !== null) {
$this->DescribeTemplateStatusSet = [];
foreach ($param["DescribeTemplateStatusSet"] as $key => $value){
$obj = new DescribeTemplateListStatus();
$obj->deserialize($value);
array_push($this->DescribeTemplateStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,121 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 获取短信模板信息响应
*
* @method integer getTemplateId() 获取模板Id
* @method void setTemplateId(integer $TemplateId) 设置模板Id
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method integer getStatusCode() 获取申请模板状态其中0表示审核通过且已生效1表示审核中2表示审核通过待生效-1表示审核未通过或审核失败。
* @method void setStatusCode(integer $StatusCode) 设置申请模板状态其中0表示审核通过且已生效1表示审核中2表示审核通过待生效-1表示审核未通过或审核失败。
* @method string getReviewReply() 获取审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @method void setReviewReply(string $ReviewReply) 设置审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @method string getTemplateName() 获取模板名称。
* @method void setTemplateName(string $TemplateName) 设置模板名称。
* @method integer getCreateTime() 获取提交审核时间UNIX 时间戳(单位:秒)。
* @method void setCreateTime(integer $CreateTime) 设置提交审核时间UNIX 时间戳(单位:秒)。
*/
class DescribeTemplateListStatus extends AbstractModel
{
/**
* @var integer 模板Id
*/
public $TemplateId;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var integer 申请模板状态其中0表示审核通过且已生效1表示审核中2表示审核通过待生效-1表示审核未通过或审核失败。
*/
public $StatusCode;
/**
* @var string 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
*/
public $ReviewReply;
/**
* @var string 模板名称。
*/
public $TemplateName;
/**
* @var integer 提交审核时间UNIX 时间戳(单位:秒)。
*/
public $CreateTime;
/**
* @param integer $TemplateId 模板Id
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param integer $StatusCode 申请模板状态其中0表示审核通过且已生效1表示审核中2表示审核通过待生效-1表示审核未通过或审核失败。
* @param string $ReviewReply 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @param string $TemplateName 模板名称。
* @param integer $CreateTime 提交审核时间UNIX 时间戳(单位:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TemplateId",$param) and $param["TemplateId"] !== null) {
$this->TemplateId = $param["TemplateId"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("StatusCode",$param) and $param["StatusCode"] !== null) {
$this->StatusCode = $param["StatusCode"];
}
if (array_key_exists("ReviewReply",$param) and $param["ReviewReply"] !== null) {
$this->ReviewReply = $param["ReviewReply"];
}
if (array_key_exists("TemplateName",$param) and $param["TemplateName"] !== null) {
$this->TemplateName = $param["TemplateName"];
}
if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
$this->CreateTime = $param["CreateTime"];
}
}
}

View File

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

View File

@@ -0,0 +1,245 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* ModifySmsSign请求参数结构体
*
* @method integer getSignId() 获取待修改的签名 ID。
* @method void setSignId(integer $SignId) 设置待修改的签名 ID。
* @method string getSignName() 获取签名名称。
* @method void setSignName(string $SignName) 设置签名名称。
* @method integer getSignType() 获取签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @method void setSignType(integer $SignType) 设置签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @method integer getDocumentType() 获取证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @method void setDocumentType(integer $DocumentType) 设置证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
需要和待修改签名International值保持一致该参数不能直接修改国内签名到国际签名。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
需要和待修改签名International值保持一致该参数不能直接修改国内签名到国际签名。
* @method integer getUsedMethod() 获取签名用途:
0自用。
1他用。
* @method void setUsedMethod(integer $UsedMethod) 设置签名用途:
0自用。
1他用。
* @method string getProofImage() 获取签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @method void setProofImage(string $ProofImage) 设置签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @method string getCommissionImage() 获取委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
* @method void setCommissionImage(string $CommissionImage) 设置委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
* @method string getRemark() 获取签名的申请备注。
* @method void setRemark(string $Remark) 设置签名的申请备注。
*/
class ModifySmsSignRequest extends AbstractModel
{
/**
* @var integer 待修改的签名 ID。
*/
public $SignId;
/**
* @var string 签名名称。
*/
public $SignName;
/**
* @var integer 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
*/
public $SignType;
/**
* @var integer 证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
*/
public $DocumentType;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
需要和待修改签名International值保持一致该参数不能直接修改国内签名到国际签名。
*/
public $International;
/**
* @var integer 签名用途:
0自用。
1他用。
*/
public $UsedMethod;
/**
* @var string 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
*/
public $ProofImage;
/**
* @var string 委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
*/
public $CommissionImage;
/**
* @var string 签名的申请备注。
*/
public $Remark;
/**
* @param integer $SignId 待修改的签名 ID。
* @param string $SignName 签名名称。
* @param integer $SignType 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @param integer $DocumentType 证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
需要和待修改签名International值保持一致该参数不能直接修改国内签名到国际签名。
* @param integer $UsedMethod 签名用途:
0自用。
1他用。
* @param string $ProofImage 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @param string $CommissionImage 委托授权证明。选择 UsedMethod 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 UsedMethod 在选择为 1他用这个字段才会生效。
* @param string $Remark 签名的申请备注。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SignId",$param) and $param["SignId"] !== null) {
$this->SignId = $param["SignId"];
}
if (array_key_exists("SignName",$param) and $param["SignName"] !== null) {
$this->SignName = $param["SignName"];
}
if (array_key_exists("SignType",$param) and $param["SignType"] !== null) {
$this->SignType = $param["SignType"];
}
if (array_key_exists("DocumentType",$param) and $param["DocumentType"] !== null) {
$this->DocumentType = $param["DocumentType"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("UsedMethod",$param) and $param["UsedMethod"] !== null) {
$this->UsedMethod = $param["UsedMethod"];
}
if (array_key_exists("ProofImage",$param) and $param["ProofImage"] !== null) {
$this->ProofImage = $param["ProofImage"];
}
if (array_key_exists("CommissionImage",$param) and $param["CommissionImage"] !== null) {
$this->CommissionImage = $param["CommissionImage"];
}
if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
$this->Remark = $param["Remark"];
}
}
}

View File

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

View File

@@ -0,0 +1,121 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* ModifySmsTemplate请求参数结构体
*
* @method integer getTemplateId() 获取待修改的模板的模板 ID。
* @method void setTemplateId(integer $TemplateId) 设置待修改的模板的模板 ID。
* @method string getTemplateName() 获取新的模板名称。
* @method void setTemplateName(string $TemplateName) 设置新的模板名称。
* @method string getTemplateContent() 获取新的模板内容。
* @method void setTemplateContent(string $TemplateContent) 设置新的模板内容。
* @method integer getSmsType() 获取短信类型0表示普通短信, 1表示营销短信。
* @method void setSmsType(integer $SmsType) 设置短信类型0表示普通短信, 1表示营销短信。
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method string getRemark() 获取模板备注,例如申请原因,使用场景等。
* @method void setRemark(string $Remark) 设置模板备注,例如申请原因,使用场景等。
*/
class ModifySmsTemplateRequest extends AbstractModel
{
/**
* @var integer 待修改的模板的模板 ID。
*/
public $TemplateId;
/**
* @var string 新的模板名称。
*/
public $TemplateName;
/**
* @var string 新的模板内容。
*/
public $TemplateContent;
/**
* @var integer 短信类型0表示普通短信, 1表示营销短信。
*/
public $SmsType;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var string 模板备注,例如申请原因,使用场景等。
*/
public $Remark;
/**
* @param integer $TemplateId 待修改的模板的模板 ID。
* @param string $TemplateName 新的模板名称。
* @param string $TemplateContent 新的模板内容。
* @param integer $SmsType 短信类型0表示普通短信, 1表示营销短信。
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param string $Remark 模板备注,例如申请原因,使用场景等。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TemplateId",$param) and $param["TemplateId"] !== null) {
$this->TemplateId = $param["TemplateId"];
}
if (array_key_exists("TemplateName",$param) and $param["TemplateName"] !== null) {
$this->TemplateName = $param["TemplateName"];
}
if (array_key_exists("TemplateContent",$param) and $param["TemplateContent"] !== null) {
$this->TemplateContent = $param["TemplateContent"];
}
if (array_key_exists("SmsType",$param) and $param["SmsType"] !== null) {
$this->SmsType = $param["SmsType"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
$this->Remark = $param["Remark"];
}
}
}

View File

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

View File

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

View File

@@ -0,0 +1,125 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 短信回复状态
*
* @method string getExtendCode() 获取短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
* @method void setExtendCode(string $ExtendCode) 设置短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
* @method string getNationCode() 获取国家(或地区)码。
* @method void setNationCode(string $NationCode) 设置国家(或地区)码。
* @method string getPhoneNumber() 获取手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumber(string $PhoneNumber) 设置手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getSign() 获取短信签名。
* @method void setSign(string $Sign) 设置短信签名。
* @method string getReplyContent() 获取用户回复的内容。
* @method void setReplyContent(string $ReplyContent) 设置用户回复的内容。
* @method string getReplyTime() 获取回复时间例如2019-10-08 17:18:37
* @method void setReplyTime(string $ReplyTime) 设置回复时间例如2019-10-08 17:18:37
* @method integer getReplyUnixTime() 获取回复时间UNIX 时间戳(单位:秒)。
* @method void setReplyUnixTime(integer $ReplyUnixTime) 设置回复时间UNIX 时间戳(单位:秒)。
*/
class PullSmsReplyStatus extends AbstractModel
{
/**
* @var string 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
*/
public $ExtendCode;
/**
* @var string 国家(或地区)码。
*/
public $NationCode;
/**
* @var string 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumber;
/**
* @var string 短信签名。
*/
public $Sign;
/**
* @var string 用户回复的内容。
*/
public $ReplyContent;
/**
* @var string 回复时间例如2019-10-08 17:18:37
*/
public $ReplyTime;
/**
* @var integer 回复时间UNIX 时间戳(单位:秒)。
*/
public $ReplyUnixTime;
/**
* @param string $ExtendCode 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
* @param string $NationCode 国家(或地区)码。
* @param string $PhoneNumber 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $Sign 短信签名。
* @param string $ReplyContent 用户回复的内容。
* @param string $ReplyTime 回复时间例如2019-10-08 17:18:37
* @param integer $ReplyUnixTime 回复时间UNIX 时间戳(单位:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("ExtendCode",$param) and $param["ExtendCode"] !== null) {
$this->ExtendCode = $param["ExtendCode"];
}
if (array_key_exists("NationCode",$param) and $param["NationCode"] !== null) {
$this->NationCode = $param["NationCode"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("Sign",$param) and $param["Sign"] !== null) {
$this->Sign = $param["Sign"];
}
if (array_key_exists("ReplyContent",$param) and $param["ReplyContent"] !== null) {
$this->ReplyContent = $param["ReplyContent"];
}
if (array_key_exists("ReplyTime",$param) and $param["ReplyTime"] !== null) {
$this->ReplyTime = $param["ReplyTime"];
}
if (array_key_exists("ReplyUnixTime",$param) and $param["ReplyUnixTime"] !== null) {
$this->ReplyUnixTime = $param["ReplyUnixTime"];
}
}
}

View File

@@ -0,0 +1,121 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsReplyStatusByPhoneNumber请求参数结构体
*
* @method integer getSendDateTime() 获取拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期7天前的数据。
* @method void setSendDateTime(integer $SendDateTime) 设置拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期7天前的数据。
* @method integer getOffset() 获取偏移量。
目前固定设置为0。
* @method void setOffset(integer $Offset) 设置偏移量。
目前固定设置为0。
* @method integer getLimit() 获取拉取最大条数,最多 100。
* @method void setLimit(integer $Limit) 设置拉取最大条数,最多 100。
* @method string getPhoneNumber() 获取下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumber(string $PhoneNumber) 设置下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getSmsSdkAppid() 获取短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
* @method void setSmsSdkAppid(string $SmsSdkAppid) 设置短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
* @method integer getEndDateTime() 获取拉取截止时间UNIX 时间戳(时间:秒)。
* @method void setEndDateTime(integer $EndDateTime) 设置拉取截止时间UNIX 时间戳(时间:秒)。
*/
class PullSmsReplyStatusByPhoneNumberRequest extends AbstractModel
{
/**
* @var integer 拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期7天前的数据。
*/
public $SendDateTime;
/**
* @var integer 偏移量。
目前固定设置为0。
*/
public $Offset;
/**
* @var integer 拉取最大条数,最多 100。
*/
public $Limit;
/**
* @var string 下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumber;
/**
* @var string 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
*/
public $SmsSdkAppid;
/**
* @var integer 拉取截止时间UNIX 时间戳(时间:秒)。
*/
public $EndDateTime;
/**
* @param integer $SendDateTime 拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期7天前的数据。
* @param integer $Offset 偏移量。
目前固定设置为0。
* @param integer $Limit 拉取最大条数,最多 100。
* @param string $PhoneNumber 下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $SmsSdkAppid 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
* @param integer $EndDateTime 拉取截止时间UNIX 时间戳(时间:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SendDateTime",$param) and $param["SendDateTime"] !== null) {
$this->SendDateTime = $param["SendDateTime"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("SmsSdkAppid",$param) and $param["SmsSdkAppid"] !== null) {
$this->SmsSdkAppid = $param["SmsSdkAppid"];
}
if (array_key_exists("EndDateTime",$param) and $param["EndDateTime"] !== null) {
$this->EndDateTime = $param["EndDateTime"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsReplyStatusByPhoneNumber返回参数结构体
*
* @method array getPullSmsReplyStatusSet() 获取回复状态响应集合。
* @method void setPullSmsReplyStatusSet(array $PullSmsReplyStatusSet) 设置回复状态响应集合。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class PullSmsReplyStatusByPhoneNumberResponse extends AbstractModel
{
/**
* @var array 回复状态响应集合。
*/
public $PullSmsReplyStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $PullSmsReplyStatusSet 回复状态响应集合。
* @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("PullSmsReplyStatusSet",$param) and $param["PullSmsReplyStatusSet"] !== null) {
$this->PullSmsReplyStatusSet = [];
foreach ($param["PullSmsReplyStatusSet"] as $key => $value){
$obj = new PullSmsReplyStatus();
$obj->deserialize($value);
array_push($this->PullSmsReplyStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsReplyStatus请求参数结构体
*
* @method integer getLimit() 获取拉取最大条数最多100条。
* @method void setLimit(integer $Limit) 设置拉取最大条数最多100条。
* @method string getSmsSdkAppid() 获取短信 SdkAppid 在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际 SdkAppid例如1400006666。
* @method void setSmsSdkAppid(string $SmsSdkAppid) 设置短信 SdkAppid 在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际 SdkAppid例如1400006666。
*/
class PullSmsReplyStatusRequest extends AbstractModel
{
/**
* @var integer 拉取最大条数最多100条。
*/
public $Limit;
/**
* @var string 短信 SdkAppid 在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际 SdkAppid例如1400006666。
*/
public $SmsSdkAppid;
/**
* @param integer $Limit 拉取最大条数最多100条。
* @param string $SmsSdkAppid 短信 SdkAppid 在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际 SdkAppid例如1400006666。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("SmsSdkAppid",$param) and $param["SmsSdkAppid"] !== null) {
$this->SmsSdkAppid = $param["SmsSdkAppid"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsReplyStatus返回参数结构体
*
* @method array getPullSmsReplyStatusSet() 获取回复状态响应集合。
* @method void setPullSmsReplyStatusSet(array $PullSmsReplyStatusSet) 设置回复状态响应集合。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class PullSmsReplyStatusResponse extends AbstractModel
{
/**
* @var array 回复状态响应集合。
*/
public $PullSmsReplyStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $PullSmsReplyStatusSet 回复状态响应集合。
* @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("PullSmsReplyStatusSet",$param) and $param["PullSmsReplyStatusSet"] !== null) {
$this->PullSmsReplyStatusSet = [];
foreach ($param["PullSmsReplyStatusSet"] as $key => $value){
$obj = new PullSmsReplyStatus();
$obj->deserialize($value);
array_push($this->PullSmsReplyStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,137 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 短信的下发状态详细信息
*
* @method string getUserReceiveTime() 获取用户实际接收到短信的时间。
* @method void setUserReceiveTime(string $UserReceiveTime) 设置用户实际接收到短信的时间。
* @method integer getUserReceiveUnixTime() 获取用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
* @method void setUserReceiveUnixTime(integer $UserReceiveUnixTime) 设置用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
* @method string getNationCode() 获取国家(或地区)码。
* @method void setNationCode(string $NationCode) 设置国家(或地区)码。
* @method string getPurePhoneNumber() 获取手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPurePhoneNumber(string $PurePhoneNumber) 设置手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getPhoneNumber() 获取手机号码普通格式示例如13711112222。
* @method void setPhoneNumber(string $PhoneNumber) 设置手机号码普通格式示例如13711112222。
* @method string getSerialNo() 获取本次发送标识 ID。
* @method void setSerialNo(string $SerialNo) 设置本次发送标识 ID。
* @method string getReportStatus() 获取实际是否收到短信接收状态SUCCESS成功、FAIL失败
* @method void setReportStatus(string $ReportStatus) 设置实际是否收到短信接收状态SUCCESS成功、FAIL失败
* @method string getDescription() 获取用户接收短信状态描述。
* @method void setDescription(string $Description) 设置用户接收短信状态描述。
*/
class PullSmsSendStatus extends AbstractModel
{
/**
* @var string 用户实际接收到短信的时间。
*/
public $UserReceiveTime;
/**
* @var integer 用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
*/
public $UserReceiveUnixTime;
/**
* @var string 国家(或地区)码。
*/
public $NationCode;
/**
* @var string 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PurePhoneNumber;
/**
* @var string 手机号码普通格式示例如13711112222。
*/
public $PhoneNumber;
/**
* @var string 本次发送标识 ID。
*/
public $SerialNo;
/**
* @var string 实际是否收到短信接收状态SUCCESS成功、FAIL失败
*/
public $ReportStatus;
/**
* @var string 用户接收短信状态描述。
*/
public $Description;
/**
* @param string $UserReceiveTime 用户实际接收到短信的时间。
* @param integer $UserReceiveUnixTime 用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
* @param string $NationCode 国家(或地区)码。
* @param string $PurePhoneNumber 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $PhoneNumber 手机号码普通格式示例如13711112222。
* @param string $SerialNo 本次发送标识 ID。
* @param string $ReportStatus 实际是否收到短信接收状态SUCCESS成功、FAIL失败
* @param string $Description 用户接收短信状态描述。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserReceiveTime",$param) and $param["UserReceiveTime"] !== null) {
$this->UserReceiveTime = $param["UserReceiveTime"];
}
if (array_key_exists("UserReceiveUnixTime",$param) and $param["UserReceiveUnixTime"] !== null) {
$this->UserReceiveUnixTime = $param["UserReceiveUnixTime"];
}
if (array_key_exists("NationCode",$param) and $param["NationCode"] !== null) {
$this->NationCode = $param["NationCode"];
}
if (array_key_exists("PurePhoneNumber",$param) and $param["PurePhoneNumber"] !== null) {
$this->PurePhoneNumber = $param["PurePhoneNumber"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("SerialNo",$param) and $param["SerialNo"] !== null) {
$this->SerialNo = $param["SerialNo"];
}
if (array_key_exists("ReportStatus",$param) and $param["ReportStatus"] !== null) {
$this->ReportStatus = $param["ReportStatus"];
}
if (array_key_exists("Description",$param) and $param["Description"] !== null) {
$this->Description = $param["Description"];
}
}
}

View File

@@ -0,0 +1,121 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsSendStatusByPhoneNumber请求参数结构体
*
* @method integer getSendDateTime() 获取拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期7天前的数据。
* @method void setSendDateTime(integer $SendDateTime) 设置拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期7天前的数据。
* @method integer getOffset() 获取偏移量。
目前固定设置为0。
* @method void setOffset(integer $Offset) 设置偏移量。
目前固定设置为0。
* @method integer getLimit() 获取拉取最大条数,最多 100。
* @method void setLimit(integer $Limit) 设置拉取最大条数,最多 100。
* @method string getPhoneNumber() 获取下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumber(string $PhoneNumber) 设置下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getSmsSdkAppid() 获取短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
* @method void setSmsSdkAppid(string $SmsSdkAppid) 设置短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
* @method integer getEndDateTime() 获取拉取截止时间UNIX 时间戳(时间:秒)。
* @method void setEndDateTime(integer $EndDateTime) 设置拉取截止时间UNIX 时间戳(时间:秒)。
*/
class PullSmsSendStatusByPhoneNumberRequest extends AbstractModel
{
/**
* @var integer 拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期7天前的数据。
*/
public $SendDateTime;
/**
* @var integer 偏移量。
目前固定设置为0。
*/
public $Offset;
/**
* @var integer 拉取最大条数,最多 100。
*/
public $Limit;
/**
* @var string 下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumber;
/**
* @var string 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
*/
public $SmsSdkAppid;
/**
* @var integer 拉取截止时间UNIX 时间戳(时间:秒)。
*/
public $EndDateTime;
/**
* @param integer $SendDateTime 拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期7天前的数据。
* @param integer $Offset 偏移量。
目前固定设置为0。
* @param integer $Limit 拉取最大条数,最多 100。
* @param string $PhoneNumber 下发目的手机号码,依据 e.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $SmsSdkAppid 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
* @param integer $EndDateTime 拉取截止时间UNIX 时间戳(时间:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SendDateTime",$param) and $param["SendDateTime"] !== null) {
$this->SendDateTime = $param["SendDateTime"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("SmsSdkAppid",$param) and $param["SmsSdkAppid"] !== null) {
$this->SmsSdkAppid = $param["SmsSdkAppid"];
}
if (array_key_exists("EndDateTime",$param) and $param["EndDateTime"] !== null) {
$this->EndDateTime = $param["EndDateTime"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsSendStatusByPhoneNumber返回参数结构体
*
* @method array getPullSmsSendStatusSet() 获取下发状态响应集合。
* @method void setPullSmsSendStatusSet(array $PullSmsSendStatusSet) 设置下发状态响应集合。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class PullSmsSendStatusByPhoneNumberResponse extends AbstractModel
{
/**
* @var array 下发状态响应集合。
*/
public $PullSmsSendStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $PullSmsSendStatusSet 下发状态响应集合。
* @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("PullSmsSendStatusSet",$param) and $param["PullSmsSendStatusSet"] !== null) {
$this->PullSmsSendStatusSet = [];
foreach ($param["PullSmsSendStatusSet"] as $key => $value){
$obj = new PullSmsSendStatus();
$obj->deserialize($value);
array_push($this->PullSmsSendStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsSendStatus请求参数结构体
*
* @method integer getLimit() 获取拉取最大条数最多100条。
* @method void setLimit(integer $Limit) 设置拉取最大条数最多100条。
* @method string getSmsSdkAppid() 获取短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
* @method void setSmsSdkAppid(string $SmsSdkAppid) 设置短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
*/
class PullSmsSendStatusRequest extends AbstractModel
{
/**
* @var integer 拉取最大条数最多100条。
*/
public $Limit;
/**
* @var string 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
*/
public $SmsSdkAppid;
/**
* @param integer $Limit 拉取最大条数最多100条。
* @param string $SmsSdkAppid 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid例如1400006666。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("SmsSdkAppid",$param) and $param["SmsSdkAppid"] !== null) {
$this->SmsSdkAppid = $param["SmsSdkAppid"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsSendStatus返回参数结构体
*
* @method array getPullSmsSendStatusSet() 获取下发状态响应集合。
* @method void setPullSmsSendStatusSet(array $PullSmsSendStatusSet) 设置下发状态响应集合。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class PullSmsSendStatusResponse extends AbstractModel
{
/**
* @var array 下发状态响应集合。
*/
public $PullSmsSendStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $PullSmsSendStatusSet 下发状态响应集合。
* @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("PullSmsSendStatusSet",$param) and $param["PullSmsSendStatusSet"] !== null) {
$this->PullSmsSendStatusSet = [];
foreach ($param["PullSmsSendStatusSet"] as $key => $value){
$obj = new PullSmsSendStatus();
$obj->deserialize($value);
array_push($this->PullSmsSendStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,141 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* SendSms请求参数结构体
*
* @method array getPhoneNumberSet() 获取下发手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号且要求全为境内手机号或全为境外手机号。
例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumberSet(array $PhoneNumberSet) 设置下发手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号且要求全为境内手机号或全为境外手机号。
例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getTemplateID() 获取模板 ID必须填写已审核通过的模板 ID。模板ID可登录 [短信控制台](https://console.cloud.tencent.com/smsv2) 查看,若向境外手机号发送短信,仅支持使用国际/港澳台短信模板。
* @method void setTemplateID(string $TemplateID) 设置模板 ID必须填写已审核通过的模板 ID。模板ID可登录 [短信控制台](https://console.cloud.tencent.com/smsv2) 查看,若向境外手机号发送短信,仅支持使用国际/港澳台短信模板。
* @method string getSmsSdkAppid() 获取短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @method void setSmsSdkAppid(string $SmsSdkAppid) 设置短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @method string getSign() 获取短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名,签名信息可登录 [短信控制台](https://console.cloud.tencent.com/smsv2) 查看。注:国内短信为必填参数。
* @method void setSign(string $Sign) 设置短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名,签名信息可登录 [短信控制台](https://console.cloud.tencent.com/smsv2) 查看。注:国内短信为必填参数。
* @method array getTemplateParamSet() 获取模板参数,若无模板参数,则设置为空。
* @method void setTemplateParamSet(array $TemplateParamSet) 设置模板参数,若无模板参数,则设置为空。
* @method string getExtendCode() 获取短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
* @method void setExtendCode(string $ExtendCode) 设置短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
* @method string getSessionContext() 获取用户的 session 内容,可以携带用户侧 ID 等上下文信息server 会原样返回。注意长度需小于512字节。
* @method void setSessionContext(string $SessionContext) 设置用户的 session 内容,可以携带用户侧 ID 等上下文信息server 会原样返回。注意长度需小于512字节。
* @method string getSenderId() 获取国内短信无senderid无需填写该项若需开通国际/港澳台短信senderid请联系smshelper。
* @method void setSenderId(string $SenderId) 设置国内短信无senderid无需填写该项若需开通国际/港澳台短信senderid请联系smshelper。
*/
class SendSmsRequest extends AbstractModel
{
/**
* @var array 下发手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号且要求全为境内手机号或全为境外手机号。
例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumberSet;
/**
* @var string 模板 ID必须填写已审核通过的模板 ID。模板ID可登录 [短信控制台](https://console.cloud.tencent.com/smsv2) 查看,若向境外手机号发送短信,仅支持使用国际/港澳台短信模板。
*/
public $TemplateID;
/**
* @var string 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
*/
public $SmsSdkAppid;
/**
* @var string 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名,签名信息可登录 [短信控制台](https://console.cloud.tencent.com/smsv2) 查看。注:国内短信为必填参数。
*/
public $Sign;
/**
* @var array 模板参数,若无模板参数,则设置为空。
*/
public $TemplateParamSet;
/**
* @var string 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
*/
public $ExtendCode;
/**
* @var string 用户的 session 内容,可以携带用户侧 ID 等上下文信息server 会原样返回。注意长度需小于512字节。
*/
public $SessionContext;
/**
* @var string 国内短信无senderid无需填写该项若需开通国际/港澳台短信senderid请联系smshelper。
*/
public $SenderId;
/**
* @param array $PhoneNumberSet 下发手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号且要求全为境内手机号或全为境外手机号。
例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $TemplateID 模板 ID必须填写已审核通过的模板 ID。模板ID可登录 [短信控制台](https://console.cloud.tencent.com/smsv2) 查看,若向境外手机号发送短信,仅支持使用国际/港澳台短信模板。
* @param string $SmsSdkAppid 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @param string $Sign 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名,签名信息可登录 [短信控制台](https://console.cloud.tencent.com/smsv2) 查看。注:国内短信为必填参数。
* @param array $TemplateParamSet 模板参数,若无模板参数,则设置为空。
* @param string $ExtendCode 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773)。
* @param string $SessionContext 用户的 session 内容,可以携带用户侧 ID 等上下文信息server 会原样返回。注意长度需小于512字节。
* @param string $SenderId 国内短信无senderid无需填写该项若需开通国际/港澳台短信senderid请联系smshelper。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PhoneNumberSet",$param) and $param["PhoneNumberSet"] !== null) {
$this->PhoneNumberSet = $param["PhoneNumberSet"];
}
if (array_key_exists("TemplateID",$param) and $param["TemplateID"] !== null) {
$this->TemplateID = $param["TemplateID"];
}
if (array_key_exists("SmsSdkAppid",$param) and $param["SmsSdkAppid"] !== null) {
$this->SmsSdkAppid = $param["SmsSdkAppid"];
}
if (array_key_exists("Sign",$param) and $param["Sign"] !== null) {
$this->Sign = $param["Sign"];
}
if (array_key_exists("TemplateParamSet",$param) and $param["TemplateParamSet"] !== null) {
$this->TemplateParamSet = $param["TemplateParamSet"];
}
if (array_key_exists("ExtendCode",$param) and $param["ExtendCode"] !== null) {
$this->ExtendCode = $param["ExtendCode"];
}
if (array_key_exists("SessionContext",$param) and $param["SessionContext"] !== null) {
$this->SessionContext = $param["SessionContext"];
}
if (array_key_exists("SenderId",$param) and $param["SenderId"] !== null) {
$this->SenderId = $param["SenderId"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* SendSms返回参数结构体
*
* @method array getSendStatusSet() 获取短信发送状态。
* @method void setSendStatusSet(array $SendStatusSet) 设置短信发送状态。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class SendSmsResponse extends AbstractModel
{
/**
* @var array 短信发送状态。
*/
public $SendStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $SendStatusSet 短信发送状态。
* @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("SendStatusSet",$param) and $param["SendStatusSet"] !== null) {
$this->SendStatusSet = [];
foreach ($param["SendStatusSet"] as $key => $value){
$obj = new SendStatus();
$obj->deserialize($value);
array_push($this->SendStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,125 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 发送短信状态
*
* @method string getSerialNo() 获取发送流水号。
* @method void setSerialNo(string $SerialNo) 设置发送流水号。
* @method string getPhoneNumber() 获取手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumber(string $PhoneNumber) 设置手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method integer getFee() 获取计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
* @method void setFee(integer $Fee) 设置计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
* @method string getSessionContext() 获取用户Session内容。
* @method void setSessionContext(string $SessionContext) 设置用户Session内容。
* @method string getCode() 获取短信请求错误码,具体含义请参考错误码。
* @method void setCode(string $Code) 设置短信请求错误码,具体含义请参考错误码。
* @method string getMessage() 获取短信请求错误码描述。
* @method void setMessage(string $Message) 设置短信请求错误码描述。
* @method string getIsoCode() 获取国家码或地区码例如CN,US等对于未识别出国家码或者地区码默认返回DEF,具体支持列表请参考国际/港澳台计费总览。
* @method void setIsoCode(string $IsoCode) 设置国家码或地区码例如CN,US等对于未识别出国家码或者地区码默认返回DEF,具体支持列表请参考国际/港澳台计费总览。
*/
class SendStatus extends AbstractModel
{
/**
* @var string 发送流水号。
*/
public $SerialNo;
/**
* @var string 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumber;
/**
* @var integer 计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
*/
public $Fee;
/**
* @var string 用户Session内容。
*/
public $SessionContext;
/**
* @var string 短信请求错误码,具体含义请参考错误码。
*/
public $Code;
/**
* @var string 短信请求错误码描述。
*/
public $Message;
/**
* @var string 国家码或地区码例如CN,US等对于未识别出国家码或者地区码默认返回DEF,具体支持列表请参考国际/港澳台计费总览。
*/
public $IsoCode;
/**
* @param string $SerialNo 发送流水号。
* @param string $PhoneNumber 手机号码,e.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param integer $Fee 计费条数,计费规则请查询 [计费策略](https://cloud.tencent.com/document/product/382/36135)。
* @param string $SessionContext 用户Session内容。
* @param string $Code 短信请求错误码,具体含义请参考错误码。
* @param string $Message 短信请求错误码描述。
* @param string $IsoCode 国家码或地区码例如CN,US等对于未识别出国家码或者地区码默认返回DEF,具体支持列表请参考国际/港澳台计费总览。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SerialNo",$param) and $param["SerialNo"] !== null) {
$this->SerialNo = $param["SerialNo"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("Fee",$param) and $param["Fee"] !== null) {
$this->Fee = $param["Fee"];
}
if (array_key_exists("SessionContext",$param) and $param["SessionContext"] !== null) {
$this->SessionContext = $param["SessionContext"];
}
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("IsoCode",$param) and $param["IsoCode"] !== null) {
$this->IsoCode = $param["IsoCode"];
}
}
}

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 发送数据统计响应包体
*
* @method integer getFeeCount() 获取短信计费条数统计例如提交成功量为100条其中有20条是长短信长度为80字被拆分成2条则计费条数为 ```80 * 1 + 20 * 2 = 120``` 条。
* @method void setFeeCount(integer $FeeCount) 设置短信计费条数统计例如提交成功量为100条其中有20条是长短信长度为80字被拆分成2条则计费条数为 ```80 * 1 + 20 * 2 = 120``` 条。
* @method integer getRequestCount() 获取短信提交量统计。
* @method void setRequestCount(integer $RequestCount) 设置短信提交量统计。
* @method integer getRequestSuccessCount() 获取短信提交成功量统计。
* @method void setRequestSuccessCount(integer $RequestSuccessCount) 设置短信提交成功量统计。
*/
class SendStatusStatistics extends AbstractModel
{
/**
* @var integer 短信计费条数统计例如提交成功量为100条其中有20条是长短信长度为80字被拆分成2条则计费条数为 ```80 * 1 + 20 * 2 = 120``` 条。
*/
public $FeeCount;
/**
* @var integer 短信提交量统计。
*/
public $RequestCount;
/**
* @var integer 短信提交成功量统计。
*/
public $RequestSuccessCount;
/**
* @param integer $FeeCount 短信计费条数统计例如提交成功量为100条其中有20条是长短信长度为80字被拆分成2条则计费条数为 ```80 * 1 + 20 * 2 = 120``` 条。
* @param integer $RequestCount 短信提交量统计。
* @param integer $RequestSuccessCount 短信提交成功量统计。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("FeeCount",$param) and $param["FeeCount"] !== null) {
$this->FeeCount = $param["FeeCount"];
}
if (array_key_exists("RequestCount",$param) and $param["RequestCount"] !== null) {
$this->RequestCount = $param["RequestCount"];
}
if (array_key_exists("RequestSuccessCount",$param) and $param["RequestSuccessCount"] !== null) {
$this->RequestSuccessCount = $param["RequestSuccessCount"];
}
}
}

View File

@@ -0,0 +1,113 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* SendStatusStatistics请求参数结构体
*
* @method integer getStartDateTime() 获取拉取起始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
* @method void setStartDateTime(integer $StartDateTime) 设置拉取起始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
* @method integer getEndDataTime() 获取结束时间yyyymmddhh 需要拉取的截止时间,精确到小时
EndDataTime 必须大于 StartDateTime。
* @method void setEndDataTime(integer $EndDataTime) 设置结束时间yyyymmddhh 需要拉取的截止时间,精确到小时
EndDataTime 必须大于 StartDateTime。
* @method string getSmsSdkAppid() 获取短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @method void setSmsSdkAppid(string $SmsSdkAppid) 设置短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @method integer getLimit() 获取最大上限。
目前固定设置为0。
* @method void setLimit(integer $Limit) 设置最大上限。
目前固定设置为0。
* @method integer getOffset() 获取偏移量。
目前固定设置为0。
* @method void setOffset(integer $Offset) 设置偏移量。
目前固定设置为0。
*/
class SendStatusStatisticsRequest extends AbstractModel
{
/**
* @var integer 拉取起始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
*/
public $StartDateTime;
/**
* @var integer 结束时间yyyymmddhh 需要拉取的截止时间,精确到小时
EndDataTime 必须大于 StartDateTime。
*/
public $EndDataTime;
/**
* @var string 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
*/
public $SmsSdkAppid;
/**
* @var integer 最大上限。
目前固定设置为0。
*/
public $Limit;
/**
* @var integer 偏移量。
目前固定设置为0。
*/
public $Offset;
/**
* @param integer $StartDateTime 拉取起始时间yyyymmddhh 需要拉取的起始时间,精确到小时。
* @param integer $EndDataTime 结束时间yyyymmddhh 需要拉取的截止时间,精确到小时
EndDataTime 必须大于 StartDateTime。
* @param string $SmsSdkAppid 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @param integer $Limit 最大上限。
目前固定设置为0。
* @param integer $Offset 偏移量。
目前固定设置为0。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StartDateTime",$param) and $param["StartDateTime"] !== null) {
$this->StartDateTime = $param["StartDateTime"];
}
if (array_key_exists("EndDataTime",$param) and $param["EndDataTime"] !== null) {
$this->EndDataTime = $param["EndDataTime"];
}
if (array_key_exists("SmsSdkAppid",$param) and $param["SmsSdkAppid"] !== null) {
$this->SmsSdkAppid = $param["SmsSdkAppid"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
}
}

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* SendStatusStatistics返回参数结构体
*
* @method SendStatusStatistics getSendStatusStatistics() 获取发送数据统计响应包体。
* @method void setSendStatusStatistics(SendStatusStatistics $SendStatusStatistics) 设置发送数据统计响应包体。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class SendStatusStatisticsResponse extends AbstractModel
{
/**
* @var SendStatusStatistics 发送数据统计响应包体。
*/
public $SendStatusStatistics;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param SendStatusStatistics $SendStatusStatistics 发送数据统计响应包体。
* @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("SendStatusStatistics",$param) and $param["SendStatusStatistics"] !== null) {
$this->SendStatusStatistics = new SendStatusStatistics();
$this->SendStatusStatistics->deserialize($param["SendStatusStatistics"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,161 @@
<?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\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* 套餐包信息统计响应包体
*
* @method string getPackageCreateTime() 获取套餐包创建时间标准时间例如2019-10-08 17:18:37。
* @method void setPackageCreateTime(string $PackageCreateTime) 设置套餐包创建时间标准时间例如2019-10-08 17:18:37。
* @method integer getPackageCreateUnixTime() 获取套餐包创建时间UNIX 时间戳(单位:秒)。
* @method void setPackageCreateUnixTime(integer $PackageCreateUnixTime) 设置套餐包创建时间UNIX 时间戳(单位:秒)。
* @method string getPackageEffectiveTime() 获取套餐包生效时间标准时间例如2019-10-08 17:18:37。
* @method void setPackageEffectiveTime(string $PackageEffectiveTime) 设置套餐包生效时间标准时间例如2019-10-08 17:18:37。
* @method integer getPackageEffectiveUnixTime() 获取套餐包生效时间UNIX 时间戳(单位:秒)。
* @method void setPackageEffectiveUnixTime(integer $PackageEffectiveUnixTime) 设置套餐包生效时间UNIX 时间戳(单位:秒)。
* @method string getPackageExpiredTime() 获取套餐包过期时间标准时间例如2019-10-08 17:18:37。
* @method void setPackageExpiredTime(string $PackageExpiredTime) 设置套餐包过期时间标准时间例如2019-10-08 17:18:37。
* @method integer getPackageExpiredUnixTime() 获取套餐包过期时间UNIX 时间戳(单位:秒)。
* @method void setPackageExpiredUnixTime(integer $PackageExpiredUnixTime) 设置套餐包过期时间UNIX 时间戳(单位:秒)。
* @method integer getAmountOfPackage() 获取套餐包条数。
* @method void setAmountOfPackage(integer $AmountOfPackage) 设置套餐包条数。
* @method integer getTypeOfPackage() 获取0表示赠送套餐包1表示购买套餐包。
* @method void setTypeOfPackage(integer $TypeOfPackage) 设置0表示赠送套餐包1表示购买套餐包。
* @method integer getPackageId() 获取套餐包 ID。
* @method void setPackageId(integer $PackageId) 设置套餐包 ID。
* @method integer getCurrentUsage() 获取当前使用量。
* @method void setCurrentUsage(integer $CurrentUsage) 设置当前使用量。
*/
class SmsPackagesStatistics extends AbstractModel
{
/**
* @var string 套餐包创建时间标准时间例如2019-10-08 17:18:37。
*/
public $PackageCreateTime;
/**
* @var integer 套餐包创建时间UNIX 时间戳(单位:秒)。
*/
public $PackageCreateUnixTime;
/**
* @var string 套餐包生效时间标准时间例如2019-10-08 17:18:37。
*/
public $PackageEffectiveTime;
/**
* @var integer 套餐包生效时间UNIX 时间戳(单位:秒)。
*/
public $PackageEffectiveUnixTime;
/**
* @var string 套餐包过期时间标准时间例如2019-10-08 17:18:37。
*/
public $PackageExpiredTime;
/**
* @var integer 套餐包过期时间UNIX 时间戳(单位:秒)。
*/
public $PackageExpiredUnixTime;
/**
* @var integer 套餐包条数。
*/
public $AmountOfPackage;
/**
* @var integer 0表示赠送套餐包1表示购买套餐包。
*/
public $TypeOfPackage;
/**
* @var integer 套餐包 ID。
*/
public $PackageId;
/**
* @var integer 当前使用量。
*/
public $CurrentUsage;
/**
* @param string $PackageCreateTime 套餐包创建时间标准时间例如2019-10-08 17:18:37。
* @param integer $PackageCreateUnixTime 套餐包创建时间UNIX 时间戳(单位:秒)。
* @param string $PackageEffectiveTime 套餐包生效时间标准时间例如2019-10-08 17:18:37。
* @param integer $PackageEffectiveUnixTime 套餐包生效时间UNIX 时间戳(单位:秒)。
* @param string $PackageExpiredTime 套餐包过期时间标准时间例如2019-10-08 17:18:37。
* @param integer $PackageExpiredUnixTime 套餐包过期时间UNIX 时间戳(单位:秒)。
* @param integer $AmountOfPackage 套餐包条数。
* @param integer $TypeOfPackage 0表示赠送套餐包1表示购买套餐包。
* @param integer $PackageId 套餐包 ID。
* @param integer $CurrentUsage 当前使用量。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PackageCreateTime",$param) and $param["PackageCreateTime"] !== null) {
$this->PackageCreateTime = $param["PackageCreateTime"];
}
if (array_key_exists("PackageCreateUnixTime",$param) and $param["PackageCreateUnixTime"] !== null) {
$this->PackageCreateUnixTime = $param["PackageCreateUnixTime"];
}
if (array_key_exists("PackageEffectiveTime",$param) and $param["PackageEffectiveTime"] !== null) {
$this->PackageEffectiveTime = $param["PackageEffectiveTime"];
}
if (array_key_exists("PackageEffectiveUnixTime",$param) and $param["PackageEffectiveUnixTime"] !== null) {
$this->PackageEffectiveUnixTime = $param["PackageEffectiveUnixTime"];
}
if (array_key_exists("PackageExpiredTime",$param) and $param["PackageExpiredTime"] !== null) {
$this->PackageExpiredTime = $param["PackageExpiredTime"];
}
if (array_key_exists("PackageExpiredUnixTime",$param) and $param["PackageExpiredUnixTime"] !== null) {
$this->PackageExpiredUnixTime = $param["PackageExpiredUnixTime"];
}
if (array_key_exists("AmountOfPackage",$param) and $param["AmountOfPackage"] !== null) {
$this->AmountOfPackage = $param["AmountOfPackage"];
}
if (array_key_exists("TypeOfPackage",$param) and $param["TypeOfPackage"] !== null) {
$this->TypeOfPackage = $param["TypeOfPackage"];
}
if (array_key_exists("PackageId",$param) and $param["PackageId"] !== null) {
$this->PackageId = $param["PackageId"];
}
if (array_key_exists("CurrentUsage",$param) and $param["CurrentUsage"] !== null) {
$this->CurrentUsage = $param["CurrentUsage"];
}
}
}

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* SmsPackagesStatistics请求参数结构体
*
* @method string getSmsSdkAppid() 获取短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @method void setSmsSdkAppid(string $SmsSdkAppid) 设置短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @method integer getLimit() 获取最大上限(需要拉取的套餐包个数)。
* @method void setLimit(integer $Limit) 设置最大上限(需要拉取的套餐包个数)。
* @method integer getOffset() 获取偏移量。
目前固定设置为0。
* @method void setOffset(integer $Offset) 设置偏移量。
目前固定设置为0。
*/
class SmsPackagesStatisticsRequest extends AbstractModel
{
/**
* @var string 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
*/
public $SmsSdkAppid;
/**
* @var integer 最大上限(需要拉取的套餐包个数)。
*/
public $Limit;
/**
* @var integer 偏移量。
目前固定设置为0。
*/
public $Offset;
/**
* @param string $SmsSdkAppid 短信SdkAppid在 [短信控制台](https://console.cloud.tencent.com/smsv2) 添加应用后生成的实际SdkAppid示例如1400006666。
* @param integer $Limit 最大上限(需要拉取的套餐包个数)。
* @param integer $Offset 偏移量。
目前固定设置为0。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SmsSdkAppid",$param) and $param["SmsSdkAppid"] !== null) {
$this->SmsSdkAppid = $param["SmsSdkAppid"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20190711\Models;
use TencentCloud\Common\AbstractModel;
/**
* SmsPackagesStatistics返回参数结构体
*
* @method array getSmsPackagesStatisticsSet() 获取发送数据统计响应包体。
* @method void setSmsPackagesStatisticsSet(array $SmsPackagesStatisticsSet) 设置发送数据统计响应包体。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class SmsPackagesStatisticsResponse extends AbstractModel
{
/**
* @var array 发送数据统计响应包体。
*/
public $SmsPackagesStatisticsSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $SmsPackagesStatisticsSet 发送数据统计响应包体。
* @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("SmsPackagesStatisticsSet",$param) and $param["SmsPackagesStatisticsSet"] !== null) {
$this->SmsPackagesStatisticsSet = [];
foreach ($param["SmsPackagesStatisticsSet"] as $key => $value){
$obj = new SmsPackagesStatistics();
$obj->deserialize($value);
array_push($this->SmsPackagesStatisticsSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,131 @@
<?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\Sms\V20190711;
use TencentCloud\Common\AbstractClient;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Credential;
use TencentCloud\Sms\V20190711\Models as Models;
/**
* @method Models\AddSmsSignResponse AddSmsSign(Models\AddSmsSignRequest $req) 1. 添加短信签名,申请之前请先认真参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
2. ⚠️注意:个人认证用户不支持使用 API 申请短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台申请短信签名。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\AddSmsTemplateResponse AddSmsTemplate(Models\AddSmsTemplateRequest $req) 1. 添加短信模板,申请之前请先认真参阅 [腾讯云短信正文模板审核标准](https://cloud.tencent.com/document/product/382/39023)。
2. ⚠️注意:个人认证用户不支持使用 API 申请短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 申请短信正文模板。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\CallbackStatusStatisticsResponse CallbackStatusStatistics(Models\CallbackStatusStatisticsRequest $req) 统计用户回执的数据。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\DeleteSmsSignResponse DeleteSmsSign(Models\DeleteSmsSignRequest $req) ⚠️注意:个人认证用户不支持使用 API 删除短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),请登录 [控制台](https://console.cloud.tencent.com/smsv2) 删除短信签名。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\DeleteSmsTemplateResponse DeleteSmsTemplate(Models\DeleteSmsTemplateRequest $req) ⚠️注意:个人认证用户不支持使用 API 删除短信正文模板,请登录 [控制台](https://console.cloud.tencent.com/smsv2) 删除短信正文模板,如需了解请参阅 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\DescribeSmsSignListResponse DescribeSmsSignList(Models\DescribeSmsSignListRequest $req) ⚠️注意:个人认证用户不支持使用 API 查询短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 查询短信签名。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\DescribeSmsTemplateListResponse DescribeSmsTemplateList(Models\DescribeSmsTemplateListRequest $req) ⚠️注意:个人认证用户不支持使用 API 查询短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\ModifySmsSignResponse ModifySmsSign(Models\ModifySmsSignRequest $req) 1. 修改短信签名,修改之前请先认真参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
2. ⚠️注意:个人认证用户不支持使用 API 修改短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 修改短信签名。
3. 修改短信签名,仅当签名为**待审核**或**已拒绝**状态时,才能进行修改,**已审核通过**的签名不支持修改。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\ModifySmsTemplateResponse ModifySmsTemplate(Models\ModifySmsTemplateRequest $req) 1. 修改短信正文模板,修改之前请先认真参阅 [腾讯云短信正文模板审核标准](https://cloud.tencent.com/document/product/382/39023)。
2. ⚠️注意:个人认证用户不支持使用 API 修改短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 修改短信正文模板。
3. 修改短信模板,仅当正文模板为**待审核**或**已拒绝**状态时,才能进行修改,**已审核通过**的正文模板不支持修改。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\PullSmsReplyStatusResponse PullSmsReplyStatus(Models\PullSmsReplyStatusRequest $req) 拉取短信回复状态。
目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
>- 注:此接口需要联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\PullSmsReplyStatusByPhoneNumberResponse PullSmsReplyStatusByPhoneNumber(Models\PullSmsReplyStatusByPhoneNumberRequest $req) 拉取单个号码短信回复状态。
目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\PullSmsSendStatusResponse PullSmsSendStatus(Models\PullSmsSendStatusRequest $req) 拉取短信下发状态。
目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
>- 注:此接口需要联系 [sms helper](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\PullSmsSendStatusByPhoneNumberResponse PullSmsSendStatusByPhoneNumber(Models\PullSmsSendStatusByPhoneNumberRequest $req) 拉取单个号码短信下发状态。
目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\SendSmsResponse SendSms(Models\SendSmsRequest $req) 短信发送接口,用于给用户发短信验证码、通知类短信或营销短信。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\SendStatusStatisticsResponse SendStatusStatistics(Models\SendStatusStatisticsRequest $req) 统计用户发送短信的数据。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
* @method Models\SmsPackagesStatisticsResponse SmsPackagesStatistics(Models\SmsPackagesStatisticsRequest $req) 用户套餐包信息统计。
>- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
>- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口可以先免去签名计算步骤。运行成功后API Explorer可以**自动生成**SDK代码示例。
*/
class SmsClient extends AbstractClient
{
/**
* @var string
*/
protected $endpoint = "sms.tencentcloudapi.com";
/**
* @var string
*/
protected $service = "sms";
/**
* @var string
*/
protected $version = "2019-07-11";
/**
* @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("sms")."\\"."V20190711\\Models"."\\".ucfirst($action)."Response";
$obj = new $respClass();
$obj->deserialize($response);
return $obj;
}
}

View File

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

View File

@@ -0,0 +1,233 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* AddSmsSign请求参数结构体
*
* @method string getSignName() 获取签名名称。
注:不能重复申请已通过或待审核的签名。
* @method void setSignName(string $SignName) 设置签名名称。
注:不能重复申请已通过或待审核的签名。
* @method integer getSignType() 获取签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @method void setSignType(integer $SignType) 设置签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @method integer getDocumentType() 获取证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @method void setDocumentType(integer $DocumentType) 设置证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method integer getSignPurpose() 获取签名用途:
0自用。
1他用。
* @method void setSignPurpose(integer $SignPurpose) 设置签名用途:
0自用。
1他用。
* @method string getProofImage() 获取签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @method void setProofImage(string $ProofImage) 设置签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @method string getCommissionImage() 获取委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 SignPurpose 在选择为 1他用这个字段才会生效。
* @method void setCommissionImage(string $CommissionImage) 设置委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 SignPurpose 在选择为 1他用这个字段才会生效。
* @method string getRemark() 获取签名的申请备注。
* @method void setRemark(string $Remark) 设置签名的申请备注。
*/
class AddSmsSignRequest extends AbstractModel
{
/**
* @var string 签名名称。
注:不能重复申请已通过或待审核的签名。
*/
public $SignName;
/**
* @var integer 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
*/
public $SignType;
/**
* @var integer 证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
*/
public $DocumentType;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var integer 签名用途:
0自用。
1他用。
*/
public $SignPurpose;
/**
* @var string 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
*/
public $ProofImage;
/**
* @var string 委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 SignPurpose 在选择为 1他用这个字段才会生效。
*/
public $CommissionImage;
/**
* @var string 签名的申请备注。
*/
public $Remark;
/**
* @param string $SignName 签名名称。
注:不能重复申请已通过或待审核的签名。
* @param integer $SignType 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @param integer $DocumentType 证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param integer $SignPurpose 签名用途:
0自用。
1他用。
* @param string $ProofImage 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @param string $CommissionImage 委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 SignPurpose 在选择为 1他用这个字段才会生效。
* @param string $Remark 签名的申请备注。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SignName",$param) and $param["SignName"] !== null) {
$this->SignName = $param["SignName"];
}
if (array_key_exists("SignType",$param) and $param["SignType"] !== null) {
$this->SignType = $param["SignType"];
}
if (array_key_exists("DocumentType",$param) and $param["DocumentType"] !== null) {
$this->DocumentType = $param["DocumentType"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("SignPurpose",$param) and $param["SignPurpose"] !== null) {
$this->SignPurpose = $param["SignPurpose"];
}
if (array_key_exists("ProofImage",$param) and $param["ProofImage"] !== null) {
$this->ProofImage = $param["ProofImage"];
}
if (array_key_exists("CommissionImage",$param) and $param["CommissionImage"] !== null) {
$this->CommissionImage = $param["CommissionImage"];
}
if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
$this->Remark = $param["Remark"];
}
}
}

View File

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

View File

@@ -0,0 +1,109 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* AddSmsTemplate请求参数结构体
*
* @method string getTemplateName() 获取模板名称。
* @method void setTemplateName(string $TemplateName) 设置模板名称。
* @method string getTemplateContent() 获取模板内容。
* @method void setTemplateContent(string $TemplateContent) 设置模板内容。
* @method integer getSmsType() 获取短信类型0表示普通短信, 1表示营销短信。
* @method void setSmsType(integer $SmsType) 设置短信类型0表示普通短信, 1表示营销短信。
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method string getRemark() 获取模板备注,例如申请原因,使用场景等。
* @method void setRemark(string $Remark) 设置模板备注,例如申请原因,使用场景等。
*/
class AddSmsTemplateRequest extends AbstractModel
{
/**
* @var string 模板名称。
*/
public $TemplateName;
/**
* @var string 模板内容。
*/
public $TemplateContent;
/**
* @var integer 短信类型0表示普通短信, 1表示营销短信。
*/
public $SmsType;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var string 模板备注,例如申请原因,使用场景等。
*/
public $Remark;
/**
* @param string $TemplateName 模板名称。
* @param string $TemplateContent 模板内容。
* @param integer $SmsType 短信类型0表示普通短信, 1表示营销短信。
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param string $Remark 模板备注,例如申请原因,使用场景等。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TemplateName",$param) and $param["TemplateName"] !== null) {
$this->TemplateName = $param["TemplateName"];
}
if (array_key_exists("TemplateContent",$param) and $param["TemplateContent"] !== null) {
$this->TemplateContent = $param["TemplateContent"];
}
if (array_key_exists("SmsType",$param) and $param["SmsType"] !== null) {
$this->SmsType = $param["SmsType"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
$this->Remark = $param["Remark"];
}
}
}

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* AddSmsTemplate返回参数结构体
*
* @method AddTemplateStatus getAddTemplateStatus() 获取添加短信模板响应包体
* @method void setAddTemplateStatus(AddTemplateStatus $AddTemplateStatus) 设置添加短信模板响应包体
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class AddSmsTemplateResponse extends AbstractModel
{
/**
* @var AddTemplateStatus 添加短信模板响应包体
*/
public $AddTemplateStatus;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param AddTemplateStatus $AddTemplateStatus 添加短信模板响应包体
* @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("AddTemplateStatus",$param) and $param["AddTemplateStatus"] !== null) {
$this->AddTemplateStatus = new AddTemplateStatus();
$this->AddTemplateStatus->deserialize($param["AddTemplateStatus"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

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

View File

@@ -0,0 +1,149 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* 回执数据统计响应包体
*
* @method integer getCallbackCount() 获取短信回执量统计。
* @method void setCallbackCount(integer $CallbackCount) 设置短信回执量统计。
* @method integer getRequestSuccessCount() 获取短信提交成功量统计。
* @method void setRequestSuccessCount(integer $RequestSuccessCount) 设置短信提交成功量统计。
* @method integer getCallbackFailCount() 获取短信回执失败量统计。
* @method void setCallbackFailCount(integer $CallbackFailCount) 设置短信回执失败量统计。
* @method integer getCallbackSuccessCount() 获取短信回执成功量统计。
* @method void setCallbackSuccessCount(integer $CallbackSuccessCount) 设置短信回执成功量统计。
* @method integer getInternalErrorCount() 获取运营商内部错误统计。
* @method void setInternalErrorCount(integer $InternalErrorCount) 设置运营商内部错误统计。
* @method integer getInvalidNumberCount() 获取号码无效或空号统计。
* @method void setInvalidNumberCount(integer $InvalidNumberCount) 设置号码无效或空号统计。
* @method integer getShutdownErrorCount() 获取停机、关机等错误统计。
* @method void setShutdownErrorCount(integer $ShutdownErrorCount) 设置停机、关机等错误统计。
* @method integer getBlackListCount() 获取号码拉入黑名单统计。
* @method void setBlackListCount(integer $BlackListCount) 设置号码拉入黑名单统计。
* @method integer getFrequencyLimitCount() 获取运营商频率限制统计。
* @method void setFrequencyLimitCount(integer $FrequencyLimitCount) 设置运营商频率限制统计。
*/
class CallbackStatusStatistics extends AbstractModel
{
/**
* @var integer 短信回执量统计。
*/
public $CallbackCount;
/**
* @var integer 短信提交成功量统计。
*/
public $RequestSuccessCount;
/**
* @var integer 短信回执失败量统计。
*/
public $CallbackFailCount;
/**
* @var integer 短信回执成功量统计。
*/
public $CallbackSuccessCount;
/**
* @var integer 运营商内部错误统计。
*/
public $InternalErrorCount;
/**
* @var integer 号码无效或空号统计。
*/
public $InvalidNumberCount;
/**
* @var integer 停机、关机等错误统计。
*/
public $ShutdownErrorCount;
/**
* @var integer 号码拉入黑名单统计。
*/
public $BlackListCount;
/**
* @var integer 运营商频率限制统计。
*/
public $FrequencyLimitCount;
/**
* @param integer $CallbackCount 短信回执量统计。
* @param integer $RequestSuccessCount 短信提交成功量统计。
* @param integer $CallbackFailCount 短信回执失败量统计。
* @param integer $CallbackSuccessCount 短信回执成功量统计。
* @param integer $InternalErrorCount 运营商内部错误统计。
* @param integer $InvalidNumberCount 号码无效或空号统计。
* @param integer $ShutdownErrorCount 停机、关机等错误统计。
* @param integer $BlackListCount 号码拉入黑名单统计。
* @param integer $FrequencyLimitCount 运营商频率限制统计。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("CallbackCount",$param) and $param["CallbackCount"] !== null) {
$this->CallbackCount = $param["CallbackCount"];
}
if (array_key_exists("RequestSuccessCount",$param) and $param["RequestSuccessCount"] !== null) {
$this->RequestSuccessCount = $param["RequestSuccessCount"];
}
if (array_key_exists("CallbackFailCount",$param) and $param["CallbackFailCount"] !== null) {
$this->CallbackFailCount = $param["CallbackFailCount"];
}
if (array_key_exists("CallbackSuccessCount",$param) and $param["CallbackSuccessCount"] !== null) {
$this->CallbackSuccessCount = $param["CallbackSuccessCount"];
}
if (array_key_exists("InternalErrorCount",$param) and $param["InternalErrorCount"] !== null) {
$this->InternalErrorCount = $param["InternalErrorCount"];
}
if (array_key_exists("InvalidNumberCount",$param) and $param["InvalidNumberCount"] !== null) {
$this->InvalidNumberCount = $param["InvalidNumberCount"];
}
if (array_key_exists("ShutdownErrorCount",$param) and $param["ShutdownErrorCount"] !== null) {
$this->ShutdownErrorCount = $param["ShutdownErrorCount"];
}
if (array_key_exists("BlackListCount",$param) and $param["BlackListCount"] !== null) {
$this->BlackListCount = $param["BlackListCount"];
}
if (array_key_exists("FrequencyLimitCount",$param) and $param["FrequencyLimitCount"] !== null) {
$this->FrequencyLimitCount = $param["FrequencyLimitCount"];
}
}
}

View File

@@ -0,0 +1,113 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* CallbackStatusStatistics请求参数结构体
*
* @method string getBeginTime() 获取起始时间格式为yyyymmddhh精确到小时例如2021050113表示2021年5月1号13时。
* @method void setBeginTime(string $BeginTime) 设置起始时间格式为yyyymmddhh精确到小时例如2021050113表示2021年5月1号13时。
* @method string getEndTime() 获取结束时间格式为yyyymmddhh精确到小时例如2021050118表示2021年5月1号18时。
EndTime 必须大于 BeginTime且相差不超过32天。
* @method void setEndTime(string $EndTime) 设置结束时间格式为yyyymmddhh精确到小时例如2021050118表示2021年5月1号18时。
EndTime 必须大于 BeginTime且相差不超过32天。
* @method string getSmsSdkAppId() 获取短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @method void setSmsSdkAppId(string $SmsSdkAppId) 设置短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @method integer getLimit() 获取最大上限。
目前固定设置为0。
* @method void setLimit(integer $Limit) 设置最大上限。
目前固定设置为0。
* @method integer getOffset() 获取偏移量。
目前固定设置为0。
* @method void setOffset(integer $Offset) 设置偏移量。
目前固定设置为0。
*/
class CallbackStatusStatisticsRequest extends AbstractModel
{
/**
* @var string 起始时间格式为yyyymmddhh精确到小时例如2021050113表示2021年5月1号13时。
*/
public $BeginTime;
/**
* @var string 结束时间格式为yyyymmddhh精确到小时例如2021050118表示2021年5月1号18时。
EndTime 必须大于 BeginTime且相差不超过32天。
*/
public $EndTime;
/**
* @var string 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
*/
public $SmsSdkAppId;
/**
* @var integer 最大上限。
目前固定设置为0。
*/
public $Limit;
/**
* @var integer 偏移量。
目前固定设置为0。
*/
public $Offset;
/**
* @param string $BeginTime 起始时间格式为yyyymmddhh精确到小时例如2021050113表示2021年5月1号13时。
* @param string $EndTime 结束时间格式为yyyymmddhh精确到小时例如2021050118表示2021年5月1号18时。
EndTime 必须大于 BeginTime且相差不超过32天。
* @param string $SmsSdkAppId 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @param integer $Limit 最大上限。
目前固定设置为0。
* @param integer $Offset 偏移量。
目前固定设置为0。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("BeginTime",$param) and $param["BeginTime"] !== null) {
$this->BeginTime = $param["BeginTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("SmsSdkAppId",$param) and $param["SmsSdkAppId"] !== null) {
$this->SmsSdkAppId = $param["SmsSdkAppId"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
}
}

View File

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

View File

@@ -0,0 +1,73 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* 删除签名响应
*
* @method string getDeleteStatus() 获取删除状态信息。
注意:此字段可能返回 null表示取不到有效值。
* @method void setDeleteStatus(string $DeleteStatus) 设置删除状态信息。
注意:此字段可能返回 null表示取不到有效值。
* @method integer getDeleteTime() 获取删除时间UNIX 时间戳(单位:秒)。
注意:此字段可能返回 null表示取不到有效值。
* @method void setDeleteTime(integer $DeleteTime) 设置删除时间UNIX 时间戳(单位:秒)。
注意:此字段可能返回 null表示取不到有效值。
*/
class DeleteSignStatus extends AbstractModel
{
/**
* @var string 删除状态信息。
注意:此字段可能返回 null表示取不到有效值。
*/
public $DeleteStatus;
/**
* @var integer 删除时间UNIX 时间戳(单位:秒)。
注意:此字段可能返回 null表示取不到有效值。
*/
public $DeleteTime;
/**
* @param string $DeleteStatus 删除状态信息。
注意:此字段可能返回 null表示取不到有效值。
* @param integer $DeleteTime 删除时间UNIX 时间戳(单位:秒)。
注意:此字段可能返回 null表示取不到有效值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("DeleteStatus",$param) and $param["DeleteStatus"] !== null) {
$this->DeleteStatus = $param["DeleteStatus"];
}
if (array_key_exists("DeleteTime",$param) and $param["DeleteTime"] !== null) {
$this->DeleteTime = $param["DeleteTime"];
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* 删除模板响应
*
* @method string getDeleteStatus() 获取删除状态信息。
* @method void setDeleteStatus(string $DeleteStatus) 设置删除状态信息。
* @method integer getDeleteTime() 获取删除时间UNIX 时间戳(单位:秒)。
* @method void setDeleteTime(integer $DeleteTime) 设置删除时间UNIX 时间戳(单位:秒)。
*/
class DeleteTemplateStatus extends AbstractModel
{
/**
* @var string 删除状态信息。
*/
public $DeleteStatus;
/**
* @var integer 删除时间UNIX 时间戳(单位:秒)。
*/
public $DeleteTime;
/**
* @param string $DeleteStatus 删除状态信息。
* @param integer $DeleteTime 删除时间UNIX 时间戳(单位:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("DeleteStatus",$param) and $param["DeleteStatus"] !== null) {
$this->DeleteStatus = $param["DeleteStatus"];
}
if (array_key_exists("DeleteTime",$param) and $param["DeleteTime"] !== null) {
$this->DeleteTime = $param["DeleteTime"];
}
}
}

View File

@@ -0,0 +1,57 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribePhoneNumberInfo请求参数结构体
*
* @method array getPhoneNumberSet() 获取查询手机号码,采用 E.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号。
例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumberSet(array $PhoneNumberSet) 设置查询手机号码,采用 E.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号。
例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
class DescribePhoneNumberInfoRequest extends AbstractModel
{
/**
* @var array 查询手机号码,采用 E.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号。
例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumberSet;
/**
* @param array $PhoneNumberSet 查询手机号码,采用 E.164 标准,格式为+[国家或地区码][手机号]单次请求最多支持200个手机号。
例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PhoneNumberSet",$param) and $param["PhoneNumberSet"] !== null) {
$this->PhoneNumberSet = $param["PhoneNumberSet"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribePhoneNumberInfo返回参数结构体
*
* @method array getPhoneNumberInfoSet() 获取获取号码信息。
* @method void setPhoneNumberInfoSet(array $PhoneNumberInfoSet) 设置获取号码信息。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribePhoneNumberInfoResponse extends AbstractModel
{
/**
* @var array 获取号码信息。
*/
public $PhoneNumberInfoSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $PhoneNumberInfoSet 获取号码信息。
* @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("PhoneNumberInfoSet",$param) and $param["PhoneNumberInfoSet"] !== null) {
$this->PhoneNumberInfoSet = [];
foreach ($param["PhoneNumberInfoSet"] as $key => $value){
$obj = new PhoneNumberInfo();
$obj->deserialize($value);
array_push($this->PhoneNumberInfoSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,117 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* 获取短信签名信息响应
*
* @method integer getSignId() 获取签名ID。
* @method void setSignId(integer $SignId) 设置签名ID。
* @method integer getInternational() 获取是否国际/港澳台短信其中0表示国内短信1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信其中0表示国内短信1表示国际/港澳台短信。
* @method integer getStatusCode() 获取申请签名状态其中0表示审核通过1表示审核中。
-1表示审核未通过或审核失败。
* @method void setStatusCode(integer $StatusCode) 设置申请签名状态其中0表示审核通过1表示审核中。
-1表示审核未通过或审核失败。
* @method string getReviewReply() 获取审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @method void setReviewReply(string $ReviewReply) 设置审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @method string getSignName() 获取签名名称。
* @method void setSignName(string $SignName) 设置签名名称。
* @method integer getCreateTime() 获取提交审核时间UNIX 时间戳(单位:秒)。
* @method void setCreateTime(integer $CreateTime) 设置提交审核时间UNIX 时间戳(单位:秒)。
*/
class DescribeSignListStatus extends AbstractModel
{
/**
* @var integer 签名ID。
*/
public $SignId;
/**
* @var integer 是否国际/港澳台短信其中0表示国内短信1表示国际/港澳台短信。
*/
public $International;
/**
* @var integer 申请签名状态其中0表示审核通过1表示审核中。
-1表示审核未通过或审核失败。
*/
public $StatusCode;
/**
* @var string 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
*/
public $ReviewReply;
/**
* @var string 签名名称。
*/
public $SignName;
/**
* @var integer 提交审核时间UNIX 时间戳(单位:秒)。
*/
public $CreateTime;
/**
* @param integer $SignId 签名ID。
* @param integer $International 是否国际/港澳台短信其中0表示国内短信1表示国际/港澳台短信。
* @param integer $StatusCode 申请签名状态其中0表示审核通过1表示审核中。
-1表示审核未通过或审核失败。
* @param string $ReviewReply 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @param string $SignName 签名名称。
* @param integer $CreateTime 提交审核时间UNIX 时间戳(单位:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SignId",$param) and $param["SignId"] !== null) {
$this->SignId = $param["SignId"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("StatusCode",$param) and $param["StatusCode"] !== null) {
$this->StatusCode = $param["StatusCode"];
}
if (array_key_exists("ReviewReply",$param) and $param["ReviewReply"] !== null) {
$this->ReviewReply = $param["ReviewReply"];
}
if (array_key_exists("SignName",$param) and $param["SignName"] !== null) {
$this->SignName = $param["SignName"];
}
if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
$this->CreateTime = $param["CreateTime"];
}
}
}

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeSmsSignList请求参数结构体
*
* @method array getSignIdSet() 获取签名 ID 数组。
默认数组最大长度100。
* @method void setSignIdSet(array $SignIdSet) 设置签名 ID 数组。
默认数组最大长度100。
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
class DescribeSmsSignListRequest extends AbstractModel
{
/**
* @var array 签名 ID 数组。
默认数组最大长度100。
*/
public $SignIdSet;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @param array $SignIdSet 签名 ID 数组。
默认数组最大长度100。
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SignIdSet",$param) and $param["SignIdSet"] !== null) {
$this->SignIdSet = $param["SignIdSet"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeSmsSignList返回参数结构体
*
* @method array getDescribeSignListStatusSet() 获取获取签名信息响应
* @method void setDescribeSignListStatusSet(array $DescribeSignListStatusSet) 设置获取签名信息响应
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeSmsSignListResponse extends AbstractModel
{
/**
* @var array 获取签名信息响应
*/
public $DescribeSignListStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $DescribeSignListStatusSet 获取签名信息响应
* @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("DescribeSignListStatusSet",$param) and $param["DescribeSignListStatusSet"] !== null) {
$this->DescribeSignListStatusSet = [];
foreach ($param["DescribeSignListStatusSet"] as $key => $value){
$obj = new DescribeSignListStatus();
$obj->deserialize($value);
array_push($this->DescribeSignListStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,109 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeSmsTemplateList请求参数结构体
*
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method array getTemplateIdSet() 获取模板 ID 数组。数组为空时默认查询模板列表信息,请使用 Limit 和 Offset 字段设置查询范围。
<dx-alert infotype="notice" title="注意">默认数组长度最大100</dx-alert>
* @method void setTemplateIdSet(array $TemplateIdSet) 设置模板 ID 数组。数组为空时默认查询模板列表信息,请使用 Limit 和 Offset 字段设置查询范围。
<dx-alert infotype="notice" title="注意">默认数组长度最大100</dx-alert>
* @method integer getLimit() 获取最大上限最多100。
默认为0TemplateIdSet 为空时启用。
* @method void setLimit(integer $Limit) 设置最大上限最多100。
默认为0TemplateIdSet 为空时启用。
* @method integer getOffset() 获取偏移量。
默认为0TemplateIdSet 为空时启用。
* @method void setOffset(integer $Offset) 设置偏移量。
默认为0TemplateIdSet 为空时启用。
*/
class DescribeSmsTemplateListRequest extends AbstractModel
{
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var array 模板 ID 数组。数组为空时默认查询模板列表信息,请使用 Limit 和 Offset 字段设置查询范围。
<dx-alert infotype="notice" title="注意">默认数组长度最大100</dx-alert>
*/
public $TemplateIdSet;
/**
* @var integer 最大上限最多100。
默认为0TemplateIdSet 为空时启用。
*/
public $Limit;
/**
* @var integer 偏移量。
默认为0TemplateIdSet 为空时启用。
*/
public $Offset;
/**
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param array $TemplateIdSet 模板 ID 数组。数组为空时默认查询模板列表信息,请使用 Limit 和 Offset 字段设置查询范围。
<dx-alert infotype="notice" title="注意">默认数组长度最大100</dx-alert>
* @param integer $Limit 最大上限最多100。
默认为0TemplateIdSet 为空时启用。
* @param integer $Offset 偏移量。
默认为0TemplateIdSet 为空时启用。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("TemplateIdSet",$param) and $param["TemplateIdSet"] !== null) {
$this->TemplateIdSet = $param["TemplateIdSet"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeSmsTemplateList返回参数结构体
*
* @method array getDescribeTemplateStatusSet() 获取获取短信模板信息响应
* @method void setDescribeTemplateStatusSet(array $DescribeTemplateStatusSet) 设置获取短信模板信息响应
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeSmsTemplateListResponse extends AbstractModel
{
/**
* @var array 获取短信模板信息响应
*/
public $DescribeTemplateStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $DescribeTemplateStatusSet 获取短信模板信息响应
* @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("DescribeTemplateStatusSet",$param) and $param["DescribeTemplateStatusSet"] !== null) {
$this->DescribeTemplateStatusSet = [];
foreach ($param["DescribeTemplateStatusSet"] as $key => $value){
$obj = new DescribeTemplateListStatus();
$obj->deserialize($value);
array_push($this->DescribeTemplateStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,125 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* 获取短信模板信息响应
*
* @method integer getTemplateId() 获取模板ID。
* @method void setTemplateId(integer $TemplateId) 设置模板ID。
* @method integer getInternational() 获取是否国际/港澳台短信其中0表示国内短信1表示国际/港澳台短信3表示该模板既支持国内短信也支持国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信其中0表示国内短信1表示国际/港澳台短信3表示该模板既支持国内短信也支持国际/港澳台短信。
* @method integer getStatusCode() 获取申请模板状态其中0表示审核通过且已生效1表示审核中2表示审核通过待生效-1表示审核未通过或审核失败。注只有状态值为0时该模板才能使用。
* @method void setStatusCode(integer $StatusCode) 设置申请模板状态其中0表示审核通过且已生效1表示审核中2表示审核通过待生效-1表示审核未通过或审核失败。注只有状态值为0时该模板才能使用。
* @method string getReviewReply() 获取审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @method void setReviewReply(string $ReviewReply) 设置审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @method string getTemplateName() 获取模板名称。
* @method void setTemplateName(string $TemplateName) 设置模板名称。
* @method integer getCreateTime() 获取提交审核时间UNIX 时间戳(单位:秒)。
* @method void setCreateTime(integer $CreateTime) 设置提交审核时间UNIX 时间戳(单位:秒)。
* @method string getTemplateContent() 获取模板内容。
* @method void setTemplateContent(string $TemplateContent) 设置模板内容。
*/
class DescribeTemplateListStatus extends AbstractModel
{
/**
* @var integer 模板ID。
*/
public $TemplateId;
/**
* @var integer 是否国际/港澳台短信其中0表示国内短信1表示国际/港澳台短信3表示该模板既支持国内短信也支持国际/港澳台短信。
*/
public $International;
/**
* @var integer 申请模板状态其中0表示审核通过且已生效1表示审核中2表示审核通过待生效-1表示审核未通过或审核失败。注只有状态值为0时该模板才能使用。
*/
public $StatusCode;
/**
* @var string 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
*/
public $ReviewReply;
/**
* @var string 模板名称。
*/
public $TemplateName;
/**
* @var integer 提交审核时间UNIX 时间戳(单位:秒)。
*/
public $CreateTime;
/**
* @var string 模板内容。
*/
public $TemplateContent;
/**
* @param integer $TemplateId 模板ID。
* @param integer $International 是否国际/港澳台短信其中0表示国内短信1表示国际/港澳台短信3表示该模板既支持国内短信也支持国际/港澳台短信。
* @param integer $StatusCode 申请模板状态其中0表示审核通过且已生效1表示审核中2表示审核通过待生效-1表示审核未通过或审核失败。注只有状态值为0时该模板才能使用。
* @param string $ReviewReply 审核回复,审核人员审核后给出的回复,通常是审核未通过的原因。
* @param string $TemplateName 模板名称。
* @param integer $CreateTime 提交审核时间UNIX 时间戳(单位:秒)。
* @param string $TemplateContent 模板内容。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TemplateId",$param) and $param["TemplateId"] !== null) {
$this->TemplateId = $param["TemplateId"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("StatusCode",$param) and $param["StatusCode"] !== null) {
$this->StatusCode = $param["StatusCode"];
}
if (array_key_exists("ReviewReply",$param) and $param["ReviewReply"] !== null) {
$this->ReviewReply = $param["ReviewReply"];
}
if (array_key_exists("TemplateName",$param) and $param["TemplateName"] !== null) {
$this->TemplateName = $param["TemplateName"];
}
if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
$this->CreateTime = $param["CreateTime"];
}
if (array_key_exists("TemplateContent",$param) and $param["TemplateContent"] !== null) {
$this->TemplateContent = $param["TemplateContent"];
}
}
}

View File

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

View File

@@ -0,0 +1,245 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* ModifySmsSign请求参数结构体
*
* @method integer getSignId() 获取待修改的签名 ID。
* @method void setSignId(integer $SignId) 设置待修改的签名 ID。
* @method string getSignName() 获取签名名称。
* @method void setSignName(string $SignName) 设置签名名称。
* @method integer getSignType() 获取签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @method void setSignType(integer $SignType) 设置签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @method integer getDocumentType() 获取证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @method void setDocumentType(integer $DocumentType) 设置证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
需要和待修改签名International值保持一致该参数不能直接修改国内签名到国际签名。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
需要和待修改签名International值保持一致该参数不能直接修改国内签名到国际签名。
* @method integer getSignPurpose() 获取签名用途:
0自用。
1他用。
* @method void setSignPurpose(integer $SignPurpose) 设置签名用途:
0自用。
1他用。
* @method string getProofImage() 获取签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @method void setProofImage(string $ProofImage) 设置签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @method string getCommissionImage() 获取委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 SignPurpose 在选择为 1他用这个字段才会生效。
* @method void setCommissionImage(string $CommissionImage) 设置委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 SignPurpose 在选择为 1他用这个字段才会生效。
* @method string getRemark() 获取签名的申请备注。
* @method void setRemark(string $Remark) 设置签名的申请备注。
*/
class ModifySmsSignRequest extends AbstractModel
{
/**
* @var integer 待修改的签名 ID。
*/
public $SignId;
/**
* @var string 签名名称。
*/
public $SignName;
/**
* @var integer 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
*/
public $SignType;
/**
* @var integer 证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
*/
public $DocumentType;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
需要和待修改签名International值保持一致该参数不能直接修改国内签名到国际签名。
*/
public $International;
/**
* @var integer 签名用途:
0自用。
1他用。
*/
public $SignPurpose;
/**
* @var string 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
*/
public $ProofImage;
/**
* @var string 委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 SignPurpose 在选择为 1他用这个字段才会生效。
*/
public $CommissionImage;
/**
* @var string 签名的申请备注。
*/
public $Remark;
/**
* @param integer $SignId 待修改的签名 ID。
* @param string $SignName 签名名称。
* @param integer $SignType 签名类型。其中每种类型后面标注了其可选的 DocumentType证明类型
0公司可选 DocumentType 有01
1APP可选 DocumentType 有01234
2网站可选 DocumentType 有01235
3公众号可选 DocumentType 有01238
4商标可选 DocumentType 有7
5政府/机关事业单位/其他机构,可选 DocumentType 有23
6小程序可选 DocumentType 有01236
注:必须按照对应关系选择证明类型,否则会审核失败。
* @param integer $DocumentType 证明类型:
0三证合一。
1企业营业执照。
2组织机构代码证书。
3社会信用代码证书。
4应用后台管理截图个人开发APP
5网站备案后台截图个人开发网站
6小程序设置页面截图个人认证小程序
7商标注册书。
8公众号设置页面截图个人认证公众号
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
需要和待修改签名International值保持一致该参数不能直接修改国内签名到国际签名。
* @param integer $SignPurpose 签名用途:
0自用。
1他用。
* @param string $ProofImage 签名对应的资质证明图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
* @param string $CommissionImage 委托授权证明。选择 SignPurpose 为他用之后需要提交委托的授权证明。
图片需先进行 base64 编码格式转换,将转换后的字符串去掉前缀`data:image/jpeg;base64,`再赋值给该参数。
注:只有 SignPurpose 在选择为 1他用这个字段才会生效。
* @param string $Remark 签名的申请备注。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SignId",$param) and $param["SignId"] !== null) {
$this->SignId = $param["SignId"];
}
if (array_key_exists("SignName",$param) and $param["SignName"] !== null) {
$this->SignName = $param["SignName"];
}
if (array_key_exists("SignType",$param) and $param["SignType"] !== null) {
$this->SignType = $param["SignType"];
}
if (array_key_exists("DocumentType",$param) and $param["DocumentType"] !== null) {
$this->DocumentType = $param["DocumentType"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("SignPurpose",$param) and $param["SignPurpose"] !== null) {
$this->SignPurpose = $param["SignPurpose"];
}
if (array_key_exists("ProofImage",$param) and $param["ProofImage"] !== null) {
$this->ProofImage = $param["ProofImage"];
}
if (array_key_exists("CommissionImage",$param) and $param["CommissionImage"] !== null) {
$this->CommissionImage = $param["CommissionImage"];
}
if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
$this->Remark = $param["Remark"];
}
}
}

View File

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

View File

@@ -0,0 +1,121 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* ModifySmsTemplate请求参数结构体
*
* @method integer getTemplateId() 获取待修改模板的ID。
* @method void setTemplateId(integer $TemplateId) 设置待修改模板的ID。
* @method string getTemplateName() 获取新的模板名称。
* @method void setTemplateName(string $TemplateName) 设置新的模板名称。
* @method string getTemplateContent() 获取新的模板内容。
* @method void setTemplateContent(string $TemplateContent) 设置新的模板内容。
* @method integer getSmsType() 获取短信类型0表示普通短信, 1表示营销短信。
* @method void setSmsType(integer $SmsType) 设置短信类型0表示普通短信, 1表示营销短信。
* @method integer getInternational() 获取是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method void setInternational(integer $International) 设置是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @method string getRemark() 获取模板备注,例如申请原因,使用场景等。
* @method void setRemark(string $Remark) 设置模板备注,例如申请原因,使用场景等。
*/
class ModifySmsTemplateRequest extends AbstractModel
{
/**
* @var integer 待修改模板的ID。
*/
public $TemplateId;
/**
* @var string 新的模板名称。
*/
public $TemplateName;
/**
* @var string 新的模板内容。
*/
public $TemplateContent;
/**
* @var integer 短信类型0表示普通短信, 1表示营销短信。
*/
public $SmsType;
/**
* @var integer 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
*/
public $International;
/**
* @var string 模板备注,例如申请原因,使用场景等。
*/
public $Remark;
/**
* @param integer $TemplateId 待修改模板的ID。
* @param string $TemplateName 新的模板名称。
* @param string $TemplateContent 新的模板内容。
* @param integer $SmsType 短信类型0表示普通短信, 1表示营销短信。
* @param integer $International 是否国际/港澳台短信:
0表示国内短信。
1表示国际/港澳台短信。
* @param string $Remark 模板备注,例如申请原因,使用场景等。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TemplateId",$param) and $param["TemplateId"] !== null) {
$this->TemplateId = $param["TemplateId"];
}
if (array_key_exists("TemplateName",$param) and $param["TemplateName"] !== null) {
$this->TemplateName = $param["TemplateName"];
}
if (array_key_exists("TemplateContent",$param) and $param["TemplateContent"] !== null) {
$this->TemplateContent = $param["TemplateContent"];
}
if (array_key_exists("SmsType",$param) and $param["SmsType"] !== null) {
$this->SmsType = $param["SmsType"];
}
if (array_key_exists("International",$param) and $param["International"] !== null) {
$this->International = $param["International"];
}
if (array_key_exists("Remark",$param) and $param["Remark"] !== null) {
$this->Remark = $param["Remark"];
}
}
}

View File

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

View File

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

View File

@@ -0,0 +1,125 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* 号码信息。
*
* @method string getCode() 获取号码信息查询错误码,查询成功返回 "Ok"。
* @method void setCode(string $Code) 设置号码信息查询错误码,查询成功返回 "Ok"。
* @method string getMessage() 获取号码信息查询错误码描述。
* @method void setMessage(string $Message) 设置号码信息查询错误码描述。
* @method string getNationCode() 获取国家(或地区)码。
* @method void setNationCode(string $NationCode) 设置国家(或地区)码。
* @method string getSubscriberNumber() 获取用户号码去除国家或地区码前缀的普通格式示例如13711112222。
* @method void setSubscriberNumber(string $SubscriberNumber) 设置用户号码去除国家或地区码前缀的普通格式示例如13711112222。
* @method string getPhoneNumber() 获取解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
* @method void setPhoneNumber(string $PhoneNumber) 设置解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
* @method string getIsoCode() 获取国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
* @method void setIsoCode(string $IsoCode) 设置国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
* @method string getIsoName() 获取国家码或地区名,例如 China可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051#.E6.97.A5.E7.BB.93.E5.90.8E.E4.BB.98.E8.B4.B9.3Ca-id.3D.22post-payment.22.3E.3C.2Fa.3E)
* @method void setIsoName(string $IsoName) 设置国家码或地区名,例如 China可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051#.E6.97.A5.E7.BB.93.E5.90.8E.E4.BB.98.E8.B4.B9.3Ca-id.3D.22post-payment.22.3E.3C.2Fa.3E)
*/
class PhoneNumberInfo extends AbstractModel
{
/**
* @var string 号码信息查询错误码,查询成功返回 "Ok"。
*/
public $Code;
/**
* @var string 号码信息查询错误码描述。
*/
public $Message;
/**
* @var string 国家(或地区)码。
*/
public $NationCode;
/**
* @var string 用户号码去除国家或地区码前缀的普通格式示例如13711112222。
*/
public $SubscriberNumber;
/**
* @var string 解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
*/
public $PhoneNumber;
/**
* @var string 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
*/
public $IsoCode;
/**
* @var string 国家码或地区名,例如 China可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051#.E6.97.A5.E7.BB.93.E5.90.8E.E4.BB.98.E8.B4.B9.3Ca-id.3D.22post-payment.22.3E.3C.2Fa.3E)
*/
public $IsoName;
/**
* @param string $Code 号码信息查询错误码,查询成功返回 "Ok"。
* @param string $Message 号码信息查询错误码描述。
* @param string $NationCode 国家(或地区)码。
* @param string $SubscriberNumber 用户号码去除国家或地区码前缀的普通格式示例如13711112222。
* @param string $PhoneNumber 解析后的规范的 E.164 号码,与下发短信的号码解析结果一致。解析失败时会原样返回。
* @param string $IsoCode 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
* @param string $IsoName 国家码或地区名,例如 China可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051#.E6.97.A5.E7.BB.93.E5.90.8E.E4.BB.98.E8.B4.B9.3Ca-id.3D.22post-payment.22.3E.3C.2Fa.3E)
*/
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("NationCode",$param) and $param["NationCode"] !== null) {
$this->NationCode = $param["NationCode"];
}
if (array_key_exists("SubscriberNumber",$param) and $param["SubscriberNumber"] !== null) {
$this->SubscriberNumber = $param["SubscriberNumber"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("IsoCode",$param) and $param["IsoCode"] !== null) {
$this->IsoCode = $param["IsoCode"];
}
if (array_key_exists("IsoName",$param) and $param["IsoName"] !== null) {
$this->IsoName = $param["IsoName"];
}
}
}

View File

@@ -0,0 +1,125 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* 短信回复状态
*
* @method string getExtendCode() 获取短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
* @method void setExtendCode(string $ExtendCode) 设置短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
* @method string getCountryCode() 获取国家(或地区)码。
* @method void setCountryCode(string $CountryCode) 设置国家(或地区)码。
* @method string getPhoneNumber() 获取手机号码E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumber(string $PhoneNumber) 设置手机号码E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getSignName() 获取短信签名名称。
* @method void setSignName(string $SignName) 设置短信签名名称。
* @method string getReplyContent() 获取用户回复的内容。
* @method void setReplyContent(string $ReplyContent) 设置用户回复的内容。
* @method integer getReplyTime() 获取回复时间UNIX 时间戳(单位:秒)。
* @method void setReplyTime(integer $ReplyTime) 设置回复时间UNIX 时间戳(单位:秒)。
* @method string getSubscriberNumber() 获取用户号码普通格式示例如13711112222。
* @method void setSubscriberNumber(string $SubscriberNumber) 设置用户号码普通格式示例如13711112222。
*/
class PullSmsReplyStatus extends AbstractModel
{
/**
* @var string 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
*/
public $ExtendCode;
/**
* @var string 国家(或地区)码。
*/
public $CountryCode;
/**
* @var string 手机号码E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumber;
/**
* @var string 短信签名名称。
*/
public $SignName;
/**
* @var string 用户回复的内容。
*/
public $ReplyContent;
/**
* @var integer 回复时间UNIX 时间戳(单位:秒)。
*/
public $ReplyTime;
/**
* @var string 用户号码普通格式示例如13711112222。
*/
public $SubscriberNumber;
/**
* @param string $ExtendCode 短信码号扩展号,默认未开通,如需开通请联系 [sms helper](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
* @param string $CountryCode 国家(或地区)码。
* @param string $PhoneNumber 手机号码E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $SignName 短信签名名称。
* @param string $ReplyContent 用户回复的内容。
* @param integer $ReplyTime 回复时间UNIX 时间戳(单位:秒)。
* @param string $SubscriberNumber 用户号码普通格式示例如13711112222。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("ExtendCode",$param) and $param["ExtendCode"] !== null) {
$this->ExtendCode = $param["ExtendCode"];
}
if (array_key_exists("CountryCode",$param) and $param["CountryCode"] !== null) {
$this->CountryCode = $param["CountryCode"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("SignName",$param) and $param["SignName"] !== null) {
$this->SignName = $param["SignName"];
}
if (array_key_exists("ReplyContent",$param) and $param["ReplyContent"] !== null) {
$this->ReplyContent = $param["ReplyContent"];
}
if (array_key_exists("ReplyTime",$param) and $param["ReplyTime"] !== null) {
$this->ReplyTime = $param["ReplyTime"];
}
if (array_key_exists("SubscriberNumber",$param) and $param["SubscriberNumber"] !== null) {
$this->SubscriberNumber = $param["SubscriberNumber"];
}
}
}

View File

@@ -0,0 +1,121 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsReplyStatusByPhoneNumber请求参数结构体
*
* @method integer getBeginTime() 获取拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期前7天的数据。
* @method void setBeginTime(integer $BeginTime) 设置拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期前7天的数据。
* @method integer getOffset() 获取偏移量。
目前固定设置为0。
* @method void setOffset(integer $Offset) 设置偏移量。
目前固定设置为0。
* @method integer getLimit() 获取拉取最大条数,最多 100。
* @method void setLimit(integer $Limit) 设置拉取最大条数,最多 100。
* @method string getPhoneNumber() 获取下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumber(string $PhoneNumber) 设置下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getSmsSdkAppId() 获取短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @method void setSmsSdkAppId(string $SmsSdkAppId) 设置短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @method integer getEndTime() 获取拉取截止时间UNIX 时间戳(时间:秒)。
* @method void setEndTime(integer $EndTime) 设置拉取截止时间UNIX 时间戳(时间:秒)。
*/
class PullSmsReplyStatusByPhoneNumberRequest extends AbstractModel
{
/**
* @var integer 拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期前7天的数据。
*/
public $BeginTime;
/**
* @var integer 偏移量。
目前固定设置为0。
*/
public $Offset;
/**
* @var integer 拉取最大条数,最多 100。
*/
public $Limit;
/**
* @var string 下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumber;
/**
* @var string 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
*/
public $SmsSdkAppId;
/**
* @var integer 拉取截止时间UNIX 时间戳(时间:秒)。
*/
public $EndTime;
/**
* @param integer $BeginTime 拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期前7天的数据。
* @param integer $Offset 偏移量。
目前固定设置为0。
* @param integer $Limit 拉取最大条数,最多 100。
* @param string $PhoneNumber 下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $SmsSdkAppId 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @param integer $EndTime 拉取截止时间UNIX 时间戳(时间:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("BeginTime",$param) and $param["BeginTime"] !== null) {
$this->BeginTime = $param["BeginTime"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("SmsSdkAppId",$param) and $param["SmsSdkAppId"] !== null) {
$this->SmsSdkAppId = $param["SmsSdkAppId"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsReplyStatusByPhoneNumber返回参数结构体
*
* @method array getPullSmsReplyStatusSet() 获取回复状态响应集合。
* @method void setPullSmsReplyStatusSet(array $PullSmsReplyStatusSet) 设置回复状态响应集合。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class PullSmsReplyStatusByPhoneNumberResponse extends AbstractModel
{
/**
* @var array 回复状态响应集合。
*/
public $PullSmsReplyStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $PullSmsReplyStatusSet 回复状态响应集合。
* @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("PullSmsReplyStatusSet",$param) and $param["PullSmsReplyStatusSet"] !== null) {
$this->PullSmsReplyStatusSet = [];
foreach ($param["PullSmsReplyStatusSet"] as $key => $value){
$obj = new PullSmsReplyStatus();
$obj->deserialize($value);
array_push($this->PullSmsReplyStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsReplyStatus请求参数结构体
*
* @method integer getLimit() 获取拉取最大条数最多100条。
* @method void setLimit(integer $Limit) 设置拉取最大条数最多100条。
* @method string getSmsSdkAppId() 获取短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId例如1400006666。
* @method void setSmsSdkAppId(string $SmsSdkAppId) 设置短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId例如1400006666。
*/
class PullSmsReplyStatusRequest extends AbstractModel
{
/**
* @var integer 拉取最大条数最多100条。
*/
public $Limit;
/**
* @var string 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId例如1400006666。
*/
public $SmsSdkAppId;
/**
* @param integer $Limit 拉取最大条数最多100条。
* @param string $SmsSdkAppId 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId例如1400006666。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("SmsSdkAppId",$param) and $param["SmsSdkAppId"] !== null) {
$this->SmsSdkAppId = $param["SmsSdkAppId"];
}
}
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsReplyStatus返回参数结构体
*
* @method array getPullSmsReplyStatusSet() 获取回复状态响应集合。
* @method void setPullSmsReplyStatusSet(array $PullSmsReplyStatusSet) 设置回复状态响应集合。
* @method string getRequestId() 获取唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class PullSmsReplyStatusResponse extends AbstractModel
{
/**
* @var array 回复状态响应集合。
*/
public $PullSmsReplyStatusSet;
/**
* @var string 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $PullSmsReplyStatusSet 回复状态响应集合。
* @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("PullSmsReplyStatusSet",$param) and $param["PullSmsReplyStatusSet"] !== null) {
$this->PullSmsReplyStatusSet = [];
foreach ($param["PullSmsReplyStatusSet"] as $key => $value){
$obj = new PullSmsReplyStatus();
$obj->deserialize($value);
array_push($this->PullSmsReplyStatusSet, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}

View File

@@ -0,0 +1,141 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* 短信的下发状态详细信息
*
* @method integer getUserReceiveTime() 获取用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
* @method void setUserReceiveTime(integer $UserReceiveTime) 设置用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
* @method string getCountryCode() 获取国家(或地区)码。
* @method void setCountryCode(string $CountryCode) 设置国家(或地区)码。
* @method string getSubscriberNumber() 获取用户号码普通格式示例如13711112222。
* @method void setSubscriberNumber(string $SubscriberNumber) 设置用户号码普通格式示例如13711112222。
* @method string getPhoneNumber() 获取手机号码E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumber(string $PhoneNumber) 设置手机号码E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getSerialNo() 获取本次发送标识 ID。
* @method void setSerialNo(string $SerialNo) 设置本次发送标识 ID。
* @method string getReportStatus() 获取实际是否收到短信接收状态SUCCESS成功、FAIL失败
* @method void setReportStatus(string $ReportStatus) 设置实际是否收到短信接收状态SUCCESS成功、FAIL失败
* @method string getDescription() 获取用户接收短信状态描述。
* @method void setDescription(string $Description) 设置用户接收短信状态描述。
* @method string getSessionContext() 获取用户的 session 内容。与请求中的 SessionContext 一致,默认为空,如需开通请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
注意:此字段可能返回 null表示取不到有效值。
* @method void setSessionContext(string $SessionContext) 设置用户的 session 内容。与请求中的 SessionContext 一致,默认为空,如需开通请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
注意:此字段可能返回 null表示取不到有效值。
*/
class PullSmsSendStatus extends AbstractModel
{
/**
* @var integer 用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
*/
public $UserReceiveTime;
/**
* @var string 国家(或地区)码。
*/
public $CountryCode;
/**
* @var string 用户号码普通格式示例如13711112222。
*/
public $SubscriberNumber;
/**
* @var string 手机号码E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumber;
/**
* @var string 本次发送标识 ID。
*/
public $SerialNo;
/**
* @var string 实际是否收到短信接收状态SUCCESS成功、FAIL失败
*/
public $ReportStatus;
/**
* @var string 用户接收短信状态描述。
*/
public $Description;
/**
* @var string 用户的 session 内容。与请求中的 SessionContext 一致,默认为空,如需开通请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
注意:此字段可能返回 null表示取不到有效值。
*/
public $SessionContext;
/**
* @param integer $UserReceiveTime 用户实际接收到短信的时间UNIX 时间戳(单位:秒)。
* @param string $CountryCode 国家(或地区)码。
* @param string $SubscriberNumber 用户号码普通格式示例如13711112222。
* @param string $PhoneNumber 手机号码E.164标准,+[国家或地区码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $SerialNo 本次发送标识 ID。
* @param string $ReportStatus 实际是否收到短信接收状态SUCCESS成功、FAIL失败
* @param string $Description 用户接收短信状态描述。
* @param string $SessionContext 用户的 session 内容。与请求中的 SessionContext 一致,默认为空,如需开通请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。
注意:此字段可能返回 null表示取不到有效值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserReceiveTime",$param) and $param["UserReceiveTime"] !== null) {
$this->UserReceiveTime = $param["UserReceiveTime"];
}
if (array_key_exists("CountryCode",$param) and $param["CountryCode"] !== null) {
$this->CountryCode = $param["CountryCode"];
}
if (array_key_exists("SubscriberNumber",$param) and $param["SubscriberNumber"] !== null) {
$this->SubscriberNumber = $param["SubscriberNumber"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("SerialNo",$param) and $param["SerialNo"] !== null) {
$this->SerialNo = $param["SerialNo"];
}
if (array_key_exists("ReportStatus",$param) and $param["ReportStatus"] !== null) {
$this->ReportStatus = $param["ReportStatus"];
}
if (array_key_exists("Description",$param) and $param["Description"] !== null) {
$this->Description = $param["Description"];
}
if (array_key_exists("SessionContext",$param) and $param["SessionContext"] !== null) {
$this->SessionContext = $param["SessionContext"];
}
}
}

View File

@@ -0,0 +1,121 @@
<?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\Sms\V20210111\Models;
use TencentCloud\Common\AbstractModel;
/**
* PullSmsSendStatusByPhoneNumber请求参数结构体
*
* @method integer getBeginTime() 获取拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期前7天的数据。
* @method void setBeginTime(integer $BeginTime) 设置拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期前7天的数据。
* @method integer getOffset() 获取偏移量。
目前固定设置为0。
* @method void setOffset(integer $Offset) 设置偏移量。
目前固定设置为0。
* @method integer getLimit() 获取拉取最大条数,最多 100。
* @method void setLimit(integer $Limit) 设置拉取最大条数,最多 100。
* @method string getPhoneNumber() 获取下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method void setPhoneNumber(string $PhoneNumber) 设置下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @method string getSmsSdkAppId() 获取短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @method void setSmsSdkAppId(string $SmsSdkAppId) 设置短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @method integer getEndTime() 获取拉取截止时间UNIX 时间戳(时间:秒)。
* @method void setEndTime(integer $EndTime) 设置拉取截止时间UNIX 时间戳(时间:秒)。
*/
class PullSmsSendStatusByPhoneNumberRequest extends AbstractModel
{
/**
* @var integer 拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期前7天的数据。
*/
public $BeginTime;
/**
* @var integer 偏移量。
目前固定设置为0。
*/
public $Offset;
/**
* @var integer 拉取最大条数,最多 100。
*/
public $Limit;
/**
* @var string 下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
*/
public $PhoneNumber;
/**
* @var string 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
*/
public $SmsSdkAppId;
/**
* @var integer 拉取截止时间UNIX 时间戳(时间:秒)。
*/
public $EndTime;
/**
* @param integer $BeginTime 拉取起始时间UNIX 时间戳(时间:秒)。
最大可拉取当前时期前7天的数据。
* @param integer $Offset 偏移量。
目前固定设置为0。
* @param integer $Limit 拉取最大条数,最多 100。
* @param string $PhoneNumber 下发目的手机号码,依据 E.164 标准为:+[国家(或地区)码][手机号] ,示例如:+8613711112222 其中前面有一个+号 86为国家码13711112222为手机号。
* @param string $SmsSdkAppId 短信 SdkAppId 在 [短信控制台](https://console.cloud.tencent.com/smsv2/app-manage) 添加应用后生成的实际 SdkAppId示例如1400006666。
* @param integer $EndTime 拉取截止时间UNIX 时间戳(时间:秒)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("BeginTime",$param) and $param["BeginTime"] !== null) {
$this->BeginTime = $param["BeginTime"];
}
if (array_key_exists("Offset",$param) and $param["Offset"] !== null) {
$this->Offset = $param["Offset"];
}
if (array_key_exists("Limit",$param) and $param["Limit"] !== null) {
$this->Limit = $param["Limit"];
}
if (array_key_exists("PhoneNumber",$param) and $param["PhoneNumber"] !== null) {
$this->PhoneNumber = $param["PhoneNumber"];
}
if (array_key_exists("SmsSdkAppId",$param) and $param["SmsSdkAppId"] !== null) {
$this->SmsSdkAppId = $param["SmsSdkAppId"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
}
}

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