2 Star 10 Fork 0

tencentcloud/tencentcloud-sdk-go

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
client.go 99.00 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2025-11-05 04:23 +08:00 . release v1.1.49
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646
// Copyright (c) 2017-2025 Tencent. 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.
package v20190711
import (
"context"
"errors"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
)
const APIVersion = "2019-07-11"
type Client struct {
common.Client
}
// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
cpf := profile.NewClientProfile()
client = &Client{}
client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
return
}
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
client = &Client{}
client.Init(region).
WithCredential(credential).
WithProfile(clientProfile)
return
}
func NewAddSmsSignRequest() (request *AddSmsSignRequest) {
request = &AddSmsSignRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "AddSmsSign")
return
}
func NewAddSmsSignResponse() (response *AddSmsSignResponse) {
response = &AddSmsSignResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AddSmsSign
// 本接口 (AddSmsSign) 用于添加短信签名。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>添加短信签名前,请先认真参阅 <a href="https://cloud.tencent.com/document/product/382/39022">腾讯云短信签名审核标准。</a></li><li>个人认证用户不支持使用 API 申请短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 申请短信签名。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError"
// FAILEDOPERATION_QUALIFICATIONIDNOTAPPROVED = "FailedOperation.QualificationIdNotApproved"
// FAILEDOPERATION_SIGNNUMBERLIMIT = "FailedOperation.SignNumberLimit"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_APPIDANDBIZID = "InvalidParameter.AppidAndBizId"
// INVALIDPARAMETERVALUE_IMAGEINVALID = "InvalidParameterValue.ImageInvalid"
// INVALIDPARAMETERVALUE_INVALIDDOCUMENTTYPE = "InvalidParameterValue.InvalidDocumentType"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDUSEDMETHOD = "InvalidParameterValue.InvalidUsedMethod"
// INVALIDPARAMETERVALUE_QUALIFICATIONIDNOTFOUND = "InvalidParameterValue.QualificationIdNotFound"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// INVALIDPARAMETERVALUE_SIGNALREADYPASSEDCHECK = "InvalidParameterValue.SignAlreadyPassedCheck"
// INVALIDPARAMETERVALUE_SIGNEXISTANDUNAPPROVED = "InvalidParameterValue.SignExistAndUnapproved"
// INVALIDPARAMETERVALUE_SIGNNAMELENGTHTOOLONG = "InvalidParameterValue.SignNameLengthTooLong"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) AddSmsSign(request *AddSmsSignRequest) (response *AddSmsSignResponse, err error) {
return c.AddSmsSignWithContext(context.Background(), request)
}
// AddSmsSign
// 本接口 (AddSmsSign) 用于添加短信签名。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>添加短信签名前,请先认真参阅 <a href="https://cloud.tencent.com/document/product/382/39022">腾讯云短信签名审核标准。</a></li><li>个人认证用户不支持使用 API 申请短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 申请短信签名。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError"
// FAILEDOPERATION_QUALIFICATIONIDNOTAPPROVED = "FailedOperation.QualificationIdNotApproved"
// FAILEDOPERATION_SIGNNUMBERLIMIT = "FailedOperation.SignNumberLimit"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_APPIDANDBIZID = "InvalidParameter.AppidAndBizId"
// INVALIDPARAMETERVALUE_IMAGEINVALID = "InvalidParameterValue.ImageInvalid"
// INVALIDPARAMETERVALUE_INVALIDDOCUMENTTYPE = "InvalidParameterValue.InvalidDocumentType"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDUSEDMETHOD = "InvalidParameterValue.InvalidUsedMethod"
// INVALIDPARAMETERVALUE_QUALIFICATIONIDNOTFOUND = "InvalidParameterValue.QualificationIdNotFound"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// INVALIDPARAMETERVALUE_SIGNALREADYPASSEDCHECK = "InvalidParameterValue.SignAlreadyPassedCheck"
// INVALIDPARAMETERVALUE_SIGNEXISTANDUNAPPROVED = "InvalidParameterValue.SignExistAndUnapproved"
// INVALIDPARAMETERVALUE_SIGNNAMELENGTHTOOLONG = "InvalidParameterValue.SignNameLengthTooLong"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) AddSmsSignWithContext(ctx context.Context, request *AddSmsSignRequest) (response *AddSmsSignResponse, err error) {
if request == nil {
request = NewAddSmsSignRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "AddSmsSign")
if c.GetCredential() == nil {
return nil, errors.New("AddSmsSign require credential")
}
request.SetContext(ctx)
response = NewAddSmsSignResponse()
err = c.Send(request, response)
return
}
func NewAddSmsTemplateRequest() (request *AddSmsTemplateRequest) {
request = &AddSmsTemplateRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "AddSmsTemplate")
return
}
func NewAddSmsTemplateResponse() (response *AddSmsTemplateResponse) {
response = &AddSmsTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AddSmsTemplate
// 本接口 (AddSmsTemplate) 用于创建短信模板。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>申请短信模板前,请先认真参阅 <a href="https://cloud.tencent.com/document/product/382/39023">腾讯云短信正文模板审核标准。</a></li><li>个人认证用户不支持使用 API 申请短信正文模板,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 申请短信正文模板。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGSIGNATURE = "FailedOperation.MissingSignature"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck"
// FAILEDOPERATION_TEMPLATENUMBERLIMIT = "FailedOperation.TemplateNumberLimit"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDSMSTYPE = "InvalidParameterValue.InvalidSmsType"
// INVALIDPARAMETERVALUE_MARKETINGTEMPLATEWITHOUTUNSUBSCRIBE = "InvalidParameterValue.MarketingTemplateWithoutUnsubscribe"
// INVALIDPARAMETERVALUE_UNSUPPORTEDTEMPLATEVARIABLE = "InvalidParameterValue.UnsupportedTemplateVariable"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) AddSmsTemplate(request *AddSmsTemplateRequest) (response *AddSmsTemplateResponse, err error) {
return c.AddSmsTemplateWithContext(context.Background(), request)
}
// AddSmsTemplate
// 本接口 (AddSmsTemplate) 用于创建短信模板。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>申请短信模板前,请先认真参阅 <a href="https://cloud.tencent.com/document/product/382/39023">腾讯云短信正文模板审核标准。</a></li><li>个人认证用户不支持使用 API 申请短信正文模板,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 申请短信正文模板。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGSIGNATURE = "FailedOperation.MissingSignature"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck"
// FAILEDOPERATION_TEMPLATENUMBERLIMIT = "FailedOperation.TemplateNumberLimit"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDSMSTYPE = "InvalidParameterValue.InvalidSmsType"
// INVALIDPARAMETERVALUE_MARKETINGTEMPLATEWITHOUTUNSUBSCRIBE = "InvalidParameterValue.MarketingTemplateWithoutUnsubscribe"
// INVALIDPARAMETERVALUE_UNSUPPORTEDTEMPLATEVARIABLE = "InvalidParameterValue.UnsupportedTemplateVariable"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) AddSmsTemplateWithContext(ctx context.Context, request *AddSmsTemplateRequest) (response *AddSmsTemplateResponse, err error) {
if request == nil {
request = NewAddSmsTemplateRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "AddSmsTemplate")
if c.GetCredential() == nil {
return nil, errors.New("AddSmsTemplate require credential")
}
request.SetContext(ctx)
response = NewAddSmsTemplateResponse()
err = c.Send(request, response)
return
}
func NewCallbackStatusStatisticsRequest() (request *CallbackStatusStatisticsRequest) {
request = &CallbackStatusStatisticsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "CallbackStatusStatistics")
return
}
func NewCallbackStatusStatisticsResponse() (response *CallbackStatusStatisticsResponse) {
response = &CallbackStatusStatisticsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CallbackStatusStatistics
// 本接口 (CallbackStatusStatistics) 用于统计用户回执的数据。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail"
// INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CallbackStatusStatistics(request *CallbackStatusStatisticsRequest) (response *CallbackStatusStatisticsResponse, err error) {
return c.CallbackStatusStatisticsWithContext(context.Background(), request)
}
// CallbackStatusStatistics
// 本接口 (CallbackStatusStatistics) 用于统计用户回执的数据。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail"
// INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CallbackStatusStatisticsWithContext(ctx context.Context, request *CallbackStatusStatisticsRequest) (response *CallbackStatusStatisticsResponse, err error) {
if request == nil {
request = NewCallbackStatusStatisticsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "CallbackStatusStatistics")
if c.GetCredential() == nil {
return nil, errors.New("CallbackStatusStatistics require credential")
}
request.SetContext(ctx)
response = NewCallbackStatusStatisticsResponse()
err = c.Send(request, response)
return
}
func NewDeleteSmsSignRequest() (request *DeleteSmsSignRequest) {
request = &DeleteSmsSignRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "DeleteSmsSign")
return
}
func NewDeleteSmsSignResponse() (response *DeleteSmsSignResponse) {
response = &DeleteSmsSignResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteSmsSign
// 本接口 (DeleteSmsSign) 用于删除短信签名。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>个人认证用户不支持使用 API 删除短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 删除短信签名。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGSIGNATURETOMODIFY = "FailedOperation.MissingSignatureToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_SIGNIDNOTEXIST = "FailedOperation.SignIdNotExist"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DeleteSmsSign(request *DeleteSmsSignRequest) (response *DeleteSmsSignResponse, err error) {
return c.DeleteSmsSignWithContext(context.Background(), request)
}
// DeleteSmsSign
// 本接口 (DeleteSmsSign) 用于删除短信签名。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>个人认证用户不支持使用 API 删除短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 删除短信签名。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGSIGNATURETOMODIFY = "FailedOperation.MissingSignatureToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_SIGNIDNOTEXIST = "FailedOperation.SignIdNotExist"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DeleteSmsSignWithContext(ctx context.Context, request *DeleteSmsSignRequest) (response *DeleteSmsSignResponse, err error) {
if request == nil {
request = NewDeleteSmsSignRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "DeleteSmsSign")
if c.GetCredential() == nil {
return nil, errors.New("DeleteSmsSign require credential")
}
request.SetContext(ctx)
response = NewDeleteSmsSignResponse()
err = c.Send(request, response)
return
}
func NewDeleteSmsTemplateRequest() (request *DeleteSmsTemplateRequest) {
request = &DeleteSmsTemplateRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "DeleteSmsTemplate")
return
}
func NewDeleteSmsTemplateResponse() (response *DeleteSmsTemplateResponse) {
response = &DeleteSmsTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteSmsTemplate
// 本接口 (DeleteSmsTemplate) 用于删除短信模板。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>个人认证用户不支持使用 API 删除短信正文模板,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 删除短信正文模板。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DeleteSmsTemplate(request *DeleteSmsTemplateRequest) (response *DeleteSmsTemplateResponse, err error) {
return c.DeleteSmsTemplateWithContext(context.Background(), request)
}
// DeleteSmsTemplate
// 本接口 (DeleteSmsTemplate) 用于删除短信模板。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>个人认证用户不支持使用 API 删除短信正文模板,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 删除短信正文模板。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DeleteSmsTemplateWithContext(ctx context.Context, request *DeleteSmsTemplateRequest) (response *DeleteSmsTemplateResponse, err error) {
if request == nil {
request = NewDeleteSmsTemplateRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "DeleteSmsTemplate")
if c.GetCredential() == nil {
return nil, errors.New("DeleteSmsTemplate require credential")
}
request.SetContext(ctx)
response = NewDeleteSmsTemplateResponse()
err = c.Send(request, response)
return
}
func NewDescribeSmsSignListRequest() (request *DescribeSmsSignListRequest) {
request = &DescribeSmsSignListRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "DescribeSmsSignList")
return
}
func NewDescribeSmsSignListResponse() (response *DescribeSmsSignListResponse) {
response = &DescribeSmsSignListResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeSmsSignList
// 本接口 (DescribeSmsSignList) 用于查询短信签名状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>个人认证用户不支持使用 API 查询短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 查询短信签名。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_MISSINGSIGNATURELIST = "InvalidParameterValue.MissingSignatureList"
// MISSINGPARAMETER_MISSINGSIGNATURELIST = "MissingParameter.MissingSignatureList"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeSmsSignList(request *DescribeSmsSignListRequest) (response *DescribeSmsSignListResponse, err error) {
return c.DescribeSmsSignListWithContext(context.Background(), request)
}
// DescribeSmsSignList
// 本接口 (DescribeSmsSignList) 用于查询短信签名状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>个人认证用户不支持使用 API 查询短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 查询短信签名。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_MISSINGSIGNATURELIST = "InvalidParameterValue.MissingSignatureList"
// MISSINGPARAMETER_MISSINGSIGNATURELIST = "MissingParameter.MissingSignatureList"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeSmsSignListWithContext(ctx context.Context, request *DescribeSmsSignListRequest) (response *DescribeSmsSignListResponse, err error) {
if request == nil {
request = NewDescribeSmsSignListRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "DescribeSmsSignList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeSmsSignList require credential")
}
request.SetContext(ctx)
response = NewDescribeSmsSignListResponse()
err = c.Send(request, response)
return
}
func NewDescribeSmsTemplateListRequest() (request *DescribeSmsTemplateListRequest) {
request = &DescribeSmsTemplateListRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "DescribeSmsTemplateList")
return
}
func NewDescribeSmsTemplateListResponse() (response *DescribeSmsTemplateListResponse) {
response = &DescribeSmsTemplateListResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeSmsTemplateList
// 本接口 (DescribeSmsTemplateList) 用于查询短信模板状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>个人认证用户不支持使用 API 查询短信正文模板,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 查询短信正文模板。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeSmsTemplateList(request *DescribeSmsTemplateListRequest) (response *DescribeSmsTemplateListResponse, err error) {
return c.DescribeSmsTemplateListWithContext(context.Background(), request)
}
// DescribeSmsTemplateList
// 本接口 (DescribeSmsTemplateList) 用于查询短信模板状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>个人认证用户不支持使用 API 查询短信正文模板,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 查询短信正文模板。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeSmsTemplateListWithContext(ctx context.Context, request *DescribeSmsTemplateListRequest) (response *DescribeSmsTemplateListResponse, err error) {
if request == nil {
request = NewDescribeSmsTemplateListRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "DescribeSmsTemplateList")
if c.GetCredential() == nil {
return nil, errors.New("DescribeSmsTemplateList require credential")
}
request.SetContext(ctx)
response = NewDescribeSmsTemplateListResponse()
err = c.Send(request, response)
return
}
func NewModifySmsSignRequest() (request *ModifySmsSignRequest) {
request = &ModifySmsSignRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "ModifySmsSign")
return
}
func NewModifySmsSignResponse() (response *ModifySmsSignResponse) {
response = &ModifySmsSignResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifySmsSign
// 本接口 (ModifySmsSign) 用于修改短信签名。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>修改短信签名前,请先认真参阅 <a href="https://cloud.tencent.com/document/product/382/39022">腾讯云短信签名审核标准。</a></li><li>个人认证用户不支持使用 API 修改短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 修改短信签名。</li><li>修改短信签名,仅当签名为<b>待审核</b>或<b>已拒绝</b>状态时,才能进行修改,<b>已审核通过</b>的签名不支持修改。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGSIGNATURELIST = "FailedOperation.MissingSignatureList"
// FAILEDOPERATION_MISSINGSIGNATURETOMODIFY = "FailedOperation.MissingSignatureToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_QUALIFICATIONIDNOTAPPROVED = "FailedOperation.QualificationIdNotApproved"
// FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_APPIDANDBIZID = "InvalidParameter.AppidAndBizId"
// INVALIDPARAMETERVALUE_IMAGEINVALID = "InvalidParameterValue.ImageInvalid"
// INVALIDPARAMETERVALUE_INVALIDDOCUMENTTYPE = "InvalidParameterValue.InvalidDocumentType"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDUSEDMETHOD = "InvalidParameterValue.InvalidUsedMethod"
// INVALIDPARAMETERVALUE_QUALIFICATIONIDNOTFOUND = "InvalidParameterValue.QualificationIdNotFound"
// INVALIDPARAMETERVALUE_SIGNALREADYPASSEDCHECK = "InvalidParameterValue.SignAlreadyPassedCheck"
// INVALIDPARAMETERVALUE_SIGNEXISTANDUNAPPROVED = "InvalidParameterValue.SignExistAndUnapproved"
// INVALIDPARAMETERVALUE_SIGNNAMELENGTHTOOLONG = "InvalidParameterValue.SignNameLengthTooLong"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifySmsSign(request *ModifySmsSignRequest) (response *ModifySmsSignResponse, err error) {
return c.ModifySmsSignWithContext(context.Background(), request)
}
// ModifySmsSign
// 本接口 (ModifySmsSign) 用于修改短信签名。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>修改短信签名前,请先认真参阅 <a href="https://cloud.tencent.com/document/product/382/39022">腾讯云短信签名审核标准。</a></li><li>个人认证用户不支持使用 API 修改短信签名,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 修改短信签名。</li><li>修改短信签名,仅当签名为<b>待审核</b>或<b>已拒绝</b>状态时,才能进行修改,<b>已审核通过</b>的签名不支持修改。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGSIGNATURELIST = "FailedOperation.MissingSignatureList"
// FAILEDOPERATION_MISSINGSIGNATURETOMODIFY = "FailedOperation.MissingSignatureToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_QUALIFICATIONIDNOTAPPROVED = "FailedOperation.QualificationIdNotApproved"
// FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_APPIDANDBIZID = "InvalidParameter.AppidAndBizId"
// INVALIDPARAMETERVALUE_IMAGEINVALID = "InvalidParameterValue.ImageInvalid"
// INVALIDPARAMETERVALUE_INVALIDDOCUMENTTYPE = "InvalidParameterValue.InvalidDocumentType"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDUSEDMETHOD = "InvalidParameterValue.InvalidUsedMethod"
// INVALIDPARAMETERVALUE_QUALIFICATIONIDNOTFOUND = "InvalidParameterValue.QualificationIdNotFound"
// INVALIDPARAMETERVALUE_SIGNALREADYPASSEDCHECK = "InvalidParameterValue.SignAlreadyPassedCheck"
// INVALIDPARAMETERVALUE_SIGNEXISTANDUNAPPROVED = "InvalidParameterValue.SignExistAndUnapproved"
// INVALIDPARAMETERVALUE_SIGNNAMELENGTHTOOLONG = "InvalidParameterValue.SignNameLengthTooLong"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifySmsSignWithContext(ctx context.Context, request *ModifySmsSignRequest) (response *ModifySmsSignResponse, err error) {
if request == nil {
request = NewModifySmsSignRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "ModifySmsSign")
if c.GetCredential() == nil {
return nil, errors.New("ModifySmsSign require credential")
}
request.SetContext(ctx)
response = NewModifySmsSignResponse()
err = c.Send(request, response)
return
}
func NewModifySmsTemplateRequest() (request *ModifySmsTemplateRequest) {
request = &ModifySmsTemplateRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "ModifySmsTemplate")
return
}
func NewModifySmsTemplateResponse() (response *ModifySmsTemplateResponse) {
response = &ModifySmsTemplateResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ModifySmsTemplate
// 本接口 (ModifySmsTemplate) 用于修改短信模板。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>修改短信正文模板前,请先认真参阅 <a href="https://cloud.tencent.com/document/product/382/39023">腾讯云短信正文模板审核标准。</a></li><li>个人认证用户不支持使用 API 修改短信正文模板,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 修改短信正文模板。</li><li>修改短信模板,仅当正文模板为<b>待审核</b>或<b>已拒绝</b>状态时,才能进行修改,<b>已审核通过</b>的正文模板不支持修改。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_MISSINGTEMPLATELIST = "FailedOperation.MissingTemplateList"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck"
// FAILEDOPERATION_TEMPLATENUMBERLIMIT = "FailedOperation.TemplateNumberLimit"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDSMSTYPE = "InvalidParameterValue.InvalidSmsType"
// INVALIDPARAMETERVALUE_MARKETINGTEMPLATEWITHOUTUNSUBSCRIBE = "InvalidParameterValue.MarketingTemplateWithoutUnsubscribe"
// INVALIDPARAMETERVALUE_UNSUPPORTEDTEMPLATEVARIABLE = "InvalidParameterValue.UnsupportedTemplateVariable"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifySmsTemplate(request *ModifySmsTemplateRequest) (response *ModifySmsTemplateResponse, err error) {
return c.ModifySmsTemplateWithContext(context.Background(), request)
}
// ModifySmsTemplate
// 本接口 (ModifySmsTemplate) 用于修改短信模板。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>修改短信正文模板前,请先认真参阅 <a href="https://cloud.tencent.com/document/product/382/39023">腾讯云短信正文模板审核标准。</a></li><li>个人认证用户不支持使用 API 修改短信正文模板,请参阅了解 <a href="https://cloud.tencent.com/document/product/378/3629">实名认证基本介绍</a>,如果为个人认证请登录 <a href="https://console.cloud.tencent.com/smsv2">控制台</a> 修改短信正文模板。</li><li>修改短信模板,仅当正文模板为<b>待审核</b>或<b>已拒绝</b>状态时,才能进行修改,<b>已审核通过</b>的正文模板不支持修改。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_MISSINGTEMPLATELIST = "FailedOperation.MissingTemplateList"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck"
// FAILEDOPERATION_TEMPLATENUMBERLIMIT = "FailedOperation.TemplateNumberLimit"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDSMSTYPE = "InvalidParameterValue.InvalidSmsType"
// INVALIDPARAMETERVALUE_MARKETINGTEMPLATEWITHOUTUNSUBSCRIBE = "InvalidParameterValue.MarketingTemplateWithoutUnsubscribe"
// INVALIDPARAMETERVALUE_UNSUPPORTEDTEMPLATEVARIABLE = "InvalidParameterValue.UnsupportedTemplateVariable"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) ModifySmsTemplateWithContext(ctx context.Context, request *ModifySmsTemplateRequest) (response *ModifySmsTemplateResponse, err error) {
if request == nil {
request = NewModifySmsTemplateRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "ModifySmsTemplate")
if c.GetCredential() == nil {
return nil, errors.New("ModifySmsTemplate require credential")
}
request.SetContext(ctx)
response = NewModifySmsTemplateResponse()
err = c.Send(request, response)
return
}
func NewPullSmsReplyStatusRequest() (request *PullSmsReplyStatusRequest) {
request = &PullSmsReplyStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "PullSmsReplyStatus")
return
}
func NewPullSmsReplyStatusResponse() (response *PullSmsReplyStatusResponse) {
response = &PullSmsReplyStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PullSmsReplyStatus
// 本接口 (PullSmsReplyStatus) 用于拉取短信回复状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a> 开通。接口拉取的状态数据为队列模式,同一号码一次下发的状态数据仅能拉取一次。</li><li>上行回复也支持 <a href="https://cloud.tencent.com/document/product/382/42907">配置回复回调</a> 的方式获取。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) PullSmsReplyStatus(request *PullSmsReplyStatusRequest) (response *PullSmsReplyStatusResponse, err error) {
return c.PullSmsReplyStatusWithContext(context.Background(), request)
}
// PullSmsReplyStatus
// 本接口 (PullSmsReplyStatus) 用于拉取短信回复状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a> 开通。接口拉取的状态数据为队列模式,同一号码一次下发的状态数据仅能拉取一次。</li><li>上行回复也支持 <a href="https://cloud.tencent.com/document/product/382/42907">配置回复回调</a> 的方式获取。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) PullSmsReplyStatusWithContext(ctx context.Context, request *PullSmsReplyStatusRequest) (response *PullSmsReplyStatusResponse, err error) {
if request == nil {
request = NewPullSmsReplyStatusRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "PullSmsReplyStatus")
if c.GetCredential() == nil {
return nil, errors.New("PullSmsReplyStatus require credential")
}
request.SetContext(ctx)
response = NewPullSmsReplyStatusResponse()
err = c.Send(request, response)
return
}
func NewPullSmsReplyStatusByPhoneNumberRequest() (request *PullSmsReplyStatusByPhoneNumberRequest) {
request = &PullSmsReplyStatusByPhoneNumberRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "PullSmsReplyStatusByPhoneNumber")
return
}
func NewPullSmsReplyStatusByPhoneNumberResponse() (response *PullSmsReplyStatusByPhoneNumberResponse) {
response = &PullSmsReplyStatusByPhoneNumberResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PullSmsReplyStatusByPhoneNumber
// 本接口 (PullSmsReplyStatusByPhoneNumber) 用于拉取单个号码短信回复状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>上行回复也支持 <a href="https://cloud.tencent.com/document/product/382/42907">配置回复回调</a> 的方式获取。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_CONSTRUCTUSERDATAFAIL = "InternalError.ConstructUserDataFail"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail"
// INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) PullSmsReplyStatusByPhoneNumber(request *PullSmsReplyStatusByPhoneNumberRequest) (response *PullSmsReplyStatusByPhoneNumberResponse, err error) {
return c.PullSmsReplyStatusByPhoneNumberWithContext(context.Background(), request)
}
// PullSmsReplyStatusByPhoneNumber
// 本接口 (PullSmsReplyStatusByPhoneNumber) 用于拉取单个号码短信回复状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>上行回复也支持 <a href="https://cloud.tencent.com/document/product/382/42907">配置回复回调</a> 的方式获取。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_CONSTRUCTUSERDATAFAIL = "InternalError.ConstructUserDataFail"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail"
// INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) PullSmsReplyStatusByPhoneNumberWithContext(ctx context.Context, request *PullSmsReplyStatusByPhoneNumberRequest) (response *PullSmsReplyStatusByPhoneNumberResponse, err error) {
if request == nil {
request = NewPullSmsReplyStatusByPhoneNumberRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "PullSmsReplyStatusByPhoneNumber")
if c.GetCredential() == nil {
return nil, errors.New("PullSmsReplyStatusByPhoneNumber require credential")
}
request.SetContext(ctx)
response = NewPullSmsReplyStatusByPhoneNumberResponse()
err = c.Send(request, response)
return
}
func NewPullSmsSendStatusRequest() (request *PullSmsSendStatusRequest) {
request = &PullSmsSendStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "PullSmsSendStatus")
return
}
func NewPullSmsSendStatusResponse() (response *PullSmsSendStatusResponse) {
response = &PullSmsSendStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PullSmsSendStatus
// 本接口 (PullSmsSendStatus) 用于拉取短信下发状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a> 开通。接口拉取的状态数据为队列模式,同一号码一次下发的状态数据仅能拉取一次。</li><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809#sendingstatus">配置回调</a> 的方式获取。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) PullSmsSendStatus(request *PullSmsSendStatusRequest) (response *PullSmsSendStatusResponse, err error) {
return c.PullSmsSendStatusWithContext(context.Background(), request)
}
// PullSmsSendStatus
// 本接口 (PullSmsSendStatus) 用于拉取短信下发状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>此接口需要联系 <a href="https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81">腾讯云短信小助手</a> 开通。接口拉取的状态数据为队列模式,同一号码一次下发的状态数据仅能拉取一次。</li><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809#sendingstatus">配置回调</a> 的方式获取。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) PullSmsSendStatusWithContext(ctx context.Context, request *PullSmsSendStatusRequest) (response *PullSmsSendStatusResponse, err error) {
if request == nil {
request = NewPullSmsSendStatusRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "PullSmsSendStatus")
if c.GetCredential() == nil {
return nil, errors.New("PullSmsSendStatus require credential")
}
request.SetContext(ctx)
response = NewPullSmsSendStatusResponse()
err = c.Send(request, response)
return
}
func NewPullSmsSendStatusByPhoneNumberRequest() (request *PullSmsSendStatusByPhoneNumberRequest) {
request = &PullSmsSendStatusByPhoneNumberRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "PullSmsSendStatusByPhoneNumber")
return
}
func NewPullSmsSendStatusByPhoneNumberResponse() (response *PullSmsSendStatusByPhoneNumberResponse) {
response = &PullSmsSendStatusByPhoneNumberResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// PullSmsSendStatusByPhoneNumber
// 本接口 (PullSmsSendStatusByPhoneNumber) 用于拉取单个号码短信下发状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809#sendingstatus">配置回调</a> 的方式获取。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail"
// INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) PullSmsSendStatusByPhoneNumber(request *PullSmsSendStatusByPhoneNumberRequest) (response *PullSmsSendStatusByPhoneNumberResponse, err error) {
return c.PullSmsSendStatusByPhoneNumberWithContext(context.Background(), request)
}
// PullSmsSendStatusByPhoneNumber
// 本接口 (PullSmsSendStatusByPhoneNumber) 用于拉取单个号码短信下发状态。
//
// <blockquote class="d-mod-explain"><div class="d-mod-title d-explain-title" style="line-height: normal;"><i class="d-icon-explain"></i>说明:</div><p></p><ul><li>下发状态也支持 <a href="https://cloud.tencent.com/document/product/382/37809#sendingstatus">配置回调</a> 的方式获取。</li></ul></blockquote>
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail"
// INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) PullSmsSendStatusByPhoneNumberWithContext(ctx context.Context, request *PullSmsSendStatusByPhoneNumberRequest) (response *PullSmsSendStatusByPhoneNumberResponse, err error) {
if request == nil {
request = NewPullSmsSendStatusByPhoneNumberRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "PullSmsSendStatusByPhoneNumber")
if c.GetCredential() == nil {
return nil, errors.New("PullSmsSendStatusByPhoneNumber require credential")
}
request.SetContext(ctx)
response = NewPullSmsSendStatusByPhoneNumberResponse()
err = c.Send(request, response)
return
}
func NewSendSmsRequest() (request *SendSmsRequest) {
request = &SendSmsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "SendSms")
return
}
func NewSendSmsResponse() (response *SendSmsResponse) {
response = &SendSmsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SendSms
// 本接口 (SendSms) 用于发送验证码、通知类短信和营销短信。支持国内短信与国际/港澳台短信。
//
// 可能返回的错误码:
// FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord"
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_INSUFFICIENTBALANCEINSMSPACKAGE = "FailedOperation.InsufficientBalanceInSmsPackage"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MARKETINGSENDTIMECONSTRAINT = "FailedOperation.MarketingSendTimeConstraint"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved"
// FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved"
// FAILEDOPERATION_TEMPLATEPARAMSETNOTMATCHAPPROVEDTEMPLATE = "FailedOperation.TemplateParamSetNotMatchApprovedTemplate"
// FAILEDOPERATION_TEMPLATEUNAPPROVEDORNOTEXIST = "FailedOperation.TemplateUnapprovedOrNotExist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = "InvalidParameterValue.ContentLengthLimit"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_PROHIBITEDUSEURLINTEMPLATEPARAMETER = "InvalidParameterValue.ProhibitedUseUrlInTemplateParameter"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// INVALIDPARAMETERVALUE_TEMPLATEPARAMETERFORMATERROR = "InvalidParameterValue.TemplateParameterFormatError"
// INVALIDPARAMETERVALUE_TEMPLATEPARAMETERLENGTHLIMIT = "InvalidParameterValue.TemplateParameterLengthLimit"
// LIMITEXCEEDED_APPCOUNTRYORREGIONDAILYLIMIT = "LimitExceeded.AppCountryOrRegionDailyLimit"
// LIMITEXCEEDED_APPCOUNTRYORREGIONINBLACKLIST = "LimitExceeded.AppCountryOrRegionInBlacklist"
// LIMITEXCEEDED_APPDAILYLIMIT = "LimitExceeded.AppDailyLimit"
// LIMITEXCEEDED_APPGLOBALDAILYLIMIT = "LimitExceeded.AppGlobalDailyLimit"
// LIMITEXCEEDED_APPMAINLANDCHINADAILYLIMIT = "LimitExceeded.AppMainlandChinaDailyLimit"
// LIMITEXCEEDED_DAILYLIMIT = "LimitExceeded.DailyLimit"
// LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit"
// LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = "LimitExceeded.PhoneNumberCountLimit"
// LIMITEXCEEDED_PHONENUMBERDAILYLIMIT = "LimitExceeded.PhoneNumberDailyLimit"
// LIMITEXCEEDED_PHONENUMBERONEHOURLIMIT = "LimitExceeded.PhoneNumberOneHourLimit"
// LIMITEXCEEDED_PHONENUMBERSAMECONTENTDAILYLIMIT = "LimitExceeded.PhoneNumberSameContentDailyLimit"
// LIMITEXCEEDED_PHONENUMBERTHIRTYSECONDLIMIT = "LimitExceeded.PhoneNumberThirtySecondLimit"
// MISSINGPARAMETER_EMPTYPHONENUMBERSET = "MissingParameter.EmptyPhoneNumberSet"
// UNAUTHORIZEDOPERATION_INDIVIDUALUSERMARKETINGSMSPERMISSIONDENY = "UnauthorizedOperation.IndividualUserMarketingSmsPermissionDeny"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
// UNSUPPORTEDOPERATION_CHINESEMAINLANDTEMPLATETOGLOBALPHONE = "UnsupportedOperation.ChineseMainlandTemplateToGlobalPhone"
// UNSUPPORTEDOPERATION_CONTAINDOMESTICANDINTERNATIONALPHONENUMBER = "UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber"
// UNSUPPORTEDOPERATION_GLOBALTEMPLATETOCHINESEMAINLANDPHONE = "UnsupportedOperation.GlobalTemplateToChineseMainlandPhone"
// UNSUPPORTEDOPERATION_UNSUPPORTEDREGION = "UnsupportedOperation.UnsupportedRegion"
func (c *Client) SendSms(request *SendSmsRequest) (response *SendSmsResponse, err error) {
return c.SendSmsWithContext(context.Background(), request)
}
// SendSms
// 本接口 (SendSms) 用于发送验证码、通知类短信和营销短信。支持国内短信与国际/港澳台短信。
//
// 可能返回的错误码:
// FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord"
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_INSUFFICIENTBALANCEINSMSPACKAGE = "FailedOperation.InsufficientBalanceInSmsPackage"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MARKETINGSENDTIMECONSTRAINT = "FailedOperation.MarketingSendTimeConstraint"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved"
// FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved"
// FAILEDOPERATION_TEMPLATEPARAMSETNOTMATCHAPPROVEDTEMPLATE = "FailedOperation.TemplateParamSetNotMatchApprovedTemplate"
// FAILEDOPERATION_TEMPLATEUNAPPROVEDORNOTEXIST = "FailedOperation.TemplateUnapprovedOrNotExist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = "InvalidParameterValue.ContentLengthLimit"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_PROHIBITEDUSEURLINTEMPLATEPARAMETER = "InvalidParameterValue.ProhibitedUseUrlInTemplateParameter"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// INVALIDPARAMETERVALUE_TEMPLATEPARAMETERFORMATERROR = "InvalidParameterValue.TemplateParameterFormatError"
// INVALIDPARAMETERVALUE_TEMPLATEPARAMETERLENGTHLIMIT = "InvalidParameterValue.TemplateParameterLengthLimit"
// LIMITEXCEEDED_APPCOUNTRYORREGIONDAILYLIMIT = "LimitExceeded.AppCountryOrRegionDailyLimit"
// LIMITEXCEEDED_APPCOUNTRYORREGIONINBLACKLIST = "LimitExceeded.AppCountryOrRegionInBlacklist"
// LIMITEXCEEDED_APPDAILYLIMIT = "LimitExceeded.AppDailyLimit"
// LIMITEXCEEDED_APPGLOBALDAILYLIMIT = "LimitExceeded.AppGlobalDailyLimit"
// LIMITEXCEEDED_APPMAINLANDCHINADAILYLIMIT = "LimitExceeded.AppMainlandChinaDailyLimit"
// LIMITEXCEEDED_DAILYLIMIT = "LimitExceeded.DailyLimit"
// LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit"
// LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = "LimitExceeded.PhoneNumberCountLimit"
// LIMITEXCEEDED_PHONENUMBERDAILYLIMIT = "LimitExceeded.PhoneNumberDailyLimit"
// LIMITEXCEEDED_PHONENUMBERONEHOURLIMIT = "LimitExceeded.PhoneNumberOneHourLimit"
// LIMITEXCEEDED_PHONENUMBERSAMECONTENTDAILYLIMIT = "LimitExceeded.PhoneNumberSameContentDailyLimit"
// LIMITEXCEEDED_PHONENUMBERTHIRTYSECONDLIMIT = "LimitExceeded.PhoneNumberThirtySecondLimit"
// MISSINGPARAMETER_EMPTYPHONENUMBERSET = "MissingParameter.EmptyPhoneNumberSet"
// UNAUTHORIZEDOPERATION_INDIVIDUALUSERMARKETINGSMSPERMISSIONDENY = "UnauthorizedOperation.IndividualUserMarketingSmsPermissionDeny"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
// UNSUPPORTEDOPERATION_CHINESEMAINLANDTEMPLATETOGLOBALPHONE = "UnsupportedOperation.ChineseMainlandTemplateToGlobalPhone"
// UNSUPPORTEDOPERATION_CONTAINDOMESTICANDINTERNATIONALPHONENUMBER = "UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber"
// UNSUPPORTEDOPERATION_GLOBALTEMPLATETOCHINESEMAINLANDPHONE = "UnsupportedOperation.GlobalTemplateToChineseMainlandPhone"
// UNSUPPORTEDOPERATION_UNSUPPORTEDREGION = "UnsupportedOperation.UnsupportedRegion"
func (c *Client) SendSmsWithContext(ctx context.Context, request *SendSmsRequest) (response *SendSmsResponse, err error) {
if request == nil {
request = NewSendSmsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "SendSms")
if c.GetCredential() == nil {
return nil, errors.New("SendSms require credential")
}
request.SetContext(ctx)
response = NewSendSmsResponse()
err = c.Send(request, response)
return
}
func NewSendStatusStatisticsRequest() (request *SendStatusStatisticsRequest) {
request = &SendStatusStatisticsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "SendStatusStatistics")
return
}
func NewSendStatusStatisticsResponse() (response *SendStatusStatisticsResponse) {
response = &SendStatusStatisticsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SendStatusStatistics
// 本接口 (SendStatusStatistics) 用于统计用户发送短信的数据。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) SendStatusStatistics(request *SendStatusStatisticsRequest) (response *SendStatusStatisticsResponse, err error) {
return c.SendStatusStatisticsWithContext(context.Background(), request)
}
// SendStatusStatistics
// 本接口 (SendStatusStatistics) 用于统计用户发送短信的数据。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) SendStatusStatisticsWithContext(ctx context.Context, request *SendStatusStatisticsRequest) (response *SendStatusStatisticsResponse, err error) {
if request == nil {
request = NewSendStatusStatisticsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "SendStatusStatistics")
if c.GetCredential() == nil {
return nil, errors.New("SendStatusStatistics require credential")
}
request.SetContext(ctx)
response = NewSendStatusStatisticsResponse()
err = c.Send(request, response)
return
}
func NewSmsPackagesStatisticsRequest() (request *SmsPackagesStatisticsRequest) {
request = &SmsPackagesStatisticsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "SmsPackagesStatistics")
return
}
func NewSmsPackagesStatisticsResponse() (response *SmsPackagesStatisticsResponse) {
response = &SmsPackagesStatisticsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// SmsPackagesStatistics
// 本接口 (SmsPackagesStatistics) 用于统计用户套餐包数据。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) SmsPackagesStatistics(request *SmsPackagesStatisticsRequest) (response *SmsPackagesStatisticsResponse, err error) {
return c.SmsPackagesStatisticsWithContext(context.Background(), request)
}
// SmsPackagesStatistics
// 本接口 (SmsPackagesStatistics) 用于统计用户套餐包数据。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist"
// UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny"
// UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled"
// UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = "UnauthorizedOperation.ServiceSuspendDueToArrears"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) SmsPackagesStatisticsWithContext(ctx context.Context, request *SmsPackagesStatisticsRequest) (response *SmsPackagesStatisticsResponse, err error) {
if request == nil {
request = NewSmsPackagesStatisticsRequest()
}
c.InitBaseRequest(&request.BaseRequest, "sms", APIVersion, "SmsPackagesStatistics")
if c.GetCredential() == nil {
return nil, errors.New("SmsPackagesStatistics require credential")
}
request.SetContext(ctx)
response = NewSmsPackagesStatisticsResponse()
err = c.Send(request, response)
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-go.git
git@gitee.com:tencentcloud/tencentcloud-sdk-go.git
tencentcloud
tencentcloud-sdk-go
tencentcloud-sdk-go
master

搜索帮助