widget

package
v0.0.0-...-f648943 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

组件API列表 auto sdk from taobao ApiMetadata.xml version 20140725 auther: dz7changkong@qq.com

Index

Constants

View Source
const VersionNo = "20140725"

Variables

This section is empty.

Functions

This section is empty.

Types

type WidgetLoginstatusGetRequest

type WidgetLoginstatusGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

获取当前浏览器用户在淘宝登陆状态。如果传了session并且此用户已在淘宝登陆,返回nick和userId。仅支持widget入口调用。调用入口为/widget。签名方法简化为Hmac-md5,hmac(secret+‘app_key' +app_key +'timestamp' + timestamp+secret, secret)。timestamp为60分钟内有效

func (*WidgetLoginstatusGetRequest) GetResponse

func (r *WidgetLoginstatusGetRequest) GetResponse(accessToken string) (*WidgetLoginstatusGetResponse, []byte, error)

func (*WidgetLoginstatusGetRequest) SetNick

func (r *WidgetLoginstatusGetRequest) SetNick(value string)

指定判断当前浏览器登陆用户是否此昵称用户,并且返回是否登陆。如果用户不一致返回未登陆,如果用户一致且已登录返回已登陆

type WidgetLoginstatusGetResponse

type WidgetLoginstatusGetResponse struct {
	IsLogin bool   `json:"is_login"`
	Nick    string `json:"nick"`
	UserId  string `json:"user_id"`
}

type WidgetLoginstatusGetResponseResult

type WidgetLoginstatusGetResponseResult struct {
	Response *WidgetLoginstatusGetResponse `json:"widget_loginstatus_get_response"`
}

Jump to

Keyboard shortcuts

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