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 CollectItem ¶
type CollectItem struct { ItemNumid int `json:"item_numid"` ItemOwnerNick string `json:"item_owner_nick"` Title string `json:"title"` }
商品或店铺的信息
type FavoriteAddRequest ¶
type FavoriteAddRequest struct {
open_taobao.TaobaoMethodRequest
}
添加商品或店铺到收藏夹
func (*FavoriteAddRequest) GetResponse ¶
func (r *FavoriteAddRequest) GetResponse(accessToken string) (*FavoriteAddResponse, []byte, error)
func (*FavoriteAddRequest) SetCollectType ¶
func (r *FavoriteAddRequest) SetCollectType(value string)
ITEM表示宝贝,SHOP表示店铺,只能传入这两者之一
func (*FavoriteAddRequest) SetItemNumid ¶
func (r *FavoriteAddRequest) SetItemNumid(value string)
如果收藏的是商品,就传num_iid,如果是店铺,就传入sid
type FavoriteAddResponse ¶
type FavoriteAddResponse struct {
Success bool `json:"success"`
}
type FavoriteAddResponseResult ¶
type FavoriteAddResponseResult struct {
Response *FavoriteAddResponse `json:"favorite_add_response"`
}
type FavoriteSearchRequest ¶
type FavoriteSearchRequest struct {
open_taobao.TaobaoMethodRequest
}
查询淘宝用户收藏的商品或店铺信息
func (*FavoriteSearchRequest) GetResponse ¶
func (r *FavoriteSearchRequest) GetResponse(accessToken string) (*FavoriteSearchResponse, []byte, error)
func (*FavoriteSearchRequest) SetCollectType ¶
func (r *FavoriteSearchRequest) SetCollectType(value string)
ITEM表示宝贝,SHOP表示商铺,collect_type只能为这两者之一
func (*FavoriteSearchRequest) SetPageNo ¶
func (r *FavoriteSearchRequest) SetPageNo(value string)
页码。取值范围:大于零的整数; 默认值:1。一页20条记录。
type FavoriteSearchResponse ¶
type FavoriteSearchResponse struct { CollectItems []*CollectItem `json:"collect_items"` TotalResults int `json:"total_results"` }
type FavoriteSearchResponseResult ¶
type FavoriteSearchResponseResult struct {
Response *FavoriteSearchResponse `json:"favorite_search_response"`
}
Click to show internal directories.
Click to hide internal directories.