Skip to content

Commit c59311a

Browse files
committed
publish jdcloud-sdk-python 1.6.96
1 parent 19cce8f commit c59311a

File tree

93 files changed

+3400
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+3400
-9
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 更新历史 #
2-
API版本:1.0.0
2+
API版本:1.1.0
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
66
|2020-07-20|1.0.0|初始版本|* API及分组定义基础接口|
7+
|2021-03-25|1.1.0|更新版本|* API新增返回数据|

jdcloud_sdk/services/bri/client/BriClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('bri.jdcloud-api.com')
2828

29-
super(BriClient, self).__init__(credential, config, 'bri', '1.0.0', logger)
29+
super(BriClient, self).__init__(credential, config, 'bri', '1.1.0', logger)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class CallDataDetail(object):
21+
22+
def __init__(self, ip=None, addr=None, eid=None, phone=None, pin=None, card=None):
23+
"""
24+
:param ip: (Optional) IP
25+
:param addr: (Optional) 地址
26+
:param eid: (Optional) 设备
27+
:param phone: (Optional) 手机
28+
:param pin: (Optional) 账号
29+
:param card: (Optional) 身份
30+
"""
31+
32+
self.ip = ip
33+
self.addr = addr
34+
self.eid = eid
35+
self.phone = phone
36+
self.pin = pin
37+
self.card = card
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class CallDataStatistic(object):
21+
22+
def __init__(self, total=None, detail=None):
23+
"""
24+
:param total: (Optional) 总量
25+
:param detail: (Optional)
26+
"""
27+
28+
self.total = total
29+
self.detail = detail

jdcloud_sdk/services/bri/models/CreditScoreDetail.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@
1919

2020
class CreditScoreDetail(object):
2121

22-
def __init__(self, riskTag=None, riskCode=None, riskClass=None, score=None, scoreDesc=None):
22+
def __init__(self, riskTag=None, riskCode=None, riskClass=None, score=None, scoreDesc=None, attribution=None):
2323
"""
2424
:param riskTag: (Optional) 风险类型,对应riskCode的中文描述
2525
:param riskCode: (Optional) 风险类型编码
26-
:param riskClass: (Optional) 风险分类,对应riskCode的分类,101~106账号综合风险,201~207手机综合风险,301设备综合风险,401~403身份综合风险,501~506IP综合风险
26+
:param riskClass: (Optional) 风险分类,对应riskCode的分类,101~106账号综合风险,201~207手机综合风险,301设备综合风险,401~403身份综合风险,501~506IP综合风险,600~604注册综合风险,700~703登录综合风险,800~803营销综合风险
2727
:param score: (Optional) 风险评分,1-低风险 2-中低风险 3-中风险 4-中高风险 5-高风险 0-未知
2828
:param scoreDesc: (Optional) 对应score的中文描述,1-低风险 2-中低风险 3-中风险 4-中高风险 5-高风险 0-未知
29+
:param attribution: (Optional) 手机号码归属地,只有resourceType为phone时且归属地不为空时提供字段值,如:黑龙江-伊春市
2930
"""
3031

3132
self.riskTag = riskTag
3233
self.riskCode = riskCode
3334
self.riskClass = riskClass
3435
self.score = score
3536
self.scoreDesc = scoreDesc
37+
self.attribution = attribution

jdcloud_sdk/services/bri/models/CreditTask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, dataId=None, content=None, resourceType=None):
2323
"""
2424
:param dataId: (Optional) 数据Id。需要保证在一次请求中所有的Id不重复
2525
:param content: (Optional) 待检测数据,最长512个字符
26-
:param resourceType: (Optional) 数据类型,ip-IP,phone-手机,addr-地址,card-身份,pin-账户,eid-设备
26+
:param resourceType: (Optional) 数据类型,ip-IP,phone-手机,addr-地址,card-身份,pin-账户,eid-设备,signup-注册,login-登录,marketing-营销
2727
"""
2828

2929
self.dataId = dataId
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class CreditTaskLogin(object):
21+
22+
def __init__(self, dataId=None, content=None, resourceType=None):
23+
"""
24+
:param dataId: (Optional) 数据Id。需要保证在一次请求中所有的Id不重复
25+
:param content: (Optional) 待检测数据字符串,最长4096个字符,为可解析字符串json,数据结构如creditTaskLoginDetail
26+
:param resourceType: (Optional) 数据类型,login-登录
27+
"""
28+
29+
self.dataId = dataId
30+
self.content = content
31+
self.resourceType = resourceType
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class CreditTaskLoginDetail(object):
21+
22+
def __init__(self, phone=None, loginIp=None, loginType=None, loginName=None, channel=None, deviceName=None, deviceVersion=None, deviceOS=None, deviceOSVersion=None, loginTime=None, elapsedTime=None, loginResult=None, loginEmail=None, macAddress=None, imei=None, idfa=None, regIp=None, eid=None, regTime=None, bizType=None, authType=None, appId=None, mobileBrand=None, appVersion=None, mouseClickCount=None, keyboardClickCount=None, referer=None, jumpUrl=None, userAgent=None, xForwardedFor=None):
23+
"""
24+
:param phone: (Optional) 注册手机号,国内手机:11位手机号;海外手机:以+号开头,4位国家代码+5-11位手机号扩展位;手机注册,必填
25+
:param loginIp: (Optional) 登录IP,用户登录IP,IPV4 或 IPV6
26+
:param loginType: (Optional) 登录认证方式,1:手动帐号密码输入;2:动态短信密码登录;3:二维码扫描登录;0其他
27+
:param loginName: (Optional) 登录账号名pin,用户登录使用名称
28+
:param channel: (Optional) 注册渠道或注册终端,1:PC端web浏览器注册 PC-Brower;2:PC客户端注册 PC-Client;3:移动设备各种APP注册 Mobile-APP;4 :移动设备浏览器登录,移动端M页注册 Mobile-Brower;5:移动设备微信客户端中购物入口的注册操作 Mobile-WX;6: 移动设备QQ客户端中购物入口的注册操作 Mobile-QQ;7: 移动设备微信客户端中微信小程序注册操作- Mobile-WX;0:其他
29+
:param deviceName: (Optional) 应用设备名称,PC 端:如果为浏览器说明浏览器名称 IE、firefox、chrome等;移动APP端:请说明移动APP名称
30+
:param deviceVersion: (Optional) 应用设备版本,跟deviceName关联,说明deviceName对应的版本
31+
:param deviceOS: (Optional) 设备操作系统,说明设备的操作系统,如windows ,openSUSE、debian、ubuntu,unix, android, ios 等。
32+
:param deviceOSVersion: (Optional) 设备操作系统版本,说明设备的操作系统版本,跟deviceOs 字段关联,例如deviceOs为android,此处可以为 3.0,4.0,4.2,5.0 等。
33+
:param loginTime: (Optional) 登录时间,用户登录完成时间,UNIX时间戳
34+
:param elapsedTime: (Optional) 登录占用时长,从出登录页到登录提交之间的时间差(出登录视图埋点,提交时计算时间差),如果为免密码登录方式,可以在换取认证token时生成时间戳,验证token时计算时间差,单位ms
35+
:param loginResult: (Optional) 登录结果,1:登录成功;2: 用户不存在,无法登录;3 :密码错误,无法登录;4: 密码错误,账号被锁定;5: 账号未通过审核,无法登录;6:账号审核中,无法登录;7:账号锁定,无法登录;8: 账号已注销,无法登录;9:短信验证码错误,无法登录;10:风险账号,无法登录;11:验证码错误,无法登录;0:其他;
36+
:param loginEmail: (Optional) 登录邮箱,用户登录邮箱,可选参数
37+
:param macAddress: (Optional) MAC地址,MAC 地址或设备唯一标识。
38+
:param imei: (Optional) 手机设备号,Android:imei,IOS:idfa
39+
:param idfa: (Optional) 手机设备号,Android:imei,IOS:idfa
40+
:param regIp: (Optional) 注册ip,用户注册IP,IPV4 或 IPV
41+
:param eid: (Optional) 设备ID,设备指纹编码
42+
:param regTime: (Optional) 注册时间,用户注册完成时间,UNIX时间戳
43+
:param bizType: (Optional) 业务类型,1、个人;2、商家;3、企业;4、其他
44+
:param authType: (Optional) 认证方式,1 - PC 用户名/登录名+密码登录;2 - PC 关联手机号+密码登录;3 - PC 邮箱+密码登录;5 - 手机APP扫码授权登录其他终端(PC、TV、PAD、冰箱等);6-(APP & M & WX & QQ、微信小程序、快应用)账号+密码登录;15-刷脸登录;
45+
:param appId: (Optional) 接入登录应用Id,仅APP登录时提供,说明接入京东登录的应用标识
46+
:param mobileBrand: (Optional) 手机品牌,如果手机注册,请带上此信息
47+
:param appVersion: (Optional) App 客户端版本
48+
:param mouseClickCount: (Optional) 用户操作过程中鼠标单击次数
49+
:param keyboardClickCount: (Optional) 用户操作过程中键盘单击次数
50+
:param referer: (Optional) 用户 HTTP 请求的 referer 值
51+
:param jumpUrl: (Optional) 登录成功后跳转页面
52+
:param userAgent: (Optional) 用户 HTTP 请求的 userAgent
53+
:param xForwardedFor: (Optional) 用户 HTTP 请求中的 x_forward_for
54+
"""
55+
56+
self.phone = phone
57+
self.loginIp = loginIp
58+
self.loginType = loginType
59+
self.loginName = loginName
60+
self.channel = channel
61+
self.deviceName = deviceName
62+
self.deviceVersion = deviceVersion
63+
self.deviceOS = deviceOS
64+
self.deviceOSVersion = deviceOSVersion
65+
self.loginTime = loginTime
66+
self.elapsedTime = elapsedTime
67+
self.loginResult = loginResult
68+
self.loginEmail = loginEmail
69+
self.macAddress = macAddress
70+
self.imei = imei
71+
self.idfa = idfa
72+
self.regIp = regIp
73+
self.eid = eid
74+
self.regTime = regTime
75+
self.bizType = bizType
76+
self.authType = authType
77+
self.appId = appId
78+
self.mobileBrand = mobileBrand
79+
self.appVersion = appVersion
80+
self.mouseClickCount = mouseClickCount
81+
self.keyboardClickCount = keyboardClickCount
82+
self.referer = referer
83+
self.jumpUrl = jumpUrl
84+
self.userAgent = userAgent
85+
self.xForwardedFor = xForwardedFor
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class CreditTaskMarketing(object):
21+
22+
def __init__(self, dataId=None, content=None, resourceType=None):
23+
"""
24+
:param dataId: (Optional) 数据Id。需要保证在一次请求中所有的Id不重复
25+
:param content: (Optional) 待检测数据字符串,最长4096个字符,为可解析字符串json,数据结构如creditTaskMarketingDetail
26+
:param resourceType: (Optional) 数据类型,marketing-营销
27+
"""
28+
29+
self.dataId = dataId
30+
self.content = content
31+
self.resourceType = resourceType

0 commit comments

Comments
 (0)