yunosaccount

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package yunosaccount 包含Yunos Account API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountResult

type AccountResult struct {
	// data
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// status
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

AccountResult 结构体

type YunosAccountCallapiAPIRequest added in v1.2.0

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

YunosAccountCallapiAPIRequest 调用YunOS账号开放API API请求 yunos.account.callapi

YunOS账号客户端对外开放的api通过top暴露

func NewYunosAccountCallapiRequest

func NewYunosAccountCallapiRequest() *YunosAccountCallapiAPIRequest

NewYunosAccountCallapiRequest 初始化YunosAccountCallapiAPIRequest对象

func (YunosAccountCallapiAPIRequest) GetApi added in v1.2.0

GetApi Api Getter

func (YunosAccountCallapiAPIRequest) GetApiMethodName added in v1.2.0

func (r YunosAccountCallapiAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YunosAccountCallapiAPIRequest) GetApiParams added in v1.2.0

func (r YunosAccountCallapiAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (YunosAccountCallapiAPIRequest) GetAuthSign added in v1.2.0

func (r YunosAccountCallapiAPIRequest) GetAuthSign() string

GetAuthSign AuthSign Getter

func (YunosAccountCallapiAPIRequest) GetParams added in v1.2.0

func (r YunosAccountCallapiAPIRequest) GetParams() string

GetParams Params Getter

func (YunosAccountCallapiAPIRequest) GetRawParams added in v1.2.8

func (r YunosAccountCallapiAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (YunosAccountCallapiAPIRequest) GetTimeStamp added in v1.2.0

func (r YunosAccountCallapiAPIRequest) GetTimeStamp() string

GetTimeStamp TimeStamp Getter

func (YunosAccountCallapiAPIRequest) GetVersion added in v1.2.0

func (r YunosAccountCallapiAPIRequest) GetVersion() string

GetVersion Version Getter

func (*YunosAccountCallapiAPIRequest) SetApi added in v1.2.0

func (r *YunosAccountCallapiAPIRequest) SetApi(_api string) error

SetApi is Api Setter 调用的API名称

func (*YunosAccountCallapiAPIRequest) SetAuthSign added in v1.2.0

func (r *YunosAccountCallapiAPIRequest) SetAuthSign(_authSign string) error

SetAuthSign is AuthSign Setter 应用签名的MD5值

func (*YunosAccountCallapiAPIRequest) SetParams added in v1.2.0

func (r *YunosAccountCallapiAPIRequest) SetParams(_params string) error

SetParams is Params Setter 业务参数

func (*YunosAccountCallapiAPIRequest) SetTimeStamp added in v1.2.0

func (r *YunosAccountCallapiAPIRequest) SetTimeStamp(_timeStamp string) error

SetTimeStamp is TimeStamp Setter 时间戳,精确到秒;账号服务端会校验该值与服务器当前时间戳的差值,超过一定范围则拒绝请求

func (*YunosAccountCallapiAPIRequest) SetVersion added in v1.2.0

func (r *YunosAccountCallapiAPIRequest) SetVersion(_version string) error

SetVersion is Version Setter API版本号

type YunosAccountCallapiAPIResponse

type YunosAccountCallapiAPIResponse struct {
	model.CommonResponse
	YunosAccountCallapiAPIResponseModel
}

YunosAccountCallapiAPIResponse 调用YunOS账号开放API API返回值 yunos.account.callapi

YunOS账号客户端对外开放的api通过top暴露

type YunosAccountCallapiAPIResponseModel added in v1.2.0

type YunosAccountCallapiAPIResponseModel struct {
	XMLName xml.Name `xml:"yunos_account_callapi_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *AccountResult `json:"result,omitempty" xml:"result,omitempty"`
}

YunosAccountCallapiAPIResponseModel is 调用YunOS账号开放API 成功返回结果

Jump to

Keyboard shortcuts

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