promotion

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnionPromotionCodeGet

func UnionPromotionCodeGet(req *UnionPromotionCodeRequest) (string, error)

获取通用推广链接

Types

type PromotionCodeResp

type PromotionCodeResp struct {
	ClickURL string `json:"clickURL,omitempty"`
	ShortURL string `json:"shortURL,omitempty"`
}

func UnionPromotionBySubUnionIdGet

func UnionPromotionBySubUnionIdGet(req *UnionPromotionCodeRequest) (*PromotionCodeResp, error)

获取通用推广链接

type UnionPromotionBySubUnionIdGetResponse

type UnionPromotionBySubUnionIdGetResponse struct {
	ErrorResp *api.ErrorResponnse             `json:"error_response,omitempty"`
	Data      *UnionPromotionCodeResponseData `json:"jd_union_open_promotion_bysubunionid_get_responce,omitempty"`
}

func (*UnionPromotionBySubUnionIdGetResponse) Error added in v1.1.1

func (*UnionPromotionBySubUnionIdGetResponse) IsError added in v1.1.1

type UnionPromotionCodeRequest

type UnionPromotionCodeRequest struct {
	api.BaseRequest
	MaterialId string `json:"materialId"`           // 推广物料
	SiteId     string `json:"siteId,omitempty"`     // 站点ID是指在联盟后台的推广管理中的网站Id、APPID(1、通用转链接口禁止使用社交媒体id入参;2、订单来源,即投放链接的网址或应用必须与传入的网站ID/AppID备案一致,否则订单会判“无效-来源与备案网址不符”)
	PositionId uint64 `json:"positionId,omitempty"` // 推广位id
	SubUnionId string `json:"subUnionId,omitempty"` // 子联盟ID(需要联系运营开通权限才能拿到数据)
	Ext1       string `json:"ext1,omitempty"`       // 推客生成推广链接时传入的扩展字段(查看订单对应字段信息,需要联系运营开放白名单才能看到)
	Pid        string `json:"pid,omitempty"`        // 联盟子站长身份标识,格式:子站长ID_子站长网站ID_子站长推广位ID
	ChainType  uint   `json:"chainType,omitempty"`  // 转链类型,1:长链, 2 :短链 ,3: 长链+短链,默认短链
	CouponUrl  string `json:"couponUrl,omitempty"`  // 优惠券领取链接,在使用优惠券、商品二合一功能时入参,且materialId须为商品详情页链接
}

type UnionPromotionCodeResponse

type UnionPromotionCodeResponse struct {
	ErrorResp *api.ErrorResponnse             `json:"error_response,omitempty"`
	Data      *UnionPromotionCodeResponseData `json:"jd_union_open_promotion_common_get_responce,omitempty"`
}

func (*UnionPromotionCodeResponse) Error added in v1.1.1

func (*UnionPromotionCodeResponse) IsError added in v1.1.1

func (r *UnionPromotionCodeResponse) IsError() bool

type UnionPromotionCodeResponseData

type UnionPromotionCodeResponseData struct {
	Result string `json:"getResult,omitempty"`
}

type UnionPromotioncodeResult

type UnionPromotioncodeResult struct {
	Code    int             `json:"code,omitempty"`
	Message string          `json:"message,omitempty"`
	Data    json.RawMessage `json:"data,omitempty"`
}

func (UnionPromotioncodeResult) Error added in v1.1.1

func (r UnionPromotioncodeResult) Error() string

func (UnionPromotioncodeResult) IsError added in v1.1.1

func (r UnionPromotioncodeResult) IsError() bool

Jump to

Keyboard shortcuts

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