Documentation
¶
Index ¶
- Constants
- type AppInfo
- type CardInfo
- type CardList
- type Client
- func (c *Client) DescribeApp(request *DescribeAppRequest) (response *DescribeAppResponse, err error)
- func (c *Client) DescribeCard(request *DescribeCardRequest) (response *DescribeCardResponse, err error)
- func (c *Client) DescribeCards(request *DescribeCardsRequest) (response *DescribeCardsResponse, err error)
- func (c *Client) SendMultiSms(request *SendMultiSmsRequest) (response *SendMultiSmsResponse, err error)
- func (c *Client) SendSms(request *SendSmsRequest) (response *SendSmsResponse, err error)
- type DescribeAppRequest
- type DescribeAppResponse
- type DescribeCardRequest
- type DescribeCardResponse
- type DescribeCardsRequest
- type DescribeCardsResponse
- type SendMultiSmsRequest
- type SendMultiSmsResponse
- type SendSmsRequest
- type SendSmsResponse
- type SmsRet
- type SmsSid
Constants ¶
View Source
const APIVersion = "2019-03-07"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct {
// 应用id
Sdkappid *string `json:"Sdkappid,omitempty" name:"Sdkappid"`
// 应用key
Appkey *string `json:"Appkey,omitempty" name:"Appkey"`
// 用户appid
CloudAppid *string `json:"CloudAppid,omitempty" name:"CloudAppid"`
// 应用名称
// 注意:此字段可能返回 null,表示取不到有效值。
Name *string `json:"Name,omitempty" name:"Name"`
// 应用描述
Description *string `json:"Description,omitempty" name:"Description"`
// 创建时间
CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
// 应用类型
BizType *int64 `json:"BizType,omitempty" name:"BizType"`
// 用户Uin
Uin *string `json:"Uin,omitempty" name:"Uin"`
}
type CardInfo ¶
type CardInfo struct {
// 卡片id
Iccid *string `json:"Iccid,omitempty" name:"Iccid"`
// 卡电话号码
// 注意:此字段可能返回 null,表示取不到有效值。
Msisdn *string `json:"Msisdn,omitempty" name:"Msisdn"`
// 卡imsi
// 注意:此字段可能返回 null,表示取不到有效值。
Imsi *string `json:"Imsi,omitempty" name:"Imsi"`
// 卡imei
// 注意:此字段可能返回 null,表示取不到有效值。
Imei *string `json:"Imei,omitempty" name:"Imei"`
// 应用id
Sdkappid *string `json:"Sdkappid,omitempty" name:"Sdkappid"`
// 运营商编号
Teleoperator *int64 `json:"Teleoperator,omitempty" name:"Teleoperator"`
// 卡片状态 1:未激活 2:激活 3:停卡 5:销卡
CardStatus *int64 `json:"CardStatus,omitempty" name:"CardStatus"`
// 网络状态
// 注意:此字段可能返回 null,表示取不到有效值。
NetworkStatus *int64 `json:"NetworkStatus,omitempty" name:"NetworkStatus"`
// 激活时间
// 注意:此字段可能返回 null,表示取不到有效值。
ActivitedTime *string `json:"ActivitedTime,omitempty" name:"ActivitedTime"`
// 资费类型,1 单卡,2 流量池
Type *int64 `json:"Type,omitempty" name:"Type"`
// 套餐类型
// 注意:此字段可能返回 null,表示取不到有效值。
ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
// 流量池id
// 注意:此字段可能返回 null,表示取不到有效值。
PoolId *string `json:"PoolId,omitempty" name:"PoolId"`
// 周期套餐流量使用
// 注意:此字段可能返回 null,表示取不到有效值。
DataUsedInPeriod *float64 `json:"DataUsedInPeriod,omitempty" name:"DataUsedInPeriod"`
// 周期套餐总量
// 注意:此字段可能返回 null,表示取不到有效值。
DataTotalInPeriod *float64 `json:"DataTotalInPeriod,omitempty" name:"DataTotalInPeriod"`
// 过期时间
// 注意:此字段可能返回 null,表示取不到有效值。
ProductExpiredTime *string `json:"ProductExpiredTime,omitempty" name:"ProductExpiredTime"`
// 描述信息
// 注意:此字段可能返回 null,表示取不到有效值。
Description *string `json:"Description,omitempty" name:"Description"`
// 创建时间
CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"`
// 修改时间
ModifiedTime *string `json:"ModifiedTime,omitempty" name:"ModifiedTime"`
// 套餐周期
// 注意:此字段可能返回 null,表示取不到有效值。
PreorderCnt *int64 `json:"PreorderCnt,omitempty" name:"PreorderCnt"`
// 激活被回调标志
// 注意:此字段可能返回 null,表示取不到有效值。
IsActivated *int64 `json:"IsActivated,omitempty" name:"IsActivated"`
// 订单id
// 注意:此字段可能返回 null,表示取不到有效值。
OrderId *string `json:"OrderId,omitempty" name:"OrderId"`
// 是否自动续费
// 注意:此字段可能返回 null,表示取不到有效值。
AutoRenew *int64 `json:"AutoRenew,omitempty" name:"AutoRenew"`
// 备注
// 注意:此字段可能返回 null,表示取不到有效值。
Remark *string `json:"Remark,omitempty" name:"Remark"`
// 0 不需要开通达量不停卡 1 需要开通达量不停卡
// 注意:此字段可能返回 null,表示取不到有效值。
AllowArrears *int64 `json:"AllowArrears,omitempty" name:"AllowArrears"`
// 是否开通短信0:未开短信 1:开通短信
NeedSms *int64 `json:"NeedSms,omitempty" name:"NeedSms"`
// 服务
Provider *int64 `json:"Provider,omitempty" name:"Provider"`
}
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DescribeApp ¶
func (c *Client) DescribeApp(request *DescribeAppRequest) (response *DescribeAppResponse, err error)
根据应用id查询物联卡应用详情
func (*Client) DescribeCard ¶
func (c *Client) DescribeCard(request *DescribeCardRequest) (response *DescribeCardResponse, err error)
查询卡片详细信息
func (*Client) DescribeCards ¶
func (c *Client) DescribeCards(request *DescribeCardsRequest) (response *DescribeCardsResponse, err error)
查询卡片列表信息
func (*Client) SendMultiSms ¶
func (c *Client) SendMultiSms(request *SendMultiSmsRequest) (response *SendMultiSmsResponse, err error)
群发短信
func (*Client) SendSms ¶
func (c *Client) SendSms(request *SendSmsRequest) (response *SendSmsResponse, err error)
发送短信息接口
type DescribeAppRequest ¶
type DescribeAppRequest struct {
*tchttp.BaseRequest
// 物联卡应用ID
Sdkappid *int64 `json:"Sdkappid,omitempty" name:"Sdkappid"`
}
func NewDescribeAppRequest ¶
func NewDescribeAppRequest() (request *DescribeAppRequest)
func (*DescribeAppRequest) FromJsonString ¶
func (r *DescribeAppRequest) FromJsonString(s string) error
func (*DescribeAppRequest) ToJsonString ¶
func (r *DescribeAppRequest) ToJsonString() string
type DescribeAppResponse ¶
type DescribeAppResponse struct {
*tchttp.BaseResponse
Response *struct {
// 应用信息详情
// 注意:此字段可能返回 null,表示取不到有效值。
Data *AppInfo `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeAppResponse ¶
func NewDescribeAppResponse() (response *DescribeAppResponse)
func (*DescribeAppResponse) FromJsonString ¶
func (r *DescribeAppResponse) FromJsonString(s string) error
func (*DescribeAppResponse) ToJsonString ¶
func (r *DescribeAppResponse) ToJsonString() string
type DescribeCardRequest ¶
type DescribeCardRequest struct {
*tchttp.BaseRequest
// 应用id
Sdkappid *int64 `json:"Sdkappid,omitempty" name:"Sdkappid"`
// 卡片id
Iccid *string `json:"Iccid,omitempty" name:"Iccid"`
}
func NewDescribeCardRequest ¶
func NewDescribeCardRequest() (request *DescribeCardRequest)
func (*DescribeCardRequest) FromJsonString ¶
func (r *DescribeCardRequest) FromJsonString(s string) error
func (*DescribeCardRequest) ToJsonString ¶
func (r *DescribeCardRequest) ToJsonString() string
type DescribeCardResponse ¶
type DescribeCardResponse struct {
*tchttp.BaseResponse
Response *struct {
// 卡片详细信息
// 注意:此字段可能返回 null,表示取不到有效值。
Data *CardInfo `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeCardResponse ¶
func NewDescribeCardResponse() (response *DescribeCardResponse)
func (*DescribeCardResponse) FromJsonString ¶
func (r *DescribeCardResponse) FromJsonString(s string) error
func (*DescribeCardResponse) ToJsonString ¶
func (r *DescribeCardResponse) ToJsonString() string
type DescribeCardsRequest ¶
type DescribeCardsRequest struct {
*tchttp.BaseRequest
// 应用id
Sdkappid *string `json:"Sdkappid,omitempty" name:"Sdkappid"`
// 偏移值
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 列表限制
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}
func NewDescribeCardsRequest ¶
func NewDescribeCardsRequest() (request *DescribeCardsRequest)
func (*DescribeCardsRequest) FromJsonString ¶
func (r *DescribeCardsRequest) FromJsonString(s string) error
func (*DescribeCardsRequest) ToJsonString ¶
func (r *DescribeCardsRequest) ToJsonString() string
type DescribeCardsResponse ¶
type DescribeCardsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 卡片列表信息
Data *CardList `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeCardsResponse ¶
func NewDescribeCardsResponse() (response *DescribeCardsResponse)
func (*DescribeCardsResponse) FromJsonString ¶
func (r *DescribeCardsResponse) FromJsonString(s string) error
func (*DescribeCardsResponse) ToJsonString ¶
func (r *DescribeCardsResponse) ToJsonString() string
type SendMultiSmsRequest ¶
type SendMultiSmsRequest struct {
*tchttp.BaseRequest
// 应用id
Sdkappid *string `json:"Sdkappid,omitempty" name:"Sdkappid"`
// 卡片列表
Iccids []*string `json:"Iccids,omitempty" name:"Iccids" list`
// 短信内容
Content *string `json:"Content,omitempty" name:"Content"`
}
func NewSendMultiSmsRequest ¶
func NewSendMultiSmsRequest() (request *SendMultiSmsRequest)
func (*SendMultiSmsRequest) FromJsonString ¶
func (r *SendMultiSmsRequest) FromJsonString(s string) error
func (*SendMultiSmsRequest) ToJsonString ¶
func (r *SendMultiSmsRequest) ToJsonString() string
type SendMultiSmsResponse ¶
type SendMultiSmsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 短信流水数组
Data []*SmsRet `json:"Data,omitempty" name:"Data" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSendMultiSmsResponse ¶
func NewSendMultiSmsResponse() (response *SendMultiSmsResponse)
func (*SendMultiSmsResponse) FromJsonString ¶
func (r *SendMultiSmsResponse) FromJsonString(s string) error
func (*SendMultiSmsResponse) ToJsonString ¶
func (r *SendMultiSmsResponse) ToJsonString() string
type SendSmsRequest ¶
type SendSmsRequest struct {
*tchttp.BaseRequest
// 应用id
Sdkappid *int64 `json:"Sdkappid,omitempty" name:"Sdkappid"`
// 卡片id
Iccid *string `json:"Iccid,omitempty" name:"Iccid"`
// 短信内容
Content *string `json:"Content,omitempty" name:"Content"`
}
func NewSendSmsRequest ¶
func NewSendSmsRequest() (request *SendSmsRequest)
func (*SendSmsRequest) FromJsonString ¶
func (r *SendSmsRequest) FromJsonString(s string) error
func (*SendSmsRequest) ToJsonString ¶
func (r *SendSmsRequest) ToJsonString() string
type SendSmsResponse ¶
type SendSmsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 短信流水信息
Data *SmsSid `json:"Data,omitempty" name:"Data"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewSendSmsResponse ¶
func NewSendSmsResponse() (response *SendSmsResponse)
func (*SendSmsResponse) FromJsonString ¶
func (r *SendSmsResponse) FromJsonString(s string) error
func (*SendSmsResponse) ToJsonString ¶
func (r *SendSmsResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.