1 Star 5 Fork 0

tencentcloud / tencentcloud-sdk-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
client.go 109.60 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2023-10-24 10:42 . release v1.0.772
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20210111
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 = "2021-01-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
// 1. 添加短信签名,申请之前请先认真参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
//
// 2. ⚠️注意:个人认证用户不支持使用 API 申请短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台申请短信签名。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError"
// FAILEDOPERATION_SIGNNUMBERLIMIT = "FailedOperation.SignNumberLimit"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// 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_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
// 1. 添加短信签名,申请之前请先认真参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
//
// 2. ⚠️注意:个人认证用户不支持使用 API 申请短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录控制台申请短信签名。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError"
// FAILEDOPERATION_SIGNNUMBERLIMIT = "FailedOperation.SignNumberLimit"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// 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_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()
}
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
// 1. 添加短信模板,申请之前请先认真参阅 [腾讯云短信正文模板审核标准](https://cloud.tencent.com/document/product/382/39023)。
//
// 2. ⚠️注意:个人认证用户不支持使用 API 申请短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 申请短信正文模板。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_FORBIDADDMARKETINGTEMPLATES = "FailedOperation.ForbidAddMarketingTemplates"
// 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_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_DIRTYWORDFOUND = "InvalidParameter.DirtyWordFound"
// INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDTEMPLATEFORMAT = "InvalidParameterValue.InvalidTemplateFormat"
// INVALIDPARAMETERVALUE_MARKETINGTEMPLATEWITHOUTUNSUBSCRIBE = "InvalidParameterValue.MarketingTemplateWithoutUnsubscribe"
// 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
// 1. 添加短信模板,申请之前请先认真参阅 [腾讯云短信正文模板审核标准](https://cloud.tencent.com/document/product/382/39023)。
//
// 2. ⚠️注意:个人认证用户不支持使用 API 申请短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 申请短信正文模板。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_FORBIDADDMARKETINGTEMPLATES = "FailedOperation.ForbidAddMarketingTemplates"
// 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_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_TIMEOUT = "InternalError.Timeout"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_DIRTYWORDFOUND = "InvalidParameter.DirtyWordFound"
// INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDTEMPLATEFORMAT = "InvalidParameterValue.InvalidTemplateFormat"
// INVALIDPARAMETERVALUE_MARKETINGTEMPLATEWITHOUTUNSUBSCRIBE = "InvalidParameterValue.MarketingTemplateWithoutUnsubscribe"
// 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()
}
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
// 统计用户回执的数据。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// 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_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail"
// INVALIDPARAMETERVALUE_OFFSETVERIFYFAIL = "InvalidParameterValue.OffsetVerifyFail"
// 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
// 统计用户回执的数据。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// 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_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail"
// INVALIDPARAMETERVALUE_OFFSETVERIFYFAIL = "InvalidParameterValue.OffsetVerifyFail"
// 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()
}
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
// ⚠️注意:个人认证用户不支持使用 API 删除短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),请登录 [控制台](https://console.cloud.tencent.com/smsv2) 删除短信签名。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_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
// ⚠️注意:个人认证用户不支持使用 API 删除短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),请登录 [控制台](https://console.cloud.tencent.com/smsv2) 删除短信签名。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_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()
}
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
// ⚠️注意:个人认证用户不支持使用 API 删除短信正文模板,请登录 [控制台](https://console.cloud.tencent.com/smsv2) 删除短信正文模板,如需了解请参阅 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_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_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
// ⚠️注意:个人认证用户不支持使用 API 删除短信正文模板,请登录 [控制台](https://console.cloud.tencent.com/smsv2) 删除短信正文模板,如需了解请参阅 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_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_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()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteSmsTemplate require credential")
}
request.SetContext(ctx)
response = NewDeleteSmsTemplateResponse()
err = c.Send(request, response)
return
}
func NewDescribePhoneNumberInfoRequest() (request *DescribePhoneNumberInfoRequest) {
request = &DescribePhoneNumberInfoRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "DescribePhoneNumberInfo")
return
}
func NewDescribePhoneNumberInfoResponse() (response *DescribePhoneNumberInfoResponse) {
response = &DescribePhoneNumberInfoResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribePhoneNumberInfo
// 提供电话号码的信息查询,包括国家(或地区)码、规范的 E.164 格式号码等。
//
// >- 例如:查询号码 +86018845720123,可以得到国家码 86、规范的 E.164 号码 +8618845720123 等信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERPARSEFAIL = "FailedOperation.PhoneNumberParseFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = "LimitExceeded.PhoneNumberCountLimit"
func (c *Client) DescribePhoneNumberInfo(request *DescribePhoneNumberInfoRequest) (response *DescribePhoneNumberInfoResponse, err error) {
return c.DescribePhoneNumberInfoWithContext(context.Background(), request)
}
// DescribePhoneNumberInfo
// 提供电话号码的信息查询,包括国家(或地区)码、规范的 E.164 格式号码等。
//
// >- 例如:查询号码 +86018845720123,可以得到国家码 86、规范的 E.164 号码 +8618845720123 等信息。
//
// 可能返回的错误码:
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERPARSEFAIL = "FailedOperation.PhoneNumberParseFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = "LimitExceeded.PhoneNumberCountLimit"
func (c *Client) DescribePhoneNumberInfoWithContext(ctx context.Context, request *DescribePhoneNumberInfoRequest) (response *DescribePhoneNumberInfoResponse, err error) {
if request == nil {
request = NewDescribePhoneNumberInfoRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribePhoneNumberInfo require credential")
}
request.SetContext(ctx)
response = NewDescribePhoneNumberInfoResponse()
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
// ⚠️注意:个人认证用户不支持使用 API 查询短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 查询短信签名。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// 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) DescribeSmsSignList(request *DescribeSmsSignListRequest) (response *DescribeSmsSignListResponse, err error) {
return c.DescribeSmsSignListWithContext(context.Background(), request)
}
// DescribeSmsSignList
// ⚠️注意:个人认证用户不支持使用 API 查询短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 查询短信签名。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// 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) DescribeSmsSignListWithContext(ctx context.Context, request *DescribeSmsSignListRequest) (response *DescribeSmsSignListResponse, err error) {
if request == nil {
request = NewDescribeSmsSignListRequest()
}
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
// ⚠️注意:个人认证用户不支持使用 API 查询短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_FORBIDADDMARKETINGTEMPLATES = "FailedOperation.ForbidAddMarketingTemplates"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_PROHIBITSUBACCOUNTUSE = "FailedOperation.ProhibitSubAccountUse"
// FAILEDOPERATION_TEMPLATENUMBERLIMIT = "FailedOperation.TemplateNumberLimit"
// 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_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDTEMPLATEFORMAT = "InvalidParameterValue.InvalidTemplateFormat"
// INVALIDPARAMETERVALUE_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail"
// INVALIDPARAMETERVALUE_TEMPLATEWITHDIRTYWORDS = "InvalidParameterValue.TemplateWithDirtyWords"
// 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
// ⚠️注意:个人认证用户不支持使用 API 查询短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629)。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_FORBIDADDMARKETINGTEMPLATES = "FailedOperation.ForbidAddMarketingTemplates"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify"
// FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification"
// FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError"
// FAILEDOPERATION_PROHIBITSUBACCOUNTUSE = "FailedOperation.ProhibitSubAccountUse"
// FAILEDOPERATION_TEMPLATENUMBERLIMIT = "FailedOperation.TemplateNumberLimit"
// 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_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDTEMPLATEFORMAT = "InvalidParameterValue.InvalidTemplateFormat"
// INVALIDPARAMETERVALUE_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail"
// INVALIDPARAMETERVALUE_TEMPLATEWITHDIRTYWORDS = "InvalidParameterValue.TemplateWithDirtyWords"
// 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()
}
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
// 1. 修改短信签名,修改之前请先认真参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
//
// 2. ⚠️注意:个人认证用户不支持使用 API 修改短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 修改短信签名。
//
// 3. 修改短信签名,仅当签名为**待审核**或**已拒绝**状态时,才能进行修改,**已审核通过**的签名不支持修改。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_SIGNNUMBERLIMIT = "FailedOperation.SignNumberLimit"
// FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// 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_INVALIDSIGNPURPOSE = "InvalidParameterValue.InvalidSignPurpose"
// 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
// 1. 修改短信签名,修改之前请先认真参阅 [腾讯云短信签名审核标准](https://cloud.tencent.com/document/product/382/39022)。
//
// 2. ⚠️注意:个人认证用户不支持使用 API 修改短信签名,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 修改短信签名。
//
// 3. 修改短信签名,仅当签名为**待审核**或**已拒绝**状态时,才能进行修改,**已审核通过**的签名不支持修改。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_SIGNNUMBERLIMIT = "FailedOperation.SignNumberLimit"
// FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck"
// FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist"
// INTERNALERROR_OTHERERROR = "InternalError.OtherError"
// 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_INVALIDSIGNPURPOSE = "InvalidParameterValue.InvalidSignPurpose"
// 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()
}
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
// 1. 修改短信正文模板,修改之前请先认真参阅 [腾讯云短信正文模板审核标准](https://cloud.tencent.com/document/product/382/39023)。
//
// 2. ⚠️注意:个人认证用户不支持使用 API 修改短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 修改短信正文模板。
//
// 3. 修改短信模板,仅当正文模板为**待审核**或**已拒绝**状态时,才能进行修改,**已审核通过**的正文模板不支持修改。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_FORBIDADDMARKETINGTEMPLATES = "FailedOperation.ForbidAddMarketingTemplates"
// 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_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_DIRTYWORDFOUND = "InvalidParameter.DirtyWordFound"
// INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDTEMPLATEFORMAT = "InvalidParameterValue.InvalidTemplateFormat"
// INVALIDPARAMETERVALUE_MARKETINGTEMPLATEWITHOUTUNSUBSCRIBE = "InvalidParameterValue.MarketingTemplateWithoutUnsubscribe"
// 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
// 1. 修改短信正文模板,修改之前请先认真参阅 [腾讯云短信正文模板审核标准](https://cloud.tencent.com/document/product/382/39023)。
//
// 2. ⚠️注意:个人认证用户不支持使用 API 修改短信正文模板,请参阅了解 [实名认证基本介绍](https://cloud.tencent.com/document/product/378/3629),如果为个人认证请登录 [控制台](https://console.cloud.tencent.com/smsv2) 修改短信正文模板。
//
// 3. 修改短信模板,仅当正文模板为**待审核**或**已拒绝**状态时,才能进行修改,**已审核通过**的正文模板不支持修改。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_FORBIDADDMARKETINGTEMPLATES = "FailedOperation.ForbidAddMarketingTemplates"
// 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_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException"
// INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist"
// INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail"
// INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
// INVALIDPARAMETER_DIRTYWORDFOUND = "InvalidParameter.DirtyWordFound"
// INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters"
// INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational"
// INVALIDPARAMETERVALUE_INVALIDTEMPLATEFORMAT = "InvalidParameterValue.InvalidTemplateFormat"
// INVALIDPARAMETERVALUE_MARKETINGTEMPLATEWITHOUTUNSUBSCRIBE = "InvalidParameterValue.MarketingTemplateWithoutUnsubscribe"
// 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()
}
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
// 拉取短信回复状态。
//
// 目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
//
// >- 注:此接口需要联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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
// 拉取短信回复状态。
//
// 目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
//
// >- 注:此接口需要联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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()
}
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
// 拉取单个号码短信回复状态。
//
// 目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_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
// 拉取单个号码短信回复状态。
//
// 目前也支持 [配置回复回调](https://cloud.tencent.com/document/product/382/42907) 的方式来获取上行回复。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_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()
}
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
// 拉取短信下发状态。
//
// 目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
//
// >- 注:此接口需要联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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"
// 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
// 拉取短信下发状态。
//
// 目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
//
// >- 注:此接口需要联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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"
// 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()
}
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
// 拉取单个号码短信下发状态。
//
// 目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// 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
// 拉取单个号码短信下发状态。
//
// 目前也支持 [配置回调](https://cloud.tencent.com/document/product/382/37809#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) 的方式来获取下发状态。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail"
// 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()
}
if c.GetCredential() == nil {
return nil, errors.New("PullSmsSendStatusByPhoneNumber require credential")
}
request.SetContext(ctx)
response = NewPullSmsSendStatusByPhoneNumberResponse()
err = c.Send(request, response)
return
}
func NewReportConversionRequest() (request *ReportConversionRequest) {
request = &ReportConversionRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("sms", APIVersion, "ReportConversion")
return
}
func NewReportConversionResponse() (response *ReportConversionResponse) {
response = &ReportConversionResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// ReportConversion
// 短信转化率上报。将已接收到短信的流水号上报到腾讯云短信服务。
//
// >- 注:当前接口以白名单方式对外开放,如有需要请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
//
// 可能返回的错误码:
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
func (c *Client) ReportConversion(request *ReportConversionRequest) (response *ReportConversionResponse, err error) {
return c.ReportConversionWithContext(context.Background(), request)
}
// ReportConversion
// 短信转化率上报。将已接收到短信的流水号上报到腾讯云短信服务。
//
// >- 注:当前接口以白名单方式对外开放,如有需要请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 开通。
//
// 可能返回的错误码:
// INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail"
// UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
func (c *Client) ReportConversionWithContext(ctx context.Context, request *ReportConversionRequest) (response *ReportConversionResponse, err error) {
if request == nil {
request = NewReportConversionRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("ReportConversion require credential")
}
request.SetContext(ctx)
response = NewReportConversionResponse()
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
// 短信发送接口,用于给用户发短信验证码、通知类短信或营销短信。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
//
// >- 注:您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// >- 注:当前接口属于 2021-01-11 版本,如果您仍在使用 [2019-07-11 版本](https://cloud.tencent.com/document/product/382/38778),建议您使用当前最新版本的接口,版本差异可参考[版本描述](https://cloud.tencent.com/document/product/382/63195#.E7.89.88.E6.9C.AC.E6.8F.8F.E8.BF.B0)。
//
// 可能返回的错误码:
// 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
// 短信发送接口,用于给用户发短信验证码、通知类短信或营销短信。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 [SDK](https://cloud.tencent.com/document/product/382/43193) 来使用云短信服务。
//
// >- 注:您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// >- 注:当前接口属于 2021-01-11 版本,如果您仍在使用 [2019-07-11 版本](https://cloud.tencent.com/document/product/382/38778),建议您使用当前最新版本的接口,版本差异可参考[版本描述](https://cloud.tencent.com/document/product/382/63195#.E7.89.88.E6.9C.AC.E6.8F.8F.E8.BF.B0)。
//
// 可能返回的错误码:
// 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()
}
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
// 统计用户发送短信的数据。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail"
// INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail"
// INVALIDPARAMETERVALUE_OFFSETVERIFYFAIL = "InvalidParameterValue.OffsetVerifyFail"
// 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
// 统计用户发送短信的数据。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// 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_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail"
// INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail"
// INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber"
// INVALIDPARAMETERVALUE_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail"
// INVALIDPARAMETERVALUE_OFFSETVERIFYFAIL = "InvalidParameterValue.OffsetVerifyFail"
// 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()
}
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
// 用户套餐包信息统计。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved"
// 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_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail"
// INVALIDPARAMETERVALUE_OFFSETVERIFYFAIL = "InvalidParameterValue.OffsetVerifyFail"
// 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
// 用户套餐包信息统计。
//
// >- 注:由于云 **API3.0 安全性**有所提升,所以**接口鉴权**较为复杂,建议使用 SDK 来使用云短信服务。
//
// >- 您可以在 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) 中直接运行该接口,可以先免去签名计算步骤。运行成功后,API Explorer可以**自动生成**SDK代码示例。
//
// 可能返回的错误码:
// FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket"
// FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail"
// FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist"
// FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved"
// 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_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail"
// INVALIDPARAMETERVALUE_OFFSETVERIFYFAIL = "InvalidParameterValue.OffsetVerifyFail"
// 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()
}
if c.GetCredential() == nil {
return nil, errors.New("SmsPackagesStatistics require credential")
}
request.SetContext(ctx)
response = NewSmsPackagesStatisticsResponse()
err = c.Send(request, response)
return
}
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

搜索帮助