Documentation
¶
Index ¶
Constants ¶
View Source
const APIVersion = "2019-03-28"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BRIRequest ¶
type BRIRequest struct {
// 业务名, 必须是以下六个业务名之一(bri_num,bri_dev,bri_ip_bri_apk,bri_url,bri_social)
Service *string `json:"Service,omitempty" name:"Service"`
// QQ号 (业务名为bri_social时必填, 除非已填Wechat)
QQ *string `json:"QQ,omitempty" name:"QQ"`
// QQ号的可疑标签
QQTag *string `json:"QQTag,omitempty" name:"QQTag"`
// 网址 (业务名为bri_url时必填)
Url *string `json:"Url,omitempty" name:"Url"`
// Apk证书Md5 (业务名为bri_apk时必填,除非已填FileMd5)
CertMd5 *string `json:"CertMd5,omitempty" name:"CertMd5"`
// Apk安装包名 (业务名为bri_apk时必填,除非已填FileMd5)
PackageName *string `json:"PackageName,omitempty" name:"PackageName"`
// Apk文件Md5 (业务名为bri_apk时必填,除非已填PackageName,CertMd5,FileSize)
FileMd5 *string `json:"FileMd5,omitempty" name:"FileMd5"`
// 业务场景 (1-注册, 2-登录, 3-发消息)
Scene *string `json:"Scene,omitempty" name:"Scene"`
// 电话号码 (业务名为bri_num时必填)
// 注意:此字段可能返回 null,表示取不到有效值。
PhoneNumber *string `json:"PhoneNumber,omitempty" name:"PhoneNumber"`
// Apk文件大小 (业务名为bri_apk时必填,除非已填FileMd5)
FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"`
// 点分格式的IP (业务名为bri_ip时必填)
Ip *string `json:"Ip,omitempty" name:"Ip"`
// 安卓设备的Imei (业务名为bri_dev时必填)
Imei *string `json:"Imei,omitempty" name:"Imei"`
// 微信号 (业务名为bri_social时必填, 除非已填QQ)
Wechat *string `json:"Wechat,omitempty" name:"Wechat"`
// 微信号的可疑标签
WechatTag *string `json:"WechatTag,omitempty" name:"WechatTag"`
}
type BRIResponse ¶
type BRIResponse struct {
// 风险分值,取值[0,100], 分值越高风险越高
Score *float64 `json:"Score,omitempty" name:"Score"`
// 当Service为bri_num时,返回的风险标签有:
// 1) 疑似垃圾流量 说明: 结合号码的历史数据表现,判断该号码历史用互联网业务作恶行为,其产生的互联网行为对于其他业务来说属于作弊或垃圾流量。
// 2) 疑似新客户 说明: 通过号码互联网行为(社交,浏览等)是否异常判断为小号或接码平台帐号。
//
// 当Service为bri_dev时,返回的风险标签有:
// 1) 疑似真机假用户 说明: 根据设备的一些数据表现,我们判定为群控设备
// 2) 疑似假机 说明: 根据设备的一些数据表现,我们判定为模拟器或虚假设备ID
// 3) 疑似真用户假行为 说明: 根据设备的用户使用情况,我们判定该用户存在使用脚本、外挂、病毒等作弊行为
//
// 当Service为bri_ip时,返回的风险标签有:
// 1) 疑似垃圾流量 说明:结合IP的历史数据表现,判断该IP历史用互联网业务作恶行为,其产生的互联网行为对于其他业务来说属于作弊或垃圾流量。
//
// 当Service为bri_url时,返回的风险标签有:
// 1) 社工欺诈 说明: URL为社工欺诈
// 2) 信息诈骗 说明: URL为信息诈骗
// 3) 虚假销售 说明: URL为虚假销售
// 4) 恶意文件 说明: URL为恶意文件
// 5) 博彩网站 说明: URL为博彩网站
// 6) 色情网站 说明: URL为色情网站
//
// 当Service为bri_apk时,返回的风险标签有:
// 1) 安全 说明: APK为正规应用
// 2) 一般 说明: APK为未发现问题的正常应用
// 3) 风险 说明: APK为外挂或色情等风险应用
// 4) 病毒 说明: APK为包含恶意代码的恶意软件,可能破坏系统或者其他app正常使用
Tags []*string `json:"Tags,omitempty" name:"Tags" list`
}
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DescribeBRI ¶
func (c *Client) DescribeBRI(request *DescribeBRIRequest) (response *DescribeBRIResponse, err error)
输入业务名 (bri_num, bri_dev, bri_ip, bri_apk, bri_url, bri_social 六种之一) 及其 相应字段, 获取业务风险分数和标签。
当业务名为bri_num时,必须填PhoneNumber字段.
当业务名为bri_dev时, 必须填Imei字段.
当业务名为bri_ip时,必须填IP字段.
当业务名为bri_apk时,必须填 (PackageName,CertMd5,FileSize) 三个字段 或者 FileMd5一个字段.
当业务名为bri_url时,必须填Url字段.
当业务名为bri_social时,必须填QQ和Wechat字段两者其中一个或者两个.
type DescribeBRIRequest ¶
type DescribeBRIRequest struct {
*tchttp.BaseRequest
// 业务风险情报请求体
RequestData *BRIRequest `json:"RequestData,omitempty" name:"RequestData"`
// 客户用于计费的资源ID
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
}
func NewDescribeBRIRequest ¶
func NewDescribeBRIRequest() (request *DescribeBRIRequest)
func (*DescribeBRIRequest) FromJsonString ¶
func (r *DescribeBRIRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBRIRequest) ToJsonString ¶
func (r *DescribeBRIRequest) ToJsonString() string
type DescribeBRIResponse ¶
type DescribeBRIResponse struct {
*tchttp.BaseResponse
Response *struct {
// 业务风险情报响应体
ResponseData *BRIResponse `json:"ResponseData,omitempty" name:"ResponseData"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeBRIResponse ¶
func NewDescribeBRIResponse() (response *DescribeBRIResponse)
func (*DescribeBRIResponse) FromJsonString ¶
func (r *DescribeBRIResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBRIResponse) ToJsonString ¶
func (r *DescribeBRIResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.