api

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

@author:Joker @file: api.go @time: 2021/7/12/11:10 上午 @blog: https://github.com/joker-heyra @description: tbk api 公共参数 https://open.taobao.com/doc.htm?docId=101617&docType=1

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: juItemsSearchRequest.go @time: 2021/7/13/10:56 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkActivityInfoGetRequest.go @time: 2021/7/13/11:02 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkCouponGetRequest.go @time: 2021/7/13/11:09 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkDgMaterialOptionalRequest.go @time: 2021/7/13/10:09 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkDgOptimusMaterial.go @time: 2021/7/12/11:10 上午 @blog: https://github.com/joker-heyra @description: https://open.taobao.com/api.htm?docId=33947&docType=2&scopeId=16518#requestParams

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkDgOptimusMaterialRequest.go @time: 2021/7/13/11:13 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkDgOptimusPromotionRequest.go @time: 2021/7/13/11:23 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkDgVegasTljCreateRequest.go @time: 2021/7/13/10:47 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkDgVegasTljInstanceReportRequest.go @time: 2021/7/13/10:53 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkItemInfoGetRequest.go @time: 2021/7/13/11:07 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkShopGetRequest.go @time: 2021/7/13/10:03 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkShopRecommendGetRequest.go @time: 2021/7/13/9:49 上午 @blog: https://github.com/joker-heyra @description: https://open.taobao.com/api.htm?docId=24522&docType=2&scopeId=16292

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

@author:Joker @file: tbkTpwdCreateRequest.go @time: 2021/7/13/11:04 上午 @blog: https://github.com/joker-heyra @description: --

🤡 code is far away from bugs with the god animal protecting

I love animals. They taste delicious.

🤡

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JuItemsSearchRequest added in v1.0.0

type JuItemsSearchRequest struct {
	CurrentPage      string `json:"current_page,omitempty"`
	PageSize         string `json:"page_size,omitempty"`
	Pid              string `json:"pid,omitempty"`
	Postage          string `json:"postage,omitempty"`
	Status           string `json:"status,omitempty"`
	TaobaoCategoryId string `json:"taobao_category_id,omitempty"`
	Word             string `json:"word,omitempty"`
}

func (*JuItemsSearchRequest) GetResponse added in v1.0.0

func (j *JuItemsSearchRequest) GetResponse(rest Rest) (string, error)

type Rest

type Rest struct {
	Simplify  bool
	RestUrl   string
	AppKey    string
	AppSecret string
	Session   string
	V         string
	Other     map[string]string // 其他公共参数,使用 key-value 形式
}

type TbkActivityInfoGetRequest added in v1.0.0

type TbkActivityInfoGetRequest struct {
	AdzoneId           string `json:"adzone_id,omitempty"`
	SubPid             string `json:"sub_pid,omitempty"`
	RelationId         string `json:"relation_id,omitempty"`
	ActivityMaterialId string `json:"activity_material_id,omitempty"`
	UnionId            string `json:"union_id,omitempty"`
}

func (*TbkActivityInfoGetRequest) GetResponse added in v1.0.0

func (t *TbkActivityInfoGetRequest) GetResponse(rest Rest) (string, error)

type TbkCouponGetRequest added in v1.0.0

type TbkCouponGetRequest struct {
	Me         string `json:"me,omitempty"`
	ItemId     string `json:"item_id,omitempty"`
	ActivityId string `json:"activity_id,omitempty"`
}

func (*TbkCouponGetRequest) GetResponse added in v1.0.0

func (t *TbkCouponGetRequest) GetResponse(rest Rest) (string, error)

type TbkDgMaterialOptionalRequest added in v1.0.0

type TbkDgMaterialOptionalRequest struct {
	StartDsr          string `json:"start_dsr,omitempty"`
	PageSize          string `json:"page_size,omitempty"`
	PageNo            string `json:"page_no,omitempty"`
	Platform          string `json:"platform,omitempty"`
	EndTkRate         string `json:"end_tk_rate,omitempty"`
	StartTkRate       string `json:"start_tk_rate,omitempty"`
	EndPrice          string `json:"end_price,omitempty"`
	StartPrice        string `json:"start_price,omitempty"`
	IsOverseas        string `json:"is_overseas,omitempty"`
	IsTmall           string `json:"is_tmall,omitempty"`
	Sort              string `json:"sort,omitempty"`
	Itemloc           string `json:"itemloc,omitempty"`
	Cat               string `json:"cat,omitempty"`
	Q                 string `json:"q,omitempty"`
	MaterialId        string `json:"material_id,omitempty"`
	HasCoupon         string `json:"has_coupon,omitempty"`
	Ip                string `json:"ip,omitempty"`
	AdzoneId          string `json:"adzone_id,omitempty"`
	NeedFreeShipment  string `json:"need_free_shipment,omitempty"`
	NeedPrepay        string `json:"need_prepay,omitempty"`
	IncludePayRate30  string `json:"include_pay_rate_30,omitempty"`
	IncludeGoodRate   string `json:"include_good_rate,omitempty"`
	IncludeRfdRate    string `json:"include_rfd_rate,omitempty"`
	NpxLevel          string `json:"npx_level,omitempty"`
	EndKaTkRate       string `json:"end_ka_tk_rate,omitempty"`
	StartKaTkRate     string `json:"start_ka_tk_rate,omitempty"`
	DeviceEncrypt     string `json:"device_encrypt,omitempty"`
	DeviceValue       string `json:"device_value,omitempty"`
	DeviceType        string `json:"device_type,omitempty"`
	LockRateEndTime   string `json:"lock_rate_end_time,omitempty"`
	LockRateStartTime string `json:"lock_rate_start_time,omitempty"`
	Longitude         string `json:"longitude,omitempty"`
	Latitude          string `json:"latitude,omitempty"`
	CityCode          string `json:"city_code,omitempty"`
	SellerIds         string `json:"seller_ids,omitempty"`
	SpecialId         string `json:"special_id,omitempty"`
	RelationId        string `json:"relation_id,omitempty"`
	PageResultKey     string `json:"page_result_key,omitempty"`
	UcrowdId          string `json:"ucrowd_id,omitempty"`
	UcrowdRankItems   string `json:"ucrowd_rank_items,omitempty"`
	GetTopnRate       string `json:"get_topn_rate,omitempty"`
}

func (*TbkDgMaterialOptionalRequest) GetResponse added in v1.0.0

func (t *TbkDgMaterialOptionalRequest) GetResponse(rest Rest) (string, error)

type TbkDgOptimusMaterial

type TbkDgOptimusMaterial struct {
	PageSize      string `json:"page_size,omitempty"`
	AdZoneId      string `json:"adzone_id,omitempty"`
	PageNo        string `json:"page_no,omitempty"`
	MaterialId    string `json:"material_id,omitempty"`
	DeviceValue   string `json:"device_value,omitempty"`
	DeviceEncrypt string `json:"device_encrypt,omitempty"`
	DeviceType    string `json:"device_type,omitempty"`
	ContentId     string `json:"content_id,omitempty"`
	ContentSource string `json:"content_source,omitempty"`
	ItemId        string `json:"item_id,omitempty"`
	FavoritesId   string `json:"favorites_id,omitempty"`
}

func (*TbkDgOptimusMaterial) GetResponse

func (t *TbkDgOptimusMaterial) GetResponse(rest Rest) (string, error)

type TbkDgOptimusMaterialRequest added in v1.0.0

type TbkDgOptimusMaterialRequest struct {
	AdzoneId      string `json:"adzone_id"`
	PageSize      string `json:"page_size,omitempty"`
	PageNo        string `json:"page_no,omitempty"`
	MaterialId    string `json:"material_id,omitempty"`
	DeviceValue   string `json:"device_value,omitempty"`
	DeviceEncrypt string `json:"device_encrypt,omitempty"`
	DeviceType    string `json:"device_type,omitempty"`
	ContentId     string `json:"content_id,omitempty"`
	ContentSource string `json:"content_source,omitempty"`
	ItemId        string `json:"item_id,omitempty"`
	FavoritesId   string `json:"favorites_id,omitempty"`
}

func (*TbkDgOptimusMaterialRequest) GetResponse added in v1.0.0

func (t *TbkDgOptimusMaterialRequest) GetResponse(rest Rest) (string, error)

type TbkDgOptimusPromotionRequest added in v1.0.0

type TbkDgOptimusPromotionRequest struct {
	PageSize    string `json:"page_size,omitempty"`
	PageNum     string `json:"page_num,omitempty"`
	AdzoneId    string `json:"adzone_id,omitempty"`
	PromotionId string `json:"promotion_id,omitempty"`
}

func (*TbkDgOptimusPromotionRequest) GetResponse added in v1.0.0

func (t *TbkDgOptimusPromotionRequest) GetResponse(rest Rest) (string, error)

type TbkDgVegasTljCreateRequest added in v1.0.0

type TbkDgVegasTljCreateRequest struct {
	AdzoneId             string `json:"adzone_id,omitempty"`
	SecurityLevel        string `json:"security_level,omitempty"`
	UseStartTime         string `json:"use_start_time,omitempty"`
	UseEndTimeMode       string `json:"use_end_time_mode,omitempty"`
	UseEndTime           string `json:"use_end_time,omitempty"`
	SendEndTime          string `json:"send_end_time,omitempty"`
	SendStartTime        string `json:"send_start_time,omitempty"`
	PerFace              string `json:"per_face,omitempty"`
	SecuritySwitch       string `json:"security_switch,omitempty"`
	UserTotalWinNumLimit string `json:"user_total_win_num_limit,omitempty"`
	Name                 string `json:"name,omitempty"`
	TotalNum             string `json:"total_num,omitempty"`
	ItemId               string `json:"item_id,omitempty"`
	CampaignType         string `json:"campaign_type,omitempty"`
}

func (*TbkDgVegasTljCreateRequest) GetResponse added in v1.0.0

func (t *TbkDgVegasTljCreateRequest) GetResponse(rest Rest) (string, error)

type TbkDgVegasTljInstanceReportRequest added in v1.0.0

type TbkDgVegasTljInstanceReportRequest struct {
	RightsId string `json:"rights_id,omitempty"`
}

func (*TbkDgVegasTljInstanceReportRequest) GetResponse added in v1.0.0

func (t *TbkDgVegasTljInstanceReportRequest) GetResponse(rest Rest) (string, error)

type TbkItemInfoGetRequest added in v1.0.0

type TbkItemInfoGetRequest struct {
	NumIids  string `json:"num_iids,omitempty"`
	Platform string `json:"platform,omitempty"`
	Ip       string `json:"ip,omitempty"`
}

func (*TbkItemInfoGetRequest) GetResponse added in v1.0.0

func (t *TbkItemInfoGetRequest) GetResponse(rest Rest) (string, error)

type TbkShopGetRequest added in v1.0.0

type TbkShopGetRequest struct {
	Fields              string `json:"fields,omitempty"`
	Q                   string `json:"q,omitempty"`
	Sort                string `json:"sort,omitempty"`
	IsTmall             string `json:"is_tmall,omitempty"`
	StartCredit         string `json:"start_credit,omitempty"`
	EndCredit           string `json:"end_credit,omitempty"`
	StartCommissionRate string `json:"start_commission_rate,omitempty"`
	EndCommissionRate   string `json:"end_commission_rate,omitempty"`
	StartTotalAction    string `json:"start_total_action,omitempty"`
	EndTotalAction      string `json:"end_total_action,omitempty"`
	StartAuctionCount   string `json:"start_auction_count,omitempty"`
	EndAuctionCount     string `json:"end_auction_count,omitempty"`
	Platform            string `json:"platform,omitempty"`
	PageNo              string `json:"page_no,omitempty"`
	PageSize            string `json:"page_size,omitempty"`
}

func (*TbkShopGetRequest) GetResponse added in v1.0.0

func (t *TbkShopGetRequest) GetResponse(rest Rest) (string, error)

type TbkShopRecommendGetRequest added in v1.0.0

type TbkShopRecommendGetRequest struct {
	Fields   string `json:"fields,omitempty"`
	UserId   string `json:"user_id,omitempty"`
	Count    string `json:"count,omitempty"`
	Platform string `json:"platform,omitempty"`
}

func (*TbkShopRecommendGetRequest) GetResponse added in v1.0.0

func (t *TbkShopRecommendGetRequest) GetResponse(rest Rest) (string, error)

type TbkTpwdCreateRequest added in v1.0.0

type TbkTpwdCreateRequest struct {
	Url    string `json:"url,omitempty"`
	Text   string `json:"text,omitempty"`
	Ext    string `json:"ext,omitempty"`
	UserId string `json:"user_id,omitempty"`
}

func (*TbkTpwdCreateRequest) GetResponse added in v1.0.0

func (t *TbkTpwdCreateRequest) GetResponse(rest Rest) (string, error)

Jump to

Keyboard shortcuts

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