favorite

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: 0

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

func (*FavoriteAddRequest) SetShared

func (r *FavoriteAddRequest) SetShared(value string)

该收藏是否公开

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"`
}

Jump to

Keyboard shortcuts

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