v20190307

package
v3.0.233+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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"`

	// 实名认证 0:无 1:未实名 2:已实名
	// 注意:此字段可能返回 null,表示取不到有效值。
	CertificationState *int64 `json:"CertificationState,omitempty" name:"CertificationState"`
}

type CardList

type CardList struct {

	// 卡片总数
	Total *string `json:"Total,omitempty" name:"Total"`

	// 卡片列表信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	List []*CardInfo `json:"List,omitempty" name:"List" list`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

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) RenewCards

func (c *Client) RenewCards(request *RenewCardsRequest) (response *RenewCardsResponse, err error)

批量为卡片续费,此接口建议调用至少间隔10s,如果出现返回deal lock failed相关的错误,请过10s再重试。 续费的必要条件: 1、单次续费的卡片不可以超过 100张。 2、接口只支持在控制台购买的卡片进行续费 3、销户和未激活的卡片不支持续费。 4、每张物联网卡,续费总周期不能超过24个月

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 RenewCardsRequest

type RenewCardsRequest struct {
	*tchttp.BaseRequest

	// 应用ID
	Sdkappid *uint64 `json:"Sdkappid,omitempty" name:"Sdkappid"`

	// 续费的iccid
	Iccids []*string `json:"Iccids,omitempty" name:"Iccids" list`

	// 续费的周期(单位:月)
	RenewNum *uint64 `json:"RenewNum,omitempty" name:"RenewNum"`
}

func NewRenewCardsRequest

func NewRenewCardsRequest() (request *RenewCardsRequest)

func (*RenewCardsRequest) FromJsonString

func (r *RenewCardsRequest) FromJsonString(s string) error

func (*RenewCardsRequest) ToJsonString

func (r *RenewCardsRequest) ToJsonString() string

type RenewCardsResponse

type RenewCardsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 续费成功的订单id
		// 注意:此字段可能返回 null,表示取不到有效值。
		Data *ResRenew `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewRenewCardsResponse

func NewRenewCardsResponse() (response *RenewCardsResponse)

func (*RenewCardsResponse) FromJsonString

func (r *RenewCardsResponse) FromJsonString(s string) error

func (*RenewCardsResponse) ToJsonString

func (r *RenewCardsResponse) ToJsonString() string

type ResRenew

type ResRenew struct {

	// 每一张续费卡片的订单ID数组
	// 注意:此字段可能返回 null,表示取不到有效值。
	OrderIds []*string `json:"OrderIds,omitempty" name:"OrderIds" list`
}

type SendMultiSmsRequest

type SendMultiSmsRequest struct {
	*tchttp.BaseRequest

	// 应用ID
	Sdkappid *string `json:"Sdkappid,omitempty" name:"Sdkappid"`

	// 卡片列表
	Iccids []*string `json:"Iccids,omitempty" name:"Iccids" list`

	// 短信内容 长度限制 70
	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 {

		// 短信流水数组
		// 注意:此字段可能返回 null,表示取不到有效值。
		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"`

	// 短信内容长度70限制
	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 {

		// 短信流水信息
		// 注意:此字段可能返回 null,表示取不到有效值。
		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

type SmsRet

type SmsRet struct {

	// 该iccid请求状态
	Code *string `json:"Code,omitempty" name:"Code"`

	// 短信发送返回信息
	Msg *string `json:"Msg,omitempty" name:"Msg"`

	// 卡片ID
	Iccid *string `json:"Iccid,omitempty" name:"Iccid"`

	// 流水ID
	Sid *string `json:"Sid,omitempty" name:"Sid"`
}

type SmsSid

type SmsSid struct {

	// 卡片ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	Iccid *string `json:"Iccid,omitempty" name:"Iccid"`

	// 信息流水ID
	Sid *string `json:"Sid,omitempty" name:"Sid"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL