yunosaccount

package
v1.3.2 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.3.1

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

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

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

func NewYunosaccountcallapiRequest added in v1.3.1

func NewYunosaccountcallapiRequest() *YunosaccountcallapiAPIRequest

NewYunosaccountcallapiRequest 初始化YunosaccountcallapiAPIRequest对象

func (YunosaccountcallapiAPIRequest) GetApi added in v1.3.1

GetApi Api Getter

func (YunosaccountcallapiAPIRequest) GetApiMethodName added in v1.3.1

func (r YunosaccountcallapiAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (YunosaccountcallapiAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (YunosaccountcallapiAPIRequest) GetAuthSign added in v1.3.1

func (r YunosaccountcallapiAPIRequest) GetAuthSign() string

GetAuthSign AuthSign Getter

func (YunosaccountcallapiAPIRequest) GetParams added in v1.3.1

func (r YunosaccountcallapiAPIRequest) GetParams() string

GetParams Params Getter

func (YunosaccountcallapiAPIRequest) GetRawParams added in v1.3.1

func (r YunosaccountcallapiAPIRequest) GetRawParams() model.Params

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

func (YunosaccountcallapiAPIRequest) GetTimeStamp added in v1.3.1

func (r YunosaccountcallapiAPIRequest) GetTimeStamp() string

GetTimeStamp TimeStamp Getter

func (YunosaccountcallapiAPIRequest) GetVersion added in v1.3.1

func (r YunosaccountcallapiAPIRequest) GetVersion() string

GetVersion Version Getter

func (*YunosaccountcallapiAPIRequest) SetApi added in v1.3.1

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

SetApi is Api Setter 调用的API名称

func (*YunosaccountcallapiAPIRequest) SetAuthSign added in v1.3.1

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

SetAuthSign is AuthSign Setter 应用签名的MD5值

func (*YunosaccountcallapiAPIRequest) SetParams added in v1.3.1

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

SetParams is Params Setter 业务参数

func (*YunosaccountcallapiAPIRequest) SetTimeStamp added in v1.3.1

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

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

func (*YunosaccountcallapiAPIRequest) SetVersion added in v1.3.1

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

SetVersion is Version Setter API版本号

type YunosaccountcallapiAPIResponse added in v1.3.1

type YunosaccountcallapiAPIResponse struct {
	model.CommonResponse
	YunosaccountcallapiAPIResponseModel
}

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

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

type YunosaccountcallapiAPIResponseModel added in v1.3.1

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