Versions in this module Expand all Collapse all v0 v0.9.22 Sep 16, 2020 Changes in this version + const CLIENT_TOKEN + const REQUEST_URI_QUOTA + const REQUEST_URI_SEND_SMS + const REQUEST_URI_SIGNATURE + const REQUEST_URI_TEMPLATE + func CheckError(condition bool, errMessage string) error + func DeleteSignature(cli bce.Client, args *DeleteSignatureArgs) error + func DeleteTemplate(cli bce.Client, args *DeleteTemplateArgs) error + func ModifySignature(cli bce.Client, args *ModifySignatureArgs) error + func ModifyTemplate(cli bce.Client, args *ModifyTemplateArgs) error + func UpdateQuotaRate(cli bce.Client, args *UpdateQuotaRateArgs) error + type CreateSignatureArgs struct + Content string + ContentType string + CountryType string + Description string + SignatureFileBase64 string + SignatureFileFormat string + type CreateSignatureResult struct + SignatureId string + Status string + func CreateSignature(cli bce.Client, args *CreateSignatureArgs) (*CreateSignatureResult, error) + type CreateTemplateArgs struct + Content string + CountryType string + Description string + Name string + SmsType string + type CreateTemplateResult struct + Status string + TemplateId string + func CreateTemplate(cli bce.Client, args *CreateTemplateArgs) (*CreateTemplateResult, error) + type DeleteSignatureArgs struct + SignatureId string + type DeleteTemplateArgs struct + TemplateId string + type GetSignatureArgs struct + SignatureId string + type GetSignatureResult struct + Content string + ContentType string + CountryType string + Review string + SignatureId string + Status string + UserId string + func GetSignature(cli bce.Client, args *GetSignatureArgs) (*GetSignatureResult, error) + type GetTemplateArgs struct + TemplateId string + type GetTemplateResult struct + Content string + CountryType string + Description string + Name string + Review string + SmsType string + Status string + TemplateId string + UserId string + func GetTemplate(cli bce.Client, args *GetTemplateArgs) (*GetTemplateResult, error) + type ModifySignatureArgs struct + Content string + ContentType string + CountryType string + Description string + SignatureFileBase64 string + SignatureFileFormat string + SignatureId string + type ModifyTemplateArgs struct + Content string + CountryType string + Description string + Name string + SmsType string + TemplateId string + type QueryQuotaRateResult struct + QuotaPerDay int + QuotaPerMonth int + QuotaRemainThisMonth int + QuotaRemainToday int + QuotaWhitelist bool + RateLimitPerDay int + RateLimitPerHour int + RateLimitPerMinute int + RateLimitWhitelist bool + func QueryQuotaRate(cli bce.Client) (*QueryQuotaRateResult, error) + type SendMessageItem struct + Code string + Message string + MessageId string + Mobile string + type SendSmsArgs struct + CallbackUrlId string + ClientToken string + ContentVar map[string]interface{} + Custom string + Mobile string + SignatureId string + Template string + UserExtId string + type SendSmsResult struct + Code string + Data []SendMessageItem + Message string + RequestId string + func SendSms(cli bce.Client, args *SendSmsArgs) (*SendSmsResult, error) + type UpdateQuotaRateArgs struct + QuotaPerDay int + QuotaPerMonth int + RateLimitPerDay int + RateLimitPerHour int + RateLimitPerMinute int