Documentation ¶
Index ¶
- Constants
- type AddSignStatus
- type AddSmsSignRequest
- type AddSmsSignRequestParams
- type AddSmsSignResponse
- type AddSmsSignResponseParams
- type AddSmsTemplateRequest
- type AddSmsTemplateRequestParams
- type AddSmsTemplateResponse
- type AddSmsTemplateResponseParams
- type AddTemplateStatus
- type CallbackStatusStatistics
- type CallbackStatusStatisticsRequest
- type CallbackStatusStatisticsRequestParams
- type CallbackStatusStatisticsResponse
- type CallbackStatusStatisticsResponseParams
- type Client
- func (c *Client) AddSmsSign(request *AddSmsSignRequest) (response *AddSmsSignResponse, err error)
- func (c *Client) AddSmsSignWithContext(ctx context.Context, request *AddSmsSignRequest) (response *AddSmsSignResponse, err error)
- func (c *Client) AddSmsTemplate(request *AddSmsTemplateRequest) (response *AddSmsTemplateResponse, err error)
- func (c *Client) AddSmsTemplateWithContext(ctx context.Context, request *AddSmsTemplateRequest) (response *AddSmsTemplateResponse, err error)
- func (c *Client) CallbackStatusStatistics(request *CallbackStatusStatisticsRequest) (response *CallbackStatusStatisticsResponse, err error)
- func (c *Client) CallbackStatusStatisticsWithContext(ctx context.Context, request *CallbackStatusStatisticsRequest) (response *CallbackStatusStatisticsResponse, err error)
- func (c *Client) DeleteSmsSign(request *DeleteSmsSignRequest) (response *DeleteSmsSignResponse, err error)
- func (c *Client) DeleteSmsSignWithContext(ctx context.Context, request *DeleteSmsSignRequest) (response *DeleteSmsSignResponse, err error)
- func (c *Client) DeleteSmsTemplate(request *DeleteSmsTemplateRequest) (response *DeleteSmsTemplateResponse, err error)
- func (c *Client) DeleteSmsTemplateWithContext(ctx context.Context, request *DeleteSmsTemplateRequest) (response *DeleteSmsTemplateResponse, err error)
- func (c *Client) DescribePhoneNumberInfo(request *DescribePhoneNumberInfoRequest) (response *DescribePhoneNumberInfoResponse, err error)
- func (c *Client) DescribePhoneNumberInfoWithContext(ctx context.Context, request *DescribePhoneNumberInfoRequest) (response *DescribePhoneNumberInfoResponse, err error)
- func (c *Client) DescribeSmsSignList(request *DescribeSmsSignListRequest) (response *DescribeSmsSignListResponse, err error)
- func (c *Client) DescribeSmsSignListWithContext(ctx context.Context, request *DescribeSmsSignListRequest) (response *DescribeSmsSignListResponse, err error)
- func (c *Client) DescribeSmsTemplateList(request *DescribeSmsTemplateListRequest) (response *DescribeSmsTemplateListResponse, err error)
- func (c *Client) DescribeSmsTemplateListWithContext(ctx context.Context, request *DescribeSmsTemplateListRequest) (response *DescribeSmsTemplateListResponse, err error)
- func (c *Client) ModifySmsSign(request *ModifySmsSignRequest) (response *ModifySmsSignResponse, err error)
- func (c *Client) ModifySmsSignWithContext(ctx context.Context, request *ModifySmsSignRequest) (response *ModifySmsSignResponse, err error)
- func (c *Client) ModifySmsTemplate(request *ModifySmsTemplateRequest) (response *ModifySmsTemplateResponse, err error)
- func (c *Client) ModifySmsTemplateWithContext(ctx context.Context, request *ModifySmsTemplateRequest) (response *ModifySmsTemplateResponse, err error)
- func (c *Client) PullSmsReplyStatus(request *PullSmsReplyStatusRequest) (response *PullSmsReplyStatusResponse, err error)
- func (c *Client) PullSmsReplyStatusByPhoneNumber(request *PullSmsReplyStatusByPhoneNumberRequest) (response *PullSmsReplyStatusByPhoneNumberResponse, err error)
- func (c *Client) PullSmsReplyStatusByPhoneNumberWithContext(ctx context.Context, request *PullSmsReplyStatusByPhoneNumberRequest) (response *PullSmsReplyStatusByPhoneNumberResponse, err error)
- func (c *Client) PullSmsReplyStatusWithContext(ctx context.Context, request *PullSmsReplyStatusRequest) (response *PullSmsReplyStatusResponse, err error)
- func (c *Client) PullSmsSendStatus(request *PullSmsSendStatusRequest) (response *PullSmsSendStatusResponse, err error)
- func (c *Client) PullSmsSendStatusByPhoneNumber(request *PullSmsSendStatusByPhoneNumberRequest) (response *PullSmsSendStatusByPhoneNumberResponse, err error)
- func (c *Client) PullSmsSendStatusByPhoneNumberWithContext(ctx context.Context, request *PullSmsSendStatusByPhoneNumberRequest) (response *PullSmsSendStatusByPhoneNumberResponse, err error)
- func (c *Client) PullSmsSendStatusWithContext(ctx context.Context, request *PullSmsSendStatusRequest) (response *PullSmsSendStatusResponse, err error)
- func (c *Client) ReportConversion(request *ReportConversionRequest) (response *ReportConversionResponse, err error)
- func (c *Client) ReportConversionWithContext(ctx context.Context, request *ReportConversionRequest) (response *ReportConversionResponse, err error)
- func (c *Client) SendSms(request *SendSmsRequest) (response *SendSmsResponse, err error)
- func (c *Client) SendSmsWithContext(ctx context.Context, request *SendSmsRequest) (response *SendSmsResponse, err error)
- func (c *Client) SendStatusStatistics(request *SendStatusStatisticsRequest) (response *SendStatusStatisticsResponse, err error)
- func (c *Client) SendStatusStatisticsWithContext(ctx context.Context, request *SendStatusStatisticsRequest) (response *SendStatusStatisticsResponse, err error)
- type DeleteSignStatus
- type DeleteSmsSignRequest
- type DeleteSmsSignRequestParams
- type DeleteSmsSignResponse
- type DeleteSmsSignResponseParams
- type DeleteSmsTemplateRequest
- type DeleteSmsTemplateRequestParams
- type DeleteSmsTemplateResponse
- type DeleteSmsTemplateResponseParams
- type DeleteTemplateStatus
- type DescribePhoneNumberInfoRequest
- type DescribePhoneNumberInfoRequestParams
- type DescribePhoneNumberInfoResponse
- type DescribePhoneNumberInfoResponseParams
- type DescribeSignListStatus
- type DescribeSmsSignListRequest
- type DescribeSmsSignListRequestParams
- type DescribeSmsSignListResponse
- type DescribeSmsSignListResponseParams
- type DescribeSmsTemplateListRequest
- type DescribeSmsTemplateListRequestParams
- type DescribeSmsTemplateListResponse
- type DescribeSmsTemplateListResponseParams
- type DescribeTemplateListStatus
- type ModifySignStatus
- type ModifySmsSignRequest
- type ModifySmsSignRequestParams
- type ModifySmsSignResponse
- type ModifySmsSignResponseParams
- type ModifySmsTemplateRequest
- type ModifySmsTemplateRequestParams
- type ModifySmsTemplateResponse
- type ModifySmsTemplateResponseParams
- type ModifyTemplateStatus
- type PhoneNumberInfo
- type PullSmsReplyStatus
- type PullSmsReplyStatusByPhoneNumberRequest
- type PullSmsReplyStatusByPhoneNumberRequestParams
- type PullSmsReplyStatusByPhoneNumberResponse
- type PullSmsReplyStatusByPhoneNumberResponseParams
- type PullSmsReplyStatusRequest
- type PullSmsReplyStatusRequestParams
- type PullSmsReplyStatusResponse
- type PullSmsReplyStatusResponseParams
- type PullSmsSendStatus
- type PullSmsSendStatusByPhoneNumberRequest
- type PullSmsSendStatusByPhoneNumberRequestParams
- type PullSmsSendStatusByPhoneNumberResponse
- type PullSmsSendStatusByPhoneNumberResponseParams
- type PullSmsSendStatusRequest
- type PullSmsSendStatusRequestParams
- type PullSmsSendStatusResponse
- type PullSmsSendStatusResponseParams
- type ReportConversionRequest
- type ReportConversionRequestParams
- type ReportConversionResponse
- type ReportConversionResponseParams
- type ReportConversionStatus
- type SendSmsRequest
- type SendSmsRequestParams
- type SendSmsResponse
- type SendSmsResponseParams
- type SendStatus
- type SendStatusStatistics
- type SendStatusStatisticsRequest
- type SendStatusStatisticsRequestParams
- type SendStatusStatisticsResponse
- type SendStatusStatisticsResponseParams
Constants ¶
const ( // The SMS message contains sensitive words. You can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord" // Failed to parse the request packet. Usually, this is because that the API specification was not followed. Please see [Detailed Explanation of Request Body Parsing Error 1004](https://intl.cloud.tencent.com/document/product/382/9558?from_cn_redirect=1#.E8.BF.94.E5.9B.9E1004.E9.94.99.E8.AF.AF.E5.A6.82.E4.BD.95.E5.A4.84.E7.90.86.EF.BC.9F). FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" // Individual users cannot apply for sending marketing SMS messages. FAILEDOPERATION_FORBIDADDMARKETINGTEMPLATES = "FailedOperation.ForbidAddMarketingTemplates" // The package balance is insufficient. Please [purchase an SMS package](https://buy.cloud.tencent.com/sms). FAILEDOPERATION_INSUFFICIENTBALANCEINSMSPACKAGE = "FailedOperation.InsufficientBalanceInSmsPackage" // Failed to parse the request body. FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" // Marketing SMS messages can only be sent between 8:00 and 22:00 in order not to disturb recipients. FAILEDOPERATION_MARKETINGSENDTIMECONSTRAINT = "FailedOperation.MarketingSendTimeConstraint" // You cannot apply for a template before you apply for a signature. Please create a signature first as instructed in [Creating Signatures](https://intl.cloud.tencent.com/document/product/382/37794?from_cn_redirect=1#.E5.88.9B.E5.BB.BA.E7.AD.BE.E5.90.8D). FAILEDOPERATION_MISSINGSIGNATURE = "FailedOperation.MissingSignature" // Unable to identify the signature. Please check whether the signature has been approved. For more information, see the signature approval section in [Getting Started](https://intl.cloud.tencent.com/document/product/382/37745?from_cn_redirect=1). FAILEDOPERATION_MISSINGSIGNATURELIST = "FailedOperation.MissingSignatureList" // This signature ID has not been submitted for approval or does not exist, so it cannot be modified. Please check whether the `SignId` is entered correctly. FAILEDOPERATION_MISSINGSIGNATURETOMODIFY = "FailedOperation.MissingSignatureToModify" // Unable to identify the template. Please check whether the template has been approved. For more information, see the template approval section in [Getting Started](https://intl.cloud.tencent.com/document/product/382/37745?from_cn_redirect=1). FAILEDOPERATION_MISSINGTEMPLATELIST = "FailedOperation.MissingTemplateList" // This template ID has not been submitted for approval or does not exist, so it cannot be modified. Please check whether the `TemplateId` is entered correctly. FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify" // Individual users cannot use the APIs related to signatures and templates. You can change your account identity type to enterprise as instructed [here](https://intl.cloud.tencent.com/document/product/378/34075?from_cn_redirect=1). The change will take effect in about one hour. FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification" // Other error. Usually, this is because that the carried parameter is non-compliant. For more information, see the API description. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError" // Unknown error. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. FAILEDOPERATION_PARAMETERSOTHERERROR = "FailedOperation.ParametersOtherError" // The mobile number is in the opt-out list. This may be because the recipient has unsubscribed from your service or the mobile number is in the carrier’s opt-out list. To solve this problem, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist" // Failed to parse the mobile number. Please check whether it meets the E.164 standard. FAILEDOPERATION_PHONENUMBERPARSEFAIL = "FailedOperation.PhoneNumberParseFail" // Non-Root accounts cannot use the template list pull feature. You can use the TencentCloud API key of your root account to call the API. FAILEDOPERATION_PROHIBITSUBACCOUNTUSE = "FailedOperation.ProhibitSubAccountUse" // The signature ID does not exist. FAILEDOPERATION_SIGNIDNOTEXIST = "FailedOperation.SignIdNotExist" // The number of signatures has reached the maximum value. FAILEDOPERATION_SIGNNUMBERLIMIT = "FailedOperation.SignNumberLimit" // The signature is not approved or in an incorrect format. (1) Log in to the [SMS console](https://console.cloud.tencent.com/smsv2) and check whether the signature has been approved; (2) Check whether the signature is in compliance with the format specification, that is, it can contain 2–12 letters and digits. If you have any questions, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved" // This template has been approved and cannot be modified again. FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck" // The template ID does not exist. FAILEDOPERATION_TEMPLATEIDNOTEXIST = "FailedOperation.TemplateIdNotExist" // The template has not been approved or its content does not match that of the approved template. (1) Please log in to the [SMS console](https://console.cloud.tencent.com/smsv2) to check whether the template has been reviewed and approved. (2) Please click [here](https://intl.cloud.tencent.com/document/product/382/9558?from_cn_redirect=1#.E8.BF.94.E5.9B.9E1014.E9.94.99.E8.AF.AF.E5.A6.82.E4.BD.95.E5.A4.84.E7.90.86.EF.BC.9F) to check whether the template format is correct. If you have any questions, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved" // The number of templates has reached the maximum value. FAILEDOPERATION_TEMPLATENUMBERLIMIT = "FailedOperation.TemplateNumberLimit" // The request content does not match that of the approved template. Please check whether the number of parameters in the request is consistent with that in the approved template. If you have any questions, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). FAILEDOPERATION_TEMPLATEPARAMSETNOTMATCHAPPROVEDTEMPLATE = "FailedOperation.TemplateParamSetNotMatchApprovedTemplate" // The template has not been approved or does not exist. Please log in to the [SMS console](https://console.cloud.tencent.com/smsv2) to check whether the template has been reviewed and approved. If you have any questions, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). FAILEDOPERATION_TEMPLATEUNAPPROVEDORNOTEXIST = "FailedOperation.TemplateUnapprovedOrNotExist" // Failed to parse the user parameter. You can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. INTERNALERROR_JSONPARSEFAIL = "InternalError.JsonParseFail" // Other error. You can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) and provide the failed mobile number for assistance. INTERNALERROR_OTHERERROR = "InternalError.OtherError" // Failed to parse the carrier’s response packet. Please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. INTERNALERROR_PARSEBACKENDRESPONSEFAIL = "InternalError.ParseBackendResponseFail" // The request was initiated in an exceptional time. Usually, this is because that the difference between your server time and Tencent Cloud server time exceeds 10 minutes. Please check whether the server time and the time field in the API are correct. INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" // This RESTful API does not exist. Please check the RESTful API description. INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" // The API timed out or SMS packet sending/receiving timed out. You need to check whether your network jitters or contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail" // The request body in the backend body does not have a `Sig` field or the `Sig` field is empty. INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing" // Backend check of `Sig` failed. INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" // The request to deliver an SMS message timed out. Please see [Detailed Explanation of Error 60008](https://intl.cloud.tencent.com/document/product/382/9558?from_cn_redirect=1#.E8.BF.94.E5.9B.9E60008.E9.94.99.E8.AF.AF.E5.A6.82.E4.BD.95.E5.A4.84.E7.90.86.EF.BC.9F). INTERNALERROR_TIMEOUT = "InternalError.Timeout" // Unknown error. INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" // A parameter error occurred. INVALIDPARAMETER = "InvalidParameter" // The account does not match the application ID. INVALIDPARAMETER_APPIDANDBIZID = "InvalidParameter.AppidAndBizId" // There are sensitive words. INVALIDPARAMETER_DIRTYWORDFOUND = "InvalidParameter.DirtyWordFound" // Invalid parameter. If you have any questions, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters" // `BeginTime` parameter check failed. INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail" // The content of the requested SMS message is too long. For message length calculation rule, please see [Mainland China SMS Length Calculation Rule](https://intl.cloud.tencent.com/document/product/382/18058?from_cn_redirect=1). INVALIDPARAMETERVALUE_CONTENTLENGTHLIMIT = "InvalidParameterValue.ContentLengthLimit" // `EndTime` parameter check failed. INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail" // The format of the uploaded transcoded image is incorrect. See the description of this field in the API description. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. INVALIDPARAMETERVALUE_IMAGEINVALID = "InvalidParameterValue.ImageInvalid" // Incorrect mobile number format INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" // `DocumentType` field check failed. See the description of this field in the API description. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. INVALIDPARAMETERVALUE_INVALIDDOCUMENTTYPE = "InvalidParameterValue.InvalidDocumentType" // `International` field check failed. See the description of this field in the API description. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational" // `SignPurpose` field check failed. See the description of this field in the API description. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. INVALIDPARAMETERVALUE_INVALIDSIGNPURPOSE = "InvalidParameterValue.InvalidSignPurpose" // Invalid start time or end time. The reason may be that the requested `SendDateTime` is later than `EndDateTime`. INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime" // The template format is incorrect. For more information, please see [Body Template Review Standards](https://intl.cloud.tencent.com/document/product/382/39023?from_cn_redirect=1). INVALIDPARAMETERVALUE_INVALIDTEMPLATEFORMAT = "InvalidParameterValue.InvalidTemplateFormat" // `UsedMethod` field check failed. See the description of this field in the API description. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. INVALIDPARAMETERVALUE_INVALIDUSEDMETHOD = "InvalidParameterValue.InvalidUsedMethod" // `Limit` parameter check failed. INVALIDPARAMETERVALUE_LIMITVERIFYFAIL = "InvalidParameterValue.LimitVerifyFail" // `Offset` parameter check failed. INVALIDPARAMETERVALUE_OFFSETVERIFYFAIL = "InvalidParameterValue.OffsetVerifyFail" // URLs are not allowed in template variables. INVALIDPARAMETERVALUE_PROHIBITEDUSEURLINTEMPLATEPARAMETER = "InvalidParameterValue.ProhibitedUseUrlInTemplateParameter" // The `SdkAppId` does not exist. INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppIdNotExist" // This signature has been approved and cannot be modified again. INVALIDPARAMETERVALUE_SIGNALREADYPASSEDCHECK = "InvalidParameterValue.SignAlreadyPassedCheck" // The same signature pending review already exists. INVALIDPARAMETERVALUE_SIGNEXISTANDUNAPPROVED = "InvalidParameterValue.SignExistAndUnapproved" // Too much signature content INVALIDPARAMETERVALUE_SIGNNAMELENGTHTOOLONG = "InvalidParameterValue.SignNameLengthTooLong" // The parameter format of the verification code template is incorrect. For a verification code template, only 0–6 digits can be passed in as the template variable. INVALIDPARAMETERVALUE_TEMPLATEPARAMETERFORMATERROR = "InvalidParameterValue.TemplateParameterFormatError" // There are more than 12 characters in a single template variable. There is no upper limit of variable characters for enterprise users. You can change your account identity type to enterprise as instructed [here](https://intl.cloud.tencent.com/document/product/378/34075?from_cn_redirect=1). The limit change will take effect in about one hour. INVALIDPARAMETERVALUE_TEMPLATEPARAMETERLENGTHLIMIT = "InvalidParameterValue.TemplateParameterLengthLimit" // The template content contains sensitive words. For more information, please see [Body Template Review Standards](https://intl.cloud.tencent.com/document/product/382/39023?from_cn_redirect=1). INVALIDPARAMETERVALUE_TEMPLATEWITHDIRTYWORDS = "InvalidParameterValue.TemplateWithDirtyWords" // The number of Global SMS messages sent to the specified country/region per day has exceeded the preset limit. You can adjust the message sending limit in **Application Management** > **Basic Configuration** in the SMS console. LIMITEXCEEDED_APPCOUNTRYORREGIONDAILYLIMIT = "LimitExceeded.AppCountryOrRegionDailyLimit" // The Global SMS message failed to be sent because the recipient country/region is not included in the specified country/region list. You can adjust the country/region list in **Application Management** > **Basic Configuration** in the SMS console. LIMITEXCEEDED_APPCOUNTRYORREGIONINBLACKLIST = "LimitExceeded.AppCountryOrRegionInBlacklist" // The number of SMS messages delivered on the current day exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console. LIMITEXCEEDED_APPDAILYLIMIT = "LimitExceeded.AppDailyLimit" // The number of Global SMS messages sent per day has exceeded the preset limit. You can adjust the message sending threshold in **Application Management** > **Basic Configuration** in the SMS console. LIMITEXCEEDED_APPGLOBALDAILYLIMIT = "LimitExceeded.AppGlobalDailyLimit" // The number of Chinese Mainland SMS messages sent per day has exceeded the preset limit. You can adjust the message sending threshold in **Application Management** > **Basic Configuration** in the SMS console. LIMITEXCEEDED_APPMAINLANDCHINADAILYLIMIT = "LimitExceeded.AppMainlandChinaDailyLimit" // The number of SMS messages delivered on the current day exceeds the set upper limit (for Global SMS). If you want to adjust the limit, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1) for assistance. LIMITEXCEEDED_DAILYLIMIT = "LimitExceeded.DailyLimit" // The SMS delivery hits the delivery rate limit policy. You can adjust the policy in the console. If you have other requirements, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance. LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit" // The number of mobile numbers you query at a time exceeds 200. Please refer to the input parameter `PhoneNumberSet`. LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = "LimitExceeded.PhoneNumberCountLimit" // The number of SMS messages delivered to a single mobile number on the current day exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console. LIMITEXCEEDED_PHONENUMBERDAILYLIMIT = "LimitExceeded.PhoneNumberDailyLimit" // The number of SMS messages delivered to a single mobile number within 1 hour exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console. LIMITEXCEEDED_PHONENUMBERONEHOURLIMIT = "LimitExceeded.PhoneNumberOneHourLimit" // The number of identical SMS messages delivered to a single mobile number exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console. LIMITEXCEEDED_PHONENUMBERSAMECONTENTDAILYLIMIT = "LimitExceeded.PhoneNumberSameContentDailyLimit" // The number of SMS messages delivered to a single mobile number within 30 seconds exceeds the set upper limit. You can adjust the SMS delivery rate limit policy in the console LIMITEXCEEDED_PHONENUMBERTHIRTYSECONDLIMIT = "LimitExceeded.PhoneNumberThirtySecondLimit" // Missing parameters. Please check and try again. MISSINGPARAMETER = "MissingParameter" // The list of mobile numbers passed in is empty. Please check whether numbers are present in your parameters. MISSINGPARAMETER_EMPTYPHONENUMBERSET = "MissingParameter.EmptyPhoneNumberSet" // Individual users do not have permission to send marketing SMS messages. Please see [Differences in Rights](https://intl.cloud.tencent.com/document/product/382/13444?from_cn_redirect=1). UNAUTHORIZEDOPERATION_INDIVIDUALUSERMARKETINGSMSPERMISSIONDENY = "UnauthorizedOperation.IndividualUserMarketingSmsPermissionDeny" // The requesting IP is not in the allowlist. You have configured the verification of request source IP, but the current requesting IP is not in the configured allowlist. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" // The request does not have permission. You can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" // This `SdkAppId` is forbidden to provide services. If necessary, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled" // The service has been suspended due to overdue payments. You can log in to Tencent Cloud to make the payments. UNAUTHORIZEDOPERATION_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" // Failed to verify `SmsSdkAppId`. Please check whether [SmsSdkAppId](https://console.cloud.tencent.com/smsv2/app-manage) is under the account associated with the [TencentCloud API key](https://console.cloud.tencent.com/cam/capi). UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" // The request is not supported. UNSUPPORTEDOPERATION_ = "UnsupportedOperation." // A Chinese Mainland SMS template cannot be used to sent messages to global numbers. Please use a Global SMS template instead. UNSUPPORTEDOPERATION_CHINESEMAINLANDTEMPLATETOGLOBALPHONE = "UnsupportedOperation.ChineseMainlandTemplateToGlobalPhone" // The group message request contains both Chinese mainland numbers and international numbers. Please check: (1) whether the message is sent to international numbers with a Chinese mainland signature or template; (2) whether the message is sent to Chinese mainland numbers with an international signature or template. UNSUPPORTEDOPERATION_CONTAINDOMESTICANDINTERNATIONALPHONENUMBER = "UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber" // A Global SMS template cannot be used to sent messages to Chinese mainland numbers. Please use a Chinese Mainland SMS template instead. UNSUPPORTEDOPERATION_GLOBALTEMPLATETOCHINESEMAINLANDPHONE = "UnsupportedOperation.GlobalTemplateToChineseMainlandPhone" // SMS delivery to this region is not supported. UNSUPPORTEDOPERATION_UNSUPORTEDREGION = "UnsupportedOperation.UnsuportedRegion" )
const APIVersion = "2021-01-11"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSignStatus ¶
type AddSignStatus struct { // Signature ID. SignId *uint64 `json:"SignId,omitempty" name:"SignId"` }
type AddSmsSignRequest ¶
type AddSmsSignRequest struct { *tchttp.BaseRequest // Signature name. // Note: you cannot apply for an approved or pending signature again. SignName *string `json:"SignName,omitempty" name:"SignName"` // Signature type. Each of these types is followed by their `DocumentType` (identity certificate type) option: // 0: company. Valid values of `DocumentType` include 0 and 1. // 1: app. Valid values of `DocumentType` include 0, 1, 2, 3, and 4. // 2: website. Valid values of `DocumentType` include 0, 1, 2, 3, and 5. // 3: WeChat Official Account. Valid values of `DocumentType` include 0, 1, 2, 3, and 8. // 4: trademark. Valid values of `DocumentType` include 7. // 5: government/public institution/other. Valid values of `DocumentType` include 2 and 3. // 6: WeChat Mini Program. Valid values of `DocumentType` include 0, 1, 2, 3, and 6. // Note: the identity certificate type must be selected according to the correspondence; otherwise, the review will fail. SignType *uint64 `json:"SignType,omitempty" name:"SignType"` // Identity certificate type: // 0: three-in-one licence. // 1: business license. // 2: organization code certificate. // 3: social credit code certificate. // 4: screenshot of application backend management (for personal app). // 5: screenshot of website ICP filing backend (for personal website). // 6: screenshot of WeChat Mini Program settings page (for personal WeChat Mini Program). // 7: trademark registration certificate. // 8: screenshot of WeChat Official Account settings page (for personal WeChat Official Account). DocumentType *uint64 `json:"DocumentType,omitempty" name:"DocumentType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Signature purpose: // 0: for personal use. // 1: for others. SignPurpose *uint64 `json:"SignPurpose,omitempty" name:"SignPurpose"` // You should Base64-encode the image of the identity certificate corresponding to the signature first, remove the prefix `data:image/jpeg;base64,` from the resulted string, and then use it as the value of this parameter. ProofImage *string `json:"ProofImage,omitempty" name:"ProofImage"` // Power of attorney, which should be submitted if `SignPurpose` is for use by others. // You should Base64-encode the image first, remove the prefix `data:image/jpeg;base64,` from the resulted string, and then use it as the value of this parameter. // Note: this field will take effect only when `SignPurpose` is 1 (for user by others). CommissionImage *string `json:"CommissionImage,omitempty" name:"CommissionImage"` // Signature application remarks. Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewAddSmsSignRequest ¶
func NewAddSmsSignRequest() (request *AddSmsSignRequest)
func (*AddSmsSignRequest) FromJsonString ¶
func (r *AddSmsSignRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddSmsSignRequest) ToJsonString ¶
func (r *AddSmsSignRequest) ToJsonString() string
type AddSmsSignRequestParams ¶
type AddSmsSignRequestParams struct { // Signature name. // Note: you cannot apply for an approved or pending signature again. SignName *string `json:"SignName,omitempty" name:"SignName"` // Signature type. Each of these types is followed by their `DocumentType` (identity certificate type) option: // 0: company. Valid values of `DocumentType` include 0 and 1. // 1: app. Valid values of `DocumentType` include 0, 1, 2, 3, and 4. // 2: website. Valid values of `DocumentType` include 0, 1, 2, 3, and 5. // 3: WeChat Official Account. Valid values of `DocumentType` include 0, 1, 2, 3, and 8. // 4: trademark. Valid values of `DocumentType` include 7. // 5: government/public institution/other. Valid values of `DocumentType` include 2 and 3. // 6: WeChat Mini Program. Valid values of `DocumentType` include 0, 1, 2, 3, and 6. // Note: the identity certificate type must be selected according to the correspondence; otherwise, the review will fail. SignType *uint64 `json:"SignType,omitempty" name:"SignType"` // Identity certificate type: // 0: three-in-one licence. // 1: business license. // 2: organization code certificate. // 3: social credit code certificate. // 4: screenshot of application backend management (for personal app). // 5: screenshot of website ICP filing backend (for personal website). // 6: screenshot of WeChat Mini Program settings page (for personal WeChat Mini Program). // 7: trademark registration certificate. // 8: screenshot of WeChat Official Account settings page (for personal WeChat Official Account). DocumentType *uint64 `json:"DocumentType,omitempty" name:"DocumentType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Signature purpose: // 0: for personal use. // 1: for others. SignPurpose *uint64 `json:"SignPurpose,omitempty" name:"SignPurpose"` // You should Base64-encode the image of the identity certificate corresponding to the signature first, remove the prefix `data:image/jpeg;base64,` from the resulted string, and then use it as the value of this parameter. ProofImage *string `json:"ProofImage,omitempty" name:"ProofImage"` // Power of attorney, which should be submitted if `SignPurpose` is for use by others. // You should Base64-encode the image first, remove the prefix `data:image/jpeg;base64,` from the resulted string, and then use it as the value of this parameter. // Note: this field will take effect only when `SignPurpose` is 1 (for user by others). CommissionImage *string `json:"CommissionImage,omitempty" name:"CommissionImage"` // Signature application remarks. Remark *string `json:"Remark,omitempty" name:"Remark"` }
Predefined struct for user
type AddSmsSignResponse ¶
type AddSmsSignResponse struct { *tchttp.BaseResponse Response *AddSmsSignResponseParams `json:"Response"` }
func NewAddSmsSignResponse ¶
func NewAddSmsSignResponse() (response *AddSmsSignResponse)
func (*AddSmsSignResponse) FromJsonString ¶
func (r *AddSmsSignResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddSmsSignResponse) ToJsonString ¶
func (r *AddSmsSignResponse) ToJsonString() string
type AddSmsSignResponseParams ¶
type AddSmsSignResponseParams struct { // Signature addition response AddSignStatus *AddSignStatus `json:"AddSignStatus,omitempty" name:"AddSignStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type AddSmsTemplateRequest ¶
type AddSmsTemplateRequest struct { *tchttp.BaseRequest // Template name. TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` // Template content. TemplateContent *string `json:"TemplateContent,omitempty" name:"TemplateContent"` // SMS type. 0: regular SMS, 1: marketing SMS. SmsType *uint64 `json:"SmsType,omitempty" name:"SmsType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Template remarks, such as reason for application and use case. Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewAddSmsTemplateRequest ¶
func NewAddSmsTemplateRequest() (request *AddSmsTemplateRequest)
func (*AddSmsTemplateRequest) FromJsonString ¶
func (r *AddSmsTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddSmsTemplateRequest) ToJsonString ¶
func (r *AddSmsTemplateRequest) ToJsonString() string
type AddSmsTemplateRequestParams ¶
type AddSmsTemplateRequestParams struct { // Template name. TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` // Template content. TemplateContent *string `json:"TemplateContent,omitempty" name:"TemplateContent"` // SMS type. 0: regular SMS, 1: marketing SMS. SmsType *uint64 `json:"SmsType,omitempty" name:"SmsType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Template remarks, such as reason for application and use case. Remark *string `json:"Remark,omitempty" name:"Remark"` }
Predefined struct for user
type AddSmsTemplateResponse ¶
type AddSmsTemplateResponse struct { *tchttp.BaseResponse Response *AddSmsTemplateResponseParams `json:"Response"` }
func NewAddSmsTemplateResponse ¶
func NewAddSmsTemplateResponse() (response *AddSmsTemplateResponse)
func (*AddSmsTemplateResponse) FromJsonString ¶
func (r *AddSmsTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddSmsTemplateResponse) ToJsonString ¶
func (r *AddSmsTemplateResponse) ToJsonString() string
type AddSmsTemplateResponseParams ¶
type AddSmsTemplateResponseParams struct { // SMS template addition response body AddTemplateStatus *AddTemplateStatus `json:"AddTemplateStatus,omitempty" name:"AddTemplateStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type AddTemplateStatus ¶
type AddTemplateStatus struct { // Template ID. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` }
type CallbackStatusStatistics ¶
type CallbackStatusStatistics struct { // Messages with receipt. CallbackCount *uint64 `json:"CallbackCount,omitempty" name:"CallbackCount"` // Successfully submitted SMS messages. RequestSuccessCount *uint64 `json:"RequestSuccessCount,omitempty" name:"RequestSuccessCount"` // Failed receipts. CallbackFailCount *uint64 `json:"CallbackFailCount,omitempty" name:"CallbackFailCount"` // Successful receipts. CallbackSuccessCount *uint64 `json:"CallbackSuccessCount,omitempty" name:"CallbackSuccessCount"` // Carrier's internal error. InternalErrorCount *uint64 `json:"InternalErrorCount,omitempty" name:"InternalErrorCount"` // Invalid numbers. InvalidNumberCount *uint64 `json:"InvalidNumberCount,omitempty" name:"InvalidNumberCount"` // Errors such as out-of-service or power-off. ShutdownErrorCount *uint64 `json:"ShutdownErrorCount,omitempty" name:"ShutdownErrorCount"` // Blocked mobile numbers. BlackListCount *uint64 `json:"BlackListCount,omitempty" name:"BlackListCount"` // Carrier rate limit hits. FrequencyLimitCount *uint64 `json:"FrequencyLimitCount,omitempty" name:"FrequencyLimitCount"` }
type CallbackStatusStatisticsRequest ¶
type CallbackStatusStatisticsRequest struct { *tchttp.BaseRequest // Start time in the format of `yyyymmddhh` accurate to the hour, such as 2021050113 (13:00 on May 1, 2021). BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time in the format of `yyyymmddhh` accurate to the hour, such as 2021050118 (18:00 on May 1, 2021). // Note: `EndTime` must be after `BeginTime`, and the difference should not exceed 32 days. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Upper limit. // Note: this parameter is currently fixed at 0. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewCallbackStatusStatisticsRequest ¶
func NewCallbackStatusStatisticsRequest() (request *CallbackStatusStatisticsRequest)
func (*CallbackStatusStatisticsRequest) FromJsonString ¶
func (r *CallbackStatusStatisticsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CallbackStatusStatisticsRequest) ToJsonString ¶
func (r *CallbackStatusStatisticsRequest) ToJsonString() string
type CallbackStatusStatisticsRequestParams ¶
type CallbackStatusStatisticsRequestParams struct { // Start time in the format of `yyyymmddhh` accurate to the hour, such as 2021050113 (13:00 on May 1, 2021). BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time in the format of `yyyymmddhh` accurate to the hour, such as 2021050118 (18:00 on May 1, 2021). // Note: `EndTime` must be after `BeginTime`, and the difference should not exceed 32 days. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Upper limit. // Note: this parameter is currently fixed at 0. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type CallbackStatusStatisticsResponse ¶
type CallbackStatusStatisticsResponse struct { *tchttp.BaseResponse Response *CallbackStatusStatisticsResponseParams `json:"Response"` }
func NewCallbackStatusStatisticsResponse ¶
func NewCallbackStatusStatisticsResponse() (response *CallbackStatusStatisticsResponse)
func (*CallbackStatusStatisticsResponse) FromJsonString ¶
func (r *CallbackStatusStatisticsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CallbackStatusStatisticsResponse) ToJsonString ¶
func (r *CallbackStatusStatisticsResponse) ToJsonString() string
type CallbackStatusStatisticsResponseParams ¶
type CallbackStatusStatisticsResponseParams struct { // Receipt statistics response body. CallbackStatusStatistics *CallbackStatusStatistics `json:"CallbackStatusStatistics,omitempty" name:"CallbackStatusStatistics"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddSmsSign ¶
func (c *Client) AddSmsSign(request *AddSmsSignRequest) (response *AddSmsSignResponse, err error)
AddSmsSign 1. This API is used to add an SMS signature. You need to read the [Tencent Cloud SMS Signature Review Standards](https://intl.cloud.tencent.com/zh/document/product/382/40658) before starting an application.
2. ⚠️ Note: individual users cannot use this API to apply for SMS signatures. For more information, see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). If your account identity is individual, you can log in to the console to apply for SMS signatures.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) AddSmsSignWithContext ¶
func (c *Client) AddSmsSignWithContext(ctx context.Context, request *AddSmsSignRequest) (response *AddSmsSignResponse, err error)
AddSmsSign 1. This API is used to add an SMS signature. You need to read the [Tencent Cloud SMS Signature Review Standards](https://intl.cloud.tencent.com/zh/document/product/382/40658) before starting an application.
2. ⚠️ Note: individual users cannot use this API to apply for SMS signatures. For more information, see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). If your account identity is individual, you can log in to the console to apply for SMS signatures.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) AddSmsTemplate ¶
func (c *Client) AddSmsTemplate(request *AddSmsTemplateRequest) (response *AddSmsTemplateResponse, err error)
AddSmsTemplate 1. This API is used to add an SMS template. You need to read the [Tencent Cloud SMS Body Template Review Standards](https://intl.cloud.tencent.com/zh/document/product/382/40659) before starting an application.
2. ⚠️ Note: individual users cannot use this API to apply for SMS body templates. For more information, see [Identity Verification Overview](https://intl.cloud.tencent.com/zh/document/product/378/3629). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to apply for SMS body templates.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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" UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled" UNAUTHORIZEDOPERATION_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) AddSmsTemplateWithContext ¶
func (c *Client) AddSmsTemplateWithContext(ctx context.Context, request *AddSmsTemplateRequest) (response *AddSmsTemplateResponse, err error)
AddSmsTemplate 1. This API is used to add an SMS template. You need to read the [Tencent Cloud SMS Body Template Review Standards](https://intl.cloud.tencent.com/zh/document/product/382/40659) before starting an application.
2. ⚠️ Note: individual users cannot use this API to apply for SMS body templates. For more information, see [Identity Verification Overview](https://intl.cloud.tencent.com/zh/document/product/378/3629). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to apply for SMS body templates.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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" UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled" UNAUTHORIZEDOPERATION_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) CallbackStatusStatistics ¶
func (c *Client) CallbackStatusStatistics(request *CallbackStatusStatisticsRequest) (response *CallbackStatusStatisticsResponse, err error)
CallbackStatusStatistics This API is used to collect statistics on user receipts.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail" INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_TIMEOUT = "InternalError.Timeout" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail" INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail" INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" INVALIDPARAMETERVALUE_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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) CallbackStatusStatisticsWithContext ¶
func (c *Client) CallbackStatusStatisticsWithContext(ctx context.Context, request *CallbackStatusStatisticsRequest) (response *CallbackStatusStatisticsResponse, err error)
CallbackStatusStatistics This API is used to collect statistics on user receipts.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail" INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_TIMEOUT = "InternalError.Timeout" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_BEGINTIMEVERIFYFAIL = "InvalidParameterValue.BeginTimeVerifyFail" INVALIDPARAMETERVALUE_ENDTIMEVERIFYFAIL = "InvalidParameterValue.EndTimeVerifyFail" INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" INVALIDPARAMETERVALUE_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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) DeleteSmsSign ¶
func (c *Client) DeleteSmsSign(request *DeleteSmsSignRequest) (response *DeleteSmsSignResponse, err error)
DeleteSmsSign ⚠️ Note: individual users cannot use this API to delete SMS signatures. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). Please log in to the [console](https://console.cloud.tencent.com/smsv2) to delete SMS signatures.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) DeleteSmsSignWithContext ¶
func (c *Client) DeleteSmsSignWithContext(ctx context.Context, request *DeleteSmsSignRequest) (response *DeleteSmsSignResponse, err error)
DeleteSmsSign ⚠️ Note: individual users cannot use this API to delete SMS signatures. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). Please log in to the [console](https://console.cloud.tencent.com/smsv2) to delete SMS signatures.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) DeleteSmsTemplate ¶
func (c *Client) DeleteSmsTemplate(request *DeleteSmsTemplateRequest) (response *DeleteSmsTemplateResponse, err error)
DeleteSmsTemplate ⚠️ Note: individual users cannot use this API to delete SMS body templates. Please log in to the [console](https://console.cloud.tencent.com/smsv2) to do so. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1).
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) DeleteSmsTemplateWithContext ¶
func (c *Client) DeleteSmsTemplateWithContext(ctx context.Context, request *DeleteSmsTemplateRequest) (response *DeleteSmsTemplateResponse, err error)
DeleteSmsTemplate ⚠️ Note: individual users cannot use this API to delete SMS body templates. Please log in to the [console](https://console.cloud.tencent.com/smsv2) to do so. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1).
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) DescribePhoneNumberInfo ¶
func (c *Client) DescribePhoneNumberInfo(request *DescribePhoneNumberInfoRequest) (response *DescribePhoneNumberInfoResponse, err error)
DescribePhoneNumberInfo This API is used to query the information of a phone number, including country/region code and standardized E.164 format number.
>- For example, if you query the number +86018845720123, you can get the country/region code 86 and the standardized E.164 number +8618845720123.
error code that may be returned:
FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERPARSEFAIL = "FailedOperation.PhoneNumberParseFail" INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = "LimitExceeded.PhoneNumberCountLimit"
func (*Client) DescribePhoneNumberInfoWithContext ¶
func (c *Client) DescribePhoneNumberInfoWithContext(ctx context.Context, request *DescribePhoneNumberInfoRequest) (response *DescribePhoneNumberInfoResponse, err error)
DescribePhoneNumberInfo This API is used to query the information of a phone number, including country/region code and standardized E.164 format number.
>- For example, if you query the number +86018845720123, you can get the country/region code 86 and the standardized E.164 number +8618845720123.
error code that may be returned:
FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERPARSEFAIL = "FailedOperation.PhoneNumberParseFail" INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" LIMITEXCEEDED_PHONENUMBERCOUNTLIMIT = "LimitExceeded.PhoneNumberCountLimit"
func (*Client) DescribeSmsSignList ¶
func (c *Client) DescribeSmsSignList(request *DescribeSmsSignListRequest) (response *DescribeSmsSignListResponse, err error)
DescribeSmsSignList ⚠️ Note: individual users cannot use this API to query SMS signatures. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to query SMS signatures.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) DescribeSmsSignListWithContext ¶
func (c *Client) DescribeSmsSignListWithContext(ctx context.Context, request *DescribeSmsSignListRequest) (response *DescribeSmsSignListResponse, err error)
DescribeSmsSignList ⚠️ Note: individual users cannot use this API to query SMS signatures. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to query SMS signatures.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) DescribeSmsTemplateList ¶
func (c *Client) DescribeSmsTemplateList(request *DescribeSmsTemplateListRequest) (response *DescribeSmsTemplateListResponse, err error)
DescribeSmsTemplateList ⚠️ Note: individual users cannot use this API to query SMS body templates. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1).
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) DescribeSmsTemplateListWithContext ¶
func (c *Client) DescribeSmsTemplateListWithContext(ctx context.Context, request *DescribeSmsTemplateListRequest) (response *DescribeSmsTemplateListResponse, err error)
DescribeSmsTemplateList ⚠️ Note: individual users cannot use this API to query SMS body templates. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1).
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) ModifySmsSign ¶
func (c *Client) ModifySmsSign(request *ModifySmsSignRequest) (response *ModifySmsSignResponse, err error)
ModifySmsSign 1. This API is used to modify an SMS signature. Read the [Tencent Cloud SMS signature review standards](https://intl.cloud.tencent.com/document/product/382/40658) before making a modification.
2. ⚠️ Note: Individual users cannot use this API to modify SMS signatures. For more information, see [Identity Verification Guide](https://intl.cloud.tencent.com/document/product/378/3629). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to modify SMS signatures.
3. Modifications can be made only if the signature status is **Pending Review** or **Rejected**. **Approved** signatures cannot be modified.
>- Note: Because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) ModifySmsSignWithContext ¶
func (c *Client) ModifySmsSignWithContext(ctx context.Context, request *ModifySmsSignRequest) (response *ModifySmsSignResponse, err error)
ModifySmsSign 1. This API is used to modify an SMS signature. Read the [Tencent Cloud SMS signature review standards](https://intl.cloud.tencent.com/document/product/382/40658) before making a modification.
2. ⚠️ Note: Individual users cannot use this API to modify SMS signatures. For more information, see [Identity Verification Guide](https://intl.cloud.tencent.com/document/product/378/3629). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to modify SMS signatures.
3. Modifications can be made only if the signature status is **Pending Review** or **Rejected**. **Approved** signatures cannot be modified.
>- Note: Because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) ModifySmsTemplate ¶
func (c *Client) ModifySmsTemplate(request *ModifySmsTemplateRequest) (response *ModifySmsTemplateResponse, err error)
ModifySmsTemplate 1. This API is used to modify an SMS body template. Please read the [Tencent Cloud SMS Body Template Review Standards](https://intl.cloud.tencent.com/document/product/382/39023?from_cn_redirect=1) before making a modification.
2. ⚠️ Note: individual users cannot use this API to modify SMS body templates. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to modify SMS body templates.
3. Modifications can be made only if the body template status is **Pending Review** or **Rejected**. **Approved** body templates cannot be modified.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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" UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled" UNAUTHORIZEDOPERATION_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) ModifySmsTemplateWithContext ¶
func (c *Client) ModifySmsTemplateWithContext(ctx context.Context, request *ModifySmsTemplateRequest) (response *ModifySmsTemplateResponse, err error)
ModifySmsTemplate 1. This API is used to modify an SMS body template. Please read the [Tencent Cloud SMS Body Template Review Standards](https://intl.cloud.tencent.com/document/product/382/39023?from_cn_redirect=1) before making a modification.
2. ⚠️ Note: individual users cannot use this API to modify SMS body templates. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). If your account identity is individual, you can log in to the [console](https://console.cloud.tencent.com/smsv2) to modify SMS body templates.
3. Modifications can be made only if the body template status is **Pending Review** or **Rejected**. **Approved** body templates cannot be modified.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2019-07-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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" UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppIdIsDisabled" UNAUTHORIZEDOPERATION_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) PullSmsReplyStatus ¶
func (c *Client) PullSmsReplyStatus(request *PullSmsReplyStatusRequest) (response *PullSmsReplyStatusResponse, err error)
PullSmsReplyStatus This API is used to pull SMS reply status.
Currently, you can also [configure the reply callback](https://intl.cloud.tencent.com/document/product/382/42907?from_cn_redirect=1) to get replies.
>- Note: You need to contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) to activate this API.
>- Note: Because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) PullSmsReplyStatusByPhoneNumber ¶
func (c *Client) PullSmsReplyStatusByPhoneNumber(request *PullSmsReplyStatusByPhoneNumberRequest) (response *PullSmsReplyStatusByPhoneNumberResponse, err error)
PullSmsReplyStatusByPhoneNumber This API is used to pull SMS reply status for one single number.
Currently, you can also [configure the reply callback](https://intl.cloud.tencent.com/document/product/382/42907?from_cn_redirect=1) to get replies.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) PullSmsReplyStatusByPhoneNumberWithContext ¶
func (c *Client) PullSmsReplyStatusByPhoneNumberWithContext(ctx context.Context, request *PullSmsReplyStatusByPhoneNumberRequest) (response *PullSmsReplyStatusByPhoneNumberResponse, err error)
PullSmsReplyStatusByPhoneNumber This API is used to pull SMS reply status for one single number.
Currently, you can also [configure the reply callback](https://intl.cloud.tencent.com/document/product/382/42907?from_cn_redirect=1) to get replies.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) PullSmsReplyStatusWithContext ¶
func (c *Client) PullSmsReplyStatusWithContext(ctx context.Context, request *PullSmsReplyStatusRequest) (response *PullSmsReplyStatusResponse, err error)
PullSmsReplyStatus This API is used to pull SMS reply status.
Currently, you can also [configure the reply callback](https://intl.cloud.tencent.com/document/product/382/42907?from_cn_redirect=1) to get replies.
>- Note: You need to contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) to activate this API.
>- Note: Because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) PullSmsSendStatus ¶
func (c *Client) PullSmsSendStatus(request *PullSmsSendStatusRequest) (response *PullSmsSendStatusResponse, err error)
PullSmsSendStatus This API is used to pull SMS delivery status.
Currently, you can also [configure the callback](https://intl.cloud.tencent.com/document/product/382/37809?from_cn_redirect=1#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) to get the delivery status.
>- Note: you need to contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) to activate this API.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) PullSmsSendStatusByPhoneNumber ¶
func (c *Client) PullSmsSendStatusByPhoneNumber(request *PullSmsSendStatusByPhoneNumberRequest) (response *PullSmsSendStatusByPhoneNumberResponse, err error)
PullSmsSendStatusByPhoneNumber This API is used to pull SMS delivery status for one single number.
Currently, you can also [configure the callback](https://intl.cloud.tencent.com/document/product/382/37809?from_cn_redirect=1#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) to get the delivery status.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) to eliminate the need to calculate signatures. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) PullSmsSendStatusByPhoneNumberWithContext ¶
func (c *Client) PullSmsSendStatusByPhoneNumberWithContext(ctx context.Context, request *PullSmsSendStatusByPhoneNumberRequest) (response *PullSmsSendStatusByPhoneNumberResponse, err error)
PullSmsSendStatusByPhoneNumber This API is used to pull SMS delivery status for one single number.
Currently, you can also [configure the callback](https://intl.cloud.tencent.com/document/product/382/37809?from_cn_redirect=1#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) to get the delivery status.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms) to eliminate the need to calculate signatures. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) PullSmsSendStatusWithContext ¶
func (c *Client) PullSmsSendStatusWithContext(ctx context.Context, request *PullSmsSendStatusRequest) (response *PullSmsSendStatusResponse, err error)
PullSmsSendStatus This API is used to pull SMS delivery status.
Currently, you can also [configure the callback](https://intl.cloud.tencent.com/document/product/382/37809?from_cn_redirect=1#.E8.AE.BE.E7.BD.AE.E4.BA.8B.E4.BB.B6.E5.9B.9E.E8.B0.83.E9.85.8D.E7.BD.AE) to get the delivery status.
>- Note: you need to contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) to activate this API.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) ReportConversion ¶
func (c *Client) ReportConversion(request *ReportConversionRequest) (response *ReportConversionResponse, err error)
ReportConversion This API is used to report the SMS conversion rate (SMS conversion rate = the number of returned verification codes / the number of verification codes sent) and report the serial numbers of received SMS messages to Tencent Cloud SMS.
>- Note: To call this API, you need to be added to the allowlist first. If you have any questions, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81).
error code that may be returned:
INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
func (*Client) ReportConversionWithContext ¶
func (c *Client) ReportConversionWithContext(ctx context.Context, request *ReportConversionRequest) (response *ReportConversionResponse, err error)
ReportConversion This API is used to report the SMS conversion rate (SMS conversion rate = the number of returned verification codes / the number of verification codes sent) and report the serial numbers of received SMS messages to Tencent Cloud SMS.
>- Note: To call this API, you need to be added to the allowlist first. If you have any questions, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81).
error code that may be returned:
INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail"
func (*Client) SendSms ¶
func (c *Client) SendSms(request *SendSmsRequest) (response *SendSmsResponse, err error)
SendSms This API is used to send SMS verification codes, notification, or marketing messages to users.
>- Note: Because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the [SDK](https://intl.cloud.tencent.com/document/product/382/43193?from_cn_redirect=1).
>- Note: You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
>- Note: This API is currently on the 2021-01-11 version. If you are still using the [2019-07-11 version](https://intl.cloud.tencent.com/document/product/382/38778?from_cn_redirect=1), we recommend you use this latest version. For version differences, see [Version description](https://intl.cloud.tencent.com/document/product/382/63195?from_cn_redirect=1#.E7.89.88.E6.9C.AC.E6.8F.8F.E8.BF.B0).
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation." UNSUPPORTEDOPERATION_CHINESEMAINLANDTEMPLATETOGLOBALPHONE = "UnsupportedOperation.ChineseMainlandTemplateToGlobalPhone" UNSUPPORTEDOPERATION_CONTAINDOMESTICANDINTERNATIONALPHONENUMBER = "UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber" UNSUPPORTEDOPERATION_GLOBALTEMPLATETOCHINESEMAINLANDPHONE = "UnsupportedOperation.GlobalTemplateToChineseMainlandPhone" UNSUPPORTEDOPERATION_UNSUPORTEDREGION = "UnsupportedOperation.UnsuportedRegion"
func (*Client) SendSmsWithContext ¶
func (c *Client) SendSmsWithContext(ctx context.Context, request *SendSmsRequest) (response *SendSmsResponse, err error)
SendSms This API is used to send SMS verification codes, notification, or marketing messages to users.
>- Note: Because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the [SDK](https://intl.cloud.tencent.com/document/product/382/43193?from_cn_redirect=1).
>- Note: You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
>- Note: This API is currently on the 2021-01-11 version. If you are still using the [2019-07-11 version](https://intl.cloud.tencent.com/document/product/382/38778?from_cn_redirect=1), we recommend you use this latest version. For version differences, see [Version description](https://intl.cloud.tencent.com/document/product/382/63195?from_cn_redirect=1#.E7.89.88.E6.9C.AC.E6.8F.8F.E8.BF.B0).
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation." UNSUPPORTEDOPERATION_CHINESEMAINLANDTEMPLATETOGLOBALPHONE = "UnsupportedOperation.ChineseMainlandTemplateToGlobalPhone" UNSUPPORTEDOPERATION_CONTAINDOMESTICANDINTERNATIONALPHONENUMBER = "UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber" UNSUPPORTEDOPERATION_GLOBALTEMPLATETOCHINESEMAINLANDPHONE = "UnsupportedOperation.GlobalTemplateToChineseMainlandPhone" UNSUPPORTEDOPERATION_UNSUPORTEDREGION = "UnsupportedOperation.UnsuportedRegion"
func (*Client) SendStatusStatistics ¶
func (c *Client) SendStatusStatistics(request *SendStatusStatisticsRequest) (response *SendStatusStatisticsResponse, err error)
SendStatusStatistics This API is used to collect statistics on SMS messages sent by users.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) SendStatusStatisticsWithContext ¶
func (c *Client) SendStatusStatisticsWithContext(ctx context.Context, request *SendStatusStatisticsRequest) (response *SendStatusStatisticsResponse, err error)
SendStatusStatistics This API is used to collect statistics on SMS messages sent by users.
>- Note: because of the improved security of **TencentCloud API 3.0**, **API authentication** is more complicated. We recommend you use the Tencent Cloud SMS service with the SDK.
>- You can run this API directly in [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer?Product=sms&Version=2021-01-11&Action=SendSms), which eliminates the signature calculation steps. After it is executed successfully, API Explorer can **automatically generate** SDK code samples.
error code that may be returned:
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_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppIdVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
type DeleteSignStatus ¶
type DeleteSmsSignRequest ¶
type DeleteSmsSignRequest struct { *tchttp.BaseRequest // ID of the signature to be deleted. SignId *uint64 `json:"SignId,omitempty" name:"SignId"` }
func NewDeleteSmsSignRequest ¶
func NewDeleteSmsSignRequest() (request *DeleteSmsSignRequest)
func (*DeleteSmsSignRequest) FromJsonString ¶
func (r *DeleteSmsSignRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSmsSignRequest) ToJsonString ¶
func (r *DeleteSmsSignRequest) ToJsonString() string
type DeleteSmsSignRequestParams ¶
type DeleteSmsSignRequestParams struct { // ID of the signature to be deleted. SignId *uint64 `json:"SignId,omitempty" name:"SignId"` }
Predefined struct for user
type DeleteSmsSignResponse ¶
type DeleteSmsSignResponse struct { *tchttp.BaseResponse Response *DeleteSmsSignResponseParams `json:"Response"` }
func NewDeleteSmsSignResponse ¶
func NewDeleteSmsSignResponse() (response *DeleteSmsSignResponse)
func (*DeleteSmsSignResponse) FromJsonString ¶
func (r *DeleteSmsSignResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSmsSignResponse) ToJsonString ¶
func (r *DeleteSmsSignResponse) ToJsonString() string
type DeleteSmsSignResponseParams ¶
type DeleteSmsSignResponseParams struct { // Signature deletion response DeleteSignStatus *DeleteSignStatus `json:"DeleteSignStatus,omitempty" name:"DeleteSignStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteSmsTemplateRequest ¶
type DeleteSmsTemplateRequest struct { *tchttp.BaseRequest // ID of the template to be deleted. TemplateId *uint64 `json:"TemplateId,omitempty" name:"TemplateId"` }
func NewDeleteSmsTemplateRequest ¶
func NewDeleteSmsTemplateRequest() (request *DeleteSmsTemplateRequest)
func (*DeleteSmsTemplateRequest) FromJsonString ¶
func (r *DeleteSmsTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSmsTemplateRequest) ToJsonString ¶
func (r *DeleteSmsTemplateRequest) ToJsonString() string
type DeleteSmsTemplateRequestParams ¶
type DeleteSmsTemplateRequestParams struct { // ID of the template to be deleted. TemplateId *uint64 `json:"TemplateId,omitempty" name:"TemplateId"` }
Predefined struct for user
type DeleteSmsTemplateResponse ¶
type DeleteSmsTemplateResponse struct { *tchttp.BaseResponse Response *DeleteSmsTemplateResponseParams `json:"Response"` }
func NewDeleteSmsTemplateResponse ¶
func NewDeleteSmsTemplateResponse() (response *DeleteSmsTemplateResponse)
func (*DeleteSmsTemplateResponse) FromJsonString ¶
func (r *DeleteSmsTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteSmsTemplateResponse) ToJsonString ¶
func (r *DeleteSmsTemplateResponse) ToJsonString() string
type DeleteSmsTemplateResponseParams ¶
type DeleteSmsTemplateResponseParams struct { // Template deletion response DeleteTemplateStatus *DeleteTemplateStatus `json:"DeleteTemplateStatus,omitempty" name:"DeleteTemplateStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteTemplateStatus ¶
type DescribePhoneNumberInfoRequest ¶
type DescribePhoneNumberInfoRequest struct { *tchttp.BaseRequest // A parameter used to query mobile numbers in E.164 format (+[country/region code][subscriber number]). Up to 200 mobile numbers can be queried at a time. // Take the number +8613711112222 as an example. “86” is the country code (with a “+” sign in its front) and “13711112222” is the subscriber number. PhoneNumberSet []*string `json:"PhoneNumberSet,omitempty" name:"PhoneNumberSet"` }
func NewDescribePhoneNumberInfoRequest ¶
func NewDescribePhoneNumberInfoRequest() (request *DescribePhoneNumberInfoRequest)
func (*DescribePhoneNumberInfoRequest) FromJsonString ¶
func (r *DescribePhoneNumberInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePhoneNumberInfoRequest) ToJsonString ¶
func (r *DescribePhoneNumberInfoRequest) ToJsonString() string
type DescribePhoneNumberInfoRequestParams ¶
type DescribePhoneNumberInfoRequestParams struct { // A parameter used to query mobile numbers in E.164 format (+[country/region code][subscriber number]). Up to 200 mobile numbers can be queried at a time. // Take the number +8613711112222 as an example. “86” is the country code (with a “+” sign in its front) and “13711112222” is the subscriber number. PhoneNumberSet []*string `json:"PhoneNumberSet,omitempty" name:"PhoneNumberSet"` }
Predefined struct for user
type DescribePhoneNumberInfoResponse ¶
type DescribePhoneNumberInfoResponse struct { *tchttp.BaseResponse Response *DescribePhoneNumberInfoResponseParams `json:"Response"` }
func NewDescribePhoneNumberInfoResponse ¶
func NewDescribePhoneNumberInfoResponse() (response *DescribePhoneNumberInfoResponse)
func (*DescribePhoneNumberInfoResponse) FromJsonString ¶
func (r *DescribePhoneNumberInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribePhoneNumberInfoResponse) ToJsonString ¶
func (r *DescribePhoneNumberInfoResponse) ToJsonString() string
type DescribePhoneNumberInfoResponseParams ¶
type DescribePhoneNumberInfoResponseParams struct { // A parameter used to obtain mobile number information. PhoneNumberInfoSet []*PhoneNumberInfo `json:"PhoneNumberInfoSet,omitempty" name:"PhoneNumberInfoSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeSignListStatus ¶
type DescribeSignListStatus struct { // Signature ID. SignId *uint64 `json:"SignId,omitempty" name:"SignId"` // Whether it is Global SMS. 0: Mainland China SMS; 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Signature application status. Valid values: 0: approved; 1: under review. // -1: application rejected or failed. StatusCode *int64 `json:"StatusCode,omitempty" name:"StatusCode"` // Review reply, i.e., response given by the reviewer, which is usually the reason for rejection. ReviewReply *string `json:"ReviewReply,omitempty" name:"ReviewReply"` // Signature name. SignName *string `json:"SignName,omitempty" name:"SignName"` // Application submission time in the format of UNIX timestamp in seconds. CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` }
type DescribeSmsSignListRequest ¶
type DescribeSmsSignListRequest struct { *tchttp.BaseRequest // Signature ID array. // Note: the maximum length of the array is 100 by default. SignIdSet []*uint64 `json:"SignIdSet,omitempty" name:"SignIdSet"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` }
func NewDescribeSmsSignListRequest ¶
func NewDescribeSmsSignListRequest() (request *DescribeSmsSignListRequest)
func (*DescribeSmsSignListRequest) FromJsonString ¶
func (r *DescribeSmsSignListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSmsSignListRequest) ToJsonString ¶
func (r *DescribeSmsSignListRequest) ToJsonString() string
type DescribeSmsSignListRequestParams ¶
type DescribeSmsSignListRequestParams struct { // Signature ID array. // Note: the maximum length of the array is 100 by default. SignIdSet []*uint64 `json:"SignIdSet,omitempty" name:"SignIdSet"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` }
Predefined struct for user
type DescribeSmsSignListResponse ¶
type DescribeSmsSignListResponse struct { *tchttp.BaseResponse Response *DescribeSmsSignListResponseParams `json:"Response"` }
func NewDescribeSmsSignListResponse ¶
func NewDescribeSmsSignListResponse() (response *DescribeSmsSignListResponse)
func (*DescribeSmsSignListResponse) FromJsonString ¶
func (r *DescribeSmsSignListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSmsSignListResponse) ToJsonString ¶
func (r *DescribeSmsSignListResponse) ToJsonString() string
type DescribeSmsSignListResponseParams ¶
type DescribeSmsSignListResponseParams struct { // Response for getting signature information DescribeSignListStatusSet []*DescribeSignListStatus `json:"DescribeSignListStatusSet,omitempty" name:"DescribeSignListStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeSmsTemplateListRequest ¶
type DescribeSmsTemplateListRequest struct { *tchttp.BaseRequest // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Array of template IDs. If the array is empty, the template list information will be queried by default. You need to use the `Limit` and `Offset` fields to set the query range. // <dx-alert infotype="notice" title="Note">The max array length is 100 by default.</dx-alert> TemplateIdSet []*uint64 `json:"TemplateIdSet,omitempty" name:"TemplateIdSet"` // Upper limit. Maximum value: 100. // Note: it is 0 by default and is enabled when `TemplateIdSet` is empty. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. // Note: it is 0 by default and is enabled when `TemplateIdSet` is empty. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewDescribeSmsTemplateListRequest ¶
func NewDescribeSmsTemplateListRequest() (request *DescribeSmsTemplateListRequest)
func (*DescribeSmsTemplateListRequest) FromJsonString ¶
func (r *DescribeSmsTemplateListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSmsTemplateListRequest) ToJsonString ¶
func (r *DescribeSmsTemplateListRequest) ToJsonString() string
type DescribeSmsTemplateListRequestParams ¶
type DescribeSmsTemplateListRequestParams struct { // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Array of template IDs. If the array is empty, the template list information will be queried by default. You need to use the `Limit` and `Offset` fields to set the query range. // <dx-alert infotype="notice" title="Note">The max array length is 100 by default.</dx-alert> TemplateIdSet []*uint64 `json:"TemplateIdSet,omitempty" name:"TemplateIdSet"` // Upper limit. Maximum value: 100. // Note: it is 0 by default and is enabled when `TemplateIdSet` is empty. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. // Note: it is 0 by default and is enabled when `TemplateIdSet` is empty. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type DescribeSmsTemplateListResponse ¶
type DescribeSmsTemplateListResponse struct { *tchttp.BaseResponse Response *DescribeSmsTemplateListResponseParams `json:"Response"` }
func NewDescribeSmsTemplateListResponse ¶
func NewDescribeSmsTemplateListResponse() (response *DescribeSmsTemplateListResponse)
func (*DescribeSmsTemplateListResponse) FromJsonString ¶
func (r *DescribeSmsTemplateListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeSmsTemplateListResponse) ToJsonString ¶
func (r *DescribeSmsTemplateListResponse) ToJsonString() string
type DescribeSmsTemplateListResponseParams ¶
type DescribeSmsTemplateListResponseParams struct { // Response for getting SMS template information DescribeTemplateStatusSet []*DescribeTemplateListStatus `json:"DescribeTemplateStatusSet,omitempty" name:"DescribeTemplateStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeTemplateListStatus ¶
type DescribeTemplateListStatus struct { // Template ID. TemplateId *uint64 `json:"TemplateId,omitempty" name:"TemplateId"` // Whether it is Global SMS. 0: Mainland China SMS; 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Template application status. Valid values: 0: approved; 1: under review; -1: application rejected or failed. StatusCode *int64 `json:"StatusCode,omitempty" name:"StatusCode"` // Review reply, i.e., response given by the reviewer, which is usually the reason for rejection. ReviewReply *string `json:"ReviewReply,omitempty" name:"ReviewReply"` // Template name. TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` // Application submission time in the format of UNIX timestamp in seconds. CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` // Template content. TemplateContent *string `json:"TemplateContent,omitempty" name:"TemplateContent"` }
type ModifySignStatus ¶
type ModifySignStatus struct { // Signature ID. SignId *uint64 `json:"SignId,omitempty" name:"SignId"` }
type ModifySmsSignRequest ¶
type ModifySmsSignRequest struct { *tchttp.BaseRequest // ID of the signature to be modified. SignId *uint64 `json:"SignId,omitempty" name:"SignId"` // Signature name. SignName *string `json:"SignName,omitempty" name:"SignName"` // Signature type. Each of these types is followed by their `DocumentType` (identity certificate type) option: // 0: company. Valid values of `DocumentType` include 0 and 1. // 1: app. Valid values of `DocumentType` include 0, 1, 2, 3, and 4. // 2: website. Valid values of `DocumentType` include 0, 1, 2, 3, and 5. // 3: WeChat Official Account. Valid values of `DocumentType` include 0, 1, 2, 3, and 8. // 4: trademark. Valid values of `DocumentType` include 7. // 5: government/public institution/other. Valid values of `DocumentType` include 2 and 3. // 6: WeChat Mini Program. Valid values of `DocumentType` include 0, 1, 2, 3, and 6. // Note: the identity certificate type must be selected according to the correspondence; otherwise, the review will fail. SignType *uint64 `json:"SignType,omitempty" name:"SignType"` // Identity certificate type: // 0: three-in-one. // 1: business license. // 2: organization code certificate. // 3: social credit code certificate. // 4: screenshot of application backend management (for personal app). // 5: screenshot of website ICP filing backend (for personal website). // 6: screenshot of WeChat Mini Program settings page (for personal WeChat Mini Program). // 7: trademark registration certificate. // 8: screenshot of WeChat Official Account settings page (for personal WeChat Official Account). DocumentType *uint64 `json:"DocumentType,omitempty" name:"DocumentType"` // A parameter used to specify whether it is Global SMS: // `0`: Chinese mainland SMS. // `1`: Global SMS. // Note: the value of this parameter must be consistent with the `International` value of the signature to be modified. This parameter cannot be used to directly change a Chinese mainland signature to an international signature. International *uint64 `json:"International,omitempty" name:"International"` // Signature purpose: // 0: for personal use. // 1: for others. SignPurpose *uint64 `json:"SignPurpose,omitempty" name:"SignPurpose"` // You should Base64-encode the image of the identity certificate corresponding to the signature first, remove the prefix `data:image/jpeg;base64,` from the resulted string, and then use it as the value of this parameter. ProofImage *string `json:"ProofImage,omitempty" name:"ProofImage"` // Power of attorney, which should be submitted if `SignPurpose` is for use by others. // You should Base64-encode the image first, remove the prefix `data:image/jpeg;base64,` from the resulted string, and then use it as the value of this parameter. // Note: this field will take effect only when `SignPurpose` is 1 (for user by others). CommissionImage *string `json:"CommissionImage,omitempty" name:"CommissionImage"` // Signature application remarks. Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewModifySmsSignRequest ¶
func NewModifySmsSignRequest() (request *ModifySmsSignRequest)
func (*ModifySmsSignRequest) FromJsonString ¶
func (r *ModifySmsSignRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySmsSignRequest) ToJsonString ¶
func (r *ModifySmsSignRequest) ToJsonString() string
type ModifySmsSignRequestParams ¶
type ModifySmsSignRequestParams struct { // ID of the signature to be modified. SignId *uint64 `json:"SignId,omitempty" name:"SignId"` // Signature name. SignName *string `json:"SignName,omitempty" name:"SignName"` // Signature type. Each of these types is followed by their `DocumentType` (identity certificate type) option: // 0: company. Valid values of `DocumentType` include 0 and 1. // 1: app. Valid values of `DocumentType` include 0, 1, 2, 3, and 4. // 2: website. Valid values of `DocumentType` include 0, 1, 2, 3, and 5. // 3: WeChat Official Account. Valid values of `DocumentType` include 0, 1, 2, 3, and 8. // 4: trademark. Valid values of `DocumentType` include 7. // 5: government/public institution/other. Valid values of `DocumentType` include 2 and 3. // 6: WeChat Mini Program. Valid values of `DocumentType` include 0, 1, 2, 3, and 6. // Note: the identity certificate type must be selected according to the correspondence; otherwise, the review will fail. SignType *uint64 `json:"SignType,omitempty" name:"SignType"` // Identity certificate type: // 0: three-in-one. // 1: business license. // 2: organization code certificate. // 3: social credit code certificate. // 4: screenshot of application backend management (for personal app). // 5: screenshot of website ICP filing backend (for personal website). // 6: screenshot of WeChat Mini Program settings page (for personal WeChat Mini Program). // 7: trademark registration certificate. // 8: screenshot of WeChat Official Account settings page (for personal WeChat Official Account). DocumentType *uint64 `json:"DocumentType,omitempty" name:"DocumentType"` // A parameter used to specify whether it is Global SMS: // `0`: Chinese mainland SMS. // `1`: Global SMS. // Note: the value of this parameter must be consistent with the `International` value of the signature to be modified. This parameter cannot be used to directly change a Chinese mainland signature to an international signature. International *uint64 `json:"International,omitempty" name:"International"` // Signature purpose: // 0: for personal use. // 1: for others. SignPurpose *uint64 `json:"SignPurpose,omitempty" name:"SignPurpose"` // You should Base64-encode the image of the identity certificate corresponding to the signature first, remove the prefix `data:image/jpeg;base64,` from the resulted string, and then use it as the value of this parameter. ProofImage *string `json:"ProofImage,omitempty" name:"ProofImage"` // Power of attorney, which should be submitted if `SignPurpose` is for use by others. // You should Base64-encode the image first, remove the prefix `data:image/jpeg;base64,` from the resulted string, and then use it as the value of this parameter. // Note: this field will take effect only when `SignPurpose` is 1 (for user by others). CommissionImage *string `json:"CommissionImage,omitempty" name:"CommissionImage"` // Signature application remarks. Remark *string `json:"Remark,omitempty" name:"Remark"` }
Predefined struct for user
type ModifySmsSignResponse ¶
type ModifySmsSignResponse struct { *tchttp.BaseResponse Response *ModifySmsSignResponseParams `json:"Response"` }
func NewModifySmsSignResponse ¶
func NewModifySmsSignResponse() (response *ModifySmsSignResponse)
func (*ModifySmsSignResponse) FromJsonString ¶
func (r *ModifySmsSignResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySmsSignResponse) ToJsonString ¶
func (r *ModifySmsSignResponse) ToJsonString() string
type ModifySmsSignResponseParams ¶
type ModifySmsSignResponseParams struct { // Signature modification response ModifySignStatus *ModifySignStatus `json:"ModifySignStatus,omitempty" name:"ModifySignStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifySmsTemplateRequest ¶
type ModifySmsTemplateRequest struct { *tchttp.BaseRequest // ID of the template to be modified. TemplateId *uint64 `json:"TemplateId,omitempty" name:"TemplateId"` // New template name. TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` // New template content. TemplateContent *string `json:"TemplateContent,omitempty" name:"TemplateContent"` // SMS type. 0: regular SMS, 1: marketing SMS. SmsType *uint64 `json:"SmsType,omitempty" name:"SmsType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Template remarks, such as reason for application and use case. Remark *string `json:"Remark,omitempty" name:"Remark"` }
func NewModifySmsTemplateRequest ¶
func NewModifySmsTemplateRequest() (request *ModifySmsTemplateRequest)
func (*ModifySmsTemplateRequest) FromJsonString ¶
func (r *ModifySmsTemplateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySmsTemplateRequest) ToJsonString ¶
func (r *ModifySmsTemplateRequest) ToJsonString() string
type ModifySmsTemplateRequestParams ¶
type ModifySmsTemplateRequestParams struct { // ID of the template to be modified. TemplateId *uint64 `json:"TemplateId,omitempty" name:"TemplateId"` // New template name. TemplateName *string `json:"TemplateName,omitempty" name:"TemplateName"` // New template content. TemplateContent *string `json:"TemplateContent,omitempty" name:"TemplateContent"` // SMS type. 0: regular SMS, 1: marketing SMS. SmsType *uint64 `json:"SmsType,omitempty" name:"SmsType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitempty" name:"International"` // Template remarks, such as reason for application and use case. Remark *string `json:"Remark,omitempty" name:"Remark"` }
Predefined struct for user
type ModifySmsTemplateResponse ¶
type ModifySmsTemplateResponse struct { *tchttp.BaseResponse Response *ModifySmsTemplateResponseParams `json:"Response"` }
func NewModifySmsTemplateResponse ¶
func NewModifySmsTemplateResponse() (response *ModifySmsTemplateResponse)
func (*ModifySmsTemplateResponse) FromJsonString ¶
func (r *ModifySmsTemplateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifySmsTemplateResponse) ToJsonString ¶
func (r *ModifySmsTemplateResponse) ToJsonString() string
type ModifySmsTemplateResponseParams ¶
type ModifySmsTemplateResponseParams struct { // Template parameter modification response ModifyTemplateStatus *ModifyTemplateStatus `json:"ModifyTemplateStatus,omitempty" name:"ModifyTemplateStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyTemplateStatus ¶
type ModifyTemplateStatus struct { // Template ID. TemplateId *uint64 `json:"TemplateId,omitempty" name:"TemplateId"` }
type PhoneNumberInfo ¶
type PhoneNumberInfo struct { // Error code for mobile number information query. `Ok` will be returned if the query is successful. Code *string `json:"Code,omitempty" name:"Code"` // Description of the error code for mobile number information query. Message *string `json:"Message,omitempty" name:"Message"` // Country (or region) code. NationCode *string `json:"NationCode,omitempty" name:"NationCode"` // Subscriber number in normal format such as 13711112222, without any prefix (country or region code). SubscriberNumber *string `json:"SubscriberNumber,omitempty" name:"SubscriberNumber"` // The standardized mobile number in E.164 format after parsing, which is consistent with the parsed number for SMS message delivery. If the parsing fails, the original number will be returned. PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"` // Country or region code such as CN and US. If the country or region code cannot be identified, `DEF` will be returned by default. IsoCode *string `json:"IsoCode,omitempty" name:"IsoCode"` // Country code or region name such as China. For more information, see [Global SMS Price Overview](https://intl.cloud.tencent.com/document/product/382/18051?from_cn_redirect=1#.E6.97.A5.E7.BB.93.E5.90.8E.E4.BB.98.E8.B4.B9.3Ca-id.3D.22post-payment.22.3E.3C.2Fa.3E) IsoName *string `json:"IsoName,omitempty" name:"IsoName"` }
type PullSmsReplyStatus ¶
type PullSmsReplyStatus struct { // SMS code number extension, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). ExtendCode *string `json:"ExtendCode,omitempty" name:"ExtendCode"` // Country (or region) code. CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"` // Mobile number in the E.164 standard (+[country/region code][mobile number]), such as +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"` // SMS signature name. SignName *string `json:"SignName,omitempty" name:"SignName"` // User reply. ReplyContent *string `json:"ReplyContent,omitempty" name:"ReplyContent"` // Reply time in seconds in the format of UNIX timestamp. ReplyTime *uint64 `json:"ReplyTime,omitempty" name:"ReplyTime"` // User's mobile number in a common format such as 13711112222. SubscriberNumber *string `json:"SubscriberNumber,omitempty" name:"SubscriberNumber"` }
type PullSmsReplyStatusByPhoneNumberRequest ¶
type PullSmsReplyStatusByPhoneNumberRequest struct { *tchttp.BaseRequest // Pull start time in seconds in the format of UNIX timestamp. // Note: the data for the last 7 days can be pulled at most. BeginTime *uint64 `json:"BeginTime,omitempty" name:"BeginTime"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Target mobile number in the E.164 standard (+[country/region code][mobile number]), such as +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Pull end time in seconds in the format of UNIX timestamp. EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` }
func NewPullSmsReplyStatusByPhoneNumberRequest ¶
func NewPullSmsReplyStatusByPhoneNumberRequest() (request *PullSmsReplyStatusByPhoneNumberRequest)
func (*PullSmsReplyStatusByPhoneNumberRequest) FromJsonString ¶
func (r *PullSmsReplyStatusByPhoneNumberRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PullSmsReplyStatusByPhoneNumberRequest) ToJsonString ¶
func (r *PullSmsReplyStatusByPhoneNumberRequest) ToJsonString() string
type PullSmsReplyStatusByPhoneNumberRequestParams ¶
type PullSmsReplyStatusByPhoneNumberRequestParams struct { // Pull start time in seconds in the format of UNIX timestamp. // Note: the data for the last 7 days can be pulled at most. BeginTime *uint64 `json:"BeginTime,omitempty" name:"BeginTime"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Target mobile number in the E.164 standard (+[country/region code][mobile number]), such as +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Pull end time in seconds in the format of UNIX timestamp. EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` }
Predefined struct for user
type PullSmsReplyStatusByPhoneNumberResponse ¶
type PullSmsReplyStatusByPhoneNumberResponse struct { *tchttp.BaseResponse Response *PullSmsReplyStatusByPhoneNumberResponseParams `json:"Response"` }
func NewPullSmsReplyStatusByPhoneNumberResponse ¶
func NewPullSmsReplyStatusByPhoneNumberResponse() (response *PullSmsReplyStatusByPhoneNumberResponse)
func (*PullSmsReplyStatusByPhoneNumberResponse) FromJsonString ¶
func (r *PullSmsReplyStatusByPhoneNumberResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PullSmsReplyStatusByPhoneNumberResponse) ToJsonString ¶
func (r *PullSmsReplyStatusByPhoneNumberResponse) ToJsonString() string
type PullSmsReplyStatusByPhoneNumberResponseParams ¶
type PullSmsReplyStatusByPhoneNumberResponseParams struct { // Reply status response set. PullSmsReplyStatusSet []*PullSmsReplyStatus `json:"PullSmsReplyStatusSet,omitempty" name:"PullSmsReplyStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type PullSmsReplyStatusRequest ¶
type PullSmsReplyStatusRequest struct { *tchttp.BaseRequest // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` }
func NewPullSmsReplyStatusRequest ¶
func NewPullSmsReplyStatusRequest() (request *PullSmsReplyStatusRequest)
func (*PullSmsReplyStatusRequest) FromJsonString ¶
func (r *PullSmsReplyStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PullSmsReplyStatusRequest) ToJsonString ¶
func (r *PullSmsReplyStatusRequest) ToJsonString() string
type PullSmsReplyStatusRequestParams ¶
type PullSmsReplyStatusRequestParams struct { // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` }
Predefined struct for user
type PullSmsReplyStatusResponse ¶
type PullSmsReplyStatusResponse struct { *tchttp.BaseResponse Response *PullSmsReplyStatusResponseParams `json:"Response"` }
func NewPullSmsReplyStatusResponse ¶
func NewPullSmsReplyStatusResponse() (response *PullSmsReplyStatusResponse)
func (*PullSmsReplyStatusResponse) FromJsonString ¶
func (r *PullSmsReplyStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PullSmsReplyStatusResponse) ToJsonString ¶
func (r *PullSmsReplyStatusResponse) ToJsonString() string
type PullSmsReplyStatusResponseParams ¶
type PullSmsReplyStatusResponseParams struct { // Reply status response set. PullSmsReplyStatusSet []*PullSmsReplyStatus `json:"PullSmsReplyStatusSet,omitempty" name:"PullSmsReplyStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type PullSmsSendStatus ¶
type PullSmsSendStatus struct { // Actual time of SMS receipt by user in seconds in the format of UNIX timestamp. UserReceiveTime *uint64 `json:"UserReceiveTime,omitempty" name:"UserReceiveTime"` // Country (or region) code. CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"` // User's mobile number in a common format such as 13711112222. SubscriberNumber *string `json:"SubscriberNumber,omitempty" name:"SubscriberNumber"` // Mobile number in the E.164 standard (+[country/region code][mobile number]), such as +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"` // ID of the current delivery. SerialNo *string `json:"SerialNo,omitempty" name:"SerialNo"` // Whether the SMS message is actually received. Valid values: SUCCESS (success), FAIL (failure). ReportStatus *string `json:"ReportStatus,omitempty" name:"ReportStatus"` // Description of SMS receipt by user. Description *string `json:"Description,omitempty" name:"Description"` // User session content, which is the same as the `SessionContext` in the request and is empty by default. If you need to activate it, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). // Note: This field may return null, indicating that no valid values can be obtained. SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` }
type PullSmsSendStatusByPhoneNumberRequest ¶
type PullSmsSendStatusByPhoneNumberRequest struct { *tchttp.BaseRequest // Pull start time in seconds in the format of UNIX timestamp. // Note: the data for the last 7 days can be pulled at most. BeginTime *uint64 `json:"BeginTime,omitempty" name:"BeginTime"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Target mobile number in the E.164 standard (+[country/region code][mobile number]), such as +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Pull end time in seconds in the format of UNIX timestamp. EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` }
func NewPullSmsSendStatusByPhoneNumberRequest ¶
func NewPullSmsSendStatusByPhoneNumberRequest() (request *PullSmsSendStatusByPhoneNumberRequest)
func (*PullSmsSendStatusByPhoneNumberRequest) FromJsonString ¶
func (r *PullSmsSendStatusByPhoneNumberRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PullSmsSendStatusByPhoneNumberRequest) ToJsonString ¶
func (r *PullSmsSendStatusByPhoneNumberRequest) ToJsonString() string
type PullSmsSendStatusByPhoneNumberRequestParams ¶
type PullSmsSendStatusByPhoneNumberRequestParams struct { // Pull start time in seconds in the format of UNIX timestamp. // Note: the data for the last 7 days can be pulled at most. BeginTime *uint64 `json:"BeginTime,omitempty" name:"BeginTime"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Target mobile number in the E.164 standard (+[country/region code][mobile number]), such as +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Pull end time in seconds in the format of UNIX timestamp. EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` }
Predefined struct for user
type PullSmsSendStatusByPhoneNumberResponse ¶
type PullSmsSendStatusByPhoneNumberResponse struct { *tchttp.BaseResponse Response *PullSmsSendStatusByPhoneNumberResponseParams `json:"Response"` }
func NewPullSmsSendStatusByPhoneNumberResponse ¶
func NewPullSmsSendStatusByPhoneNumberResponse() (response *PullSmsSendStatusByPhoneNumberResponse)
func (*PullSmsSendStatusByPhoneNumberResponse) FromJsonString ¶
func (r *PullSmsSendStatusByPhoneNumberResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PullSmsSendStatusByPhoneNumberResponse) ToJsonString ¶
func (r *PullSmsSendStatusByPhoneNumberResponse) ToJsonString() string
type PullSmsSendStatusByPhoneNumberResponseParams ¶
type PullSmsSendStatusByPhoneNumberResponseParams struct { // Delivery status response set. PullSmsSendStatusSet []*PullSmsSendStatus `json:"PullSmsSendStatusSet,omitempty" name:"PullSmsSendStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type PullSmsSendStatusRequest ¶
type PullSmsSendStatusRequest struct { *tchttp.BaseRequest // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` }
func NewPullSmsSendStatusRequest ¶
func NewPullSmsSendStatusRequest() (request *PullSmsSendStatusRequest)
func (*PullSmsSendStatusRequest) FromJsonString ¶
func (r *PullSmsSendStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PullSmsSendStatusRequest) ToJsonString ¶
func (r *PullSmsSendStatusRequest) ToJsonString() string
type PullSmsSendStatusRequestParams ¶
type PullSmsSendStatusRequestParams struct { // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` }
Predefined struct for user
type PullSmsSendStatusResponse ¶
type PullSmsSendStatusResponse struct { *tchttp.BaseResponse Response *PullSmsSendStatusResponseParams `json:"Response"` }
func NewPullSmsSendStatusResponse ¶
func NewPullSmsSendStatusResponse() (response *PullSmsSendStatusResponse)
func (*PullSmsSendStatusResponse) FromJsonString ¶
func (r *PullSmsSendStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PullSmsSendStatusResponse) ToJsonString ¶
func (r *PullSmsSendStatusResponse) ToJsonString() string
type PullSmsSendStatusResponseParams ¶
type PullSmsSendStatusResponseParams struct { // Delivery status response set. PullSmsSendStatusSet []*PullSmsSendStatus `json:"PullSmsSendStatusSet,omitempty" name:"PullSmsSendStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ReportConversionRequest ¶
type ReportConversionRequest struct { *tchttp.BaseRequest // The SMS SdkAppId generated after an application is created in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as “1400006666”. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // The serial number returned for a message sent. SerialNo *string `json:"SerialNo,omitempty" name:"SerialNo"` // The recipient’s reply time in seconds in the format of UNIX timestamp. ConversionTime *uint64 `json:"ConversionTime,omitempty" name:"ConversionTime"` }
func NewReportConversionRequest ¶
func NewReportConversionRequest() (request *ReportConversionRequest)
func (*ReportConversionRequest) FromJsonString ¶
func (r *ReportConversionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReportConversionRequest) ToJsonString ¶
func (r *ReportConversionRequest) ToJsonString() string
type ReportConversionRequestParams ¶
type ReportConversionRequestParams struct { // The SMS SdkAppId generated after an application is created in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as “1400006666”. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // The serial number returned for a message sent. SerialNo *string `json:"SerialNo,omitempty" name:"SerialNo"` // The recipient’s reply time in seconds in the format of UNIX timestamp. ConversionTime *uint64 `json:"ConversionTime,omitempty" name:"ConversionTime"` }
Predefined struct for user
type ReportConversionResponse ¶
type ReportConversionResponse struct { *tchttp.BaseResponse Response *ReportConversionResponseParams `json:"Response"` }
func NewReportConversionResponse ¶
func NewReportConversionResponse() (response *ReportConversionResponse)
func (*ReportConversionResponse) FromJsonString ¶
func (r *ReportConversionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReportConversionResponse) ToJsonString ¶
func (r *ReportConversionResponse) ToJsonString() string
type ReportConversionResponseParams ¶
type ReportConversionResponseParams struct { // Response packet for conversion rate reporting. ReportConversionStatus *ReportConversionStatus `json:"ReportConversionStatus,omitempty" name:"ReportConversionStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ReportConversionStatus ¶
type SendSmsRequest ¶
type SendSmsRequest struct { *tchttp.BaseRequest // Target mobile number in the E.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Chinese mainland mobile numbers or all global mobile numbers). // For example, +60198890000, which has a + sign followed by 60 (country/region code) and then by 198890000 (mobile number). PhoneNumberSet []*string `json:"PhoneNumberSet,omitempty" name:"PhoneNumberSet"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Template ID, which can be viewed on the **Body Templates** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-template). You must enter the ID of an approved template. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // SMS signature information which is encoded in UTF-8. You must enter an approved signature (such as Tencent Cloud). The signing information can be viewed on the **Signatures** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-sign). SignName *string `json:"SignName,omitempty" name:"SignName"` // Template parameter. If there is no template parameter, leave this field empty. // <dx-alert infotype="notice" title="Note">The number of template parameters should be consistent with that of the template variables of `TemplateId`.</dx-alert> TemplateParamSet []*string `json:"TemplateParamSet,omitempty" name:"TemplateParamSet"` // SMS code number extension, which is not activated by default. If you need to activate it, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). ExtendCode *string `json:"ExtendCode,omitempty" name:"ExtendCode"` // User session content, which can carry context information such as user-side ID and will be returned as-is by the server. SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` // For Global SMS, if you have applied for a separate `SenderId`, this parameter is required. By default, the public `SenderId` is used, in which case you don't need to enter this parameter. // Note: If your monthly usage reaches the specified threshold, you can apply for an independent `SenderId`. For more information, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). SenderId *string `json:"SenderId,omitempty" name:"SenderId"` }
func NewSendSmsRequest ¶
func NewSendSmsRequest() (request *SendSmsRequest)
func (*SendSmsRequest) FromJsonString ¶
func (r *SendSmsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendSmsRequest) ToJsonString ¶
func (r *SendSmsRequest) ToJsonString() string
type SendSmsRequestParams ¶
type SendSmsRequestParams struct { // Target mobile number in the E.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Chinese mainland mobile numbers or all global mobile numbers). // For example, +60198890000, which has a + sign followed by 60 (country/region code) and then by 198890000 (mobile number). PhoneNumberSet []*string `json:"PhoneNumberSet,omitempty" name:"PhoneNumberSet"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Template ID, which can be viewed on the **Body Templates** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-template). You must enter the ID of an approved template. TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` // SMS signature information which is encoded in UTF-8. You must enter an approved signature (such as Tencent Cloud). The signing information can be viewed on the **Signatures** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-sign). SignName *string `json:"SignName,omitempty" name:"SignName"` // Template parameter. If there is no template parameter, leave this field empty. // <dx-alert infotype="notice" title="Note">The number of template parameters should be consistent with that of the template variables of `TemplateId`.</dx-alert> TemplateParamSet []*string `json:"TemplateParamSet,omitempty" name:"TemplateParamSet"` // SMS code number extension, which is not activated by default. If you need to activate it, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). ExtendCode *string `json:"ExtendCode,omitempty" name:"ExtendCode"` // User session content, which can carry context information such as user-side ID and will be returned as-is by the server. SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` // For Global SMS, if you have applied for a separate `SenderId`, this parameter is required. By default, the public `SenderId` is used, in which case you don't need to enter this parameter. // Note: If your monthly usage reaches the specified threshold, you can apply for an independent `SenderId`. For more information, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81). SenderId *string `json:"SenderId,omitempty" name:"SenderId"` }
Predefined struct for user
type SendSmsResponse ¶
type SendSmsResponse struct { *tchttp.BaseResponse Response *SendSmsResponseParams `json:"Response"` }
func NewSendSmsResponse ¶
func NewSendSmsResponse() (response *SendSmsResponse)
func (*SendSmsResponse) FromJsonString ¶
func (r *SendSmsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendSmsResponse) ToJsonString ¶
func (r *SendSmsResponse) ToJsonString() string
type SendSmsResponseParams ¶
type SendSmsResponseParams struct { // SMS delivery status. SendStatusSet []*SendStatus `json:"SendStatusSet,omitempty" name:"SendStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type SendStatus ¶
type SendStatus struct { // Delivery serial number. SerialNo *string `json:"SerialNo,omitempty" name:"SerialNo"` // Mobile number in the E.164 standard (+[country/region code][mobile number]), such as +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"` // Number of billable SMS messages. For billing rules, see Billing Policy. Fee *uint64 `json:"Fee,omitempty" name:"Fee"` // User session content. SessionContext *string `json:"SessionContext,omitempty" name:"SessionContext"` // SMS request error code. For specific meanings, see [Error Codes](https://intl.cloud.tencent.com/zh/document/product/382/40536#6.-error-code). `Ok` will be returned for successful delivery. Code *string `json:"Code,omitempty" name:"Code"` // SMS request error message. Message *string `json:"Message,omitempty" name:"Message"` // Country/Region code, such as CN and US. For unrecognized country/region codes, `DEF` is returned by default. For the specific list of supported values, please see [Global SMS Price Overview](https://intl.cloud.tencent.com/document/product/382/18051?from_cn_redirect=1). IsoCode *string `json:"IsoCode,omitempty" name:"IsoCode"` }
type SendStatusStatistics ¶
type SendStatusStatistics struct { // Billable SMS message quantity; for example, in 100 successfully submitted SMS messages, if 20 ones are long messages (over 80 characters) and split into two messages each, then the billable quantity will be 80 * 1 + 20 * 2 = 120. FeeCount *uint64 `json:"FeeCount,omitempty" name:"FeeCount"` // Submitted SMS messages. RequestCount *uint64 `json:"RequestCount,omitempty" name:"RequestCount"` // Successfully submitted SMS messages. RequestSuccessCount *uint64 `json:"RequestSuccessCount,omitempty" name:"RequestSuccessCount"` }
type SendStatusStatisticsRequest ¶
type SendStatusStatisticsRequest struct { *tchttp.BaseRequest // Start time in the format of `yyyymmddhh` accurate to the hour, such as 2021050113 (13:00 on May 1, 2021). BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time in the format of `yyyymmddhh` accurate to the hour, such as 2021050118 (18:00 on May 1, 2021). // Note: `EndTime` must be after `BeginTime`. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Upper limit. // Note: this parameter is currently fixed at 0. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
func NewSendStatusStatisticsRequest ¶
func NewSendStatusStatisticsRequest() (request *SendStatusStatisticsRequest)
func (*SendStatusStatisticsRequest) FromJsonString ¶
func (r *SendStatusStatisticsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendStatusStatisticsRequest) ToJsonString ¶
func (r *SendStatusStatisticsRequest) ToJsonString() string
type SendStatusStatisticsRequestParams ¶
type SendStatusStatisticsRequestParams struct { // Start time in the format of `yyyymmddhh` accurate to the hour, such as 2021050113 (13:00 on May 1, 2021). BeginTime *string `json:"BeginTime,omitempty" name:"BeginTime"` // End time in the format of `yyyymmddhh` accurate to the hour, such as 2021050118 (18:00 on May 1, 2021). // Note: `EndTime` must be after `BeginTime`. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666. SmsSdkAppId *string `json:"SmsSdkAppId,omitempty" name:"SmsSdkAppId"` // Upper limit. // Note: this parameter is currently fixed at 0. Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` }
Predefined struct for user
type SendStatusStatisticsResponse ¶
type SendStatusStatisticsResponse struct { *tchttp.BaseResponse Response *SendStatusStatisticsResponseParams `json:"Response"` }
func NewSendStatusStatisticsResponse ¶
func NewSendStatusStatisticsResponse() (response *SendStatusStatisticsResponse)
func (*SendStatusStatisticsResponse) FromJsonString ¶
func (r *SendStatusStatisticsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*SendStatusStatisticsResponse) ToJsonString ¶
func (r *SendStatusStatisticsResponse) ToJsonString() string
type SendStatusStatisticsResponseParams ¶
type SendStatusStatisticsResponseParams struct { // Delivery statistics response body. SendStatusStatistics *SendStatusStatistics `json:"SendStatusStatistics,omitempty" name:"SendStatusStatistics"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user