track

package
v1.18.7 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package track 数据上报管理相关API models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveRequest

type ActiveRequest struct {
	// Link 广告被打开的落地页的原始真实 url
	Link string `json:"link,omitempty"`
	// Callback 点击检测下发的 callback
	Callback string `json:"callback,omitempty"`
	// EventType 事件类型
	EventType enum.TrackEventType `json:"event_type,omitempty"`
	// ConvTime UTC 时间戳,单位:秒
	ConvTime int64 `json:"conv_time,omitempty"`
	// Source 数据来源,比如来自 talkingdata的激活回调, 可以填写 TD
	Source string `json:"source,omitempty"`
	// MatchType 归因方式
	MatchType enum.TrackMatchType `json:"match_type,omitempty"`
	// Imei 安卓手机 imei 的 md5 摘要
	Imei string `json:"imei,omitempty"`
	// Idfa ios 手机的 idfa 原值
	Idfa string `json:"idfa,omitempty"`
	// Muid 安卓:imei号取md5sum摘要;IOS:取idfa原值
	Muid string `json:"muid,omitempty"`
	// Oaid Android Q 版本的 oaid 原值
	Oaid string `json:"oaid,omitempty"`
	// OaidMd5 Android Q 版本的 oaid 原值的md5摘要
	OaidMd5 string `json:"oaid_md5,omitempty"`
	// Os 客户端的操作系统类型
	Os enum.TrackOS `json:"os,omitempty"`
	// Caid1 不同版本版本的中国广告协会互联网广告标识,caid1为最新版本,caid2为老版本
	Caid1 string `json:"caid1,omitempty"`
	// Caid2 不同版本版本的中国广告协会互联网广告标识,caid1为最新版本,caid2为老版本
	Caid2 string `json:"caid2,omitempty"`
	// Ext 补充数据
	Ext map[string]string `json:"ext,omitempty"`
	// PrivateKey
	PrivateKey *rsa.PrivateKey `json:"-"`
	// Credential
	Credential enum.Credential `json:"-"`
}

ActiveRequest 线索-API上报数据 API Request

func (ActiveRequest) Encode added in v1.16.7

func (r ActiveRequest) Encode() []byte

Encode implement PostRequest interface

func (ActiveRequest) RequestURI added in v1.17.7

func (r ActiveRequest) RequestURI() string

RequestURI implement TrackRequest interface

func (ActiveRequest) Sign added in v1.16.7

func (r ActiveRequest) Sign(req *http.Request, content []byte) (string, error)

Sign implement ConvertionRequest interface

type Response

type Response struct {
	// Code 返回值
	Code int `json:"code,omitempty"`
	// Msg 错误信息
	Msg string `json:"msg,omitempty"`
	// Ret .
	Ret int `json:"ret,omitempty"`
}

Response 线索-API上报数据 API Response

func (Response) Error

func (r Response) Error() string

Error implement error interface

func (Response) IsError

func (r Response) IsError() bool

IsError 是否为error

type WxaActiveRequest added in v1.10.0

type WxaActiveRequest struct {
	// ClueToken 下发线索token
	ClueToken string `json:"clue_token,omitempty"`
	// UnionID 微信union_id
	UnionID string `json:"union_id,omitempty"`
	// OpenID 微信open_id
	OpenID string `json:"open_id,omitempty"`
	// EventType 事件类型
	EventType string `json:"event_type,omitempty"`
	// Props 参数包含pay_amount
	Props *conversion.Properties `json:"props,omitempty"`
	// Token
	Token string `json:"-"`
	// Gateway
	Gateway string `json:"-"`
	// PrivateKey
	PrivateKey *rsa.PrivateKey `json:"-"`
	// Credential
	Credential enum.Credential `json:"-"`
}

WxaActiveRequest 微信小程序线索-API上报数据 API Request

func (WxaActiveRequest) Encode added in v1.17.7

func (r WxaActiveRequest) Encode() []byte

Encode implement GetRequest interface

func (WxaActiveRequest) RequestURI added in v1.17.7

func (r WxaActiveRequest) RequestURI() string

RequestURI implement TrackRequest interface

func (WxaActiveRequest) Sign added in v1.17.7

func (r WxaActiveRequest) Sign(req *http.Request, content []byte) (string, error)

Sign implement ConvertionRequest interface

Jump to

Keyboard shortcuts

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