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) 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) 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)
- func (c *Client) SmsPackagesStatistics(request *SmsPackagesStatisticsRequest) (response *SmsPackagesStatisticsResponse, err error)
- func (c *Client) SmsPackagesStatisticsWithContext(ctx context.Context, request *SmsPackagesStatisticsRequest) (response *SmsPackagesStatisticsResponse, err error)
- type DeleteSignStatus
- type DeleteSmsSignRequest
- type DeleteSmsSignRequestParams
- type DeleteSmsSignResponse
- type DeleteSmsSignResponseParams
- type DeleteSmsTemplateRequest
- type DeleteSmsTemplateRequestParams
- type DeleteSmsTemplateResponse
- type DeleteSmsTemplateResponseParams
- type DeleteTemplateStatus
- 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 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 SendSmsRequest
- type SendSmsRequestParams
- type SendSmsResponse
- type SendSmsResponseParams
- type SendStatus
- type SendStatusStatistics
- type SendStatusStatisticsRequest
- type SendStatusStatisticsRequestParams
- type SendStatusStatisticsResponse
- type SendStatusStatisticsResponseParams
- type SmsPackagesStatistics
- type SmsPackagesStatisticsRequest
- type SmsPackagesStatisticsRequestParams
- type SmsPackagesStatisticsResponse
- type SmsPackagesStatisticsResponseParams
Constants ¶
const ( // The SMS message contains sensitive words. Please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1) for assistance. FAILEDOPERATION_CONTAINSENSITIVEWORD = "FailedOperation.ContainSensitiveWord" // Failed to parse the request packet. Generally, 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.9E1014.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" // The package balance is insufficient. Please [purchase a package](https://buy.cloud.tencent.com/sms). FAILEDOPERATION_INSUFFICIENTBALANCEINSMSPACKAGE = "FailedOperation.InsufficientBalanceInSmsPackage" // Failed to parse the request packet. 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" // 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" // 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. Generally, this is because that the carried parameter is non-compliant. For more information, please see the API description. If necessary, 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. FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError" // The mobile number is in the blocklist. Generally, this is because that the recipient has unsubscribed or the carrier's blocklist was hit. 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_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist" // The mobile number is in the blocklist. Usually, this is because that the user unsubscribed or the carrier's blocklist was hit. 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_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" // The signature is in incorrect format or has not been approved. A signature can only contain 2-12 letters and digits. If the signature format is correct, please check whether it has been approved. FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved" // This template has been approved and cannot be modified again. FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck" // The template content has not been approved or does not match the content of the approved template. Please see [Detailed Explanation of Error 1014](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). FAILEDOPERATION_TEMPLATEINCORRECTORUNAPPROVED = "FailedOperation.TemplateIncorrectOrUnapproved" // Other error. 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) and provide the failed mobile number for assistance. INTERNALERROR_OTHERERROR = "InternalError.OtherError" // The request was initiated in an exceptional time. Generally, 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" // INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail" // The request packet in the backend packet does not have a `Sig` field or the `Sig` field is empty. INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing" // `Sig` check on backend 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" // Invalid parameter. INVALIDPARAMETER = "InvalidParameter" // The account does not match the application ID. INVALIDPARAMETER_APPIDANDBIZID = "InvalidParameter.AppidAndBizId" // Incorrect `International` or `SmsType` parameter. If necessary, 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. INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters" // 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" // The format of the uploaded transcoded image is incorrect. Please see the description of this field in the API description. If necessary, 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. INVALIDPARAMETERVALUE_IMAGEINVALID = "InvalidParameterValue.ImageInvalid" // The format of the mobile number is incorrect. Please see [Detailed Explanation of Error 1016](https://intl.cloud.tencent.com/document/product/382/9558?from_cn_redirect=1#.E8.BF.94.E5.9B.9E1016.E9.94.99.E8.AF.AF.E5.A6.82.E4.BD.95.E5.A4.84.E7.90.86.EF.BC.9F). INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" // `DocumentType` field check failed. Please see the description of this field in the API description. If necessary, 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. INVALIDPARAMETERVALUE_INVALIDDOCUMENTTYPE = "InvalidParameterValue.InvalidDocumentType" // `International` field check failed. Please see the description of this field in the API description. If necessary, 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. INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational" // Invalid start time or end time. The reason may be that the requested SendDateTime is later than EndDateTime. INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime" // `UsedMethod` field check failed. Please see the description of this field in the API description. If necessary, 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. INVALIDPARAMETERVALUE_INVALIDUSEDMETHOD = "InvalidParameterValue.InvalidUsedMethod" // Unable to identify the signature. Generally, this is because that the signature has not been approved. Please check whether the signature has been approved. For more information, please see [Signature Review](https://intl.cloud.tencent.com/document/product/382/37745?from_cn_redirect=1#.E6.AD.A5.E9.AA.A43.EF.BC.9A.E7.AD.89.E5.BE.85.E5.AE.A1.E6.A0.B8). INVALIDPARAMETERVALUE_MISSINGSIGNATURELIST = "InvalidParameterValue.MissingSignatureList" // 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 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 number of SMS messages delivered on the current day exceeds the set upper limit. You can adjust the SMS frequency limit policy in the console. LIMITEXCEEDED_APPDAILYLIMIT = "LimitExceeded.AppDailyLimit" // 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, please 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 hit the frequency limit policy. You can adjust the policy in the console. If you have other requirements, 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. LIMITEXCEEDED_DELIVERYFREQUENCYLIMIT = "LimitExceeded.DeliveryFrequencyLimit" // There are more than 200 mobile numbers submitted in a single call of the SMS delivery API. Please follow the requirements in [API Description](https://intl.cloud.tencent.com/document/product/382/38778?from_cn_redirect=1). 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 frequency 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 frequency 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 frequency 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 frequency limit policy in the console LIMITEXCEEDED_PHONENUMBERTHIRTYSECONDLIMIT = "LimitExceeded.PhoneNumberThirtySecondLimit" // Missing parameter. 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 [here](https://intl.cloud.tencent.com/document/product/382/13444?from_cn_redirect=1). UNAUTHORIZEDOPERATION_INDIVIDUALUSERMARKETINGSMSPERMISSIONDENY = "UnauthorizedOperation.IndividualUserMarketingSmsPermissionDeny" // The requesting IP is not in the whitelist. You have configured verification of request source IP, but the current requesting IP is not in the configured whitelist. If necessary, 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. UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" // You do not have permission to make the request. 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. UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" // This `sdkappid` is forbidden to provide services. If necessary, 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. UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" // The service has been suspended due to arrears. You can log in to Tencent Cloud to top up your account. UNAUTHORIZEDOPERATION_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" // `SmsSdkAppid` check failed. UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppidVerifyFail" // This request is not supported. UNSUPPORTEDOPERATION_ = "UnsupportedOperation." // The bulk SMS request contains both Mainland China and global mobile numbers. UNSUPPORTEDOPERATION_CONTAINDOMESTICANDINTERNATIONALPHONENUMBER = "UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber" // SMS delivery to this region is not supported. UNSUPPORTEDOPERATION_UNSUPORTEDREGION = "UnsupportedOperation.UnsuportedRegion" )
const APIVersion = "2019-07-11"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSignStatus ¶
type AddSmsSignRequest ¶
type AddSmsSignRequest struct { *tchttp.BaseRequest // Signature name. SignName *string `json:"SignName,omitnil" name:"SignName"` // Signature type. Each of these types is followed by their `DocumentType` (identity document type) option: // 0: company (0, 1, 2, 3). // 1: app (0, 1, 2, 3, 4). // 2: website (0, 1, 2, 3, 5). // 3: WeChat Official Account or WeChat Mini Program (0, 1, 2, 3, 6). // 4: trademark (7). // 5: governmental/public institution or others (2, 3). // Note: the identity document type must be selected according to the correspondence; otherwise, the review will fail. SignType *uint64 `json:"SignType,omitnil" name:"SignType"` // Identity document type: // 0: 3-in-1 license. // 1: business license. // 2: organization code certificate. // 3: certificate of unified social credit code. // 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. DocumentType *uint64 `json:"DocumentType,omitnil" name:"DocumentType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` // Signature use: // 0: for self-use. // 1: for others. UsedMethod *uint64 `json:"UsedMethod,omitnil" name:"UsedMethod"` // You should Base64-encode the image of the identity document 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,omitnil" name:"ProofImage"` // Authorization letter, which should be submitted if `UsedMethod` is for 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 `UsedMethod` is 1 (for others). CommissionImage *string `json:"CommissionImage,omitnil" name:"CommissionImage"` // Signature application remarks. Remark *string `json:"Remark,omitnil" 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. SignName *string `json:"SignName,omitnil" name:"SignName"` // Signature type. Each of these types is followed by their `DocumentType` (identity document type) option: // 0: company (0, 1, 2, 3). // 1: app (0, 1, 2, 3, 4). // 2: website (0, 1, 2, 3, 5). // 3: WeChat Official Account or WeChat Mini Program (0, 1, 2, 3, 6). // 4: trademark (7). // 5: governmental/public institution or others (2, 3). // Note: the identity document type must be selected according to the correspondence; otherwise, the review will fail. SignType *uint64 `json:"SignType,omitnil" name:"SignType"` // Identity document type: // 0: 3-in-1 license. // 1: business license. // 2: organization code certificate. // 3: certificate of unified social credit code. // 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. DocumentType *uint64 `json:"DocumentType,omitnil" name:"DocumentType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` // Signature use: // 0: for self-use. // 1: for others. UsedMethod *uint64 `json:"UsedMethod,omitnil" name:"UsedMethod"` // You should Base64-encode the image of the identity document 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,omitnil" name:"ProofImage"` // Authorization letter, which should be submitted if `UsedMethod` is for 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 `UsedMethod` is 1 (for others). CommissionImage *string `json:"CommissionImage,omitnil" name:"CommissionImage"` // Signature application remarks. Remark *string `json:"Remark,omitnil" 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,omitnil" name:"AddSignStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AddSmsTemplateRequest ¶
type AddSmsTemplateRequest struct { *tchttp.BaseRequest // Template name. TemplateName *string `json:"TemplateName,omitnil" name:"TemplateName"` // Template content. TemplateContent *string `json:"TemplateContent,omitnil" name:"TemplateContent"` // SMS type. 0: ordinary SMS, 1: marketing SMS. SmsType *uint64 `json:"SmsType,omitnil" name:"SmsType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` // Template remarks, such as reason for application and use case. Remark *string `json:"Remark,omitnil" 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,omitnil" name:"TemplateName"` // Template content. TemplateContent *string `json:"TemplateContent,omitnil" name:"TemplateContent"` // SMS type. 0: ordinary SMS, 1: marketing SMS. SmsType *uint64 `json:"SmsType,omitnil" name:"SmsType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` // Template remarks, such as reason for application and use case. Remark *string `json:"Remark,omitnil" 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 packet body AddTemplateStatus *AddTemplateStatus `json:"AddTemplateStatus,omitnil" name:"AddTemplateStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AddTemplateStatus ¶
type AddTemplateStatus struct { // Template parameter TemplateId *string `json:"TemplateId,omitnil" name:"TemplateId"` }
type CallbackStatusStatistics ¶
type CallbackStatusStatistics struct { // SMS receipts. CallbackCount *uint64 `json:"CallbackCount,omitnil" name:"CallbackCount"` // Successfully submitted SMS messages. RequestSuccessCount *uint64 `json:"RequestSuccessCount,omitnil" name:"RequestSuccessCount"` // Failed SMS receipts. CallbackFailCount *uint64 `json:"CallbackFailCount,omitnil" name:"CallbackFailCount"` // Successful SMS receipts. CallbackSuccessCount *uint64 `json:"CallbackSuccessCount,omitnil" name:"CallbackSuccessCount"` // Internal carrier errors. InternalErrorCount *uint64 `json:"InternalErrorCount,omitnil" name:"InternalErrorCount"` // Invalid or empty mobile numbers. InvalidNumberCount *uint64 `json:"InvalidNumberCount,omitnil" name:"InvalidNumberCount"` // Errors such as out-of-service or power-off. ShutdownErrorCount *uint64 `json:"ShutdownErrorCount,omitnil" name:"ShutdownErrorCount"` // Blacklisted mobile numbers. BlackListCount *uint64 `json:"BlackListCount,omitnil" name:"BlackListCount"` // Carrier frequency limit hits. FrequencyLimitCount *uint64 `json:"FrequencyLimitCount,omitnil" name:"FrequencyLimitCount"` }
type CallbackStatusStatisticsRequest ¶
type CallbackStatusStatisticsRequest struct { *tchttp.BaseRequest // Start time of pull in the format of `yyyymmddhh` accurate to the hour. StartDateTime *uint64 `json:"StartDateTime,omitnil" name:"StartDateTime"` // End time of pull in the format of `yyyymmddhh` accurate to the hour. // Note: `EndDataTime` must be later than `StartDateTime`. EndDataTime *uint64 `json:"EndDataTime,omitnil" name:"EndDataTime"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Upper limit. // Note: this parameter is currently fixed at 0. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" 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 of pull in the format of `yyyymmddhh` accurate to the hour. StartDateTime *uint64 `json:"StartDateTime,omitnil" name:"StartDateTime"` // End time of pull in the format of `yyyymmddhh` accurate to the hour. // Note: `EndDataTime` must be later than `StartDateTime`. EndDataTime *uint64 `json:"EndDataTime,omitnil" name:"EndDataTime"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Upper limit. // Note: this parameter is currently fixed at 0. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" 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 packet body. CallbackStatusStatistics *CallbackStatusStatistics `json:"CallbackStatusStatistics,omitnil" name:"CallbackStatusStatistics"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" 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 This API is used to add an SMS signature. Please read the [Tencent Cloud SMS Signature Review Standards](https://intl.cloud.tencent.com/document/product/382/39022?from_cn_redirect=1) before starting an application.
> Note: individual users cannot use this API to apply for 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, please log in to the console to apply for SMS signatures. For detailed directions, please see [Creating SMS Signatures](https://intl.cloud.tencent.com/document/product/382/36136?from_cn_redirect=1#Sign).
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification" FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError" 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" 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 This API is used to add an SMS signature. Please read the [Tencent Cloud SMS Signature Review Standards](https://intl.cloud.tencent.com/document/product/382/39022?from_cn_redirect=1) before starting an application.
> Note: individual users cannot use this API to apply for 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, please log in to the console to apply for SMS signatures. For detailed directions, please see [Creating SMS Signatures](https://intl.cloud.tencent.com/document/product/382/36136?from_cn_redirect=1#Sign).
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification" FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError" 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" 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 This API is used to add an SMS 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 starting an application.
> Note: individual users cannot use this API to apply for 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, please log in to the console to apply for SMS body templates. For detailed directions, please see [Creating SMS Body Templates](https://intl.cloud.tencent.com/document/product/382/36136?from_cn_redirect=1#Template).
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_MISSINGSIGNATURE = "FailedOperation.MissingSignature" FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify" FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification" FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError" FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck" 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_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters" INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational" 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 This API is used to add an SMS 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 starting an application.
> Note: individual users cannot use this API to apply for 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, please log in to the console to apply for SMS body templates. For detailed directions, please see [Creating SMS Body Templates](https://intl.cloud.tencent.com/document/product/382/36136?from_cn_redirect=1#Template).
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_MISSINGSIGNATURE = "FailedOperation.MissingSignature" FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify" FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification" FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError" FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck" 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_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters" INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational" 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.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" 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) 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.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" 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) 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). You can log in to the console to delete SMS signatures. For detailed directions, please see the notes on deleting SMS signatures in [SMS Signature Operations](https://intl.cloud.tencent.com/document/product/382/36136?from_cn_redirect=1#Sign).
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" 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). You can log in to the console to delete SMS signatures. For detailed directions, please see the notes on deleting SMS signatures in [SMS Signature Operations](https://intl.cloud.tencent.com/document/product/382/36136?from_cn_redirect=1#Sign).
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" 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. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). You can log in to the console to delete SMS body templates. For detailed directions, please see the notes on deleting SMS body templates in [SMS Body Template Operations](https://intl.cloud.tencent.com/document/product/382/36136?from_cn_redirect=1#Template).
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" 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. For more information, please see [Identity Verification Overview](https://intl.cloud.tencent.com/document/product/378/3629?from_cn_redirect=1). You can log in to the console to delete SMS body templates. For detailed directions, please see the notes on deleting SMS body templates in [SMS Body Template Operations](https://intl.cloud.tencent.com/document/product/382/36136?from_cn_redirect=1#Template).
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" 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) 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).
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" 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) 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).
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" 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) 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).
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" 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) 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).
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" 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) ModifySmsSign ¶
func (c *Client) ModifySmsSign(request *ModifySmsSignRequest) (response *ModifySmsSignResponse, err error)
ModifySmsSign This API is used to modify an SMS signature. Please read the [Tencent Cloud SMS Signature Review Standards](https://intl.cloud.tencent.com/document/product/382/39022?from_cn_redirect=1) before making a modification.
>- Note: individual users cannot use this API to modify 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 to modify SMS signatures.
>- Modifications can be made only if the signature status is **pending review** or **rejected**. **Approved** signatures cannot be modified.
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_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck" 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_INVALIDUSEDMETHOD = "InvalidParameterValue.InvalidUsedMethod" INVALIDPARAMETERVALUE_MISSINGSIGNATURELIST = "InvalidParameterValue.MissingSignatureList" INVALIDPARAMETERVALUE_SIGNALREADYPASSEDCHECK = "InvalidParameterValue.SignAlreadyPassedCheck" 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 This API is used to modify an SMS signature. Please read the [Tencent Cloud SMS Signature Review Standards](https://intl.cloud.tencent.com/document/product/382/39022?from_cn_redirect=1) before making a modification.
>- Note: individual users cannot use this API to modify 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 to modify SMS signatures.
>- Modifications can be made only if the signature status is **pending review** or **rejected**. **Approved** signatures cannot be modified.
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_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck" 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_INVALIDUSEDMETHOD = "InvalidParameterValue.InvalidUsedMethod" INVALIDPARAMETERVALUE_MISSINGSIGNATURELIST = "InvalidParameterValue.MissingSignatureList" INVALIDPARAMETERVALUE_SIGNALREADYPASSEDCHECK = "InvalidParameterValue.SignAlreadyPassedCheck" 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 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.
>- 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 to modify SMS body templates.
>- Modifications can be made only if the body template status is **pending review** or **rejected**. **Approved** body templates cannot be modified.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify" FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification" FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError" FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters" INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational" 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 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.
>- 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 to modify SMS body templates.
>- Modifications can be made only if the body template status is **pending review** or **rejected**. **Approved** body templates cannot be modified.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_MISSINGTEMPLATETOMODIFY = "FailedOperation.MissingTemplateToModify" FAILEDOPERATION_NOTENTERPRISECERTIFICATION = "FailedOperation.NotEnterpriseCertification" FAILEDOPERATION_OTHERERROR = "FailedOperation.OtherError" FAILEDOPERATION_TEMPLATEALREADYPASSEDCHECK = "FailedOperation.TemplateAlreadyPassedCheck" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER_INVALIDPARAMETERS = "InvalidParameter.InvalidParameters" INVALIDPARAMETERVALUE_INVALIDINTERNATIONAL = "InvalidParameterValue.InvalidInternational" 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.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" 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.
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_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_TIMEOUT = "InternalError.Timeout" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime" INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" UNAUTHORIZEDOPERATION_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.
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_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_TIMEOUT = "InternalError.Timeout" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" INVALIDPARAMETERVALUE_INVALIDSTARTTIME = "InvalidParameterValue.InvalidStartTime" INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" UNAUTHORIZEDOPERATION_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.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" 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.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" 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.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" 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_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.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" 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_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.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERONBLACKLIST = "FailedOperation.PhoneNumberOnBlacklist" 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) 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.
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" 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_APPDAILYLIMIT = "LimitExceeded.AppDailyLimit" 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_CONTAINDOMESTICANDINTERNATIONALPHONENUMBER = "UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber" 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.
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" 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_APPDAILYLIMIT = "LimitExceeded.AppDailyLimit" 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_CONTAINDOMESTICANDINTERNATIONALPHONENUMBER = "UnsupportedOperation.ContainDomesticAndInternationalPhoneNumber" 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 sent by users.
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_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) SendStatusStatisticsWithContext ¶
func (c *Client) SendStatusStatisticsWithContext(ctx context.Context, request *SendStatusStatisticsRequest) (response *SendStatusStatisticsResponse, err error)
SendStatusStatistics This API is used to collect statistics on SMS sent by users.
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_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) SmsPackagesStatistics ¶
func (c *Client) SmsPackagesStatistics(request *SmsPackagesStatisticsRequest) (response *SmsPackagesStatisticsResponse, err error)
SmsPackagesStatistics This API is used to collect statistics on user's packages.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist" FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail" INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_TIMEOUT = "InternalError.Timeout" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" UNAUTHORIZEDOPERATION_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppidVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
func (*Client) SmsPackagesStatisticsWithContext ¶
func (c *Client) SmsPackagesStatisticsWithContext(ctx context.Context, request *SmsPackagesStatisticsRequest) (response *SmsPackagesStatisticsResponse, err error)
SmsPackagesStatistics This API is used to collect statistics on user's packages.
error code that may be returned:
FAILEDOPERATION_FAILRESOLVEPACKET = "FailedOperation.FailResolvePacket" FAILEDOPERATION_JSONPARSEFAIL = "FailedOperation.JsonParseFail" FAILEDOPERATION_PHONENUMBERINBLACKLIST = "FailedOperation.PhoneNumberInBlacklist" FAILEDOPERATION_SIGNATUREINCORRECTORUNAPPROVED = "FailedOperation.SignatureIncorrectOrUnapproved" INTERNALERROR_OTHERERROR = "InternalError.OtherError" INTERNALERROR_REQUESTTIMEEXCEPTION = "InternalError.RequestTimeException" INTERNALERROR_RESTAPIINTERFACENOTEXIST = "InternalError.RestApiInterfaceNotExist" INTERNALERROR_SENDANDRECVFAIL = "InternalError.SendAndRecvFail" INTERNALERROR_SIGFIELDMISSING = "InternalError.SigFieldMissing" INTERNALERROR_SIGVERIFICATIONFAIL = "InternalError.SigVerificationFail" INTERNALERROR_TIMEOUT = "InternalError.Timeout" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE_INCORRECTPHONENUMBER = "InvalidParameterValue.IncorrectPhoneNumber" INVALIDPARAMETERVALUE_SDKAPPIDNOTEXIST = "InvalidParameterValue.SdkAppidNotExist" MISSINGPARAMETER = "MissingParameter" UNAUTHORIZEDOPERATION_REQUESTIPNOTINWHITELIST = "UnauthorizedOperation.RequestIpNotInWhitelist" UNAUTHORIZEDOPERATION_REQUESTPERMISSIONDENY = "UnauthorizedOperation.RequestPermissionDeny" UNAUTHORIZEDOPERATION_SDKAPPIDISDISABLED = "UnauthorizedOperation.SdkAppidIsDisabled" UNAUTHORIZEDOPERATION_SERIVCESUSPENDDUETOARREARS = "UnauthorizedOperation.SerivceSuspendDueToArrears" UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = "UnauthorizedOperation.SmsSdkAppidVerifyFail" UNSUPPORTEDOPERATION_ = "UnsupportedOperation."
type DeleteSignStatus ¶
type DeleteSmsSignRequest ¶
type DeleteSmsSignRequest struct { *tchttp.BaseRequest // ID of signature to be deleted. SignId *uint64 `json:"SignId,omitnil" 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 signature to be deleted. SignId *uint64 `json:"SignId,omitnil" 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,omitnil" name:"DeleteSignStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteSmsTemplateRequest ¶
type DeleteSmsTemplateRequest struct { *tchttp.BaseRequest // ID of template to be deleted. TemplateId *uint64 `json:"TemplateId,omitnil" 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 template to be deleted. TemplateId *uint64 `json:"TemplateId,omitnil" 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,omitnil" name:"DeleteTemplateStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteTemplateStatus ¶
type DescribeSignListStatus ¶
type DescribeSignListStatus struct { // Signature ID SignId *uint64 `json:"SignId,omitnil" name:"SignId"` // Whether it is Global SMS. Valid values: // 0: Mainland China SMS. // 1: Global SMS International *uint64 `json:"International,omitnil" name:"International"` // Signature application status. Valid values: // 0: approved. // -1: rejected or failed. StatusCode *int64 `json:"StatusCode,omitnil" name:"StatusCode"` // Review reply, i.e., response given by the reviewer, which is usually the reason for rejection. ReviewReply *string `json:"ReviewReply,omitnil" name:"ReviewReply"` // Signature name. SignName *string `json:"SignName,omitnil" name:"SignName"` // Application submission time in the format of UNIX timestamp in seconds. CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` }
type DescribeSmsSignListRequest ¶
type DescribeSmsSignListRequest struct { *tchttp.BaseRequest // Signature ID array. SignIdSet []*uint64 `json:"SignIdSet,omitnil" name:"SignIdSet"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" 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. SignIdSet []*uint64 `json:"SignIdSet,omitnil" name:"SignIdSet"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" 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,omitnil" name:"DescribeSignListStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeSmsTemplateListRequest ¶
type DescribeSmsTemplateListRequest struct { *tchttp.BaseRequest // Template ID array. TemplateIdSet []*uint64 `json:"TemplateIdSet,omitnil" name:"TemplateIdSet"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` }
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 { // Template ID array. TemplateIdSet []*uint64 `json:"TemplateIdSet,omitnil" name:"TemplateIdSet"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` }
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 signature information DescribeTemplateStatusSet []*DescribeTemplateListStatus `json:"DescribeTemplateStatusSet,omitnil" name:"DescribeTemplateStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeTemplateListStatus ¶
type DescribeTemplateListStatus struct { // Template ID TemplateId *uint64 `json:"TemplateId,omitnil" name:"TemplateId"` // Whether it is Global SMS. Valid values: // 0: Mainland China SMS. // 1: Global SMS International *uint64 `json:"International,omitnil" name:"International"` // Signature application status. Valid values: // 0: approved. // -1: rejected or failed. StatusCode *int64 `json:"StatusCode,omitnil" name:"StatusCode"` // Review reply, i.e., response given by the reviewer, which is usually the reason for rejection. ReviewReply *string `json:"ReviewReply,omitnil" name:"ReviewReply"` // Template name. TemplateName *string `json:"TemplateName,omitnil" name:"TemplateName"` // Application submission time in the format of UNIX timestamp in seconds. CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` }
type ModifySignStatus ¶
type ModifySmsSignRequest ¶
type ModifySmsSignRequest struct { *tchttp.BaseRequest // ID of signature to be modified. SignId *uint64 `json:"SignId,omitnil" name:"SignId"` // Signature name. SignName *string `json:"SignName,omitnil" name:"SignName"` // Signature type. Each of these types is followed by their `DocumentType` (identity document type) option: // 0: company (0, 1, 2, 3). // 1: app (0, 1, 2, 3, 4). // 2: website (0, 1, 2, 3, 5). // 3: WeChat Official Account or WeChat Mini Program (0, 1, 2, 3, 6). // 4: trademark (7). // 5: governmental/public institution or others (2, 3). // Note: the identity document type must be selected according to the correspondence; otherwise, the review will fail. SignType *uint64 `json:"SignType,omitnil" name:"SignType"` // Identity document type: // 0: 3-in-1 license. // 1: business license. // 2: organization code certificate. // 3: certificate of unified social credit code. // 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. DocumentType *uint64 `json:"DocumentType,omitnil" name:"DocumentType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` // Signature use: // 0: for self-use. // 1: for others. UsedMethod *uint64 `json:"UsedMethod,omitnil" name:"UsedMethod"` // You should Base64-encode the image of the identity document 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,omitnil" name:"ProofImage"` // Authorization letter, which should be submitted if `UsedMethod` is for 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 `UsedMethod` is 1 (for others). CommissionImage *string `json:"CommissionImage,omitnil" name:"CommissionImage"` // Signature application remarks. Remark *string `json:"Remark,omitnil" 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 signature to be modified. SignId *uint64 `json:"SignId,omitnil" name:"SignId"` // Signature name. SignName *string `json:"SignName,omitnil" name:"SignName"` // Signature type. Each of these types is followed by their `DocumentType` (identity document type) option: // 0: company (0, 1, 2, 3). // 1: app (0, 1, 2, 3, 4). // 2: website (0, 1, 2, 3, 5). // 3: WeChat Official Account or WeChat Mini Program (0, 1, 2, 3, 6). // 4: trademark (7). // 5: governmental/public institution or others (2, 3). // Note: the identity document type must be selected according to the correspondence; otherwise, the review will fail. SignType *uint64 `json:"SignType,omitnil" name:"SignType"` // Identity document type: // 0: 3-in-1 license. // 1: business license. // 2: organization code certificate. // 3: certificate of unified social credit code. // 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. DocumentType *uint64 `json:"DocumentType,omitnil" name:"DocumentType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` // Signature use: // 0: for self-use. // 1: for others. UsedMethod *uint64 `json:"UsedMethod,omitnil" name:"UsedMethod"` // You should Base64-encode the image of the identity document 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,omitnil" name:"ProofImage"` // Authorization letter, which should be submitted if `UsedMethod` is for 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 `UsedMethod` is 1 (for others). CommissionImage *string `json:"CommissionImage,omitnil" name:"CommissionImage"` // Signature application remarks. Remark *string `json:"Remark,omitnil" 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,omitnil" name:"ModifySignStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifySmsTemplateRequest ¶
type ModifySmsTemplateRequest struct { *tchttp.BaseRequest // ID of template to be modified. TemplateId *uint64 `json:"TemplateId,omitnil" name:"TemplateId"` // New template name. TemplateName *string `json:"TemplateName,omitnil" name:"TemplateName"` // New template content. TemplateContent *string `json:"TemplateContent,omitnil" name:"TemplateContent"` // SMS type. 0: ordinary SMS, 1: marketing SMS. SmsType *uint64 `json:"SmsType,omitnil" name:"SmsType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` // Template remarks, such as reason for application and use case. Remark *string `json:"Remark,omitnil" 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 template to be modified. TemplateId *uint64 `json:"TemplateId,omitnil" name:"TemplateId"` // New template name. TemplateName *string `json:"TemplateName,omitnil" name:"TemplateName"` // New template content. TemplateContent *string `json:"TemplateContent,omitnil" name:"TemplateContent"` // SMS type. 0: ordinary SMS, 1: marketing SMS. SmsType *uint64 `json:"SmsType,omitnil" name:"SmsType"` // Whether it is Global SMS: // 0: Mainland China SMS. // 1: Global SMS. International *uint64 `json:"International,omitnil" name:"International"` // Template remarks, such as reason for application and use case. Remark *string `json:"Remark,omitnil" 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,omitnil" name:"ModifyTemplateStatus"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyTemplateStatus ¶
type ModifyTemplateStatus struct { // Template parameter TemplateId *uint64 `json:"TemplateId,omitnil" name:"TemplateId"` }
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). ExtendCode *string `json:"ExtendCode,omitnil" name:"ExtendCode"` // Country (or region) code. NationCode *string `json:"NationCode,omitnil" name:"NationCode"` // 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,omitnil" name:"PhoneNumber"` // SMS signature. Sign *string `json:"Sign,omitnil" name:"Sign"` // User reply. ReplyContent *string `json:"ReplyContent,omitnil" name:"ReplyContent"` // Reply time (e.g., 2019-10-08 17:18:37). ReplyTime *string `json:"ReplyTime,omitnil" name:"ReplyTime"` // Reply time in seconds in the format of UNIX timestamp. ReplyUnixTime *uint64 `json:"ReplyUnixTime,omitnil" name:"ReplyUnixTime"` }
type PullSmsReplyStatusByPhoneNumberRequest ¶
type PullSmsReplyStatusByPhoneNumberRequest struct { *tchttp.BaseRequest // Pull start time in seconds in the format of UNIX timestamp. SendDateTime *uint64 `json:"SendDateTime,omitnil" name:"SendDateTime"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitnil" 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,omitnil" name:"PhoneNumber"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Pull end time in UNIX timestamp accurate to seconds. EndDateTime *uint64 `json:"EndDateTime,omitnil" name:"EndDateTime"` }
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. SendDateTime *uint64 `json:"SendDateTime,omitnil" name:"SendDateTime"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitnil" 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,omitnil" name:"PhoneNumber"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Pull end time in UNIX timestamp accurate to seconds. EndDateTime *uint64 `json:"EndDateTime,omitnil" name:"EndDateTime"` }
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,omitnil" name:"PullSmsReplyStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" 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,omitnil" name:"Limit"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" 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,omitnil" name:"Limit"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" 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,omitnil" name:"PullSmsReplyStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type PullSmsSendStatus ¶
type PullSmsSendStatus struct { // Actual time of SMS receipt by user. UserReceiveTime *string `json:"UserReceiveTime,omitnil" name:"UserReceiveTime"` // Actual time of SMS receipt by user in seconds in the format of UNIX timestamp. UserReceiveUnixTime *uint64 `json:"UserReceiveUnixTime,omitnil" name:"UserReceiveUnixTime"` // Country (or region) code. NationCode *string `json:"NationCode,omitnil" name:"NationCode"` // 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). PurePhoneNumber *string `json:"PurePhoneNumber,omitnil" name:"PurePhoneNumber"` // Mobile number in a common format such as 13711112222. PhoneNumber *string `json:"PhoneNumber,omitnil" name:"PhoneNumber"` // ID of the current delivery. SerialNo *string `json:"SerialNo,omitnil" name:"SerialNo"` // Whether the SMS message is actually received. Valid values: SUCCESS (success), FAIL (failure). ReportStatus *string `json:"ReportStatus,omitnil" name:"ReportStatus"` // Description of SMS receipt by user. Description *string `json:"Description,omitnil" name:"Description"` }
type PullSmsSendStatusByPhoneNumberRequest ¶
type PullSmsSendStatusByPhoneNumberRequest struct { *tchttp.BaseRequest // Pull start time in seconds in the format of UNIX timestamp. SendDateTime *uint64 `json:"SendDateTime,omitnil" name:"SendDateTime"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitnil" 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,omitnil" name:"PhoneNumber"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Pull end time in UNIX timestamp accurate to seconds. EndDateTime *uint64 `json:"EndDateTime,omitnil" name:"EndDateTime"` }
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. SendDateTime *uint64 `json:"SendDateTime,omitnil" name:"SendDateTime"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Maximum number of pulled entries. Maximum value: 100. Limit *uint64 `json:"Limit,omitnil" 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,omitnil" name:"PhoneNumber"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Pull end time in UNIX timestamp accurate to seconds. EndDateTime *uint64 `json:"EndDateTime,omitnil" name:"EndDateTime"` }
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,omitnil" name:"PullSmsSendStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" 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,omitnil" name:"Limit"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" 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,omitnil" name:"Limit"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" 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,omitnil" name:"PullSmsSendStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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 Mainland China mobile numbers or all global mobile numbers). // Example: +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumberSet []*string `json:"PhoneNumberSet,omitnil" name:"PhoneNumberSet"` // Template ID. You must enter the ID of an approved template, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). TemplateID *string `json:"TemplateID,omitnil" name:"TemplateID"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // The content of SMS signature should be encoded in UTF-8. You must enter an approved signature, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). Note: this parameter is required for Mainland China SMS. Sign *string `json:"Sign,omitnil" name:"Sign"` // Template parameter. If there is no template parameter, leave this parameter blank. TemplateParamSet []*string `json:"TemplateParamSet,omitnil" name:"TemplateParamSet"` // 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). ExtendCode *string `json:"ExtendCode,omitnil" 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,omitnil" name:"SessionContext"` // `senderid` for Global SMS, 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) for assistance. This parameter should be empty for Mainland China SMS. SenderId *string `json:"SenderId,omitnil" 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 Mainland China mobile numbers or all global mobile numbers). // Example: +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number). PhoneNumberSet []*string `json:"PhoneNumberSet,omitnil" name:"PhoneNumberSet"` // Template ID. You must enter the ID of an approved template, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). TemplateID *string `json:"TemplateID,omitnil" name:"TemplateID"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // The content of SMS signature should be encoded in UTF-8. You must enter an approved signature, which can be viewed in the [SMS Console](https://console.cloud.tencent.com/sms/smslist). Note: this parameter is required for Mainland China SMS. Sign *string `json:"Sign,omitnil" name:"Sign"` // Template parameter. If there is no template parameter, leave this parameter blank. TemplateParamSet []*string `json:"TemplateParamSet,omitnil" name:"TemplateParamSet"` // 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). ExtendCode *string `json:"ExtendCode,omitnil" 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,omitnil" name:"SessionContext"` // `senderid` for Global SMS, 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) for assistance. This parameter should be empty for Mainland China SMS. SenderId *string `json:"SenderId,omitnil" 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,omitnil" name:"SendStatusSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type SendStatus ¶
type SendStatus struct { // Delivery serial number. SerialNo *string `json:"SerialNo,omitnil" 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,omitnil" name:"PhoneNumber"` // Number of billable SMS messages. For billing rules, please see [Billing Policy](https://intl.cloud.tencent.com/document/product/382/36135?from_cn_redirect=1). Fee *uint64 `json:"Fee,omitnil" name:"Fee"` // User session content. SessionContext *string `json:"SessionContext,omitnil" name:"SessionContext"` // SMS request error code. For specific meanings, please see Error Codes. Code *string `json:"Code,omitnil" name:"Code"` // SMS request error message. Message *string `json:"Message,omitnil" name:"Message"` // Country code or region code, such as CN and US. If the country code or region code is not obtained, the returned value will be 'DEF' by default. For more information on the supported list, see price overview for non-Mainland China regions. IsoCode *string `json:"IsoCode,omitnil" name:"IsoCode"` }
type SendStatusStatistics ¶
type SendStatusStatistics struct { // Billable SMS message quantity; for example, in 100 successfully submitted SMS messages, if 20 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,omitnil" name:"FeeCount"` // Submitted SMS messages. RequestCount *uint64 `json:"RequestCount,omitnil" name:"RequestCount"` // Successfully submitted SMS messages. RequestSuccessCount *uint64 `json:"RequestSuccessCount,omitnil" name:"RequestSuccessCount"` }
type SendStatusStatisticsRequest ¶
type SendStatusStatisticsRequest struct { *tchttp.BaseRequest // Start time of pull in the format of `yyyymmddhh` accurate to the hour. StartDateTime *uint64 `json:"StartDateTime,omitnil" name:"StartDateTime"` // End time of pull in the format of `yyyymmddhh` accurate to the hour // Note: `EndDataTime` must be later than `StartDateTime`. EndDataTime *uint64 `json:"EndDataTime,omitnil" name:"EndDataTime"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Upper limit. // Note: this parameter is currently fixed at 0. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" 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 of pull in the format of `yyyymmddhh` accurate to the hour. StartDateTime *uint64 `json:"StartDateTime,omitnil" name:"StartDateTime"` // End time of pull in the format of `yyyymmddhh` accurate to the hour // Note: `EndDataTime` must be later than `StartDateTime`. EndDataTime *uint64 `json:"EndDataTime,omitnil" name:"EndDataTime"` // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Upper limit. // Note: this parameter is currently fixed at 0. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" 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 packet. SendStatusStatistics *SendStatusStatistics `json:"SendStatusStatistics,omitnil" name:"SendStatusStatistics"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type SmsPackagesStatistics ¶
type SmsPackagesStatistics struct { // Package creation time in standard time format, such as 2019-10-08 17:18:37. PackageCreateTime *string `json:"PackageCreateTime,omitnil" name:"PackageCreateTime"` // Package creation time in seconds in the format of UNIX timestamp. PackageCreateUnixTime *uint64 `json:"PackageCreateUnixTime,omitnil" name:"PackageCreateUnixTime"` // Package effective time in standard time format, such as 2019-10-08 17:18:37. PackageEffectiveTime *string `json:"PackageEffectiveTime,omitnil" name:"PackageEffectiveTime"` // Package effective time in seconds in the format of UNIX timestamp. PackageEffectiveUnixTime *uint64 `json:"PackageEffectiveUnixTime,omitnil" name:"PackageEffectiveUnixTime"` // Package expiration time in standard time format, such as 2019-10-08 17:18:37. PackageExpiredTime *string `json:"PackageExpiredTime,omitnil" name:"PackageExpiredTime"` // Package expiration time in seconds in the format of UNIX timestamp. PackageExpiredUnixTime *uint64 `json:"PackageExpiredUnixTime,omitnil" name:"PackageExpiredUnixTime"` // Number of SMS messages in package. AmountOfPackage *uint64 `json:"AmountOfPackage,omitnil" name:"AmountOfPackage"` // 0: gifted package. 1: purchased package. TypeOfPackage *uint64 `json:"TypeOfPackage,omitnil" name:"TypeOfPackage"` // Package ID. PackageId *uint64 `json:"PackageId,omitnil" name:"PackageId"` // Current usage. CurrentUsage *uint64 `json:"CurrentUsage,omitnil" name:"CurrentUsage"` }
type SmsPackagesStatisticsRequest ¶
type SmsPackagesStatisticsRequest struct { *tchttp.BaseRequest // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Upper limit (number of packages to be pulled). Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` }
func NewSmsPackagesStatisticsRequest ¶
func NewSmsPackagesStatisticsRequest() (request *SmsPackagesStatisticsRequest)
func (*SmsPackagesStatisticsRequest) FromJsonString ¶
func (r *SmsPackagesStatisticsRequest) 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 (*SmsPackagesStatisticsRequest) ToJsonString ¶
func (r *SmsPackagesStatisticsRequest) ToJsonString() string
type SmsPackagesStatisticsRequestParams ¶
type SmsPackagesStatisticsRequestParams struct { // SMS `SdkAppid` actually generated after an application is added in the [SMS Console](https://console.cloud.tencent.com/sms/smslist), such as 1400006666. SmsSdkAppid *string `json:"SmsSdkAppid,omitnil" name:"SmsSdkAppid"` // Upper limit (number of packages to be pulled). Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Offset. // Note: this parameter is currently fixed at 0. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` }
Predefined struct for user
type SmsPackagesStatisticsResponse ¶
type SmsPackagesStatisticsResponse struct { *tchttp.BaseResponse Response *SmsPackagesStatisticsResponseParams `json:"Response"` }
func NewSmsPackagesStatisticsResponse ¶
func NewSmsPackagesStatisticsResponse() (response *SmsPackagesStatisticsResponse)
func (*SmsPackagesStatisticsResponse) FromJsonString ¶
func (r *SmsPackagesStatisticsResponse) 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 (*SmsPackagesStatisticsResponse) ToJsonString ¶
func (r *SmsPackagesStatisticsResponse) ToJsonString() string
type SmsPackagesStatisticsResponseParams ¶
type SmsPackagesStatisticsResponseParams struct { // Delivery statistics response packet body. SmsPackagesStatisticsSet []*SmsPackagesStatistics `json:"SmsPackagesStatisticsSet,omitnil" name:"SmsPackagesStatisticsSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user