Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) DetectFraudKOL(request *DetectFraudKOLRequest) (response *DetectFraudKOLResponse, err error)
- func (c *Client) EnhanceTaDegree(request *EnhanceTaDegreeRequest) (response *EnhanceTaDegreeResponse, err error)
- func (c *Client) RecognizeCustomizedAudience(request *RecognizeCustomizedAudienceRequest) (response *RecognizeCustomizedAudienceResponse, err error)
- func (c *Client) RecognizePreciseTargetAudience(request *RecognizePreciseTargetAudienceRequest) (response *RecognizePreciseTargetAudienceResponse, err error)
- func (c *Client) RecognizeTargetAudience(request *RecognizeTargetAudienceRequest) (response *RecognizeTargetAudienceResponse, err error)
- func (c *Client) SendTrafficSecuritySmsMessage(request *SendTrafficSecuritySmsMessageRequest) (response *SendTrafficSecuritySmsMessageResponse, err error)
- type DetectFraudKOLRequest
- type DetectFraudKOLResponse
- type EnhanceTaDegreeRequest
- type EnhanceTaDegreeResponse
- type InputKolBspData
- type InputKolDataList
- type InputRecognizeTargetAudience
- type InputSendTrafficSecuritySmsMsg
- type InputTaBspData
- type OutputKolData
- type OutputKolValue
- type OutputRecognizeTargetAudience
- type OutputRecognizeTargetAudienceValue
- type OutputSendTrafficSecuritySmsMsg
- type OutputTaData
- type OutputTaValue
- type RecognizeCustomizedAudienceRequest
- type RecognizeCustomizedAudienceResponse
- type RecognizePreciseTargetAudienceRequest
- type RecognizePreciseTargetAudienceResponse
- type RecognizeTargetAudienceRequest
- type RecognizeTargetAudienceResponse
- type SendTrafficSecuritySmsMessageRequest
- type SendTrafficSecuritySmsMessageResponse
Constants ¶
View Source
const APIVersion = "2020-02-10"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DetectFraudKOL ¶
func (c *Client) DetectFraudKOL(request *DetectFraudKOLRequest) (response *DetectFraudKOLResponse, err error)
DetectFraudKOL
func (*Client) EnhanceTaDegree ¶
func (c *Client) EnhanceTaDegree(request *EnhanceTaDegreeRequest) (response *EnhanceTaDegreeResponse, err error)
EnhanceTaDegree
func (*Client) RecognizeCustomizedAudience ¶
func (c *Client) RecognizeCustomizedAudience(request *RecognizeCustomizedAudienceRequest) (response *RecognizeCustomizedAudienceResponse, err error)
流量反欺诈-流量验准定制版
func (*Client) RecognizePreciseTargetAudience ¶
func (c *Client) RecognizePreciseTargetAudience(request *RecognizePreciseTargetAudienceRequest) (response *RecognizePreciseTargetAudienceResponse, err error)
RecognizePreciseTargetAudience
func (*Client) RecognizeTargetAudience ¶
func (c *Client) RecognizeTargetAudience(request *RecognizeTargetAudienceRequest) (response *RecognizeTargetAudienceResponse, err error)
流量反欺诈-流量验准
func (*Client) SendTrafficSecuritySmsMessage ¶
func (c *Client) SendTrafficSecuritySmsMessage(request *SendTrafficSecuritySmsMessageRequest) (response *SendTrafficSecuritySmsMessageResponse, err error)
SendTrafficSecuritySmsMessage
type DetectFraudKOLRequest ¶
type DetectFraudKOLRequest struct { *tchttp.BaseRequest // 业务数据 BspData *InputKolBspData `json:"BspData,omitempty" name:"BspData"` }
func NewDetectFraudKOLRequest ¶
func NewDetectFraudKOLRequest() (request *DetectFraudKOLRequest)
func (*DetectFraudKOLRequest) FromJsonString ¶
func (r *DetectFraudKOLRequest) FromJsonString(s string) error
func (*DetectFraudKOLRequest) ToJsonString ¶
func (r *DetectFraudKOLRequest) ToJsonString() string
type DetectFraudKOLResponse ¶
type DetectFraudKOLResponse struct { *tchttp.BaseResponse Response *struct { // 回包数据 // 注意:此字段可能返回 null,表示取不到有效值。 Data *OutputKolData `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetectFraudKOLResponse ¶
func NewDetectFraudKOLResponse() (response *DetectFraudKOLResponse)
func (*DetectFraudKOLResponse) FromJsonString ¶
func (r *DetectFraudKOLResponse) FromJsonString(s string) error
func (*DetectFraudKOLResponse) ToJsonString ¶
func (r *DetectFraudKOLResponse) ToJsonString() string
type EnhanceTaDegreeRequest ¶
type EnhanceTaDegreeRequest struct { *tchttp.BaseRequest // 业务数据 BspData *InputTaBspData `json:"BspData,omitempty" name:"BspData"` }
func NewEnhanceTaDegreeRequest ¶
func NewEnhanceTaDegreeRequest() (request *EnhanceTaDegreeRequest)
func (*EnhanceTaDegreeRequest) FromJsonString ¶
func (r *EnhanceTaDegreeRequest) FromJsonString(s string) error
func (*EnhanceTaDegreeRequest) ToJsonString ¶
func (r *EnhanceTaDegreeRequest) ToJsonString() string
type EnhanceTaDegreeResponse ¶
type EnhanceTaDegreeResponse struct { *tchttp.BaseResponse Response *struct { // 回包数据 // 注意:此字段可能返回 null,表示取不到有效值。 Data *OutputTaData `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewEnhanceTaDegreeResponse ¶
func NewEnhanceTaDegreeResponse() (response *EnhanceTaDegreeResponse)
func (*EnhanceTaDegreeResponse) FromJsonString ¶
func (r *EnhanceTaDegreeResponse) FromJsonString(s string) error
func (*EnhanceTaDegreeResponse) ToJsonString ¶
func (r *EnhanceTaDegreeResponse) ToJsonString() string
type InputKolBspData ¶
type InputKolBspData struct { // BspData DataList []*InputKolDataList `json:"DataList,omitempty" name:"DataList" list` }
type InputKolDataList ¶
type InputKolDataList struct { // 账号类型[1:微信;2:qq;3:微博] Type *uint64 `json:"Type,omitempty" name:"Type"` // KOL账号ID[比如微信公众号ID] Id *string `json:"Id,omitempty" name:"Id"` // KOL名称 Name *string `json:"Name,omitempty" name:"Name"` // 手机号 Phone *string `json:"Phone,omitempty" name:"Phone"` // 代理商名称 AgentInfo *string `json:"AgentInfo,omitempty" name:"AgentInfo"` }
type InputRecognizeTargetAudience ¶
type InputRecognizeTargetAudience struct { // 设备ID,AccountType指定的类型 Uid *string `json:"Uid,omitempty" name:"Uid"` // 设备号类型,1.imei 2.imeiMd5(小写后转MD5转小写)3.idfa, 4.idfaMd5(大写后转MD5转小写),5.手机号,256.其它 AccountType *int64 `json:"AccountType,omitempty" name:"AccountType"` // 模型ID列表 ModelIdList []*int64 `json:"ModelIdList,omitempty" name:"ModelIdList" list` // 用户IP Ip *string `json:"Ip,omitempty" name:"Ip"` // 操作系统类型(unknown,android,ios,windows) Os *string `json:"Os,omitempty" name:"Os"` // 操作系统版本 Osv *string `json:"Osv,omitempty" name:"Osv"` // 纬度 Lat *string `json:"Lat,omitempty" name:"Lat"` // 经度 Lon *string `json:"Lon,omitempty" name:"Lon"` // 设备型号(MI 6) DeviceModel *string `json:"DeviceModel,omitempty" name:"DeviceModel"` // 竞价底价 BidFloor *int64 `json:"BidFloor,omitempty" name:"BidFloor"` // 年龄 Age *int64 `json:"Age,omitempty" name:"Age"` // 性别(1.MALE 2.FEMALE) Gender *int64 `json:"Gender,omitempty" name:"Gender"` // 用户地址 Location *string `json:"Location,omitempty" name:"Location"` // 投放模式(0=PDB,1=PD,2=RTB,10=其他) DeliveryMode *int64 `json:"DeliveryMode,omitempty" name:"DeliveryMode"` // 广告位类型<br />(0=前贴片,1=开屏广告,2=网页头部广告、3=网页中部广告、4=网页底部广告、5=悬浮广告、10=其它) AdvertisingType *int64 `json:"AdvertisingType,omitempty" name:"AdvertisingType"` // mac地址,建议提供 Mac *string `json:"Mac,omitempty" name:"Mac"` // 电话号码 Phone *string `json:"Phone,omitempty" name:"Phone"` // 浏览器类型 Ua *string `json:"Ua,omitempty" name:"Ua"` // 客户端应用 App *string `json:"App,omitempty" name:"App"` // 应用包名 Package *string `json:"Package,omitempty" name:"Package"` // 设备制造商 Maker *string `json:"Maker,omitempty" name:"Maker"` // 设备类型(PHONE,TABLET) DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` // 入网方式(wifi,4g,3g,2g) AccessMode *string `json:"AccessMode,omitempty" name:"AccessMode"` // 运营商(1.移动 2.联通 3.电信等) Sp *int64 `json:"Sp,omitempty" name:"Sp"` // 设备屏幕分辨率宽度像素数 DeviceW *int64 `json:"DeviceW,omitempty" name:"DeviceW"` // 设备屏幕分辨率高度像素数 DeviceH *int64 `json:"DeviceH,omitempty" name:"DeviceH"` // 是否全屏插广告(0-否,1-是) FullScreen *int64 `json:"FullScreen,omitempty" name:"FullScreen"` // 广告位宽度 ImpBannerW *int64 `json:"ImpBannerW,omitempty" name:"ImpBannerW"` // 广告位高度 ImpBannerH *int64 `json:"ImpBannerH,omitempty" name:"ImpBannerH"` // 网址 Url *string `json:"Url,omitempty" name:"Url"` // 上下文信息 Context *string `json:"Context,omitempty" name:"Context"` // 渠道 Channel *string `json:"Channel,omitempty" name:"Channel"` // 请求ID ReqId *string `json:"ReqId,omitempty" name:"ReqId"` // 请求ID的md5值 ReqMd5 *string `json:"ReqMd5,omitempty" name:"ReqMd5"` // ad_type AdType *int64 `json:"AdType,omitempty" name:"AdType"` // app name AppName *string `json:"AppName,omitempty" name:"AppName"` // appVer AppVer *string `json:"AppVer,omitempty" name:"AppVer"` // 竞价模式1:rtb 2:pd ReqType *int64 `json:"ReqType,omitempty" name:"ReqType"` }
type InputTaBspData ¶
type InputTaBspData struct { // 请求序列号 Seq *int64 `json:"Seq,omitempty" name:"Seq"` // 操作系统类型[0:未知;1:android;2:ios;3:windows] OsType *string `json:"OsType,omitempty" name:"OsType"` // 年龄下限 AgeFloor *int64 `json:"AgeFloor,omitempty" name:"AgeFloor"` // 年龄上限 AgeCeil *int64 `json:"AgeCeil,omitempty" name:"AgeCeil"` // 性别[1:男;2:女] Gender *int64 `json:"Gender,omitempty" name:"Gender"` // 用户操作时间 UserTime *int64 `json:"UserTime,omitempty" name:"UserTime"` // Imei [在(Imei|ImeiMd5|Idfa|IdfaMd5)里面4选1] Imei *string `json:"Imei,omitempty" name:"Imei"` // Imei小写后加密Md5 [在(Imei|ImeiMd5|Idfa|IdfaMd5)里面4选1] ImeiMd5 *string `json:"ImeiMd5,omitempty" name:"ImeiMd5"` // Idfa [在(Imei|ImeiMd5|Idfa|IdfaMd5)里面4选1] Idfa *string `json:"Idfa,omitempty" name:"Idfa"` // Idfa大写后加密Md5 [在(Imei|ImeiMd5|Idfa|IdfaMd5)里面4选1] IdfaMd5 *string `json:"IdfaMd5,omitempty" name:"IdfaMd5"` // 用户IP UserIp *string `json:"UserIp,omitempty" name:"UserIp"` // MAC地址[建议提供] Mac *string `json:"Mac,omitempty" name:"Mac"` // 手机号码[中国大陆] PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` // 浏览器 UserAgent *string `json:"UserAgent,omitempty" name:"UserAgent"` // APP名称 App *string `json:"App,omitempty" name:"App"` // 应用安装包名称 Package *string `json:"Package,omitempty" name:"Package"` // 设备制造商 DeviceMaker *string `json:"DeviceMaker,omitempty" name:"DeviceMaker"` // 设备型号 DeviceModule *string `json:"DeviceModule,omitempty" name:"DeviceModule"` // 入网方式[1:WIFI;2:4G;3:3G;4:2G;5:其它] AccessMode *string `json:"AccessMode,omitempty" name:"AccessMode"` // 运营商[1:移动;2:联通;3:电信;4:其它] Sp *string `json:"Sp,omitempty" name:"Sp"` // 网址 Url *string `json:"Url,omitempty" name:"Url"` // 用户地址 Location *string `json:"Location,omitempty" name:"Location"` // 纬度 Latitude *string `json:"Latitude,omitempty" name:"Latitude"` // 精度 Longitude *string `json:"Longitude,omitempty" name:"Longitude"` // 辅助区分信息 Context *string `json:"Context,omitempty" name:"Context"` }
type OutputKolData ¶
type OutputKolData struct { // 错误码[0:成功;非0:失败的错误码] // 注意:此字段可能返回 null,表示取不到有效值。 Code *int64 `json:"Code,omitempty" name:"Code"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 Message *string `json:"Message,omitempty" name:"Message"` // 业务返回数据 // 注意:此字段可能返回 null,表示取不到有效值。 Value []*OutputKolValue `json:"Value,omitempty" name:"Value" list` }
type OutputKolValue ¶
type OutputKolValue struct { // KOL账号ID[比如微信公众号ID] // 注意:此字段可能返回 null,表示取不到有效值。 Id *string `json:"Id,omitempty" name:"Id"` // 是否查得[0:未查得;1:查得] // 注意:此字段可能返回 null,表示取不到有效值。 IsCheck *int64 `json:"IsCheck,omitempty" name:"IsCheck"` // 作弊的可能性[0~100] // 注意:此字段可能返回 null,表示取不到有效值。 FraudPScore *int64 `json:"FraudPScore,omitempty" name:"FraudPScore"` // 作弊的严重性[0~100] // 注意:此字段可能返回 null,表示取不到有效值。 EvilPScore *int64 `json:"EvilPScore,omitempty" name:"EvilPScore"` }
type OutputRecognizeTargetAudience ¶
type OutputRecognizeTargetAudience struct { // 返回码(0,成功,其他失败) Code *int64 `json:"Code,omitempty" name:"Code"` // 返回码对应的信息 // 注意:此字段可能返回 null,表示取不到有效值。 Message *string `json:"Message,omitempty" name:"Message"` // 返回模型结果 // 注意:此字段可能返回 null,表示取不到有效值。 Value []*OutputRecognizeTargetAudienceValue `json:"Value,omitempty" name:"Value" list` }
type OutputRecognizeTargetAudienceValue ¶
type OutputRecognizeTargetAudienceValue struct { // 模型ID // 注意:此字段可能返回 null,表示取不到有效值。 ModelId *uint64 `json:"ModelId,omitempty" name:"ModelId"` // 是否正常返回结果 // 注意:此字段可能返回 null,表示取不到有效值。 IsFound *int64 `json:"IsFound,omitempty" name:"IsFound"` // 返回分值 // 注意:此字段可能返回 null,表示取不到有效值。 Score *float64 `json:"Score,omitempty" name:"Score"` }
type OutputSendTrafficSecuritySmsMsg ¶
type OutputSendTrafficSecuritySmsMsg struct { // 返回码(0:接口调用成功 非0:接口调用失败) Code *int64 `json:"Code,omitempty" name:"Code"` // 返回码对应的信息 // 注意:此字段可能返回 null,表示取不到有效值。 Message *string `json:"Message,omitempty" name:"Message"` // 发送失败的号码列表 // 注意:此字段可能返回 null,表示取不到有效值。 Value []*string `json:"Value,omitempty" name:"Value" list` }
type OutputTaData ¶
type OutputTaData struct { // 错误码[0:成功;非0:失败的错误码] Code *int64 `json:"Code,omitempty" name:"Code"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 Message *string `json:"Message,omitempty" name:"Message"` // 结果数据 // 注意:此字段可能返回 null,表示取不到有效值。 Value *OutputTaValue `json:"Value,omitempty" name:"Value"` }
type OutputTaValue ¶
type RecognizeCustomizedAudienceRequest ¶
type RecognizeCustomizedAudienceRequest struct { *tchttp.BaseRequest // 业务入参 BspData *InputRecognizeTargetAudience `json:"BspData,omitempty" name:"BspData"` }
func NewRecognizeCustomizedAudienceRequest ¶
func NewRecognizeCustomizedAudienceRequest() (request *RecognizeCustomizedAudienceRequest)
func (*RecognizeCustomizedAudienceRequest) FromJsonString ¶
func (r *RecognizeCustomizedAudienceRequest) FromJsonString(s string) error
func (*RecognizeCustomizedAudienceRequest) ToJsonString ¶
func (r *RecognizeCustomizedAudienceRequest) ToJsonString() string
type RecognizeCustomizedAudienceResponse ¶
type RecognizeCustomizedAudienceResponse struct { *tchttp.BaseResponse Response *struct { // 业务出参 // 注意:此字段可能返回 null,表示取不到有效值。 Data *OutputRecognizeTargetAudience `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRecognizeCustomizedAudienceResponse ¶
func NewRecognizeCustomizedAudienceResponse() (response *RecognizeCustomizedAudienceResponse)
func (*RecognizeCustomizedAudienceResponse) FromJsonString ¶
func (r *RecognizeCustomizedAudienceResponse) FromJsonString(s string) error
func (*RecognizeCustomizedAudienceResponse) ToJsonString ¶
func (r *RecognizeCustomizedAudienceResponse) ToJsonString() string
type RecognizePreciseTargetAudienceRequest ¶
type RecognizePreciseTargetAudienceRequest struct { *tchttp.BaseRequest // 业务数据 BspData *InputRecognizeTargetAudience `json:"BspData,omitempty" name:"BspData"` }
func NewRecognizePreciseTargetAudienceRequest ¶
func NewRecognizePreciseTargetAudienceRequest() (request *RecognizePreciseTargetAudienceRequest)
func (*RecognizePreciseTargetAudienceRequest) FromJsonString ¶
func (r *RecognizePreciseTargetAudienceRequest) FromJsonString(s string) error
func (*RecognizePreciseTargetAudienceRequest) ToJsonString ¶
func (r *RecognizePreciseTargetAudienceRequest) ToJsonString() string
type RecognizePreciseTargetAudienceResponse ¶
type RecognizePreciseTargetAudienceResponse struct { *tchttp.BaseResponse Response *struct { // 回包数据 // 注意:此字段可能返回 null,表示取不到有效值。 Data *OutputRecognizeTargetAudience `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRecognizePreciseTargetAudienceResponse ¶
func NewRecognizePreciseTargetAudienceResponse() (response *RecognizePreciseTargetAudienceResponse)
func (*RecognizePreciseTargetAudienceResponse) FromJsonString ¶
func (r *RecognizePreciseTargetAudienceResponse) FromJsonString(s string) error
func (*RecognizePreciseTargetAudienceResponse) ToJsonString ¶
func (r *RecognizePreciseTargetAudienceResponse) ToJsonString() string
type RecognizeTargetAudienceRequest ¶
type RecognizeTargetAudienceRequest struct { *tchttp.BaseRequest // 业务数据 BspData *InputRecognizeTargetAudience `json:"BspData,omitempty" name:"BspData"` }
func NewRecognizeTargetAudienceRequest ¶
func NewRecognizeTargetAudienceRequest() (request *RecognizeTargetAudienceRequest)
func (*RecognizeTargetAudienceRequest) FromJsonString ¶
func (r *RecognizeTargetAudienceRequest) FromJsonString(s string) error
func (*RecognizeTargetAudienceRequest) ToJsonString ¶
func (r *RecognizeTargetAudienceRequest) ToJsonString() string
type RecognizeTargetAudienceResponse ¶
type RecognizeTargetAudienceResponse struct { *tchttp.BaseResponse Response *struct { // 回包数据 // 注意:此字段可能返回 null,表示取不到有效值。 Data *OutputRecognizeTargetAudience `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRecognizeTargetAudienceResponse ¶
func NewRecognizeTargetAudienceResponse() (response *RecognizeTargetAudienceResponse)
func (*RecognizeTargetAudienceResponse) FromJsonString ¶
func (r *RecognizeTargetAudienceResponse) FromJsonString(s string) error
func (*RecognizeTargetAudienceResponse) ToJsonString ¶
func (r *RecognizeTargetAudienceResponse) ToJsonString() string
type SendTrafficSecuritySmsMessageRequest ¶
type SendTrafficSecuritySmsMessageRequest struct { *tchttp.BaseRequest // 业务入参 BspData *InputSendTrafficSecuritySmsMsg `json:"BspData,omitempty" name:"BspData"` }
func NewSendTrafficSecuritySmsMessageRequest ¶
func NewSendTrafficSecuritySmsMessageRequest() (request *SendTrafficSecuritySmsMessageRequest)
func (*SendTrafficSecuritySmsMessageRequest) FromJsonString ¶
func (r *SendTrafficSecuritySmsMessageRequest) FromJsonString(s string) error
func (*SendTrafficSecuritySmsMessageRequest) ToJsonString ¶
func (r *SendTrafficSecuritySmsMessageRequest) ToJsonString() string
type SendTrafficSecuritySmsMessageResponse ¶
type SendTrafficSecuritySmsMessageResponse struct { *tchttp.BaseResponse Response *struct { // 返回结果 // 注意:此字段可能返回 null,表示取不到有效值。 Data *OutputSendTrafficSecuritySmsMsg `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSendTrafficSecuritySmsMessageResponse ¶
func NewSendTrafficSecuritySmsMessageResponse() (response *SendTrafficSecuritySmsMessageResponse)
func (*SendTrafficSecuritySmsMessageResponse) FromJsonString ¶
func (r *SendTrafficSecuritySmsMessageResponse) FromJsonString(s string) error
func (*SendTrafficSecuritySmsMessageResponse) ToJsonString ¶
func (r *SendTrafficSecuritySmsMessageResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.