Documentation ¶
Overview ¶
Package alime 包含小蜜API相关结构体
Index ¶
- type TaobaoAlimeUserTokenAdvanceGetAPIRequest
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiMethodName() string
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetExpires() int64
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetForeignId() string
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetId() int64
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetNick() string
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRawParams() model.Params
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRouting() int64
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetSource() int64
- func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetType() int64
- func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetExpires(_expires int64) error
- func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetForeignId(_foreignId string) error
- func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetId(_id int64) error
- func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetNick(_nick string) error
- func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetRouting(_routing int64) error
- func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetSource(_source int64) error
- func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetType(_type int64) error
- type TaobaoAlimeUserTokenAdvanceGetAPIResponse
- type TaobaoAlimeUserTokenAdvanceGetAPIResponseModel
- type TaobaoAlimeUserTokenGetAPIRequest
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetApiMethodName() string
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetExpires() int64
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetForeignId() string
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetId() int64
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetNick() string
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetRawParams() model.Params
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetRouting() int64
- func (r TaobaoAlimeUserTokenGetAPIRequest) GetSource() int64
- func (r *TaobaoAlimeUserTokenGetAPIRequest) SetExpires(_expires int64) error
- func (r *TaobaoAlimeUserTokenGetAPIRequest) SetForeignId(_foreignId string) error
- func (r *TaobaoAlimeUserTokenGetAPIRequest) SetId(_id int64) error
- func (r *TaobaoAlimeUserTokenGetAPIRequest) SetNick(_nick string) error
- func (r *TaobaoAlimeUserTokenGetAPIRequest) SetRouting(_routing int64) error
- func (r *TaobaoAlimeUserTokenGetAPIRequest) SetSource(_source int64) error
- type TaobaoAlimeUserTokenGetAPIResponse
- type TaobaoAlimeUserTokenGetAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaobaoAlimeUserTokenAdvanceGetAPIRequest ¶
type TaobaoAlimeUserTokenAdvanceGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoAlimeUserTokenAdvanceGetAPIRequest 获取用户免登录令牌v2 API请求 taobao.alime.user.token.advance.get
根据第三账号信息获取用户的免登录令牌
func NewTaobaoAlimeUserTokenAdvanceGetRequest ¶
func NewTaobaoAlimeUserTokenAdvanceGetRequest() *TaobaoAlimeUserTokenAdvanceGetAPIRequest
NewTaobaoAlimeUserTokenAdvanceGetRequest 初始化TaobaoAlimeUserTokenAdvanceGetAPIRequest对象
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiMethodName ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiParams ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetExpires ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetExpires() int64
GetExpires Expires Getter
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetForeignId ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetForeignId() string
GetForeignId ForeignId Getter
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetId ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetId() int64
GetId Id Getter
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetNick ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRouting ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRouting() int64
GetRouting Routing Getter
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetSource ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetSource() int64
GetSource Source Getter
func (TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetType ¶
func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetType() int64
GetType Type Getter
func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetExpires ¶
func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetExpires(_expires int64) error
SetExpires is Expires Setter 令牌的过期时间(时间为秒),最大为3600
func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetForeignId ¶
func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetForeignId(_foreignId string) error
SetForeignId is ForeignId Setter 用户在第三方账号中的唯一id
func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetId ¶
func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetId(_id int64) error
SetId is Id Setter 用户在小蜜账号中的唯一id
func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetNick ¶
func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 用户昵称
func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetRouting ¶
func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetRouting(_routing int64) error
SetRouting is Routing Setter 路由id, 一般为用户id,用于异地容灾
func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetSource ¶
func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetSource(_source int64) error
SetSource is Source Setter 小蜜分配给第三方账号的来源
func (*TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetType ¶
func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetType(_type int64) error
SetType is Type Setter 用户类型,0为普通用户,1为访客用户
type TaobaoAlimeUserTokenAdvanceGetAPIResponse ¶
type TaobaoAlimeUserTokenAdvanceGetAPIResponse struct { model.CommonResponse TaobaoAlimeUserTokenAdvanceGetAPIResponseModel }
TaobaoAlimeUserTokenAdvanceGetAPIResponse 获取用户免登录令牌v2 API返回值 taobao.alime.user.token.advance.get
根据第三账号信息获取用户的免登录令牌
type TaobaoAlimeUserTokenAdvanceGetAPIResponseModel ¶
type TaobaoAlimeUserTokenAdvanceGetAPIResponseModel struct { XMLName xml.Name `xml:"alime_user_token_advance_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应消息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 响应数据 Data string `json:"data,omitempty" xml:"data,omitempty"` // 响应编码(由于"code"为top保留字,用code0以示区分,文档中均以code说明),code == 0为成功,其它为失败 Code0 int64 `json:"code0,omitempty" xml:"code0,omitempty"` }
TaobaoAlimeUserTokenAdvanceGetAPIResponseModel is 获取用户免登录令牌v2 成功返回结果
type TaobaoAlimeUserTokenGetAPIRequest ¶
type TaobaoAlimeUserTokenGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoAlimeUserTokenGetAPIRequest 获取用户免登录令牌 API请求 taobao.alime.user.token.get
根据第三账号信息获取用户的免登录令牌
func NewTaobaoAlimeUserTokenGetRequest ¶
func NewTaobaoAlimeUserTokenGetRequest() *TaobaoAlimeUserTokenGetAPIRequest
NewTaobaoAlimeUserTokenGetRequest 初始化TaobaoAlimeUserTokenGetAPIRequest对象
func (TaobaoAlimeUserTokenGetAPIRequest) GetApiMethodName ¶
func (r TaobaoAlimeUserTokenGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoAlimeUserTokenGetAPIRequest) GetApiParams ¶
func (r TaobaoAlimeUserTokenGetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoAlimeUserTokenGetAPIRequest) GetExpires ¶
func (r TaobaoAlimeUserTokenGetAPIRequest) GetExpires() int64
GetExpires Expires Getter
func (TaobaoAlimeUserTokenGetAPIRequest) GetForeignId ¶
func (r TaobaoAlimeUserTokenGetAPIRequest) GetForeignId() string
GetForeignId ForeignId Getter
func (TaobaoAlimeUserTokenGetAPIRequest) GetId ¶
func (r TaobaoAlimeUserTokenGetAPIRequest) GetId() int64
GetId Id Getter
func (TaobaoAlimeUserTokenGetAPIRequest) GetNick ¶
func (r TaobaoAlimeUserTokenGetAPIRequest) GetNick() string
GetNick Nick Getter
func (TaobaoAlimeUserTokenGetAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoAlimeUserTokenGetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaoAlimeUserTokenGetAPIRequest) GetRouting ¶
func (r TaobaoAlimeUserTokenGetAPIRequest) GetRouting() int64
GetRouting Routing Getter
func (TaobaoAlimeUserTokenGetAPIRequest) GetSource ¶
func (r TaobaoAlimeUserTokenGetAPIRequest) GetSource() int64
GetSource Source Getter
func (*TaobaoAlimeUserTokenGetAPIRequest) SetExpires ¶
func (r *TaobaoAlimeUserTokenGetAPIRequest) SetExpires(_expires int64) error
SetExpires is Expires Setter 令牌的过期时间(时间为秒),最大为3600
func (*TaobaoAlimeUserTokenGetAPIRequest) SetForeignId ¶
func (r *TaobaoAlimeUserTokenGetAPIRequest) SetForeignId(_foreignId string) error
SetForeignId is ForeignId Setter 用户在第三方账号中的唯一id
func (*TaobaoAlimeUserTokenGetAPIRequest) SetId ¶
func (r *TaobaoAlimeUserTokenGetAPIRequest) SetId(_id int64) error
SetId is Id Setter 用户在小蜜账号中的唯一id
func (*TaobaoAlimeUserTokenGetAPIRequest) SetNick ¶
func (r *TaobaoAlimeUserTokenGetAPIRequest) SetNick(_nick string) error
SetNick is Nick Setter 用户昵称
func (*TaobaoAlimeUserTokenGetAPIRequest) SetRouting ¶
func (r *TaobaoAlimeUserTokenGetAPIRequest) SetRouting(_routing int64) error
SetRouting is Routing Setter 路由id, 一般为用户id,用于异地容灾
func (*TaobaoAlimeUserTokenGetAPIRequest) SetSource ¶
func (r *TaobaoAlimeUserTokenGetAPIRequest) SetSource(_source int64) error
SetSource is Source Setter 小蜜分配给第三方账号的来源
type TaobaoAlimeUserTokenGetAPIResponse ¶
type TaobaoAlimeUserTokenGetAPIResponse struct { model.CommonResponse TaobaoAlimeUserTokenGetAPIResponseModel }
TaobaoAlimeUserTokenGetAPIResponse 获取用户免登录令牌 API返回值 taobao.alime.user.token.get
根据第三账号信息获取用户的免登录令牌
type TaobaoAlimeUserTokenGetAPIResponseModel ¶
type TaobaoAlimeUserTokenGetAPIResponseModel struct { XMLName xml.Name `xml:"alime_user_token_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应数据 Data string `json:"data,omitempty" xml:"data,omitempty"` // 响应消息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 响应编码(由于"code"为top保留字,用code0以示区分,文档中均以code说明),code == 0为成功,其它为失败 Code0 int64 `json:"code0,omitempty" xml:"code0,omitempty"` }
TaobaoAlimeUserTokenGetAPIResponseModel is 获取用户免登录令牌 成功返回结果