ddk

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ddk 多多客相关API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CashgiftStatusUpdate

func CashgiftStatusUpdate(clt *core.SDKClient, req *CashgiftStatusUpdateRequest) (uint64, error)

CashgiftStatusUpdate 多多礼金状态更新

func GoodsPromotionRightAuth added in v1.1.6

func GoodsPromotionRightAuth(clt *core.SDKClient, req *GoodsPromotionRightAuthRequest) error

GoodsPromotionRightAuth 多多进宝信息流渠道备案授权素材上传接口

func MemberAuthorityQuery

func MemberAuthorityQuery(clt *core.SDKClient, req *MemberAuthorityQueryRequest) (bool, error)

MemberAuthorityQuery 查询是否绑定备案

func ReportImgUpload added in v1.1.6

func ReportImgUpload(clt *core.SDKClient, req *ReportImgUploadRequest) (string, error)

ReportImgUpload 多多进宝信息流渠道备案授权素材上传接口

func ReportVideoUpload added in v1.1.6

func ReportVideoUpload(clt *core.SDKClient, req *ReportVideoUploadRequest) (string, error)

ReportVideoUpload 多多客信息流投放备案视频上传接口 多多客信息流投放备案视频上传,上传视频大小有限制,单个文件超过20M需要走分片上传

func ReportVideoUploadFearless added in v1.1.6

func ReportVideoUploadFearless(clt *core.SDKClient, req *ReportVideoUploadRequest, size int64) (string, error)

ReportVideoUploadFearless 多多客信息流投放备案视频上传接口 多多客信息流投放备案视频上传,上传视频大小有限制,单个文件超过20M需要走分片上传 根据上传文件大小自动选择API接口

func ReportVideoUploadPart added in v1.1.6

func ReportVideoUploadPart(clt *core.SDKClient, req *ReportVideoUploadPartRequest) (int, error)

ReportVidoeUploadPart 多多客信息流投放备案视频上传分片上传接口

func ReportVideoUploadPartComplete added in v1.1.6

func ReportVideoUploadPartComplete(clt *core.SDKClient, uploadSign string) (string, error)

ReportVidoeUploadPartComplete 多多客信息流投放备案视频上传分片完成接口

func ReportVideoUploadPartInit added in v1.1.6

func ReportVideoUploadPartInit(clt *core.SDKClient, contentType string) (string, error)

ReportVidoeUploadPartInit 多多客信息流投放备案视频上传分片初始化接口

func WeappQrcodeUrlGen added in v1.1.2

func WeappQrcodeUrlGen(clt *core.SDKClient, req *WeappQrcodeUrlGenRequest) (string, error)

WeappQrcodeUrlGen 多多客生成单品推广小程序二维码url

Types

type CashgiftCreateRequest

type CashgiftCreateRequest struct {
	// AcquireEndTime 券批次领取结束时间。note:此时间为时间戳,指格林威治时间 1970 年01 月 01 日 00 时 00 分 00 秒(北京时间 1970 年 01 月 01 日 08 时 00 分 00 秒)起至现在的总秒数
	AcquireEndTime int64 `json:"acquire_end_time,omitempty"`
	// AcquireStartTime 券批次领取开始时间。note:此时间为时间戳,指格林威治时间 1970 年01 月 01 日 00 时 00 分 00 秒(北京时间 1970 年 01 月 01 日 08 时 00 分 00 秒)起至现在的总秒数
	AcquireStartTime int64 `json:"acquire_start_time,omitempty"`
	// AutoTake 是否自动领券,默认false不自动领券
	AutoTake bool `json:"auto_take,omitempty"`
	// CouponAmount 礼金券面额,单位为分,创建固定面额礼金券必填(创建灵活面额礼金券时,券面额 = 商品券后价 - 期望礼金券后价)
	CouponAmount int64 `json:"coupon_amount,omitempty"`
	// CouponThresholdAmount 满减门槛,单位为分。满减门槛至少需为礼金券面额的2倍,仅对固定面额礼金券生效。
	CouponThresholdAmount int64 `json:"coupon_threshold_amount,omitempty"`
	// Duration 活动持续时间,validity_time_type为 1 时必填。相对时间类型为天级时,最大值为30,即领取后30天内有效;相对时间类型为小时级时,最大值为24,即领取后24小时内有效;相对时间类型为分钟级时,则最大值为60,即领取后60分钟内有效。
	Duration int `json:"duration,omitempty"`
	// ExpectAmount 期望礼金券后价,单位为分,最小值为1。创建灵活券 (generate_flexible_coupon为true) 时必填
	ExpectAmount int64 `json:"expect_amount,omitempty"`
	// FetchRiskCheck 领券是否过风控,默认true为过风控。
	FetchRiskCheck *bool `json:"fetch_risk_check,omitempty"`
	// FreezeCondition 收益保护开关开启(rate_decrease_monitor = true)时必填。0-监控项发生降低;1-监控项低于礼金面额,默认为0。
	FreezeCondition int `json:"freeze_condition,omitempty"`
	// FreezeWatchType 收益保护开关开启(rate_decrease_monitor = true)时必填。0-佣金;1-补贴;2-佣金+补贴,默认为0。
	FreezeWatchType int `json:"freeze_watch_type,omitempty"`
	// GenerateFlexibleCoupon 是否为灵活面额礼金券,默认false为固定面额礼金券
	GenerateFlexibleCoupon bool `json:"generate_flexible_coupon,omitempty"`
	// GenerateGlobal 是否开启全场景推广,默认false不开启全场景推广,仅支持固定面额且限定商品的礼金活动。
	GenerateGlobal bool `json:"generate_global,omitempty"`
	// GoodsSignList 商品goodsSign列表,例如:["c9r2omogKFFAc7WBwvbZU1ikIb16_J3CTa8HNN"],最多可支持传20个商品;若传空,则为不限商品礼金,不支持创建不限商品灵活礼金。goodsSign使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252
	GoodsSignList []string `json:"goods_sign_list,omitempty"`
	// LinkAcquireLimit 活动单链接可领券数量,默认无限制,最小值为1。
	LinkAcquireLimit int `json:"link_acquire_limit,omitempty"`
	// Name 礼金名称
	Name string `json:"name,omitempty"`
	// PidList 可使用推广位列表,例如:["60005_612"]。(列表中的PID方可推广该礼金)
	PidList []string `json:"p_id_list,omitempty"`
	// Quantity 礼金券数量,创建固定面额礼金券必填(创建灵活面额礼金券时,礼金券数量不固定,礼金总预算用完为止)
	Quantity int64 `json:"quantity,omitempty"`
	// RateDecreaseMonitor 收益保护开关,默认false表示关闭,仅支持固定面额且限定商品的礼金活动。开启状态下,系统将根据设置内容进行监控,当监控项满足冻结条件时,系统自动冻结礼金暂停推广,防止资金损失。(可通过多多礼金状态更新接口自行恢复推广)
	RateDecreaseMonitor bool `json:"rate_decrease_monitor,omitempty"`
	// RelativeTimeType 相对时间类型:1-天级;2-小时级;3-分钟级,有效期类型validityTimeType = 1时必填,默认为1。 例如: relative_time_type = 2, duration = 15, 表示领取后15小时内有效。
	RelativeTimeType int `json:"relative_time_type,omitempty"`
	// TotalAmount 礼金总预算,单位为分,创建灵活券 (generate_flexible_coupon为true) 时必填。默认情况,总金额 = 礼金券数量 * 礼金券面额
	TotalAmount int64 `json:"total_amount,omitempty"`
	// UserLimit 单用户可领券数量,可设置范围为1~10张,默认为1张。
	UserLimit int `json:"user_limit,omitempty"`
	// ValidityEndTime 券批次使用结束时间, validity_time_type为 2 时必填。note:此时间为时间戳,指格林威治时间 1970 年01 月 01 日 00 时 00 分 00 秒(北京时间 1970 年 01 月 01 日 08 时 00 分 00 秒)起至现在的总秒数
	ValidityEndTime int64 `json:"validity_end_time,omitempty"`
	// ValidityStartTime 券批次使用开始时间, validity_time_type为 2 时必填。note:此时间为时间戳,指格林威治时间 1970 年01 月 01 日 00 时 00 分 00 秒(北京时间 1970 年 01 月 01 日 08 时 00 分 00 秒)起至现在的总秒数
	ValidityStartTime int64 `json:"validity_start_time,omitempty"`
	// ValidityTimeType 有效期类型:1-领取后几天内有效;2-固定时间内有效
	ValidityTimeType int `json:"validity_time_type,omitempty"`
}

CashgiftCreateRequest 创建多多礼金 API Request

func (CashgiftCreateRequest) GetType

func (r CashgiftCreateRequest) GetType() string

GetType implement Request interface

type CashgiftCreateResponse

type CashgiftCreateResponse struct {
	model.CommonResponse
	Response *CashgiftCreateResult `json:"create_cashgift_response,omitempty" xml:"create_cashgift_response,omitempty"`
}

CashgiftCreateResponse 创建多多礼金 API Response

type CashgiftCreateResult

type CashgiftCreateResult struct {
	// CashgiftID 礼金ID
	CashgiftID uint64 `json:"cash_gift_id,omitempty"`
	// Success 创建结果
	Success bool `json:"success,omitempty"`
}

func CashgiftCreate

func CashgiftCreate(clt *core.SDKClient, req *CashgiftCreateRequest) (*CashgiftCreateResult, error)

CashgiftCreate 创建多多礼金

type CashgiftStatusUpdateRequest

type CashgiftStatusUpdateRequest struct {
	// ID 多多礼金ID
	ID uint64 `json:"cash_gift_id"`
	// UpdateType 礼金更新类型:0-停止礼金推广,1-恢复礼金推广
	UpdateType int `json:"update_type"`
}

CashgiftStatusUpdateRequest 多多礼金状态更新 API Request

func (CashgiftStatusUpdateRequest) GetType

func (r CashgiftStatusUpdateRequest) GetType() string

GetType implement Request interface

type CashgiftStatusUpdateResponse

type CashgiftStatusUpdateResponse struct {
	model.CommonResponse
	Response struct {
		// ID 多多礼金ID
		ID uint64 `json:"cash_gift_id,omitempty" xml:"cash_gift_id,omitempty"`
	} `json:"update_cashgift_response" xml:"update_cashgift_response"`
}

CashgiftStatusUpdateResponse 多多礼金状态更新 API Response

type CmsPromUrlGenerateRequest

type CmsPromUrlGenerateRequest struct {
	// ChannelType 0, "1.9包邮";1, "今日爆款"; 2, "品牌清仓"; 3, "默认商城";4,"PC端专属商城";非必填 ,默认是3,
	ChannelType *int `json:"channel_type,omitempty"`
	// CustomParameters 自定义参数,为链接打上自定义标签。自定义参数最长限制64个字节。
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// GenerateMobile 是否生成手机跳转链接。true-是,false-否,默认false
	GenerateMobile bool `json:"generate_mobile,omitempty"`
	// GenerateSchemaURL 是否返回 schema URL
	GenerateSchemaURL bool `json:"generate_schema_url,omitempty"`
	// GenerateShortURL 是否生成短链接,true-是,false-否
	GenerateShortURL bool `json:"generate_short_url,omitempty"`
	// GenerateWeApp 是否生成拼多多福利券微信小程序推广信息
	GenerateWeApp bool `json:"generate_we_app,omitempty"`
	// Keyword 搜索关键词
	Keyword string `json:"keyword,omitempty"`
	//单人团多人团标志。true-多人团,false-单人团 默认false
	MultiGroup bool `json:"multi_group,omitempty"`
	//推广位列表,例如:["60005_612"]
	PidList string `json:"p_id_list,omitempty"`
}

CmsPromUrlGenerateRequest 生成商城-频道推广链接 API Request

func (CmsPromUrlGenerateRequest) GetType

func (r CmsPromUrlGenerateRequest) GetType() string

GetType implement Request interface

type CmsPromUrlGenerateResponse

type CmsPromUrlGenerateResponse struct {
	model.CommonResponse
	// Response 商城推广链接返回对象
	Response struct {
		// Total total
		Total int `json:"total,omitempty"`
		// URLList 链接列表
		URLList []PromURL `json:"url_list,omitempty"`
	} `json:"cms_promotion_url_generate_response" xml:"cms_promotion_url_generate_response"`
}

CmsPromUrlGenerateResponse 生成商城-频道推广链接 API Response

type DiyRedPacketParam

type DiyRedPacketParam struct {
	// AmountProbability 红包金额列表,200、300、500、1000、2000,单位分。红包金额和红包抵后价设置只能二选一,默认设置了红包金额会忽略红包抵后价设置
	AmountProbability []int64 `json:"amount_probability,omitempty"`
	// DisText 设置玩法,false-现金红包, true-现金券
	DisText *bool `json:"dis_text,omitempty"`
	// NotShowBackground 推广页设置,false-红包开启页, true-红包领取页
	NotShowBackground *bool `json:"not_show_background,omitempty"`
	// OptID 优先展示类目
	OptID uint64 `json:"opt_id,omitempty"`
	// RangeItems 自定义红包抵后价和商品佣金区间对象数组
	RangeItems []RangeItem `json:"range_items,omitempty"`
}

DiyRedPacketParam 红包自定义参数,json格式

type DiyYuanParam

type DiyYuanParam struct {
	// GoodsSign 商品goodsSign,支持通过goodsSign查询商品。goodsSign是加密后的goodsId, goodsId已下线,请使用goodsSign来替代。使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252
	GoodsSign string `json:"goods_sign,omitempty"`
}

DiyYuanParam 一元购自定义参数,json格式,例如:{"goods_sign":"Y9b2_0uSWMFPGSaVwvfZAlm_y2ADLWZl_JQ7UYaS80K"}

type Goods

type Goods struct {
	// ActivityPromotionRate 活动佣金比例,千分比(特定活动期间的佣金比例)
	ActivityPromotionRate int `json:"activity_promotion_rate,omitempty" xml:"activity_promotion_rate,omitempty"`
	// ActivityTags 商品活动标记数组,例:[4,7],4-秒杀 7-百亿补贴等
	ActivityTags []int `json:"activity_tags,omitempty" xml:"activity_tags,omitempty"`
	// BrandName 商品品牌词信息,如“苹果”、“阿迪达斯”、“李宁”等
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// CashGiftAmount 全局礼金金额,单位分
	CashGiftAmount int64 `json:"cash_gift_amount,omitempty" xml:"cash_gift_amount,omitempty"`
	// CatID 商品类目id
	CatID model.FlexUint64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"`
	// CatIDs 商品一~四级类目ID列表
	CatIDs []uint64 `json:"cat_ids,omitempty" xml:"cat_ids,omitempty"`
	// CouponDiscount 优惠券面额,单位为分
	CouponDiscount int64 `json:"coupon_discount,omitempty" xml:"coupon_discount,omitempty"`
	// CouponEnd 优惠券失效时间,UNIX时间戳
	CouponEnd int64 `json:"coupon_end,omitempty" xml:"coupon_end,omitempty"`
	// CouponMinOrderAmount 优惠券门槛价格,单位为分
	CouponMinOrderAmount int64 `json:"coupon_min_order_amount,omitempty" xml:"coupon_min_order_amount,omitempty"`
	// CouponPrice 优惠券金额
	CouponPrice int64 `json:"coupon_price,omitempty" xml:"coupon_price,omitempty"`
	// CouponRemainQuantity 优惠券剩余数量
	CouponRemainQuantity int `json:"coupon_remain_quantity,omitempty" xml:"coupon_remain_quantity,omitempty"`
	// CouponStartTime 优惠券生效时间,UNIX时间戳
	CouponStartTime int64 `json:"coupon_start_time,omitempty" xml:"coupon_start_time,omitempty"`
	// CouponTotalQuantity 优惠券总数量
	CouponTotalQuantity int `json:"coupon_total_quantity,omitempty" xml:"coupon_total_quantity,omitempty"`
	// CreateAt 创建时间
	CreateAt int64 `json:"create_at,omitempty" xml:"create_at,omitempty"`
	// DescTxt 描述分
	DescTxt string `json:"desc_txt,omitempty" xml:"desc_txt,omitempty"`
	// ExtraCouponAmount 额外优惠券,单位为分
	ExtraCouponAmount int64 `json:"extra_coupon_amount,omitempty" xml:"extra_coupon_amount,omitempty"`
	// GoodsDesc 商品描述
	GoodsDesc string `json:"goods_desc,omitempty" xml:"goods_desc,omitempty"`
	// GoodsImageURL 商品主图
	GoodsImageURL string `json:"goods_image_url,omitempty" xml:"goods_image_url,omitempty"`
	// GoodsLabels 商品特殊标签列表。例: [1],1-APP专享
	GoodsLabels []int `json:"goods_labels,omitempty" xml:"goods_labels,omitempty"`
	// GoodsName 商品名称
	GoodsName string `json:"goods_name,omitempty" xml:"goods_name,omitempty"`
	// GoodsRate 商品等级
	GoodsRate int `json:"goods_rate,omitempty" xml:"goods_rate,omitempty"`
	// GodsID 商品ID
	GoodsID uint64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// GoodsSign 商品goodsSign,支持通过goodsSign查询商品。goodsSign是加密后的goodsId, goodsId已下线,请使用goodsSign来替代。使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252
	GoodsSign string `json:"goods_sign,omitempty" xml:"goods_sign,omitempty"`
	// GoodsThumbnailURL 商品缩略图
	GoodsThumbnailURL string `json:"goods_thumbnail_url,omitempty" xml:"goods_thumbnail_url,omitempty"`
	// GoodsType 商品类型
	GoodsType int `json:"goods_type,omitempty" xml:"goods_type,omitempty"`
	// HasCoupon 商品是否带券,true-带券,false-不带券
	HasCoupon bool `json:"has_coupon,omitempty" xml:"has_coupon,omitempty"`
	// HasMaterial 商品是否有素材(图文、视频)
	HasMaterial bool `json:"has_material,omitempty" xml:"has_material,omitempty"`
	// LgstTxt 物流分
	LgstTxt string `json:"lgst_txt,omitempty" xml:"lgst_txt,omitempty"`
	// MallID 商家id
	MallID uint64 `json:"mall_id,omitempty" xml:"mall_id,omitempty"`
	// MallName 店铺名称
	MallName string `json:"mall_name,omitempty" xml:"mall_name,omitempty"`
	// MarketFee 市场服务费
	MarketFee int64 `json:"market_fee,omitempty" xml:"market_fee,omitempty"`
	// MerchantType 商家类型
	MerchatType int `json:"merchant_type,omitempty" xml:"merchant_type,omitempty"`
	// MinGroupPrice 最小成团价格,单位分
	MinGroupPrice int64 `json:"min_group_price,omitempty" xml:"min_group_price,omitempty"`
	// MinNormalPrice 最小单买价格,单位分
	MinNormalPrice int64 `json:"min_normal_price,omitempty" xml:"min_normal_price,omitempty"`
	// OptID 商品标签类目ID,使用pdd.goods.opt.get获取
	OptID model.FlexUint64 `json:"opt_id,omitempty" xml:"opt_id,omitempty"`
	// OptIDs 商品一~四级标签类目ID列表
	OptIDs []uint64 `json:"opt_ids,omitempty" xml:"opt_ids,omitempty"`
	// OptName 商品标签名
	OptName string `json:"opt_name,omitempty" xml:"opt_name,omitempty"`
	// PredictPromotionRate 比价行为预判定佣金,需要用户备案
	PredictPromotionRate int `json:"predict_promotion_rate,omitempty" xml:"predict_promotion_rate,omitempty"`
	// PromotionRate 佣金比例,千分比
	PromotionRate int `json:"promotion_rate,omitempty" xml:"promotion_rate,omitempty"`
	// QrcodeImageURL 二维码主图
	QrcodeImageURL string `json:"qrcode_image_url,omitempty" xml:"qrcode_image_url,omitempty"`
	// RealtimeSalesTip 商品近1小时在多多进宝的实时销量(仅实时热销榜提供)
	RealtimeSalesTip string `json:"realtime_sales_tip,omitempty" xml:"realtime_sales_tip,omitempty"`
	// SalesTip 销售量
	SalesTip string `json:"sales_tip,omitempty" xml:"sales_tip,omitempty"`
	// SearchID 搜索id,建议生成推广链接时候填写,提高收益。
	SearchID string `json:"search_id,omitempty" xml:"search_id,omitempty"`
	// ServTxt 服务分
	ServTxt string `json:"serv_txt,omitempty" xml:"serv_txt,omitempty"`
	// ShareDesc 分享描述
	ShareDesc string `json:"share_desc,omitempty" xml:"share_desc,omitempty"`
	// ShareRate 招商分成服务费比例,千分比
	ShareRate int `json:"share_rate,omitempty" xml:"share_rate,omitempty"`
	// SubsidyAmount 优势渠道专属商品补贴金额,单位为分。针对优质渠道的补贴活动,指定优势渠道可通过推广该商品获取相应补贴。补贴活动入口:[进宝网站-官方活动]
	SubsidyAmount int64 `json:"subsidy_amount,omitempty" xml:"subsidy_amount,omitempty"`
	// SubsidyDuoAmountTenMillion 官方活动给渠道的收入补贴金额,不允许直接给下级代理展示,单位为分
	SubsidyDuoAmountTenMillion int64 `json:"subsidy_duo_amount_ten_million,omitempty" xml:"subsidy_duo_amount_ten_million,omitempty"`
	// UnifiedTags 优惠标签列表,包括:"X元券","比全网低X元","服务费","精选素材","近30天低价","同款低价","同款好评","同款热销","旗舰店","一降到底","招商优选","商家优选","好价再降X元","全站销量XX","实时热销榜第X名","实时好评榜第X名","额外补X元"等
	UnifiedTags []string `json:"unified_tags,omitempty" xml:"unified_tags,omitempty"`
}

Goods 多多进宝商品

func GoodsDetail

func GoodsDetail(clt *core.SDKClient, req *GoodsDetailRequest) ([]Goods, error)

GoodsDetail 多多进宝商品详情查询

type GoodsDetailRequest

type GoodsDetailRequest struct {
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// GoodsImageType 商品主图类型:1-场景图,2-白底图,默认为0
	GoodsImageType int `json:"goods_image_type,omitempty"`
	// GoodsSign 商品goodsSign,支持通过goodsSign查询商品。goodsSign是加密后的goodsId, goodsId已下线,请使用goodsSign来替代。使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252
	GoodsSign string `json:"goods_sign,omitempty"`
	// NeedSkuInfo 是否获取sku信息,默认false不返回。(特殊渠道权限,需额外申请)
	NeedSkuInfo bool `json:"need_sku_info,omitempty"`
	// Pid 推广位id
	Pid string `json:"pid,omitempty"`
	// SearchID 搜索id,建议填写,提高收益。来自pdd.ddk.goods.recommend.get、pdd.ddk.goods.search、pdd.ddk.top.goods.list.query等接口
	SearchID string `json:"search_id,omitempty"`
	// ZsDuoID 招商多多客ID
	ZsDuoID uint64 `json:"zs_duo_id,omitempty"`
}

GoodsDetailRequest 多多进宝商品详情查询 API Request

func (GoodsDetailRequest) GetType

func (r GoodsDetailRequest) GetType() string

GetType implement Request interface

type GoodsDetailResponse

type GoodsDetailResponse struct {
	model.CommonResponse
	Response struct {
		// List 多多进宝商品对象列表
		List []Goods `json:"goods_details,omitempty" xml:"goods_details,omitempty"`
	} `json:"goods_detail_response" xml:"goods_detail_response"`
}

GoodsDetailResponse 多多进宝商品详情查询 API Response

type GoodsPidGenerateRequest

type GoodsPidGenerateRequest struct {
	// Number 要生成的推广位数量,默认为10,范围为:1~100
	Number int `json:"number"`
	// PidNameList 推广位名称,例如["1","2"]
	PidNameList []string `json:"p_id_name_list,omitempty"`
	// MediaID 媒体id
	MediaID uint64 `json:"media_id,omitempty"`
}

GoodsPidGenerateRequest 创建多多进宝推广位 API Request

func (GoodsPidGenerateRequest) GetType

func (r GoodsPidGenerateRequest) GetType() string

GetType implement Request interface

type GoodsPidGenerateResponse

type GoodsPidGenerateResponse struct {
	model.CommonResponse
	// Response response
	Response struct {
		// List 多多进宝推广位对象列表
		List []Pid `json:"p_id_list,omitempty"`
	} `json:"p_id_generate_response" xml:"p_id_generate_response"`
}

GoodsPidGenerateResponse 创建多多进宝推广位 API Response

type GoodsPidQueryRequest

type GoodsPidQueryRequest struct {
	// Page 返回的页数
	Page int `json:"page,omitempty"`
	// PageSize 返回的每页推广位数量
	PageSize int `json:"page_size,omitempty"`
	// PidList 推广位列表,例如:["60005_612"]
	PidList []string `json:"pid_list,omitempty"`
	// Status 推广位状态:0-正常,1-封禁
	Status *int `json:"status,omitempty"`
}

GoodsPidQueryRequest 查询已经生成的推广位信息 API Request

func (GoodsPidQueryRequest) GetType

func (r GoodsPidQueryRequest) GetType() string

GetType implement Request interface

type GoodsPidQueryResponse

type GoodsPidQueryResponse struct {
	model.CommonResponse
	Response struct {
		// List 多多进宝推广位对象列表
		List []Pid `json:"p_id_list,omitempty"`
		// TotalCount 返回推广位总数
		TotalCount int `json:"total_count,omitempty"`
	} `json:"p_id_query_response"`
}

GoodsPidQueryResponse 查询已经生成的推广位信息 API Response

type GoodsPromotionRightAuthRequest added in v1.1.6

type GoodsPromotionRightAuthRequest struct {
	// DemoURL 推广商品视频素材url
	DemoURL string `json:"demo_url,omitempty"`
	// DuoID 渠道duoId
	DuoID uint64 `json:"duo_id,omitempty"`
	// GoodsID 商品GoodsId
	GoodsID uint64 `json:"goods_id,omitempty"`
	// MallCertificationURL 商家资质证明图片url列表,1到3张图
	MallCertificationURL []string `json:"mall_certificate_url,omitempty"`
	// PromotionCodeURL 推广视频预览码url
	PromotionCodeURL string `json:"promotion_code_url,omitempty"`
	// PromotionEndTime 推广结束时间戳,毫秒
	PromotionEndTime int64 `json:"promotion_end_time,omitempty"`
	// PromotionStartTime 推广开始时间戳,毫秒
	PromotionStartTime int64 `json:"promotion_start_time,omitempty"`
	// ThumbPicURL 商品图片素材url列表,0到3张图
	ThumbPicURL string `json:"thumb_pic_url,omitempty"`
}

GoodsPromotionRightAuthRequest 多多进宝信息流渠道备案授权素材上传接口 API Request

func (GoodsPromotionRightAuthRequest) GetType added in v1.1.6

GetType implement Request interface

type GoodsPromotionRightAuthResponse added in v1.1.6

type GoodsPromotionRightAuthResponse struct {
	model.CommonResponse
	Response struct {
		// Reason 备案失败原因
		Reason string `json:"reason,omitempty"`
		// Result 备案结果
		Result bool `json:"result,omitempty"`
	} `json:"goods_promotion_right_auth_response"`
}

GoodsPromotionRightAuthResponse 多多进宝信息流渠道备案授权素材上传接口 API Response

type GoodsPromotionUrlGenerateRequest

type GoodsPromotionUrlGenerateRequest struct {
	// CashGiftID 多多礼金ID
	CashGiftID uint64 `json:"cash_gift_id,omitempty"`
	// CashGiftName 自定义礼金标题,用于向用户展示渠道专属福利,不超过12个字
	CashGiftName string `json:"cash_gift_name,omitempty"`
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// GenerateAuthorityURL 是否生成带授权的单品链接。如果未授权,则会走授权流程
	GenerateAuthorityURL bool `json:"generate_authority_url,omitempty"`
	// GenerateMallCollectCoupon 是否生成店铺收藏券推广链接
	GenerateMallCollectCoupon bool `json:"generate_mall_collect_coupon,omitempty"`
	// GenerateQQApp 是否生成qq小程序
	GenerateQQApp bool `json:"generate_qq_app,omitempty"`
	// GenerateSchemaURL 是否返回 schema URL
	GenerateSchemaURL bool `json:"generate_schema_url,omitempty"`
	// GenerateShortURL 是否生成短链接,true-是,false-否
	GenerateShortURL bool `json:"generate_short_url,omitempty"`
	// GenerateShortLink 获取微信ShortLink链接,仅支持单个商品
	GenerateShortLink bool `json:"generate_short_link,omitempty"`
	// GenerateWeApp 是否生成拼多多福利券微信小程序推广信息
	GenerateWeApp bool `json:"generate_we_app,omitempty"`
	// GoodsSignList 商品goodsSign列表,例如:["c9r2omogKFFAc7WBwvbZU1ikIb16_J3CTa8HNN"],支持批量生链。goodsSign是加密后的goodsId, goodsId已下线,请使用goodsSign来替代。使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252
	GoodsSignList []string `json:"goods_sign_list,omitempty"`
	// MaterialID 素材ID,可以通过商品详情接口获取商品素材信息
	MaterialID string `json:"material_id,omitempty"`
	// MultiGroup true--生成多人团推广链接 false--生成单人团推广链接(默认false)1、单人团推广链接:用户访问单人团推广链接,可直接购买商品无需拼团。2、多人团推广链接:用户访问双人团推广链接开团,若用户分享给他人参团,则开团者和参团者的佣金均结算给推手
	MultiGroup bool `json:"multi_group,omitempty"`
	// Pid 推广位ID
	Pid string `json:"p_id,omitempty"`
	// SearchID 搜索id,建议填写,提高收益。来自pdd.ddk.goods.recommend.get、pdd.ddk.goods.search、pdd.ddk.top.goods.list.query等接口
	SearchID string `json:"search_id,omitempty"`
	// ZsDouID 招商多多客ID
	ZsDouID uint64 `json:"zs_dou_id,omitempty"`
}

GoodsPromotionUrlGenerateRequest 多多进宝推广链接生成 API Request

func (GoodsPromotionUrlGenerateRequest) GetType

GetType implement Request interface

type GoodsPromotionUrlGenerateResponse

type GoodsPromotionUrlGenerateResponse struct {
	model.CommonResponse
	Response struct {
		// List 多多进宝推广链接对象列表
		List []PromURL `json:"goods_promotion_url_list" xml:"goods_promotion_url_list"`
	} `json:"goods_promotion_url_generate_response" xml:"goods_promotion_url_generate_response"`
}

GoodsPromotionUrlGenerateResponse 多多进宝推广链接生成 API Response

type GoodsRecommendGetRequest

type GoodsRecommendGetRequest struct {
	// ActivityTags 活动商品标记数组,例:[4,7],4-秒杀,7-百亿补贴,10851-千万补贴,11879-千万神券,10913-招商礼金商品,31-品牌黑标,10564-精选爆品-官方直推爆款,10584-精选爆品-团长推荐,24-品牌高佣,其他的值请忽略
	ActivityTags []int `json:"activity_tags,omitempty"`
	// CatID 猜你喜欢场景的商品类目,20100-百货,20200-母婴,20300-食品,20400-女装,20500-电器,20600-鞋包,20700-内衣,20800-美妆,20900-男装,21000-水果,21100-家纺,21200-文具,21300-运动,21400-虚拟,21500-汽车,21600-家装,21700-家具,21800-医药;
	CatID uint64 `json:"cat_id,omitempty"`
	// ChannelType 进宝频道推广商品: 1-今日销量榜,3-相似商品推荐,4-猜你喜欢(和进宝网站精选一致),5-实时热销榜,6-实时收益榜。默认值5
	ChannelType int `json:"channel_type,omitempty"`
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 为用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 为上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// GoodsImageType 商品主图类型:1-场景图,2-白底图,默认为0
	GoodsImageType int `json:"goods_image_type,omitempty"`
	// GoodsSignList 商品goodsSign列表,相似商品推荐场景时必传,仅取数组的第一位,例如:["c9r2omogKFFAc7WBwvbZU1ikIb16_J3CTa8HNN"]。goodsSign是加密后的goodsId, goodsId已下线,请使用goodsSign来替代。使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252
	GoodsSignList []string `json:"goods_sign_list,omitempty"`
	// Limit 一页请求数量;默认值 : 20
	Limit int `json:"limit,omitempty"`
	// ListID 翻页时建议填写前页返回的list_id值
	ListID string `json:"list_id,omitempty"`
	// Offset 从多少位置开始请求;默认值 : 0,offset需是limit的整数倍,仅支持整页翻页
	Offest int `json:"offset,omitempty"`
	// Pid 推广位id
	Pid string `json:"pid,omitempty"`
}

GoodsRecommendGetRequest 多多进宝商品推荐API API Request

func (GoodsRecommendGetRequest) GetType

func (r GoodsRecommendGetRequest) GetType() string

GetType implement Request interface

type GoodsRecommendGetResponse

type GoodsRecommendGetResponse struct {
	model.CommonResponse
	Response *GoodsRecommendGetResult `json:"goods_basic_detail_response,omitempty" xml:"goods_basic_detail_response,omitempty"`
}

GoodsRecommendGetResponse 多多进宝商品推荐API API Response

type GoodsRecommendGetResult

type GoodsRecommendGetResult struct {
	// List 列表
	List []Goods `json:"list,omitempty" xml:"list,omitempty"`
	// ListID 翻页时必填前页返回的list_id值
	ListID string `json:"list_id,omitempty" xml:"list_id,omitempty"`
	// SearchID 搜索id,建议生成推广链接时候填写,提高收益。
	SearchID string `json:"search_id,omitempty" xml:"search_id,omitempty"`
	// Total total
	Total int `json:"total,omitempty" xml:"total,omitempty"`
}

GoodsRecommendGetResult .

func GoodsRecommendGet

func GoodsRecommendGet(clt *core.SDKClient, req *GoodsRecommendGetRequest) (*GoodsRecommendGetResult, error)

GoodsRecommendGet 多多进宝商品推荐API

type GoodsSearchRequest

type GoodsSearchRequest struct {
	// ActivityTags 活动商品标记数组,例:[4,7],4-秒杀,7-百亿补贴,10851-千万补贴,11879-千万神券,10913-招商礼金商品,31-品牌黑标,10564-精选爆品-官方直推爆款,10584-精选爆品-团长推荐,24-品牌高佣,其他的值请忽略
	ActivityTags []int `json:"activity_tags,omitempty"`
	// BlockCatPackages 屏蔽商品类目包:1-拼多多小程序屏蔽的类目&关键词;2-虚拟类目;3-医疗器械;4-处方药;5-非处方药
	BlockCatPackages []uint64 `json:"block_cat_packages,omitempty"`
	// BlockCats 自定义屏蔽一级/二级/三级类目ID,自定义数量不超过20个;使用pdd.goods.cats.get接口获取cat_id
	BlockCats []uint64 `json:"block_cats,omitempty"`
	// CatID 商品类目ID,使用pdd.goods.cats.get接口获取
	CatID uint64 `json:"cat_id,omitempty"`
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// GoodsImageType 商品主图类型:1-场景图,2-白底图,默认为0
	GoodsImageType int `json:"goods_image_type,omitempty"`
	// GoodsSignList 商品goodsSign列表,例如:["c9r2omogKFFAc7WBwvbZU1ikIb16_J3CTa8HNN"],支持通过goodsSign查询商品。goodsSign是加密后的goodsId, goodsId已下线,请使用goodsSign来替代。使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252
	GoodsSignList []string `json:"goods_sign_list,omitempty"`
	// IsBrandGoods 是否为品牌商品
	IsBrandGoods bool `json:"is_brand_goods,omitempty"`
	// Keyword 商品关键词,与opt_id字段选填一个或全部填写。可支持goods_id、拼多多链接(即拼多多app商详的链接)、进宝长链/短链(即为pdd.ddk.goods.promotion.url.generate接口生成的长短链)
	Keyword string `json:"keyword,omitempty"`
	// ListID 翻页时建议填写前页返回的list_id值
	ListID string `json:"list_id,omitempty"`
	// MerchantType 店铺类型,1-个人,2-企业,3-旗舰店,4-专卖店,5-专营店,6-普通店(未传为全部)
	MerchantType int `json:"merchant_type,omitempty"`
	// MerchantTypeList 店铺类型数组,例如:[1,2]
	MerchantTypeList []int `json:"merchant_type_list,omitempty"`
	// OptID 商品标签类目ID,使用pdd.goods.opt.get获取
	OptID uint64 `json:"opt_id,omitempty"`
	// Page 默认值1,商品分页数
	Page int `json:"page,omitempty"`
	// PageSize 默认100,每页商品数量
	PageSize int `json:"page_size,omitempty"`
	// Pid 推广位id
	Pid string `json:"pid,omitempty"`
	// RangeList 筛选范围列表 样例:[{"range_id":0,"range_from":1,"range_to":1500},{"range_id":1,"range_from":1,"range_to":1500}]
	RangeList []RangeItem `json:"range_list,omitempty"`
	// SortType 排序方式:0-综合排序;1-按佣金比率升序;2-按佣金比例降序;3-按价格升序;4-按价格降序;5-按销量升序;6-按销量降序;7-优惠券金额排序升序;8-优惠券金额排序降序;9-券后价升序排序;10-券后价降序排序;11-按照加入多多进宝时间升序;12-按照加入多多进宝时间降序;13-按佣金金额升序排序;14-按佣金金额降序排序;15-店铺描述评分升序;16-店铺描述评分降序;17-店铺物流评分升序;18-店铺物流评分降序;19-店铺服务评分升序;20-店铺服务评分降序;27-描述评分击败同类店铺百分比升序,28-描述评分击败同类店铺百分比降序,29-物流评分击败同类店铺百分比升序,30-物流评分击败同类店铺百分比降序,31-服务评分击败同类店铺百分比升序,32-服务评分击败同类店铺百分比降序
	SortType int `json:"sort_type,omitempty"`
	// UseCustomized 是否使用个性化推荐,true表示使用,false表示不使用,默认true。
	UseCustomized *bool `json:"use_customized,omitempty"`
	// WithCoupon 是否只返回优惠券的商品,false返回所有商品,true只返回有优惠券的商品
	WithCoupon bool `json:"with_coupon,omitempty"`
}

GoodsSearchRequest 多多进宝商品查询 API Request

func (GoodsSearchRequest) GetType

func (r GoodsSearchRequest) GetType() string

GetType implement Request interface

type GoodsSearchResponse

type GoodsSearchResponse struct {
	model.CommonResponse
	Response *GoodsSearchResult `json:"goods_search_response,omitempty" xml:"goods_search_response,omitempty"`
}

GoodsSearchResponse 多多进宝商品查询 API Response

type GoodsSearchResult

type GoodsSearchResult struct {
	// List 列表
	List []Goods `json:"goods_list,omitempty" xml:"goods_list,omitempty"`
	// ListID 翻页时必填前页返回的list_id值
	ListID string `json:"list_id,omitempty" xml:"list_id,omitempty"`
	// SearchID 搜索id,建议生成推广链接时候填写,提高收益。
	SearchID string `json:"search_id,omitempty" xml:"search_id,omitempty"`
	// TotalCount total
	TotalCount int `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

GoodsSearchResult .

func GoodsSearch

func GoodsSearch(clt *core.SDKClient, req *GoodsSearchRequest) (*GoodsSearchResult, error)

GoodsSearch 多多进宝商品查询

type GoodsZsUnitUrlGenRequest

type GoodsZsUnitUrlGenRequest struct {
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// Pid 渠道id
	Pid string `json:"pid"`
	// SourceURL 需转链的链接,支持拼多多商品链接、进宝长链/短链(即为pdd.ddk.goods.promotion.url.generate接口生成的长短链)
	SourceURL string `json:"source_url"`
}

GoodsZsUnitUrlGenRequest 多多进宝转链接口 API Request

func (GoodsZsUnitUrlGenRequest) GetType

func (r GoodsZsUnitUrlGenRequest) GetType() string

GetType implement Request interface

type GoodsZsUnitUrlGenResponse

type GoodsZsUnitUrlGenResponse struct {
	model.CommonResponse
	// Response response
	Response *PromURL `json:"goods_zs_unit_generate_response" xml:"goods_zs_unit_generate_response"`
}

GoodsZsUnitUrlGenResponse 多多进宝转链接口 API REesponse

type MemberAuthorityQueryRequest

type MemberAuthorityQueryRequest struct {
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// Pid 推广位id
	Pid string `json:"pid,omitempty"`
}

MemberAuthorityQueryRequest 查询是否绑定备案 API Request

func (MemberAuthorityQueryRequest) GetType

func (r MemberAuthorityQueryRequest) GetType() string

GetType implement Request interface

type MemberAuthorityQueryResponse

type MemberAuthorityQueryResponse struct {
	model.CommonResponse
	// Response response
	Response struct {
		// Bind 1-已绑定;0-未绑定
		Bind int `json:"bind,omitempty" xml:"bind,omitempty"`
	} `json:"authority_query_response" xml:"authority_query_response"`
}

MemberAuthorityQueryResponse 查询是否绑定备案 API Respose

type Order

type Order struct {
	// ActivityTags 商品活动标记数组,例:[4,7],4-秒杀 7-百亿补贴等
	ActivityTags []int `json:"activity_tags,omitempty" xml:"activity_tags,omitempty"`
	// AuthDuoID 多多客工具id
	AuthDuoID uint64 `json:"auth_duo_id,omitempty" xml:"auth_duo_id,omitempty"`
	// BatchNo 结算批次号
	BathNo string `json:"batch_no,omitempty" xml:"batch_no,omitempty"`
	// CatIDs 商品一~四级类目ID列表
	CatIDs []uint64 `json:"cat_ids,omitempty" xml:"cat_ids,omitempty"`
	// CpaNew 是否是 cpa 新用户,1表示是,0表示否
	CpaNew int `json:"cpa_new,omitempty" xml:"cpa_new,omitempty"`
	// CpsSign CPS_Sign
	CpsSign string `json:"cps_sign,omitempty" xml:"cps_sign,omitempty"`
	// CustomParameters 自定义参数
	CustomParameters string `json:"custom_parameters,omitempty" xml:"custom_parameters,omitempty"`
	// FailReason 订单审核失败原因
	FailReason string `json:"fail_reason,omitempty" xml:"fail_reason,omitempty"`
	// GoodsCategoryName 商品一级类目名称
	GoodsCategoryName string `json:"goods_category_name,omitempty" xml:"goods_category_name,omitempty"`
	// GoodsID 商品id
	GoodsID uint64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// GoodsName 商品名称
	GoodsName string `json:"goods_name,omitempty" xml:"goods_name,omitempty"`
	// GoodsPrice 商品价格(分)
	GoodsPrice int64 `json:"goods_price,omitempty" xml:"goods_price,omitempty"`
	// GoodsQuantity 商品数量
	GoodsQuantity int64 `json:"goods_quantity,omitempty" xml:"goods_quantity,omitempty"`
	// GoodsSign goodsSign是加密后的goodsId,goodsId已下线,请使用goodsSign来替代。需要注意的是:推广链接带有goodsSign信息时,订单会返回原goodsSign;反之,会生成新的goodsSign返回。
	GoodsSign string `json:"goods_sign,omitempty" xml:"goods_sign,omitempty"`
	// GoodsThumbnailURL 商品缩略图
	GoodsThumbnailURL string `json:"goods_thumbnail_url,omitempty" xml:"goods_thumbnail_url,omitempty"`
	// GroupID 成团编号
	GroupID uint64 `json:"group_id,omitempty" xml:"group_id,omitempty"`
	// IsDirect 是否直推 ,1表示是,0表示否
	IsDirect int `json:"is_direct,omitempty" xml:"is_direct,omitempty"`
	// MallID 店铺id
	MallID uint64 `json:"mall_id,omitempty" xml:"mall_id,omitempty"`
	// MallName 店铺名称
	MallName string `json:"mall_name,omitempty" xml:"mall_name,omitempty"`
	// NoSubsidyReason 非补贴订单原因,例如:"商品补贴达上限","达到单个用户下单上限","非指定落地页直推订单","订单超过2个月未审核成功"等
	NoSubsidyReason string `json:"no_subsidy_reason,omitempty" xml:"no_subsidy_reason,omitempty"`
	// OrderAmount 订单价格(分)
	OrderAmount int64 `json:"order_amount,omitempty" xml:"order_amount,omitempty"`
	// OrderCreateTime 订单创建时间(UNIX时间戳)
	OrderCreateTime int64 `json:"order_create_time,omitempty" xml:"order_create_time,omitempty"`
	// OrderGroupSuccessTime 订单创建时间(UNIX时间戳)
	OrderGroupSuccessTime int64 `json:"order_group_success_time,omitempty" xml:"order_group_success_time,omitempty"`
	// OrderModifyAt 订单最后更新时间(UNIX时间戳)
	OrderModifyAt int64 `json:"order_modify_at,omitempty" xml:"order_modify_at,omitempty"`
	// OrderPayTime 订单支付时间(UNIX时间戳)
	OrderPayTime int64 `json:"order_pay_time,omitempty" xml:"order_pay_time,omitempty"`
	// OrderReceiveTime 订单确认收货时间(UNIX时间戳)
	OrderReceiveTime int64 `json:"order_receive_time,omitempty" xml:"order_receive_time,omitempty"`
	// OrderSettleTime 订单结算时间(UNIX时间戳)
	OrderSettleTime int64 `json:"order_settle_time,omitempty" xml:"order_settle_time,omitempty"`
	// OrderSN 订单编号
	OrderSN string `json:"order_sn,omitempty" xml:"order_sn,omitempty"`
	// OrderStatus 订单状态
	OrderStatus int `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// OrderStatusDesc 订单状态:0-已支付;1-已成团;2-确认收货;3-审核成功;4-审核失败(不可提现);5-已经结算 ;10-已处罚
	OrderStatusDesc string `json:"order_status_desc,omitempty" xml:"order_status_desc,omitempty"`
	// OrderVerifyTime 订单审核时间(UNIX时间戳)
	OrderVerifyTime int64 `json:"order_verify_time,omitempty" xml:"order_verify_time,omitempty"`
	// Pid 推广位id
	Pid string `json:"pid,omitempty"`
	// PlatformDiscount 平台券金额,表示该订单使用的平台券金额,单位分
	PlatformDiscount int64 `json:"platform_discount,omitempty" xml:"platform_discount,omitempty"`
	// PointTime 打点时间
	PointTime int64 `json:"point_time,omitempty" xml:"point_time,omitempty"`
	// PriceCompareStatus 比价状态:0:正常,1:比价
	PriceCompareStatus int `json:"price_compare_status,omitempty" xml:"price_compare_status,omitempty"`
	// PromotionAmount 佣金(分)
	PromotionAmount int64 `json:"promotion_amount,omitempty" xml:"promotion_amount,omitempty"`
	// PromotionRate 佣金比例 千分比
	PromotionRate int `json:"promotion_rate,omitempty" xml:"promotion_rate,omitempty"`
	// RedPacketType 超级红包补贴类型:0-非红包补贴订单,1-季度新用户补贴
	RedPacketType int `json:"red_packet_type,omitempty" xml:"red_packet_type,omitempty"`
	// ReturnStatus 售后状态:0:无,1:售后中,2:售后完成
	ReturnStatus int `json:"return_status,omitempty" xml:"return_status,omitempty"`
	// SepDuoID 直播间订单推广duoId
	SepDuoID uint64 `json:"sep_duo_id,omitempty" xml:"sep_duo_id,omitempty"`
	// SepMarketFee 直播间推广佣金
	SepMarketFee int64 `json:"sep_market_fee,omitempty" xml:"sep_market_fee,omitempty"`
	// SepParams 直播间推广自定义参数
	SepParams string `json:"sep_params,omitempty" xml:"sep_params,omitempty"`
	// SepPid 直播间订单推广位
	SepPid string `json:"sep_pid,omitempty" xml:"sep_pid,omitempty"`
	// SepRate 直播间推广佣金比例
	SepRate int `json:"sep_rate,omitempty" xml:"sep_rate,omitempty"`
	// ShareAmount 招商分成服务费金额,单位为分
	ShareAmount int64 `json:"share_amount,omitempty" xml:"share_amount,omitempty"`
	// ShareRate 招商分成服务费比例,千分比
	ShareRate int `json:"share_rate,omitempty" xml:"share_rate,omitempty"`
	// SubSidyAmount 优势渠道专属商品补贴金额,单位为分。针对优质渠道的补贴活动,指定优势渠道可通过推广该商品获取相应补贴。补贴活动入口:[进宝网站-官方活动]
	SubSidyAmount int64 `json:"subsidy_amount,omitempty" xml:"subsidy_amount,omitempty"`
	// SubsidyDuoAmountLevel 等级补贴给渠道的收入补贴,不允许直接给下级代理展示,单位为分
	SubsidyDuoAmountLevel int64 `json:"subsidy_duo_amount_level,omitempty" xml:"subsidy_duo_amount_level,omitempty"`
	// SubsidyDuoAmountTenMillion 官方活动给渠道的收入补贴金额,不允许直接给下级代理展示,单位为分
	SubsidyDuoAmountTenMillion int64 `json:"subsidy_duo_amount_ten_million,omitempty" xml:"subsidy_duo_amount_ten_million,omitempty"`
	// SubsidyType 订单补贴类型:0-非补贴订单,1-千万补贴,2-社群补贴,3-多多星选,4-品牌优选,5-千万神券
	SubsidyType int `json:"subsidy_type,omitempty" xml:"subsidy_type,omitempty"`
	// Type 下单场景类型:0-单品推广,1-红包活动推广,4-多多进宝商城推广,7-今日爆款,8-品牌清仓,9-1.9包邮,77-刮刮卡活动推广,94-充值中心,101-品牌黑卡,103-百亿补贴频道,104-内购清单频道,105-超级红包
	Type int `json:"type,omitempty" xml:"type,omitempty"`
	// URLLastGenerateTime 链接最后一次生产时间
	URLLastGenerateTime int64 `json:"url_last_generate_time,omitempty" xml:"url_last_generate_time,omitempty"`
	// ZsDuoID 招商多多客id
	ZsDuoID uint64 `json:"zs_duo_id,omitempty" xml:"zs_duo_id,omitempty"`
}

Order 订单详情

func OrderDetailGet

func OrderDetailGet(clt *core.SDKClient, req *OrderDetailGetRequest) (*Order, error)

OrderDetailGet 查询订单详情

func OrderListIncrementGet

func OrderListIncrementGet(clt *core.SDKClient, req *OrderListIncrementGetRequest) (int, []Order, error)

OrderListIncrementGet 最后更新时间段增量同步推广订单信息

func OrderListRangeGet

func OrderListRangeGet(clt *core.SDKClient, req *OrderListRangeGetRequest) (string, []Order, error)

OrderListRangeGet 用时间段查询推广订单接口

type OrderDetailGetRequest

type OrderDetailGetRequest struct {
	// OrderSN 订单号
	OrderSN string `json:"order_sn,omitempty"`
	// QueryOrderType 订单类型:1-推广订单;2-直播间订单
	QueryOrderType int `json:"query_order_type,omitempty"`
}

OrderDetailGetRequest 查询订单详情 API Request

func (OrderDetailGetRequest) GetType

func (r OrderDetailGetRequest) GetType() string

GetType implement Request interface

type OrderDetailGetResponse

type OrderDetailGetResponse struct {
	model.CommonResponse
	Response *Order `json:"order_detail_response,omitempty" xml:"order_detail_response,omitempty"`
}

OrderDetailGetResponse 查询订单详情 API Response

type OrderListIncrementGetRequest

type OrderListIncrementGetRequest struct {
	// CashGiftOrder 是否为礼金订单,查询礼金订单时,订单类型不填(默认推广订单)。
	CashGiftOrder bool `json:"cash_gift_order,omitempty"`
	// EndUpdateTime 查询结束时间,和开始时间相差不能超过24小时。note:此时间为时间戳,指格林威治时间 1970 年01 月 01 日 00 时 00 分 00 秒(北京时间 1970 年 01 月 01 日 08 时 00 分 00 秒)起至现在的总秒数
	EndUpdateTime int64 `json:"end_update_time,omitempty"`
	// Page 第几页,从1到10000,默认1,注:使用最后更新时间范围增量同步时,必须采用倒序的分页方式(从最后一页往回取)才能避免漏单问题。
	Page int `json:"page,omitempty"`
	// PageSize 返回的每页结果订单数,默认为100,范围为10到100,建议使用40~50,可以提高成功率,减少超时数量。
	PageSize int `json:"page_size,omitempty"`
	// QueryOrderType 订单类型:1-推广订单;2-直播间订单
	QueryOrderType int `json:"query_order_type,omitempty"`
	// ReturnCount 是否返回总数,默认为true,如果指定false, 则返回的结果中不包含总记录数,通过此种方式获取增量数据,效率在原有的基础上有80%的提升。
	ReturnCount *bool `json:"return_count,omitempty"`
	// StartUpdateTime 最近90天内多多进宝商品订单更新时间--查询时间开始。note:此时间为时间戳,指格林威治时间 1970 年01 月 01 日 00 时 00 分 00 秒(北京时间 1970 年 01 月 01 日 08 时 00 分 00 秒)起至现在的总秒数
	StartUpdateTime int64 `json:"start_update_time,omitempty"`
}

OrderListIncrementGetRequest 最后更新时间段增量同步推广订单信息 API Request

func (OrderListIncrementGetRequest) GetType

GetType implement Request interface

type OrderListIncrementGetResponse

type OrderListIncrementGetResponse struct {
	model.CommonResponse
	Response struct {
		// List order list
		List []Order `json:"order_list,omitempty" xml:"order_list,omitempty"`
		// TotalCount total count
		TotalCount int `json:"total_count,omitempty" xml:"total_count,omitempty"`
	} `json:"order_list_get_response" xml:"order_list_get_response"`
}

OrderListIncrementGetResponse 最后更新时间段增量同步推广订单信息 API Response

type OrderListRangeGetRequest

type OrderListRangeGetRequest struct {
	// CashGiftOrder 是否为礼金订单,查询礼金订单时,订单类型不填(默认推广订单)。
	CashGiftOrder bool `json:"cash_gift_order,omitempty"`
	// EndTime 支付结束时间,格式: "yyyy-MM-dd HH:mm:ss" ,比如 "2020-12-01 00:00:00"
	EndTime string `json:"end_time,omitempty"`
	// StartTime 支付起始时间,格式: "yyyy-MM-dd HH:mm:ss" ,比如 "2020-12-01 00:00:00"
	StartTime string `json:"start_time,omitempty"`
	// LastOrderID 上一次的迭代器id(第一次不填)
	LastOrderID string `json:"last_order_id,omitempty"`
	// PageSize 每次请求多少条,建议300
	PageSize int `json:"page_size,omitempty"`
	// QueryOrderType 订单类型:1-推广订单;2-直播间订单
	QueryOrderType int `json:"query_order_type,omitempty"`
}

OrderListRangeGetRequest 用时间段查询推广订单接口 API Request

func (OrderListRangeGetRequest) GetType

func (r OrderListRangeGetRequest) GetType() string

GetType implement Request interface

type OrderListRangeGetResponse

type OrderListRangeGetResponse struct {
	model.CommonResponse
	Response struct {
		// LastOrderID last_order_id
		LastOrderID string `json:"last_order_id,omitempty" xml:"last_order_id,omitempty"`
		// OrderList 多多进宝推广位对象列表
		OrderList []Order `json:"order_list,omitempty" xml:"order_list,omitempty"`
	} `json:"order_list_get_response" xml:"order_list_get_response"`
}

OrderListRangeGetResponse 用时间段查询推广订单接口 API Response

type PeroidType

type PeroidType int
const (
	PeroidType_7DAY  PeroidType = 1
	PeroidType_MONTH PeroidType = 2
)

type Pid

type Pid struct {
	// CreateTime 推广位创建时间
	CreateTime int64 `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// Name 推广位名称
	Name string `json:"pid_name,omitempty" xml:"pid_name,omitempty"`
	// ID 调用方推广位ID
	ID string `json:"p_id,omitempty" xml:"p_id,omitempty"`
	// MediaID 媒体id
	MediaID uint64 `json:"media_id,omitempty" xml:"media_id,omitempty"`
	// Status 推广位状态:0-正常,1-封禁
	Status int `json:"status,omitempty"`
}

Pid 推广位

func GoodsPidGenerate

func GoodsPidGenerate(clt *core.SDKClient, req *GoodsPidGenerateRequest) ([]Pid, error)

GoodsPidGenerate 创建多多进宝推广位

func GoodsPidQuery

func GoodsPidQuery(clt *core.SDKClient, req *GoodsPidQueryRequest) (int, []Pid, error)

GoodsPidQuery 查询已经生成的推广位信息

type PidMediaIDBindRequest

type PidMediaIDBindRequest struct {
	// MediaID 媒体id
	MediaID uint64 `json:"media_id"`
	// PidList 推广位列表,例如:["60005_612"],最多支持同时传入1000个
	PidList []string `json:"pid_list"`
}

PidMediaIDBindRequest 批量绑定推广位的媒体id API Request

func (PidMediaIDBindRequest) GetType

func (r PidMediaIDBindRequest) GetType() string

GetType implement Request interface

type PidMediaIDBindResponse

type PidMediaIDBindResponse struct {
	model.CommonResponse
	// Response response
	Response struct {
		// Result 绑定结果
		Result *PidMediaIDBindResult `json:"result,omitempty" xml:"result,omitempty"`
	} `json:"p_id_bind_response" xml:"p_id_bind_response"`
}

PidMediaIDBindResponse 批量绑定推广位的媒体id API Response

type PidMediaIDBindResult

type PidMediaIDBindResult struct {
	// Msg 绑定结果文本提示
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// Result 绑定结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

PidMediaIDBindResult 绑定结果

func PidMediaIDBind

func PidMediaIDBind(clt *core.SDKClient, mediaID uint64, pidList []string) (*PidMediaIDBindResult, error)

PidMediaIDBind 批量绑定推广位的媒体id

type PromResource

type PromResource struct {
	// Desc 活动描述
	Desc string `json:"desc,omitempty"`
	// URL 活动地址
	URL string `json:"url,omitempty"`
}

PromResource .

type PromURL

type PromURL struct {
	// MobileShortURL 推广短链接(可唤起拼多多app)
	MobileShortURL string `json:"mobile_short_url,omitempty" xml:"mobile_short_url,omitempty"`
	// MobileURL 推广长链接(唤起拼多多app)
	MobileURL string `json:"mobile_url,omitempty" xml:"mobile_url,omitempty"`
	// MultiGroupMobileShortURL 推广短链接(唤起拼多多app)
	MultiGroupMobileShortURL string `json:"multi_group_mobile_short_url,omitempty" xml:"multi_group_mobile_short_url,omitempty"`
	// MultiGroupMobileURL 推广长链接(可唤起拼多多app)
	MultiGroupMobileURL string `json:"multi_group_mobile_url,omitempty" xml:"multi_group_mobile_url,omitempty"`
	// MultiGroupShortURL 双人团推广短链接
	MultiGroupShortURL string `json:"multi_group_short_url,omitempty" xml:"multi_group_short_url,omitempty"`
	// MultiGroupURL 双人团推广长链接
	MultiGroupURL string `json:"multi_group_url,omitempty" xml:"multi_group_url,omitempty"`
	// ShortURL 对应出参url的短链接,与url功能一致。
	ShortURL string `json:"short_url,omitempty" xml:"short_url,omitempty"`
	// URL 普通推广长链接,唤起H5页面
	URL string `json:"url,omitempty" xml:"url,omitempty"`
	// WeAppWebViewURL
	WeAppWebViewURL string `json:"we_app_web_view_url,omitempty" xml:"we_app_web_view_url,omitempty"`
	// WeAppWebViewShortURL
	WeAppWebViewShortURL string `json:"we_app_web_view_short_url,omitempty" xml:"we_app_web_view_short_url,omitempty"`
	// Sign CPSsign
	Sign string `json:"sign,omitempty" xml:"sign,omitempty"`
	// SchemaURL schema链接,用户安装拼多多APP的情况下会唤起APP(需客户端支持schema跳转协议)
	SchemaURL string `json:"schema_url,omitempty" xml:"schema_url,omitempty"`
	// TzSchemaURL 使用此推广链接,用户安装多多团长APP的情况下会唤起APP(需客户端支持schema跳转协议)
	TzSchemaURL string `json:"tz_schema_url,omitempty" xml:"tz_shceme_url,omitempty"`
	// WeixinCode 微信小程序码
	WeixinCode string `json:"weixin_code,omitempty" xml:"weixin_code,omitempty"`
	// WeixinShortLink 微信ShortLink链接
	WeixinShortLink string `json:"weixin_short_link,omitempty" xml:"weixin_short_link,omitempty"`
	// MultiURLLIst 双人团链接列表
	MultiURLList *PromURL `json:"multi_url_list,omitempty" xml:"multi_url_list,omitempty"`
	// SingleURLList 单人团链接列表
	SingleURLList *PromURL `json:"single_url_list,omitempty" xml:"single_url_list,omitempty"`
	// WeAppInfo 拼多多福利券微信小程序信息
	WeAppInfo *WeAppInfo `json:"we_app_info,omitempty" xml:"we_app_info,omitempty"`
	// QQAppInfo qq小程序信息
	QQAppInfo *WeAppInfo `json:"qq_app_info,omitempty" xml:"qq_app_info,omitempty"`
}

PromURL 链接

func CmsPromUrlGenerate

func CmsPromUrlGenerate(clt *core.SDKClient, req *CmsPromUrlGenerateRequest) (int, []PromURL, error)

CmsPromUrlGenerate 生成商城-频道推广链接

func GoodsPromotionUrlGenerate

func GoodsPromotionUrlGenerate(clt *core.SDKClient, req *GoodsPromotionUrlGenerateRequest) ([]PromURL, error)

GoodsPromotionUrlGenerate 多多进宝推广链接生成

func GoodsZsUnitUrlGen

func GoodsZsUnitUrlGen(clt *core.SDKClient, req *GoodsZsUnitUrlGenRequest) (*PromURL, error)

GoodsZsUnitUrlGen 多多进宝转链接口

func ResourceUrlGen

func ResourceUrlGen(clt *core.SDKClient, req *ResourceUrlGenRequest) (*PromURL, error)

ResourceUrlGen 生成多多进宝频道推广

type RangeItem

type RangeItem struct {
	// RangeFrom 区间的开始值
	RangeFrom int64 `json:"range_from,omitempty"`
	// RangeID range_id为1表示红包抵后价(单位分), range_id为2表示佣金比例(单位千分之几)
	RangeID int `json:"range_id,omitempty"`
	// RangeTo 区间的结束值
	RangeTo int64 `json:"range_to,omitempty"`
}

RangeItem 自定义红包抵后价和商品佣金区间对象

type ReportImgUploadRequest added in v1.1.6

type ReportImgUploadRequest struct {
	// File 多多视频图片文件流
	File io.Reader `json:"file,omitempty"`
	// Filename
	Filename string `json:"filename,omitempty"`
}

ReportImgUploadRequest 多多客信息流投放备案图片上传接口 API Request

func (ReportImgUploadRequest) Encode added in v1.1.6

Encode implement UploadRequest interface

func (ReportImgUploadRequest) GetType added in v1.1.6

func (r ReportImgUploadRequest) GetType() string

GetType implement Request interface

type ReportImgUploadResponse added in v1.1.6

type ReportImgUploadResponse struct {
	model.CommonResponse
	Response struct {
		// URL
		URL string `json:"url,omitempty"`
	} `json:"response"`
}

ReportImgUploadResponse 多多客信息流投放备案图片上传接口 API Response

type ReportVideoUploadPartCompleteRequest added in v1.1.6

type ReportVideoUploadPartCompleteRequest struct {
	// UploadSign 标记本次大文件上传的id(init阶段的返回值)
	UploadSign string `json:"upload_sign,omitempty"`
}

ReportVideoUploadPartCompleteRequest 多多客信息流投放备案视频上传分片完成接口 API Request

func (ReportVideoUploadPartCompleteRequest) Encode added in v1.1.6

Encode implement UploadRequest interface

func (ReportVideoUploadPartCompleteRequest) GetType added in v1.1.6

GetType implement Request interface

type ReportVideoUploadPartCompleteResponse added in v1.1.6

type ReportVideoUploadPartCompleteResponse struct {
	model.CommonResponse
	Response struct {
		// URL 创建的视频资源对应的vid
		URL string `json:"url,omitempty"`
	} `json:"response"`
}

ReportVideoUploadPartCompleteResponse 多多客信息流投放备案视频上传分片完成接口 API Response

type ReportVideoUploadPartInitRequest added in v1.1.6

type ReportVideoUploadPartInitRequest struct {
	// ContentType 文件对应的contentType,且必须为视频类型
	ContentType string `json:"content_type,omitempty"`
}

ReportVideoUploadPartInitRequest 多多客信息流投放备案视频上传分片初始化接口 API Request

func (ReportVideoUploadPartInitRequest) Encode added in v1.1.6

Encode implement UploadRequest interface

func (ReportVideoUploadPartInitRequest) GetType added in v1.1.6

GetType implement Request interface

type ReportVideoUploadPartInitResponse added in v1.1.6

type ReportVideoUploadPartInitResponse struct {
	model.CommonResponse
	Response struct {
		UploadSign string `json:"upload_sign,omitempty"`
	} `json:"response"`
}

ReportVideoUploadPartInitResponse 多多客信息流投放备案视频上传分片初始化接口 API Response

type ReportVideoUploadPartRequest added in v1.1.6

type ReportVideoUploadPartRequest struct {
	// PartFile 当前分片的文件流
	PartFile io.Reader `json:"part_file,omitempty"`
	// PartNum 当前分片编号名,从1开始
	PartNum int `json:"part_num,omitempty"`
	// UploadSign 标记本次大文件上传的id(init阶段的返回值)
	UploadSign string `json:"upload_sign,omitempty"`
}

ReportVideoUploadPartRequest 多多客信息流投放备案视频上传分片上传接口 API Request

func (ReportVideoUploadPartRequest) Encode added in v1.1.6

Encode implement UploadRequest interface

func (ReportVideoUploadPartRequest) GetType added in v1.1.6

GetType implement Request interface

type ReportVideoUploadPartResponse added in v1.1.6

type ReportVideoUploadPartResponse struct {
	model.CommonResponse
	Response struct {
		// UploadPartNum 表示本次成功上传的part number
		UploadPartNum int `json:"upload_part_num,omitempty"`
	} `json:"response"`
}

ReportVideoUploadPartResponse 多多客信息流投放备案视频上传分片上传接口 API Response

type ReportVideoUploadRequest added in v1.1.6

type ReportVideoUploadRequest struct {
	// File 多多视频图片文件流
	File io.Reader `json:"file,omitempty"`
	// Filename
	Filename string `json:"filename,omitempty"`
}

ReportVideoUploadRequest 多多客信息流投放备案视频上传接口 API Request

func (ReportVideoUploadRequest) Encode added in v1.1.6

Encode implement UploadRequest interface

func (ReportVideoUploadRequest) GetType added in v1.1.6

func (r ReportVideoUploadRequest) GetType() string

GetType implement Request interface

type ReportVideoUploadResponse added in v1.1.6

type ReportVideoUploadResponse struct {
	model.CommonResponse
	Response struct {
		// URL
		URL string `json:"url,omitempty"`
	} `json:"response"`
}

ReportVideoUploadResponse 多多客信息流投放备案视频上传接口 API Response

type ResourceUrlGenRequest

type ResourceUrlGenRequest struct {
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// GenerateSchemaURL 是否返回 schema URL
	GenerateSchemaURL bool `json:"generate_schema_url,omitempty"`
	// GenerateWeApp 是否生成拼多多福利券微信小程序推广信息
	GenerateWeApp bool `json:"generate_we_app,omitempty"`
	// Pid 推广位
	Pid string `json:"pid,omitempty"`
	// ResourceType 频道来源:4-限时秒杀,39997-充值中心, 39998-活动转链,39996-百亿补贴,39999-电器城,40000-领券中心,50005-火车票
	ResourceType int `json:"resource_type,omitempty"`
	// URL 原链接
	URL string `json:"url,omitempty"`
}

ResourceUrlGenRequest 生成多多进宝频道推广 API Request

func (ResourceUrlGenRequest) GetType

func (r ResourceUrlGenRequest) GetType() string

GetType implement Request interface

type ResourceUrlGenResponse

type ResourceUrlGenResponse struct {
	model.CommonResponse
	Response *PromURL `json:"resource_url_response,omitempty" xml:"resource_url_response,omitempty"`
}

ResourceUrlGenResponse 生成多多进宝频道推广 API Response

type RpPromUrlGenerateRequest

type RpPromUrlGenerateRequest struct {
	// Amount 初始金额(单位分),有效金额枚举值:300、500、700、1100和1600,默认300
	Amount int64 `json:"amount,omitempty"`
	// ChannelType 营销工具类型,必填:-1-活动列表,0-红包(需申请推广权限),2–新人红包,3-刮刮卡,5-员工内购,10-生成绑定备案链接,12-砸金蛋,14-千万补贴B端页面,15-充值中心B端页面,16-千万补贴C端页面,17-千万补贴投票页面,23-超级红包,24-礼金全场N折活动B端页面,27-带货赢千万,28-满减券活动B端页面,29-满减券活动C端页面,30-免单B端页面,31-免单C端页面,32-转盘得现金B端页面,33-转盘得现金C端页面,34-千万神券C端页面,35-千万神券B端页面;红包推广权限申请流程链接:https://jinbao.pinduoduo.com/qa-system?questionId=289
	ChannelType int `json:"channel_type,omitempty"`
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// DiyYuanParam 一元购自定义参数,json格式,例如:{"goods_sign":"Y9b2_0uSWMFPGSaVwvfZAlm_y2ADLWZl_JQ7UYaS80K"}
	DiyYuanParam *DiyYuanParam `json:"diy_yuan_param,omitempty"`
	// DiyRedPacketParam 红包自定义参数,json格式
	DiyRedPacketParam *DiyRedPacketParam `json:"diy_red_packet_param,omitempty"`
	// GenerateQQApp 是否生成qq小程序
	GenerateQQApp bool `json:"generate_qq_app,omitempty"`
	// GenerateSchemaURL 是否返回 schema URL
	GenerateSchemaURL bool `json:"generate_schema_url,omitempty"`
	// GenerateShortURL 是否生成短链接。true-是,false-否,默认false
	GenerateShortURL bool `json:"generate_short_url,omitempty"`
	// GenerateWeApp 是否生成拼多多福利券微信小程序推广信息
	GenerateWeApp bool `json:"generate_we_app,omitempty"`
	// PidList 推广位列表,长度最大为1,例如:["60005_612"]。活动页生链要求传入授权备案信息,不支持批量生链。
	PidList []string `json:"p_id_list,omitempty"`
	// ScratchCardAmount 刮刮卡指定金额(单位分),可指定2-100元间数值,即有效区间为:[200,10000]
	ScratchCardAmount int64 `json:"scratch_card_amount,omitempty"`
}

RpPromUrlGenerateRequest 生成营销工具推广链接 API Request

func (RpPromUrlGenerateRequest) GetType

func (r RpPromUrlGenerateRequest) GetType() string

GetType implement Request interface

type RpPromUrlGenerateResponse

type RpPromUrlGenerateResponse struct {
	model.CommonResponse
	Response *RpPromUrlGenerateResult `json:"rp_promotion_url_generate_response,omitempty" xml:"rp_promotion_url_generate_response,omitempty"`
}

RpPromUrlGenerateResponse 生成营销工具推广链接 API Response

type RpPromUrlGenerateResult

type RpPromUrlGenerateResult struct {
	// URLList url_list
	URLList []PromURL `json:"url_list,omitempty" xml:"url_list,omitempty"`
	// ResourceList resource_list
	ResourceList []PromResource `json:"resource_list,omitempty" xml:"resource_list,omitempty"`
}

RpPromUrlGenerateResult .

func RpPromUrlGenerate

func RpPromUrlGenerate(clt *core.SDKClient, req *RpPromUrlGenerateRequest) (*RpPromUrlGenerateResult, error)

RpPromUrlGenerate 生成营销工具推广链接

type StatisticData

type StatisticData struct {
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)
	CustomParameters string `json:"custom_parameters,omitempty" xml:"custom_parameters,omitempty"`
	// EndTime 结束时间,格式: "yyyy-MM-dd"
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// StartTime 开始时间,格式: "yyyy-MM-dd"
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// OrderAmount GMV,单位为分
	OrderAmount int64 `json:"order_amount,omitempty" xml:"order_amount,omitempty"`
	// OrderNum 订单数
	OrderNum int64 `json:"order_num,omitempty" xml:"order_num,omitempty"`
	// Pid 推广位ID
	Pid string `json:"p_id,omitempty" xml:"p_id,omitempty"`
}

StatisticData .

func StatisticDataQuery

func StatisticDataQuery(clt *core.SDKClient, req *StatisticDataQueryRequest) ([]StatisticData, error)

StatisticDataQuery 多多进宝数据统计查询接口

type StatisticDataQueryRequest

type StatisticDataQueryRequest struct {
	// Page 分页数,默认值: 1
	Page int `json:"page,omitempty"`
	// PageSize 每页结果数,默认值: 20
	PageSize int `json:"page_size,omitempty"`
	// PeriodType 周期类型: 1-每7天,2-自然月
	PeroidType PeroidType `json:"peroid_type,omitempty"`
	// StatisticType 数据类型: 1-增量补贴数据
	StatisticType int `json:"statistic_type,omitempty"`
	// Time 查询时间点,格式: "yyyy-MM-dd"。period_type为1时,查询时间点前7天的数据;period_type为2时,查询时间点所在自然月的数据。
	Time string `json:"time,omitempty"`
}

StatisticDataQueryRequest 多多进宝数据统计查询接口 API Request

func (StatisticDataQueryRequest) GetType

func (r StatisticDataQueryRequest) GetType() string

GetType implement Request interface

type StatisticDataQueryResponse

type StatisticDataQueryResponse struct {
	model.CommonResponse
	Response struct {
		List []StatisticData `json:"data_list,omitempty" xml:"data_list,omitempty"`
	} `json:"statistics_data_response" xml:"statistics_data_response"`
}

StatisticDataQueryResponse 多多进宝数据统计查询接口 API Resposne

type WeAppInfo

type WeAppInfo struct {
	// AppID 小程序id
	AppID string `json:"app_id,omitempty" xml:"app_id,omitempty"`
	// WeAppIconURL 小程序图片
	WeAppIconURl string `json:"we_app_icon_url,omitempty" xml:"we_app_icon_url,omitempty"`
	// BannerURL Banner图
	BannerURL string `json:"banner_url,omitempty" xml:"banner_url,omitempty"`
	// Desc 描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// SourceDisplayName 来源名
	SourceDisplayName string `json:"source_display_name,omitempty" xml:"source_display_name,omitempty"`
	// PagePath 小程序path值
	PagePath string `json:"page_path,omitempty" xml:"page_path,omitempty"`
	// UserName 用户名
	UserName string `json:"user_name,omitempty" xml:"user_name,omitempty"`
	// Title 小程序标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
}

WeAppInfo 拼多多福利券微信小程序信息

type WeappQrcodeUrlGenRequest added in v1.1.2

type WeappQrcodeUrlGenRequest struct {
	// CashGiftID 多多礼金ID
	CashGiftID uint64 `json:"cash_gift_id,omitempty"`
	// CustomParameters 自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {"uid":"11111","sid":"22222"} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)
	CustomParameters interface{} `json:"custom_parameters,omitempty"`
	// GenerateMallCollectCoupon 是否生成店铺收藏券推广链接
	GenerateMallCollectCoupon bool `json:"generate_mall_collect_coupon,omitempty"`
	// GoodsSignList 商品goodsSign列表,例如:["c9r2omogKFFAc7WBwvbZU1ikIb16_J3CTa8HNN"],支持批量生链。goodsSign是加密后的goodsId, goodsId已下线,请使用goodsSign来替代。使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252
	GoodsSignList []string `json:"goods_sign_list,omitempty"`
	// Pid 推广位ID
	Pid string `json:"p_id,omitempty"`
	// ZsDouID 招商多多客ID
	ZsDouID uint64 `json:"zs_dou_id,omitempty"`
}

WeappQrcodeUrlGenRequest 多多客生成单品推广小程序二维码url API Request

func (WeappQrcodeUrlGenRequest) GetType added in v1.1.2

func (r WeappQrcodeUrlGenRequest) GetType() string

GetType implement Request interface

type WeappQrcodeUrlGenResponse added in v1.1.2

type WeappQrcodeUrlGenResponse struct {
	model.CommonResponse
	Response struct {
		// URL 单品推广小程序二维码url
		URL string `json:"url" xml:"url"`
	} `json:"weapp_qrcode_generate_response" xml:"weapp_qrcode_generate_response"`
}

WeappQrcodeUrlGenResponse 多多客生成单品推广小程序二维码url API Response

Directories

Path Synopsis
Package oauth 多多客工具A P I
Package oauth 多多客工具A P I

Jump to

Keyboard shortcuts

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