Documentation
¶
Overview ¶
提供了店铺查询,店铺自定义类目的查询和更新 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com
Index ¶
- Constants
- type SellerCat
- type SellercatsListAddRequest
- func (r *SellercatsListAddRequest) GetResponse(accessToken string) (*SellercatsListAddResponse, []byte, error)
- func (r *SellercatsListAddRequest) SetName(value string)
- func (r *SellercatsListAddRequest) SetParentCid(value string)
- func (r *SellercatsListAddRequest) SetPictUrl(value string)
- func (r *SellercatsListAddRequest) SetSortOrder(value string)
- type SellercatsListAddResponse
- type SellercatsListAddResponseResult
- type SellercatsListGetRequest
- type SellercatsListGetResponse
- type SellercatsListGetResponseResult
- type SellercatsListUpdateRequest
- func (r *SellercatsListUpdateRequest) GetResponse(accessToken string) (*SellercatsListUpdateResponse, []byte, error)
- func (r *SellercatsListUpdateRequest) SetCid(value string)
- func (r *SellercatsListUpdateRequest) SetName(value string)
- func (r *SellercatsListUpdateRequest) SetPictUrl(value string)
- func (r *SellercatsListUpdateRequest) SetSortOrder(value string)
- type SellercatsListUpdateResponse
- type SellercatsListUpdateResponseResult
- type Shop
- type ShopCat
- type ShopGetRequest
- type ShopGetResponse
- type ShopGetResponseResult
- type ShopRemainshowcaseGetRequest
- type ShopRemainshowcaseGetResponse
- type ShopRemainshowcaseGetResponseResult
- type ShopScore
- type ShopUpdateRequest
- type ShopUpdateResponse
- type ShopUpdateResponseResult
- type ShopcatsListGetRequest
- type ShopcatsListGetResponse
- type ShopcatsListGetResponseResult
Constants ¶
const VersionNo = "20130808"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SellerCat ¶
type SellerCat struct { Cid int `json:"cid"` Created string `json:"created"` Modified string `json:"modified"` Name string `json:"name"` ParentCid int `json:"parent_cid"` PicUrl string `json:"pic_url"` SortOrder int `json:"sort_order"` Type string `json:"type"` }
店铺内卖家自定义类目
type SellercatsListAddRequest ¶
type SellercatsListAddRequest struct {
open_taobao.TaobaoMethodRequest
}
此API添加卖家店铺内自定义类目
父类目parent_cid值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目 注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布
func (*SellercatsListAddRequest) GetResponse ¶
func (r *SellercatsListAddRequest) GetResponse(accessToken string) (*SellercatsListAddResponse, []byte, error)
func (*SellercatsListAddRequest) SetName ¶
func (r *SellercatsListAddRequest) SetName(value string)
卖家自定义类目名称。不超过20个字符
func (*SellercatsListAddRequest) SetParentCid ¶
func (r *SellercatsListAddRequest) SetParentCid(value string)
父类目编号,如果类目为店铺下的一级类目:值等于0,如果类目为子类目,调用获取taobao.sellercats.list.get父类目编号
func (*SellercatsListAddRequest) SetPictUrl ¶
func (r *SellercatsListAddRequest) SetPictUrl(value string)
链接图片URL地址。(绝对地址,格式:http://host/image_path)
func (*SellercatsListAddRequest) SetSortOrder ¶
func (r *SellercatsListAddRequest) SetSortOrder(value string)
该类目在页面上的排序位置,取值范围:大于零的整数
type SellercatsListAddResponse ¶
type SellercatsListAddResponse struct {
SellerCat *SellerCat `json:"seller_cat"`
}
type SellercatsListAddResponseResult ¶
type SellercatsListAddResponseResult struct {
Response *SellercatsListAddResponse `json:"sellercats_list_add_response"`
}
type SellercatsListGetRequest ¶
type SellercatsListGetRequest struct {
open_taobao.TaobaoMethodRequest
}
此API获取当前卖家店铺在淘宝前端被展示的浏览导航类目(面向买家)
func (*SellercatsListGetRequest) GetResponse ¶
func (r *SellercatsListGetRequest) GetResponse(accessToken string) (*SellercatsListGetResponse, []byte, error)
func (*SellercatsListGetRequest) SetNick ¶
func (r *SellercatsListGetRequest) SetNick(value string)
卖家昵称
type SellercatsListGetResponse ¶
type SellercatsListGetResponse struct {
SellerCats []*SellerCat `json:"seller_cats"`
}
type SellercatsListGetResponseResult ¶
type SellercatsListGetResponseResult struct {
Response *SellercatsListGetResponse `json:"sellercats_list_get_response"`
}
type SellercatsListUpdateRequest ¶
type SellercatsListUpdateRequest struct {
open_taobao.TaobaoMethodRequest
}
此API更新卖家店铺内自定义类目
注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布
func (*SellercatsListUpdateRequest) GetResponse ¶
func (r *SellercatsListUpdateRequest) GetResponse(accessToken string) (*SellercatsListUpdateResponse, []byte, error)
func (*SellercatsListUpdateRequest) SetCid ¶
func (r *SellercatsListUpdateRequest) SetCid(value string)
卖家自定义类目编号
func (*SellercatsListUpdateRequest) SetName ¶
func (r *SellercatsListUpdateRequest) SetName(value string)
卖家自定义类目名称。不超过20个字符
func (*SellercatsListUpdateRequest) SetPictUrl ¶
func (r *SellercatsListUpdateRequest) SetPictUrl(value string)
链接图片URL地址
func (*SellercatsListUpdateRequest) SetSortOrder ¶
func (r *SellercatsListUpdateRequest) SetSortOrder(value string)
该类目在页面上的排序位置,取值范围:大于零的整数
type SellercatsListUpdateResponse ¶
type SellercatsListUpdateResponse struct {
SellerCat *SellerCat `json:"seller_cat"`
}
type SellercatsListUpdateResponseResult ¶
type SellercatsListUpdateResponseResult struct {
Response *SellercatsListUpdateResponse `json:"sellercats_list_update_response"`
}
type Shop ¶
type Shop struct { AllCount int `json:"all_count"` Bulletin string `json:"bulletin"` Cid int `json:"cid"` Created string `json:"created"` Desc string `json:"desc"` Modified string `json:"modified"` Nick string `json:"nick"` PicPath string `json:"pic_path"` RemainCount int `json:"remain_count"` ShopScore *ShopScore `json:"shop_score"` Sid int `json:"sid"` Title string `json:"title"` UsedCount int `json:"used_count"` }
店铺信息
type ShopCat ¶
type ShopCat struct { Cid int `json:"cid"` IsParent bool `json:"is_parent"` Name string `json:"name"` ParentCid int `json:"parent_cid"` }
店铺类目
type ShopGetRequest ¶
type ShopGetRequest struct {
open_taobao.TaobaoMethodRequest
}
获取卖家店铺的基本信息
func (*ShopGetRequest) GetResponse ¶
func (r *ShopGetRequest) GetResponse(accessToken string) (*ShopGetResponse, []byte, error)
func (*ShopGetRequest) SetFields ¶
func (r *ShopGetRequest) SetFields(value string)
需返回的字段列表。可选值:Shop 结构中的所有字段;多个字段之间用逗号(,)分隔
type ShopGetResponse ¶
type ShopGetResponse struct {
Shop *Shop `json:"shop"`
}
type ShopGetResponseResult ¶
type ShopGetResponseResult struct {
Response *ShopGetResponse `json:"shop_get_response"`
}
type ShopRemainshowcaseGetRequest ¶
type ShopRemainshowcaseGetRequest struct {
open_taobao.TaobaoMethodRequest
}
获取卖家店铺剩余橱窗数量,已用橱窗数量,总橱窗数量
func (*ShopRemainshowcaseGetRequest) GetResponse ¶
func (r *ShopRemainshowcaseGetRequest) GetResponse(accessToken string) (*ShopRemainshowcaseGetResponse, []byte, error)
type ShopRemainshowcaseGetResponse ¶
type ShopRemainshowcaseGetResponse struct {
Shop *Shop `json:"shop"`
}
type ShopRemainshowcaseGetResponseResult ¶
type ShopRemainshowcaseGetResponseResult struct {
Response *ShopRemainshowcaseGetResponse `json:"shop_remainshowcase_get_response"`
}
type ShopScore ¶
type ShopScore struct { DeliveryScore string `json:"delivery_score"` ItemScore string `json:"item_score"` ServiceScore string `json:"service_score"` }
店铺动态评分信息
type ShopUpdateRequest ¶
type ShopUpdateRequest struct {
open_taobao.TaobaoMethodRequest
}
目前只支持标题、公告和描述的更新
func (*ShopUpdateRequest) GetResponse ¶
func (r *ShopUpdateRequest) GetResponse(accessToken string) (*ShopUpdateResponse, []byte, error)
func (*ShopUpdateRequest) SetBulletin ¶
func (r *ShopUpdateRequest) SetBulletin(value string)
店铺公告。不超过1024个字符
func (*ShopUpdateRequest) SetDesc ¶
func (r *ShopUpdateRequest) SetDesc(value string)
店铺描述。10~2000个字符以内
func (*ShopUpdateRequest) SetTitle ¶
func (r *ShopUpdateRequest) SetTitle(value string)
店铺标题。不超过30个字符;过滤敏感词,如淘咖啡、阿里巴巴等。title, bulletin和desc至少必须传一个
type ShopUpdateResponse ¶
type ShopUpdateResponse struct {
Shop *Shop `json:"shop"`
}
type ShopUpdateResponseResult ¶
type ShopUpdateResponseResult struct {
Response *ShopUpdateResponse `json:"shop_update_response"`
}
type ShopcatsListGetRequest ¶
type ShopcatsListGetRequest struct {
open_taobao.TaobaoMethodRequest
}
获取淘宝面向买家的浏览导航类目(跟后台卖家商品管理的类目有差异)
func (*ShopcatsListGetRequest) GetResponse ¶
func (r *ShopcatsListGetRequest) GetResponse(accessToken string) (*ShopcatsListGetResponse, []byte, error)
func (*ShopcatsListGetRequest) SetFields ¶
func (r *ShopcatsListGetRequest) SetFields(value string)
需要返回的字段列表,见ShopCat,默认返回:cid,parent_cid,name,is_parent
type ShopcatsListGetResponse ¶
type ShopcatsListGetResponse struct {
ShopCats []*ShopCat `json:"shop_cats"`
}
type ShopcatsListGetResponseResult ¶
type ShopcatsListGetResponseResult struct {
Response *ShopcatsListGetResponse `json:"shopcats_list_get_response"`
}