jstsecret

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

聚石塔隐私号 model

https://open.taobao.com/API.htm?docId=52636&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretNoBindResponse

type SecretNoBindResponse struct {
	// 分机号,type=2时有值。拨打时先拨打隐私号再转分机号
	Extension string `json:"extension,omitempty" xml:"extension,omitempty"`
	// 隐私号码
	SecretNo string `json:"secret_no,omitempty" xml:"secret_no,omitempty"`
	// 隐私号码过期时间
	ExpireDate string `json:"expire_date,omitempty" xml:"expire_date,omitempty"`
	// 隐私号码类型,1=隐私号,2=分机号。
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

SecretNoBindResponse

type TaobaoJstSecretGetAPIRequest

type TaobaoJstSecretGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取订单消费者的隐私号码 API请求 taobao.jst.secret.get

根据订单号获取消费者的隐私号

func NewTaobaoJstSecretGetRequest

func NewTaobaoJstSecretGetRequest() *TaobaoJstSecretGetAPIRequest

初始化TaobaoJstSecretGetAPIRequest对象

func (TaobaoJstSecretGetAPIRequest) GetApiMethodName

func (r TaobaoJstSecretGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoJstSecretGetAPIRequest) GetApiParams

func (r TaobaoJstSecretGetAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoJstSecretGetAPIRequest) GetExpireDays

func (r TaobaoJstSecretGetAPIRequest) GetExpireDays() int64

ExpireDays Getter

func (TaobaoJstSecretGetAPIRequest) GetTid

Tid Getter

func (TaobaoJstSecretGetAPIRequest) GetType

func (r TaobaoJstSecretGetAPIRequest) GetType() int64

Type Getter

func (*TaobaoJstSecretGetAPIRequest) SetExpireDays

func (r *TaobaoJstSecretGetAPIRequest) SetExpireDays(_expireDays int64) error

ExpireDays Setter 隐私号码过期天数,默认30天,取值范围[1,30]

func (*TaobaoJstSecretGetAPIRequest) SetTid

func (r *TaobaoJstSecretGetAPIRequest) SetTid(_tid int64) error

Tid Setter 订单号

func (*TaobaoJstSecretGetAPIRequest) SetType

func (r *TaobaoJstSecretGetAPIRequest) SetType(_type int64) error

Type Setter 隐私号类型,1=手机号,2=分机号,默认为1;分机号使用时拨打手机号转分机号

type TaobaoJstSecretGetAPIResponse

type TaobaoJstSecretGetAPIResponse struct {
	model.CommonResponse
	TaobaoJstSecretGetAPIResponseModel
}

获取订单消费者的隐私号码 API返回值 taobao.jst.secret.get

根据订单号获取消费者的隐私号

type TaobaoJstSecretGetAPIResponseModel

type TaobaoJstSecretGetAPIResponseModel struct {
	XMLName xml.Name `xml:"jst_secret_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Secret *SecretNoBindResponse `json:"secret,omitempty" xml:"secret,omitempty"`
}

获取订单消费者的隐私号码 成功返回结果

Jump to

Keyboard shortcuts

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