marketing

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 Activity

type Activity struct {
	ActivityId       int    `json:"activity_id"`
	ActivityUrl      string `json:"activity_url"`
	AppliedCount     int    `json:"applied_count"`
	CouponId         int    `json:"coupon_id"`
	CreateUser       string `json:"create_user"`
	PersonLimitCount int    `json:"person_limit_count"`
	Status           string `json:"status"`
	TotalCount       int    `json:"total_count"`
}

活动数据结构

type Coupon

type Coupon struct {
	Condition     int    `json:"condition"`
	CouponId      int    `json:"coupon_id"`
	CreatTime     string `json:"creat_time"`
	CreateChannel string `json:"create_channel"`
	Denominations int    `json:"denominations"`
	EndTime       string `json:"end_time"`
}

优惠券数据结构

type CouponDetail

type CouponDetail struct {
	BuyerNick    string `json:"buyer_nick"`
	Channel      string `json:"channel"`
	CouponNumber int    `json:"coupon_number"`
	State        string `json:"state"`
}

优惠券详细信息

type CouponResult

type CouponResult struct {
	BuyerNick    string `json:"buyer_nick"`
	CouponNumber int    `json:"coupon_number"`
}

发放成功的优惠券的信息,包括couponNumber和buyerNick

type ErrorMessage

type ErrorMessage struct {
	BuyerNick string `json:"buyer_nick"`
	Reason    string `json:"reason"`
}

未发放成功买家昵称,发放失败原因

type LimitDiscount

type LimitDiscount struct {
	EndTime           string `json:"end_time"`
	ItemNum           int    `json:"item_num"`
	LimitDiscountId   int    `json:"limit_discount_id"`
	LimitDiscountName string `json:"limit_discount_name"`
	StartTime         string `json:"start_time"`
}

限时打折

type LimitDiscountDetail

type LimitDiscountDetail struct {
	EndTime           string  `json:"end_time"`
	ItemDiscount      float64 `json:"item_discount"`
	ItemId            int     `json:"item_id"`
	LimitDiscountName string  `json:"limit_discount_name"`
	LimitNum          int     `json:"limit_num"`
	StartTime         string  `json:"start_time"`
}

限时打折详情

type MarketingPromotionKfcRequest

type MarketingPromotionKfcRequest struct {
	open_taobao.TaobaoMethodRequest
}

活动名称与描述违禁词检查

func (*MarketingPromotionKfcRequest) GetResponse

func (r *MarketingPromotionKfcRequest) GetResponse(accessToken string) (*MarketingPromotionKfcResponse, []byte, error)

func (*MarketingPromotionKfcRequest) SetPromotionDesc

func (r *MarketingPromotionKfcRequest) SetPromotionDesc(value string)

活动描述

func (*MarketingPromotionKfcRequest) SetPromotionTitle

func (r *MarketingPromotionKfcRequest) SetPromotionTitle(value string)

活动名称

type MarketingPromotionKfcResponse

type MarketingPromotionKfcResponse struct {
	IsSuccess bool `json:"is_success"`
}

type MarketingPromotionKfcResponseResult

type MarketingPromotionKfcResponseResult struct {
	Response *MarketingPromotionKfcResponse `json:"marketing_promotion_kfc_response"`
}

type MarketingPromotionsGetRequest

type MarketingPromotionsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据商品ID查询卖家使用该第三方工具对商品设置的所有优惠策略

func (*MarketingPromotionsGetRequest) GetResponse

func (*MarketingPromotionsGetRequest) SetFields

func (r *MarketingPromotionsGetRequest) SetFields(value string)

需返回的优惠策略结构字段列表。可选值为Promotion中所有字段,如:promotion_id, promotion_title, item_id, status, tag_id等等

func (*MarketingPromotionsGetRequest) SetIsNewTag

func (r *MarketingPromotionsGetRequest) SetIsNewTag(value string)

是否新标签标识

func (*MarketingPromotionsGetRequest) SetNumIid

func (r *MarketingPromotionsGetRequest) SetNumIid(value string)

商品数字ID。根据该ID查询商品下通过第三方工具设置的所有优惠策略

func (*MarketingPromotionsGetRequest) SetStatus

func (r *MarketingPromotionsGetRequest) SetStatus(value string)

优惠策略状态。可选值:ACTIVE(有效),UNACTIVE(无效),若不传或者传入其他值,则默认查询全部

func (*MarketingPromotionsGetRequest) SetTagId

func (r *MarketingPromotionsGetRequest) SetTagId(value string)

标签ID

type MarketingPromotionsGetResponse

type MarketingPromotionsGetResponse struct {
	Promotions   []*Promotion `json:"promotions"`
	TotalResults int          `json:"total_results"`
}

type MarketingPromotionsGetResponseResult

type MarketingPromotionsGetResponseResult struct {
	Response *MarketingPromotionsGetResponse `json:"marketing_promotions_get_response"`
}

type MarketingTagsGetRequest

type MarketingTagsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询人群标签,返回卖家创建的全部人群标签(有效的)

func (*MarketingTagsGetRequest) GetResponse

func (r *MarketingTagsGetRequest) GetResponse(accessToken string) (*MarketingTagsGetResponse, []byte, error)

func (*MarketingTagsGetRequest) SetFields

func (r *MarketingTagsGetRequest) SetFields(value string)

需要的返回字段,可选值为UserTag中所有字段

type MarketingTagsGetResponse

type MarketingTagsGetResponse struct {
	UserTags []*UserTag `json:"user_tags"`
}

type MarketingTagsGetResponseResult

type MarketingTagsGetResponseResult struct {
	Response *MarketingTagsGetResponse `json:"marketing_tags_get_response"`
}

type Meal

type Meal struct {
	ItemList  string  `json:"item_list"`
	MealId    int     `json:"meal_id"`
	MealMemo  string  `json:"meal_memo"`
	MealName  string  `json:"meal_name"`
	MealPrice float64 `json:"meal_price"`
	PostageId int     `json:"postage_id"`
	Status    string  `json:"status"`
}

搭配套餐类。

type Promotion

type Promotion struct {
	DecreaseNum    int    `json:"decrease_num"`
	DiscountType   string `json:"discount_type"`
	DiscountValue  string `json:"discount_value"`
	EndDate        string `json:"end_date"`
	NumIid         int    `json:"num_iid"`
	PromotionDesc  string `json:"promotion_desc"`
	PromotionId    int    `json:"promotion_id"`
	PromotionTitle string `json:"promotion_title"`
	StartDate      string `json:"start_date"`
	Status         string `json:"status"`
	TagId          int    `json:"tag_id"`
}

商品优惠策略详情

type PromotionActivityAddRequest

type PromotionActivityAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

创建某个卖家的店铺优惠券领取活动。返回,优惠券领取活动ID,优惠券领取链接。

func (*PromotionActivityAddRequest) GetResponse

func (r *PromotionActivityAddRequest) GetResponse(accessToken string) (*PromotionActivityAddResponse, []byte, error)

func (*PromotionActivityAddRequest) SetCouponCount

func (r *PromotionActivityAddRequest) SetCouponCount(value string)

优惠券总领用数量

func (*PromotionActivityAddRequest) SetCouponId

func (r *PromotionActivityAddRequest) SetCouponId(value string)

优惠券的id,唯一标识这个优惠券

func (*PromotionActivityAddRequest) SetPersonLimitCount

func (r *PromotionActivityAddRequest) SetPersonLimitCount(value string)

每个人最多领用数量,0代表不限

func (*PromotionActivityAddRequest) SetUploadToTaoquan

func (r *PromotionActivityAddRequest) SetUploadToTaoquan(value string)
是否将该活动优惠券同步到淘券市场

1(不同步) 2(同步)

type PromotionActivityAddResponse

type PromotionActivityAddResponse struct {
	Activity *Activity `json:"activity"`
}

type PromotionActivityAddResponseResult

type PromotionActivityAddResponseResult struct {
	Response *PromotionActivityAddResponse `json:"promotion_activity_add_response"`
}

type PromotionActivityCancelRequest

type PromotionActivityCancelRequest struct {
	open_taobao.TaobaoMethodRequest
}

取消正在开始的店铺优惠券活动

func (*PromotionActivityCancelRequest) GetResponse

func (*PromotionActivityCancelRequest) SetActivityId

func (r *PromotionActivityCancelRequest) SetActivityId(value string)

活动id

type PromotionActivityCancelResponse

type PromotionActivityCancelResponse struct {
	IsSuccess bool `json:"is_success"`
}

type PromotionActivityCancelResponseResult

type PromotionActivityCancelResponseResult struct {
	Response *PromotionActivityCancelResponse `json:"promotion_activity_cancel_response"`
}

type PromotionActivityDeleteRequest

type PromotionActivityDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

删除卖家创建的店铺优惠券活动

func (*PromotionActivityDeleteRequest) GetResponse

func (*PromotionActivityDeleteRequest) SetActivityId

func (r *PromotionActivityDeleteRequest) SetActivityId(value string)

优惠券的id

type PromotionActivityDeleteResponse

type PromotionActivityDeleteResponse struct {
	IsSuccess bool `json:"is_success"`
}

type PromotionActivityDeleteResponseResult

type PromotionActivityDeleteResponseResult struct {
	Response *PromotionActivityDeleteResponse `json:"promotion_activity_delete_response"`
}

type PromotionActivityGetRequest

type PromotionActivityGetRequest struct {
	open_taobao.TaobaoMethodRequest
}
查询某个卖家的店铺优惠券领取活动

返回,优惠券领取活动ID,优惠券ID,总领用量,每人限领量,已领取数量 领取活动状态,优惠券领取链接 最多50个优惠券

func (*PromotionActivityGetRequest) GetResponse

func (r *PromotionActivityGetRequest) GetResponse(accessToken string) (*PromotionActivityGetResponse, []byte, error)

func (*PromotionActivityGetRequest) SetActivityId

func (r *PromotionActivityGetRequest) SetActivityId(value string)

活动的id

type PromotionActivityGetResponse

type PromotionActivityGetResponse struct {
	Activitys []*Activity `json:"activitys"`
}

type PromotionActivityGetResponseResult

type PromotionActivityGetResponseResult struct {
	Response *PromotionActivityGetResponse `json:"promotion_activity_get_response"`
}

type PromotionCouponAddRequest

type PromotionCouponAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

创建店铺优惠券。有效期内的店铺优惠券总数量不超过200张

func (*PromotionCouponAddRequest) GetResponse

func (r *PromotionCouponAddRequest) GetResponse(accessToken string) (*PromotionCouponAddResponse, []byte, error)

func (*PromotionCouponAddRequest) SetCondition

func (r *PromotionCouponAddRequest) SetCondition(value string)

订单满多少元才能用这个优惠券,500就是满500元才能使用

func (*PromotionCouponAddRequest) SetDenominations

func (r *PromotionCouponAddRequest) SetDenominations(value string)

优惠券的面额,必须是3,5,10,20,50,100

func (*PromotionCouponAddRequest) SetEndTime

func (r *PromotionCouponAddRequest) SetEndTime(value string)

优惠券的截止日期

func (*PromotionCouponAddRequest) SetStartTime

func (r *PromotionCouponAddRequest) SetStartTime(value string)

优惠券的生效时间

type PromotionCouponAddResponse

type PromotionCouponAddResponse struct {
	CouponId int `json:"coupon_id"`
}

type PromotionCouponAddResponseResult

type PromotionCouponAddResponseResult struct {
	Response *PromotionCouponAddResponse `json:"promotion_coupon_add_response"`
}

type PromotionCouponSendRequest

type PromotionCouponSendRequest struct {
	open_taobao.TaobaoMethodRequest
}

通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的会员),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了

func (*PromotionCouponSendRequest) GetResponse

func (r *PromotionCouponSendRequest) GetResponse(accessToken string) (*PromotionCouponSendResponse, []byte, error)

func (*PromotionCouponSendRequest) SetBuyerNick

func (r *PromotionCouponSendRequest) SetBuyerNick(value string)

买家昵称用半角','号分割

func (*PromotionCouponSendRequest) SetCouponId

func (r *PromotionCouponSendRequest) SetCouponId(value string)

优惠券的id

type PromotionCouponSendResponse

type PromotionCouponSendResponse struct {
	CouponResults []*CouponResult `json:"coupon_results"`
	FailureBuyers []*ErrorMessage `json:"failure_buyers"`
	IsSuccess     bool            `json:"is_success"`
}

type PromotionCouponSendResponseResult

type PromotionCouponSendResponseResult struct {
	Response *PromotionCouponSendResponse `json:"promotion_coupon_send_response"`
}

type PromotionCouponTransferRequest

type PromotionCouponTransferRequest struct {
	open_taobao.TaobaoMethodRequest
}
买家可以将自己“未使用”状态下的优惠券转发给任意淘宝用户。

只能转发“未使用”状态下的优惠券

func (*PromotionCouponTransferRequest) GetResponse

func (*PromotionCouponTransferRequest) SetCouponNumber

func (r *PromotionCouponTransferRequest) SetCouponNumber(value string)

优惠券编号

func (*PromotionCouponTransferRequest) SetReceiveingBuyerName

func (r *PromotionCouponTransferRequest) SetReceiveingBuyerName(value string)

要赠送的淘宝昵称

type PromotionCouponTransferResponse

type PromotionCouponTransferResponse struct {
	IsSuccess bool `json:"is_success"`
}

type PromotionCouponTransferResponseResult

type PromotionCouponTransferResponseResult struct {
	Response *PromotionCouponTransferResponse `json:"promotion_coupon_transfer_response"`
}

type PromotionCoupondetailGetRequest

type PromotionCoupondetailGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

通过接口可以查询某个店铺优惠券的买家详细信息返回的信息,买家昵称, 使用渠道,使用状态,总数量

func (*PromotionCoupondetailGetRequest) GetResponse

func (*PromotionCoupondetailGetRequest) SetBuyerNick

func (r *PromotionCoupondetailGetRequest) SetBuyerNick(value string)

买家昵称

func (*PromotionCoupondetailGetRequest) SetCouponId

func (r *PromotionCoupondetailGetRequest) SetCouponId(value string)

优惠券的id

func (*PromotionCoupondetailGetRequest) SetEndTime

func (r *PromotionCoupondetailGetRequest) SetEndTime(value string)

传入优惠券截止时间,即失效时间。查询输入日期向前15天的数据;不传则查询当前日期向前15天的数据。比如查询明天才失效的优惠卷,要传入明天之后15天内的日期,才能查询到该优惠卷。

func (*PromotionCoupondetailGetRequest) SetExtendParams

func (r *PromotionCoupondetailGetRequest) SetExtendParams(value string)
这是一个扩展字段 供版本升级用

当前如果新版本的话 可以传入new字符串

func (*PromotionCoupondetailGetRequest) SetPageNo

func (r *PromotionCoupondetailGetRequest) SetPageNo(value string)

查询的页号,结果集是分页返回的,每页20条

func (*PromotionCoupondetailGetRequest) SetPageSize

func (r *PromotionCoupondetailGetRequest) SetPageSize(value string)

每页行数

func (*PromotionCoupondetailGetRequest) SetState

func (r *PromotionCoupondetailGetRequest) SetState(value string)

优惠券使用情况unused:代表未使用using:代表使用中used:代表已使用。必须是unused,using,used

type PromotionCoupondetailGetResponse

type PromotionCoupondetailGetResponse struct {
	CouponDetails  []*CouponDetail `json:"coupon_details"`
	IsHaveNextPage bool            `json:"is_have_next_page"`
	TotalResults   int             `json:"total_results"`
}

type PromotionCoupondetailGetResponseResult

type PromotionCoupondetailGetResponseResult struct {
	Response *PromotionCoupondetailGetResponse `json:"promotion_coupondetail_get_response"`
}

type PromotionCouponsGetRequest

type PromotionCouponsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询卖家已经创建的优惠券,接口返回信息:优惠券ID,面值,创建时间,有效期,使用条件,使用渠道,创建渠道,优惠券总数量

func (*PromotionCouponsGetRequest) GetResponse

func (r *PromotionCouponsGetRequest) GetResponse(accessToken string) (*PromotionCouponsGetResponse, []byte, error)

func (*PromotionCouponsGetRequest) SetCouponId

func (r *PromotionCouponsGetRequest) SetCouponId(value string)

优惠券的id,唯一标识这个优惠券

func (*PromotionCouponsGetRequest) SetDenominations

func (r *PromotionCouponsGetRequest) SetDenominations(value string)

优惠券的面额,必须是3,5,10,20,50,100

func (*PromotionCouponsGetRequest) SetEndTime

func (r *PromotionCouponsGetRequest) SetEndTime(value string)

优惠券的截止日期

func (*PromotionCouponsGetRequest) SetPageNo

func (r *PromotionCouponsGetRequest) SetPageNo(value string)

查询的页号,结果集是分页返回的,每页20条

func (*PromotionCouponsGetRequest) SetPageSize

func (r *PromotionCouponsGetRequest) SetPageSize(value string)

每页条数

type PromotionCouponsGetResponse

type PromotionCouponsGetResponse struct {
	Coupons      []*Coupon `json:"coupons"`
	TotalResults int       `json:"total_results"`
}

type PromotionCouponsGetResponseResult

type PromotionCouponsGetResponseResult struct {
	Response *PromotionCouponsGetResponse `json:"promotion_coupons_get_response"`
}

type PromotionDisplayTop

type PromotionDisplayTop struct {
	PromotionInItem []*PromotionInItem `json:"promotion_in_item"`
	PromotionInShop []*PromotionInShop `json:"promotion_in_shop"`
}

优惠信息对象

type PromotionInItem

type PromotionInItem struct {
	Desc           string    `json:"desc"`
	EndTime        string    `json:"end_time"`
	ItemPromoPrice float64   `json:"item_promo_price"`
	Name           string    `json:"name"`
	OtherNeed      string    `json:"other_need"`
	OtherSend      string    `json:"other_send"`
	PromotionId    string    `json:"promotion_id"`
	SkuIdList      []string  `json:"sku_id_list"`
	SkuPriceList   []float64 `json:"sku_price_list"`
	StartTime      string    `json:"start_time"`
}

单品级优惠信息

type PromotionInShop

type PromotionInShop struct {
	Name                string `json:"name"`
	PromotionDetailDesc string `json:"promotion_detail_desc"`
	PromotionId         string `json:"promotion_id"`
}

店铺级优惠信息

type PromotionLimitdiscountDetailGetRequest

type PromotionLimitdiscountDetailGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

限时打折详情查询。查询出指定限时打折的对应商品记录信息。

func (*PromotionLimitdiscountDetailGetRequest) GetResponse

func (*PromotionLimitdiscountDetailGetRequest) SetLimitDiscountId

func (r *PromotionLimitdiscountDetailGetRequest) SetLimitDiscountId(value string)

限时打折ID。这个针对查询唯一限时打折情况。

type PromotionLimitdiscountDetailGetResponse

type PromotionLimitdiscountDetailGetResponse struct {
	ItemDiscountDetailList []*LimitDiscountDetail `json:"item_discount_detail_list"`
}

type PromotionLimitdiscountDetailGetResponseResult

type PromotionLimitdiscountDetailGetResponseResult struct {
	Response *PromotionLimitdiscountDetailGetResponse `json:"promotion_limitdiscount_detail_get_response"`
}

type PromotionLimitdiscountGetRequest

type PromotionLimitdiscountGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

分页查询某个卖家的限时打折信息。每页20条数据,按照结束时间降序排列。也可指定某一个限时打折id查询唯一的限时打折信息。

func (*PromotionLimitdiscountGetRequest) GetResponse

func (*PromotionLimitdiscountGetRequest) SetEndTime

func (r *PromotionLimitdiscountGetRequest) SetEndTime(value string)

限时打折结束时间。输入的时间会被截取,年月日有效,时分秒忽略。

func (*PromotionLimitdiscountGetRequest) SetLimitDiscountId

func (r *PromotionLimitdiscountGetRequest) SetLimitDiscountId(value string)

限时打折ID。这个针对查询唯一限时打折情况。若此字段不为空,则说明操作为单条限时打折记录查询,其他字段忽略。若想分页按条件查询,这个字段置为空。

func (*PromotionLimitdiscountGetRequest) SetPageNumber

func (r *PromotionLimitdiscountGetRequest) SetPageNumber(value string)

分页页号。默认1。当页数大于最大页数时,结果为最大页数的数据。

func (*PromotionLimitdiscountGetRequest) SetStartTime

func (r *PromotionLimitdiscountGetRequest) SetStartTime(value string)

限时打折开始时间。输入的时间会被截取,年月日有效,时分秒忽略。

func (*PromotionLimitdiscountGetRequest) SetStatus

func (r *PromotionLimitdiscountGetRequest) SetStatus(value string)

限时打折活动状态。ALL:全部状态;OVER:已结束;DOING:进行中;PROPARE:未开始(只支持大写)。当limit_discount_id为空时,为空时,默认为全部的状态。

type PromotionLimitdiscountGetResponse

type PromotionLimitdiscountGetResponse struct {
	LimitDiscountList []*LimitDiscount `json:"limit_discount_list"`
	TotalCount        int              `json:"total_count"`
}

type PromotionLimitdiscountGetResponseResult

type PromotionLimitdiscountGetResponseResult struct {
	Response *PromotionLimitdiscountGetResponse `json:"promotion_limitdiscount_get_response"`
}

type PromotionMealGetRequest

type PromotionMealGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

搭配套餐查询。每个卖家最多创建50个搭配套餐,所以查询不会分页,会将所有的满足状态的搭配套餐全部查出。该接口不会校验商品的下架或库存为0,查询结果的状态表明搭配套餐在数据库中的状态,商品的状态请isv自己验证。在卖家后台页面点击查看会触发数据库状态的修改。

func (*PromotionMealGetRequest) GetResponse

func (r *PromotionMealGetRequest) GetResponse(accessToken string) (*PromotionMealGetResponse, []byte, error)

func (*PromotionMealGetRequest) SetMealId

func (r *PromotionMealGetRequest) SetMealId(value string)

搭配套餐id

func (*PromotionMealGetRequest) SetStatus

func (r *PromotionMealGetRequest) SetStatus(value string)

套餐状态。有效:VALID;失效:INVALID(有效套餐为可使用的套餐,无效套餐为套餐中有商品下架或库存为0时)。默认时两种情况都会查询。

type PromotionMealGetResponse

type PromotionMealGetResponse struct {
	MealList []*Meal `json:"meal_list"`
}

type PromotionMealGetResponseResult

type PromotionMealGetResponseResult struct {
	Response *PromotionMealGetResponse `json:"promotion_meal_get_response"`
}

type Range

type Range struct {
	ParticipateId   int `json:"participate_id"`
	ParticipateType int `json:"participate_type"`
}

营销工具的范围类!

type UmpActivitiesGetRequest

type UmpActivitiesGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询活动列表

func (*UmpActivitiesGetRequest) GetResponse

func (r *UmpActivitiesGetRequest) GetResponse(accessToken string) (*UmpActivitiesGetResponse, []byte, error)

func (*UmpActivitiesGetRequest) SetPageNo

func (r *UmpActivitiesGetRequest) SetPageNo(value string)

分页的页码

func (*UmpActivitiesGetRequest) SetPageSize

func (r *UmpActivitiesGetRequest) SetPageSize(value string)

每页的最大条数

func (*UmpActivitiesGetRequest) SetToolId

func (r *UmpActivitiesGetRequest) SetToolId(value string)

工具id

type UmpActivitiesGetResponse

type UmpActivitiesGetResponse struct {
	Contents   []string `json:"contents"`
	TotalCount int      `json:"total_count"`
}

type UmpActivitiesGetResponseResult

type UmpActivitiesGetResponseResult struct {
	Response *UmpActivitiesGetResponse `json:"ump_activities_get_response"`
}

type UmpActivitiesListGetRequest

type UmpActivitiesListGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

按照营销活动id的列表ids,查询对应的营销活动列表。

func (*UmpActivitiesListGetRequest) GetResponse

func (r *UmpActivitiesListGetRequest) GetResponse(accessToken string) (*UmpActivitiesListGetResponse, []byte, error)

func (*UmpActivitiesListGetRequest) SetIds

func (r *UmpActivitiesListGetRequest) SetIds(value string)

营销活动id列表。

type UmpActivitiesListGetResponse

type UmpActivitiesListGetResponse struct {
	Activities []string `json:"activities"`
}

type UmpActivitiesListGetResponseResult

type UmpActivitiesListGetResponseResult struct {
	Response *UmpActivitiesListGetResponse `json:"ump_activities_list_get_response"`
}

type UmpActivityAddRequest

type UmpActivityAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

新增优惠活动。设置优惠活动的基本信息,比如活动时间,活动针对的对象(可以是满足某些条件的买家)

func (*UmpActivityAddRequest) GetResponse

func (r *UmpActivityAddRequest) GetResponse(accessToken string) (*UmpActivityAddResponse, []byte, error)

func (*UmpActivityAddRequest) SetContent

func (r *UmpActivityAddRequest) SetContent(value string)

活动内容,通过ump sdk里面的MarkeitngTool来生成

func (*UmpActivityAddRequest) SetToolId

func (r *UmpActivityAddRequest) SetToolId(value string)

工具id

type UmpActivityAddResponse

type UmpActivityAddResponse struct {
	ActId int `json:"act_id"`
}

type UmpActivityAddResponseResult

type UmpActivityAddResponseResult struct {
	Response *UmpActivityAddResponse `json:"ump_activity_add_response"`
}

type UmpActivityDeleteRequest

type UmpActivityDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

删除营销活动。对应的活动详情等将会被全部删除。

func (*UmpActivityDeleteRequest) GetResponse

func (r *UmpActivityDeleteRequest) GetResponse(accessToken string) (*UmpActivityDeleteResponse, []byte, error)

func (*UmpActivityDeleteRequest) SetActId

func (r *UmpActivityDeleteRequest) SetActId(value string)

活动id

type UmpActivityDeleteResponse

type UmpActivityDeleteResponse struct {
	IsSuccess bool `json:"is_success"`
}

type UmpActivityDeleteResponseResult

type UmpActivityDeleteResponseResult struct {
	Response *UmpActivityDeleteResponse `json:"ump_activity_delete_response"`
}

type UmpActivityGetRequest

type UmpActivityGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询营销活动

func (*UmpActivityGetRequest) GetResponse

func (r *UmpActivityGetRequest) GetResponse(accessToken string) (*UmpActivityGetResponse, []byte, error)

func (*UmpActivityGetRequest) SetActId

func (r *UmpActivityGetRequest) SetActId(value string)

活动id

type UmpActivityGetResponse

type UmpActivityGetResponse struct {
	Content string `json:"content"`
}

type UmpActivityGetResponseResult

type UmpActivityGetResponseResult struct {
	Response *UmpActivityGetResponse `json:"ump_activity_get_response"`
}

type UmpActivityUpdateRequest

type UmpActivityUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

修改营销活动

func (*UmpActivityUpdateRequest) GetResponse

func (r *UmpActivityUpdateRequest) GetResponse(accessToken string) (*UmpActivityUpdateResponse, []byte, error)

func (*UmpActivityUpdateRequest) SetActId

func (r *UmpActivityUpdateRequest) SetActId(value string)

活动id

func (*UmpActivityUpdateRequest) SetContent

func (r *UmpActivityUpdateRequest) SetContent(value string)

营销活动内容,json格式,通过ump sdk 的marketingTool来生成

type UmpActivityUpdateResponse

type UmpActivityUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type UmpActivityUpdateResponseResult

type UmpActivityUpdateResponseResult struct {
	Response *UmpActivityUpdateResponse `json:"ump_activity_update_response"`
}

type UmpDetailAddRequest

type UmpDetailAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

增加活动详情。活动详情里面包括活动的范围(店铺,商品),活动的参数(比如具体的折扣),参与类型(全部,部分,部分不参加)等信息。当参与类型为部分或部分不参加的时候需要和taobao.ump.range.add来配合使用。

func (*UmpDetailAddRequest) GetResponse

func (r *UmpDetailAddRequest) GetResponse(accessToken string) (*UmpDetailAddResponse, []byte, error)

func (*UmpDetailAddRequest) SetActId

func (r *UmpDetailAddRequest) SetActId(value string)

增加工具详情

func (*UmpDetailAddRequest) SetContent

func (r *UmpDetailAddRequest) SetContent(value string)

活动详情内容,json格式,可以通过ump sdk中的MarketingTool来进行处理

type UmpDetailAddResponse

type UmpDetailAddResponse struct {
	DetailId int `json:"detail_id"`
}

type UmpDetailAddResponseResult

type UmpDetailAddResponseResult struct {
	Response *UmpDetailAddResponse `json:"ump_detail_add_response"`
}

type UmpDetailDeleteRequest

type UmpDetailDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

删除活动详情

func (*UmpDetailDeleteRequest) GetResponse

func (r *UmpDetailDeleteRequest) GetResponse(accessToken string) (*UmpDetailDeleteResponse, []byte, error)

func (*UmpDetailDeleteRequest) SetDetailId

func (r *UmpDetailDeleteRequest) SetDetailId(value string)

活动详情id

type UmpDetailDeleteResponse

type UmpDetailDeleteResponse struct {
	IsSuccess bool `json:"is_success"`
}

type UmpDetailDeleteResponseResult

type UmpDetailDeleteResponseResult struct {
	Response *UmpDetailDeleteResponse `json:"ump_detail_delete_response"`
}

type UmpDetailGetRequest

type UmpDetailGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询活动详情

func (*UmpDetailGetRequest) GetResponse

func (r *UmpDetailGetRequest) GetResponse(accessToken string) (*UmpDetailGetResponse, []byte, error)

func (*UmpDetailGetRequest) SetDetailId

func (r *UmpDetailGetRequest) SetDetailId(value string)

活动详情的id

type UmpDetailGetResponse

type UmpDetailGetResponse struct {
	Content string `json:"content"`
}

type UmpDetailGetResponseResult

type UmpDetailGetResponseResult struct {
	Response *UmpDetailGetResponse `json:"ump_detail_get_response"`
}

type UmpDetailListAddRequest

type UmpDetailListAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

批量添加营销活动。替代单条添加营销详情的的API。此接口适用针对某个营销活动的多档设置,会按顺序插入detail。若在整个事务过程中出现断点,会将已插入完成的detail_id返回,注意记录这些id,并将其删除,会对交易过程中的优惠产生影响。

func (*UmpDetailListAddRequest) GetResponse

func (r *UmpDetailListAddRequest) GetResponse(accessToken string) (*UmpDetailListAddResponse, []byte, error)

func (*UmpDetailListAddRequest) SetActId

func (r *UmpDetailListAddRequest) SetActId(value string)

营销活动id。

func (*UmpDetailListAddRequest) SetDetails

func (r *UmpDetailListAddRequest) SetDetails(value string)

营销详情的列表。此列表由detail的json字符串组成。最多插入为10个。

type UmpDetailListAddResponse

type UmpDetailListAddResponse struct {
	DetailIdList []int `json:"detail_id_list"`
}

type UmpDetailListAddResponseResult

type UmpDetailListAddResponseResult struct {
	Response *UmpDetailListAddResponse `json:"ump_detail_list_add_response"`
}

type UmpDetailUpdateRequest

type UmpDetailUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

更新活动详情

func (*UmpDetailUpdateRequest) GetResponse

func (r *UmpDetailUpdateRequest) GetResponse(accessToken string) (*UmpDetailUpdateResponse, []byte, error)

func (*UmpDetailUpdateRequest) SetContent

func (r *UmpDetailUpdateRequest) SetContent(value string)

活动详情内容,可以通过ump sdk中的MarketingTool来生成这个内容

func (*UmpDetailUpdateRequest) SetDetailId

func (r *UmpDetailUpdateRequest) SetDetailId(value string)

活动详情id

type UmpDetailUpdateResponse

type UmpDetailUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type UmpDetailUpdateResponseResult

type UmpDetailUpdateResponseResult struct {
	Response *UmpDetailUpdateResponse `json:"ump_detail_update_response"`
}

type UmpDetailsGetRequest

type UmpDetailsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

分页查询优惠详情列表

func (*UmpDetailsGetRequest) GetResponse

func (r *UmpDetailsGetRequest) GetResponse(accessToken string) (*UmpDetailsGetResponse, []byte, error)

func (*UmpDetailsGetRequest) SetActId

func (r *UmpDetailsGetRequest) SetActId(value string)

营销活动id

func (*UmpDetailsGetRequest) SetPageNo

func (r *UmpDetailsGetRequest) SetPageNo(value string)

分页的页码

func (*UmpDetailsGetRequest) SetPageSize

func (r *UmpDetailsGetRequest) SetPageSize(value string)

每页的最大条数

type UmpDetailsGetResponse

type UmpDetailsGetResponse struct {
	Contents   []string `json:"contents"`
	TotalCount int      `json:"total_count"`
}

type UmpDetailsGetResponseResult

type UmpDetailsGetResponseResult struct {
	Response *UmpDetailsGetResponse `json:"ump_details_get_response"`
}

type UmpMbbGetbycodeRequest

type UmpMbbGetbycodeRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。

func (*UmpMbbGetbycodeRequest) GetResponse

func (r *UmpMbbGetbycodeRequest) GetResponse(accessToken string) (*UmpMbbGetbycodeResponse, []byte, error)

func (*UmpMbbGetbycodeRequest) SetCode

func (r *UmpMbbGetbycodeRequest) SetCode(value string)

营销积木块code

type UmpMbbGetbycodeResponse

type UmpMbbGetbycodeResponse struct {
	Mbb string `json:"mbb"`
}

type UmpMbbGetbycodeResponseResult

type UmpMbbGetbycodeResponseResult struct {
	Response *UmpMbbGetbycodeResponse `json:"ump_mbb_getbycode_response"`
}

type UmpMbbGetbyidRequest

type UmpMbbGetbyidRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据积木块id获取营销积木块。

func (*UmpMbbGetbyidRequest) GetResponse

func (r *UmpMbbGetbyidRequest) GetResponse(accessToken string) (*UmpMbbGetbyidResponse, []byte, error)

func (*UmpMbbGetbyidRequest) SetId

func (r *UmpMbbGetbyidRequest) SetId(value string)

积木块的id

type UmpMbbGetbyidResponse

type UmpMbbGetbyidResponse struct {
	Mbb string `json:"mbb"`
}

type UmpMbbGetbyidResponseResult

type UmpMbbGetbyidResponseResult struct {
	Response *UmpMbbGetbyidResponse `json:"ump_mbb_getbyid_response"`
}

type UmpMbbsGetRequest

type UmpMbbsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

获取营销积木块列表,可以根据类型获取,也可以将该字段设为空,获取所有的

func (*UmpMbbsGetRequest) GetResponse

func (r *UmpMbbsGetRequest) GetResponse(accessToken string) (*UmpMbbsGetResponse, []byte, error)

func (*UmpMbbsGetRequest) SetType

func (r *UmpMbbsGetRequest) SetType(value string)
积木块类型。如果该字段为空表示查出所有类型的

现在有且仅有如下几种:resource,condition,action,target

type UmpMbbsGetResponse

type UmpMbbsGetResponse struct {
	Mbbs []string `json:"mbbs"`
}

type UmpMbbsGetResponseResult

type UmpMbbsGetResponseResult struct {
	Response *UmpMbbsGetResponse `json:"ump_mbbs_get_response"`
}

type UmpMbbsListGetRequest

type UmpMbbsListGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

通过营销积木id列表来获取营销积木块列表。

func (*UmpMbbsListGetRequest) GetResponse

func (r *UmpMbbsListGetRequest) GetResponse(accessToken string) (*UmpMbbsListGetResponse, []byte, error)

func (*UmpMbbsListGetRequest) SetIds

func (r *UmpMbbsListGetRequest) SetIds(value string)

营销积木块id组成的字符串。

type UmpMbbsListGetResponse

type UmpMbbsListGetResponse struct {
	Mbbs []string `json:"mbbs"`
}

type UmpMbbsListGetResponseResult

type UmpMbbsListGetResponseResult struct {
	Response *UmpMbbsListGetResponse `json:"ump_mbbs_list_get_response"`
}

type UmpPromotionGetRequest

type UmpPromotionGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。此接口有调用频率限制请酌情使用,建议使用淘客API获取商品折扣价格。

func (*UmpPromotionGetRequest) GetResponse

func (r *UmpPromotionGetRequest) GetResponse(accessToken string) (*UmpPromotionGetResponse, []byte, error)

func (*UmpPromotionGetRequest) SetItemId

func (r *UmpPromotionGetRequest) SetItemId(value string)

商品id

type UmpPromotionGetResponse

type UmpPromotionGetResponse struct {
	Promotions *PromotionDisplayTop `json:"promotions"`
}

type UmpPromotionGetResponseResult

type UmpPromotionGetResponseResult struct {
	Response *UmpPromotionGetResponse `json:"ump_promotion_get_response"`
}

type UmpRangeAddRequest

type UmpRangeAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

指定某项活动中,某个商家的某些类型物品(指定商品,指定类目或者别的)参加或者不参加活动。当活动详情的参与类型为部分或者部分不参加的时候,需要指定具体哪部分参加或者不参加,使用本接口完成操作。比如部分商品满就送,这里的range用来指定具体哪些商品参加满就送活动。

func (*UmpRangeAddRequest) GetResponse

func (r *UmpRangeAddRequest) GetResponse(accessToken string) (*UmpRangeAddResponse, []byte, error)

func (*UmpRangeAddRequest) SetActId

func (r *UmpRangeAddRequest) SetActId(value string)

活动id

func (*UmpRangeAddRequest) SetIds

func (r *UmpRangeAddRequest) SetIds(value string)

id列表,当范围类型为商品时,该id为商品id;当范围类型为类目时,该id为类目id.多个id用逗号隔开,一次不超过50个

func (*UmpRangeAddRequest) SetType

func (r *UmpRangeAddRequest) SetType(value string)
范围的类型,比如是全店,商品,类目

见:MarketingConstants.PARTICIPATE_TYPE_*

type UmpRangeAddResponse

type UmpRangeAddResponse struct {
	IsSuccess bool `json:"is_success"`
}

type UmpRangeAddResponseResult

type UmpRangeAddResponseResult struct {
	Response *UmpRangeAddResponse `json:"ump_range_add_response"`
}

type UmpRangeDeleteRequest

type UmpRangeDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

去指先前指定在某项活动中,某些类型的物品参加或者不参加活动的设置

func (*UmpRangeDeleteRequest) GetResponse

func (r *UmpRangeDeleteRequest) GetResponse(accessToken string) (*UmpRangeDeleteResponse, []byte, error)

func (*UmpRangeDeleteRequest) SetActId

func (r *UmpRangeDeleteRequest) SetActId(value string)

活动id

func (*UmpRangeDeleteRequest) SetIds

func (r *UmpRangeDeleteRequest) SetIds(value string)

id列表,当范围类型为商品时,该id为商品id;当范围类型为类目时,该id为类目id

func (*UmpRangeDeleteRequest) SetType

func (r *UmpRangeDeleteRequest) SetType(value string)

范围的类型,比如是全店,商品,类目见:MarketingConstants.PARTICIPATE_TYPE_*

type UmpRangeDeleteResponse

type UmpRangeDeleteResponse struct {
	IsSuccess bool `json:"is_success"`
}

type UmpRangeDeleteResponseResult

type UmpRangeDeleteResponseResult struct {
	Response *UmpRangeDeleteResponse `json:"ump_range_delete_response"`
}

type UmpRangeGetRequest

type UmpRangeGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询某个卖家所有参加或者不参加某项活动的物品

func (*UmpRangeGetRequest) GetResponse

func (r *UmpRangeGetRequest) GetResponse(accessToken string) (*UmpRangeGetResponse, []byte, error)

func (*UmpRangeGetRequest) SetActId

func (r *UmpRangeGetRequest) SetActId(value string)

活动id

type UmpRangeGetResponse

type UmpRangeGetResponse struct {
	Ranges []*Range `json:"ranges"`
}

type UmpRangeGetResponseResult

type UmpRangeGetResponseResult struct {
	Response *UmpRangeGetResponse `json:"ump_range_get_response"`
}

type UmpToolAddRequest

type UmpToolAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

新增优惠工具。通过ump sdk来完成将积木块拼装成为工具的操作,再使用本接口上传优惠工具。

func (*UmpToolAddRequest) GetResponse

func (r *UmpToolAddRequest) GetResponse(accessToken string) (*UmpToolAddResponse, []byte, error)

func (*UmpToolAddRequest) SetContent

func (r *UmpToolAddRequest) SetContent(value string)

工具内容,由sdk里面的MarketingTool生成的json字符串

type UmpToolAddResponse

type UmpToolAddResponse struct {
	ToolId int `json:"tool_id"`
}

type UmpToolAddResponseResult

type UmpToolAddResponseResult struct {
	Response *UmpToolAddResponse `json:"ump_tool_add_response"`
}

type UmpToolDeleteRequest

type UmpToolDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

删除营销工具。当工具正在被使用的时候,是不能被删除的。

func (*UmpToolDeleteRequest) GetResponse

func (r *UmpToolDeleteRequest) GetResponse(accessToken string) (*UmpToolDeleteResponse, []byte, error)

func (*UmpToolDeleteRequest) SetToolId

func (r *UmpToolDeleteRequest) SetToolId(value string)

营销工具id

type UmpToolDeleteResponse

type UmpToolDeleteResponse struct {
	IsSuccess bool `json:"is_success"`
}

type UmpToolDeleteResponseResult

type UmpToolDeleteResponseResult struct {
	Response *UmpToolDeleteResponse `json:"ump_tool_delete_response"`
}

type UmpToolGetRequest

type UmpToolGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据工具id获取一个工具对象

func (*UmpToolGetRequest) GetResponse

func (r *UmpToolGetRequest) GetResponse(accessToken string) (*UmpToolGetResponse, []byte, error)

func (*UmpToolGetRequest) SetToolId

func (r *UmpToolGetRequest) SetToolId(value string)

工具的id

type UmpToolGetResponse

type UmpToolGetResponse struct {
	Content string `json:"content"`
}

type UmpToolGetResponseResult

type UmpToolGetResponseResult struct {
	Response *UmpToolGetResponse `json:"ump_tool_get_response"`
}

type UmpToolUpdateRequest

type UmpToolUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

修改工具

func (*UmpToolUpdateRequest) GetResponse

func (r *UmpToolUpdateRequest) GetResponse(accessToken string) (*UmpToolUpdateResponse, []byte, error)

func (*UmpToolUpdateRequest) SetContent

func (r *UmpToolUpdateRequest) SetContent(value string)

工具的内容,由sdk的marketingBuilder生成

func (*UmpToolUpdateRequest) SetToolId

func (r *UmpToolUpdateRequest) SetToolId(value string)

工具id

type UmpToolUpdateResponse

type UmpToolUpdateResponse struct {
	ToolId int `json:"tool_id"`
}

type UmpToolUpdateResponseResult

type UmpToolUpdateResponseResult struct {
	Response *UmpToolUpdateResponse `json:"ump_tool_update_response"`
}

type UmpToolsGetRequest

type UmpToolsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询工具列表

func (*UmpToolsGetRequest) GetResponse

func (r *UmpToolsGetRequest) GetResponse(accessToken string) (*UmpToolsGetResponse, []byte, error)

func (*UmpToolsGetRequest) SetToolCode

func (r *UmpToolsGetRequest) SetToolCode(value string)

工具编码

type UmpToolsGetResponse

type UmpToolsGetResponse struct {
	Tools []string `json:"tools"`
}

type UmpToolsGetResponseResult

type UmpToolsGetResponseResult struct {
	Response *UmpToolsGetResponse `json:"ump_tools_get_response"`
}

type UserTag

type UserTag struct {
	CreateDate  string `json:"create_date"`
	Description string `json:"description"`
	TagId       int    `json:"tag_id"`
	TagName     string `json:"tag_name"`
}

人群标签

Jump to

Keyboard shortcuts

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