user

package
v0.0.0-...-32237eb Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2013 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

提供了用户基本信息查询功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com

Index

Constants

View Source
const VersionNo = "20130808"

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Address  string `json:"address"`
	City     string `json:"city"`
	Country  string `json:"country"`
	District string `json:"district"`
	State    string `json:"state"`
	Zip      string `json:"zip"`
}

用户地址

type User

type User struct {
	AlipayBind             string      `json:"alipay_bind"`
	AutoRepost             string      `json:"auto_repost"`
	Avatar                 string      `json:"avatar"`
	Birthday               string      `json:"birthday"`
	BuyerCredit            *UserCredit `json:"buyer_credit"`
	ConsumerProtection     bool        `json:"consumer_protection"`
	Created                string      `json:"created"`
	Email                  string      `json:"email"`
	HasMorePic             bool        `json:"has_more_pic"`
	HasShop                bool        `json:"has_shop"`
	HasSubStock            bool        `json:"has_sub_stock"`
	IsGoldenSeller         bool        `json:"is_golden_seller"`
	IsLightningConsignment bool        `json:"is_lightning_consignment"`
	ItemImgNum             int         `json:"item_img_num"`
	ItemImgSize            int         `json:"item_img_size"`
	LastVisit              string      `json:"last_visit"`
	Liangpin               bool        `json:"liangpin"`
	Location               *Location   `json:"location"`
	MagazineSubscribe      bool        `json:"magazine_subscribe"`
	Nick                   string      `json:"nick"`
	OnlineGaming           bool        `json:"online_gaming"`
	PromotedType           string      `json:"promoted_type"`
	PropImgNum             int         `json:"prop_img_num"`
	PropImgSize            int         `json:"prop_img_size"`
	SellerCredit           *UserCredit `json:"seller_credit"`
	Sex                    string      `json:"sex"`
	SignFoodSellerPromise  bool        `json:"sign_food_seller_promise"`
	Status                 string      `json:"status"`
	Type                   string      `json:"type"`
	Uid                    string      `json:"uid"`
	UserId                 int         `json:"user_id"`
	VerticalMarket         string      `json:"vertical_market"`
	VipInfo                string      `json:"vip_info"`
}

用户

type UserBuyerGetRequest

type UserBuyerGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询买家信息API,只能买家类应用调用。

func (*UserBuyerGetRequest) GetResponse

func (r *UserBuyerGetRequest) GetResponse(accessToken string) (*UserBuyerGetResponse, []byte, error)

func (*UserBuyerGetRequest) SetFields

func (r *UserBuyerGetRequest) SetFields(value string)

只返回user_id,nick,sex,buyer_credit,avatar,has_shop,vip_info参数

type UserBuyerGetResponse

type UserBuyerGetResponse struct {
	User *User `json:"user"`
}

type UserBuyerGetResponseResult

type UserBuyerGetResponseResult struct {
	Response *UserBuyerGetResponse `json:"user_buyer_get_response"`
}

type UserCredit

type UserCredit struct {
	GoodNum  int `json:"good_num"`
	Level    int `json:"level"`
	Score    int `json:"score"`
	TotalNum int `json:"total_num"`
}

用户信用

type UserGetRequest

type UserGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

得到单个用户

func (*UserGetRequest) GetResponse

func (r *UserGetRequest) GetResponse(accessToken string) (*UserGetResponse, []byte, error)

func (*UserGetRequest) SetFields

func (r *UserGetRequest) SetFields(value string)

需返回的字段列表。可选值:User结构体中的所有字段;以半角逗号(,)分隔。需要用户授权才能获取用户对应的uid和user_id。

func (*UserGetRequest) SetNick

func (r *UserGetRequest) SetNick(value string)
用户昵称,如果昵称为中文,请使用UTF-8字符集对昵称进行URL编码。

<br><font color="red">注:在传入session的情况下,可以不传nick,表示取当前用户信息;否则nick必须传.<br> 自用型应用不需要传入nick </font>

type UserGetResponse

type UserGetResponse struct {
	User *User `json:"user"`
}

type UserGetResponseResult

type UserGetResponseResult struct {
	Response *UserGetResponse `json:"user_get_response"`
}

type UserSellerGetRequest

type UserSellerGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询卖家用户信息(只能查询有店铺的用户) 只能卖家类应用调用。

func (*UserSellerGetRequest) GetResponse

func (r *UserSellerGetRequest) GetResponse(accessToken string) (*UserSellerGetResponse, []byte, error)

func (*UserSellerGetRequest) SetFields

func (r *UserSellerGetRequest) SetFields(value string)

只返回user_id,nick,sex,seller_credit,type,has_more_pic,item_img_num,item_img_size,prop_img_num,prop_img_size,auto_repost,promoted_type,status,alipay_bind,consumer_protection,avatar,liangpin,sign_food_seller_promise,has_shop,is_lightning_consignment,has_sub_stock,is_golden_seller,vip_info,magazine_subscribe,vertical_market,online_gaming参数

type UserSellerGetResponse

type UserSellerGetResponse struct {
	User *User `json:"user"`
}

type UserSellerGetResponseResult

type UserSellerGetResponseResult struct {
	Response *UserSellerGetResponse `json:"user_seller_get_response"`
}

type UsersGetRequest

type UsersGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

传入多个淘宝会员帐号返回多个用户公开信息

func (*UsersGetRequest) GetResponse

func (r *UsersGetRequest) GetResponse(accessToken string) (*UsersGetResponse, []byte, error)

func (*UsersGetRequest) SetFields

func (r *UsersGetRequest) SetFields(value string)

查询字段:User数据结构的公开信息字段列表,以半角逗号(,)分隔

func (*UsersGetRequest) SetNicks

func (r *UsersGetRequest) SetNicks(value string)

用户昵称,多个以半角逗号(,)分隔,最多40个

type UsersGetResponse

type UsersGetResponse struct {
	Users []*User `json:"users"`
}

type UsersGetResponseResult

type UsersGetResponseResult struct {
	Response *UsersGetResponse `json:"users_get_response"`
}

Jump to

Keyboard shortcuts

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