recommend

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

通过商品、类目、用户等条件推荐优质商品 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 CategoryrecommendItemsGetRequest

type CategoryrecommendItemsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据类目信息推荐相关联的宝贝集

func (*CategoryrecommendItemsGetRequest) GetResponse

func (*CategoryrecommendItemsGetRequest) SetCategoryId

func (r *CategoryrecommendItemsGetRequest) SetCategoryId(value string)

传入叶子类目ID

func (*CategoryrecommendItemsGetRequest) SetCount

func (r *CategoryrecommendItemsGetRequest) SetCount(value string)

请求个数,建议获取20个

func (*CategoryrecommendItemsGetRequest) SetExt

func (r *CategoryrecommendItemsGetRequest) SetExt(value string)

额外参数

func (*CategoryrecommendItemsGetRequest) SetRecommendType

func (r *CategoryrecommendItemsGetRequest) SetRecommendType(value string)

请求类型,1:类目下热门商品推荐。其他值当非法值处理

type CategoryrecommendItemsGetResponse

type CategoryrecommendItemsGetResponse struct {
	FavoriteItems struct {
		FavoriteItem []*FavoriteItem `json:"favorite_item"`
	} `json:"favorite_items"`
}

type CategoryrecommendItemsGetResponseResult

type CategoryrecommendItemsGetResponseResult struct {
	Response *CategoryrecommendItemsGetResponse `json:"categoryrecommend_items_get_response"`
}

type FavoriteItem

type FavoriteItem struct {
	ItemName       string  `json:"item_name"`
	ItemPictrue    string  `json:"item_pictrue"`
	ItemPrice      float64 `json:"item_price,string"`
	ItemUrl        string  `json:"item_url"`
	PromotionPrice float64 `json:"promotion_price,string"`
	SellCount      int     `json:"sell_count"`
	TrackIid       string  `json:"track_iid"`
}

推荐的关联商品

type FavoriteShop

type FavoriteShop struct {
	Rate       int    `json:"rate"`
	SellerId   int    `json:"seller_id"`
	SellerNick string `json:"seller_nick"`
	ShopId     int    `json:"shop_id"`
	ShopName   string `json:"shop_name"`
	ShopPic    string `json:"shop_pic"`
	ShopUrl    string `json:"shop_url"`
}

推荐关联店铺信息

type ItemrecommendItemsGetRequest

type ItemrecommendItemsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据推荐类型获取推荐的关联关系商品

func (*ItemrecommendItemsGetRequest) GetResponse

func (r *ItemrecommendItemsGetRequest) GetResponse(accessToken string) (*ItemrecommendItemsGetResponse, []byte, error)

func (*ItemrecommendItemsGetRequest) SetCount

func (r *ItemrecommendItemsGetRequest) SetCount(value string)

请求返回宝贝的个数,建议取20个

func (*ItemrecommendItemsGetRequest) SetExt

func (r *ItemrecommendItemsGetRequest) SetExt(value string)

额外的参数信息

func (*ItemrecommendItemsGetRequest) SetItemId

func (r *ItemrecommendItemsGetRequest) SetItemId(value string)

商品ID

func (*ItemrecommendItemsGetRequest) SetRecommendType

func (r *ItemrecommendItemsGetRequest) SetRecommendType(value string)

查询类型标识符,可传入1-3,1:同类商品推荐,2:异类商品推荐, 3:同店商品推荐。其他值当非法值处理

type ItemrecommendItemsGetResponse

type ItemrecommendItemsGetResponse struct {
	Values struct {
		FavoriteItem []*FavoriteItem `json:"favorite_item"`
	} `json:"values"`
}

type ItemrecommendItemsGetResponseResult

type ItemrecommendItemsGetResponseResult struct {
	Response *ItemrecommendItemsGetResponse `json:"itemrecommend_items_get_response"`
}

type ShoprecommendItemsGetRequest

type ShoprecommendItemsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据店铺信息推荐相关联的宝贝集

func (*ShoprecommendItemsGetRequest) GetResponse

func (r *ShoprecommendItemsGetRequest) GetResponse(accessToken string) (*ShoprecommendItemsGetResponse, []byte, error)

func (*ShoprecommendItemsGetRequest) SetCount

func (r *ShoprecommendItemsGetRequest) SetCount(value string)

请求个数,最大只能获取10个

func (*ShoprecommendItemsGetRequest) SetExt

func (r *ShoprecommendItemsGetRequest) SetExt(value string)

额外参数

func (*ShoprecommendItemsGetRequest) SetRecommendType

func (r *ShoprecommendItemsGetRequest) SetRecommendType(value string)

请求类型,1:店内热门商品推荐。其他值当非法值处理

func (*ShoprecommendItemsGetRequest) SetSellerId

func (r *ShoprecommendItemsGetRequest) SetSellerId(value string)
<p>传入卖家ID。这里的seller_id得通过<a href="http://api.taobao.com/apidoc/api.htm?path=cid:38-apiId:10449">taobao.taobaoke.shops.get</a>

跟<a href="http://api.taobao.com/apidoc/api.htm?path=cid:38-apiId:21419">taobao.taobaoke.widget.shops.convert</a>这两个接口去获取user_id字段。</p> <p>如果是非淘客卖家,则无法获取,暂无替代方案。</p>

type ShoprecommendItemsGetResponse

type ShoprecommendItemsGetResponse struct {
	FavoriteItems struct {
		FavoriteItem []*FavoriteItem `json:"favorite_item"`
	} `json:"favorite_items"`
}

type ShoprecommendItemsGetResponseResult

type ShoprecommendItemsGetResponseResult struct {
	Response *ShoprecommendItemsGetResponse `json:"shoprecommend_items_get_response"`
}

type ShoprecommendShopsGetRequest

type ShoprecommendShopsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据店铺信息推荐相关联的店铺集

func (*ShoprecommendShopsGetRequest) GetResponse

func (r *ShoprecommendShopsGetRequest) GetResponse(accessToken string) (*ShoprecommendShopsGetResponse, []byte, error)

func (*ShoprecommendShopsGetRequest) SetCount

func (r *ShoprecommendShopsGetRequest) SetCount(value string)

请求个数,建议获取16个

func (*ShoprecommendShopsGetRequest) SetExt

func (r *ShoprecommendShopsGetRequest) SetExt(value string)

额外参数

func (*ShoprecommendShopsGetRequest) SetRecommendType

func (r *ShoprecommendShopsGetRequest) SetRecommendType(value string)

请求类型,1:关联店铺推荐。其他值当非法值处理

func (*ShoprecommendShopsGetRequest) SetSellerId

func (r *ShoprecommendShopsGetRequest) SetSellerId(value string)

传入卖家ID

type ShoprecommendShopsGetResponse

type ShoprecommendShopsGetResponse struct {
	FavoriteShops struct {
		FavoriteShop []*FavoriteShop `json:"favorite_shop"`
	} `json:"favorite_shops"`
}

type ShoprecommendShopsGetResponseResult

type ShoprecommendShopsGetResponseResult struct {
	Response *ShoprecommendShopsGetResponse `json:"shoprecommend_shops_get_response"`
}

type UserrecommendItemsGetRequest

type UserrecommendItemsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}
根据用户信息推荐相关联的宝贝集。仅支持widget入口调用,需要同时校验淘宝cookie登陆情况,以及cookie和session授权的一致性。调用入口为/widget/rest。签名方法简化为Hmac-md5,hmac(secret+‘app_key' +app_key +'timestamp' + timestamp+secret)。timestamp为60分钟内有效

此API为组件API,调用方式需要参照:http://open.taobao.com/doc/detail.htm?id=988,以JS-SDK调用

func (*UserrecommendItemsGetRequest) GetResponse

func (r *UserrecommendItemsGetRequest) GetResponse(accessToken string) (*UserrecommendItemsGetResponse, []byte, error)

func (*UserrecommendItemsGetRequest) SetCount

func (r *UserrecommendItemsGetRequest) SetCount(value string)

请求个数,建议取20个

func (*UserrecommendItemsGetRequest) SetExt

func (r *UserrecommendItemsGetRequest) SetExt(value string)

额外参数

func (*UserrecommendItemsGetRequest) SetRecommendType

func (r *UserrecommendItemsGetRequest) SetRecommendType(value string)

请求类型,1:用户购买意图。其他值当非法值处理

type UserrecommendItemsGetResponse

type UserrecommendItemsGetResponse struct {
	FavoriteItems struct {
		FavoriteItem []*FavoriteItem `json:"favorite_item"`
	} `json:"favorite_items"`
}

type UserrecommendItemsGetResponseResult

type UserrecommendItemsGetResponseResult struct {
	Response *UserrecommendItemsGetResponse `json:"userrecommend_items_get_response"`
}

Jump to

Keyboard shortcuts

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