Skip to content

Commit d35db10

Browse files
authored
Merge pull request #120 from Tanc009/master
jdcloud-sdk-python 1.6.86
2 parents 5e329f0 + d4f85eb commit d35db10

116 files changed

Lines changed: 3472 additions & 75 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 更新历史 #
2+
API版本:1.0.0
3+
4+
|发布时间|版本号|更新|说明|
5+
|---|---|---|---|
6+
|2020-11-20|1.0.0|初始版本||

jdcloud_sdk/services/captcha/__init__.py

Whitespace-only changes.
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class GetSessionIdRequest(JDCloudRequest):
23+
"""
24+
获取会话id
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(GetSessionIdRequest, self).__init__(
29+
'/captcha:getsessionid', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetSessionIdParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.appId = None
40+
self.sceneId = None
41+
self.secret = None
42+
self.uuid = None
43+
self.ip = None
44+
self.userAgent = None
45+
self.fingerPrint = None
46+
self.clientType = None
47+
self.clientVersion = None
48+
49+
def setAppId(self, appId):
50+
"""
51+
:param appId: (Optional) 应用id
52+
"""
53+
self.appId = appId
54+
55+
def setSceneId(self, sceneId):
56+
"""
57+
:param sceneId: (Optional) 场景id
58+
"""
59+
self.sceneId = sceneId
60+
61+
def setSecret(self, secret):
62+
"""
63+
:param secret: (Optional) 密钥,从界面获取
64+
"""
65+
self.secret = secret
66+
67+
def setUuid(self, uuid):
68+
"""
69+
:param uuid: (Optional) uuid,ios客户端传openudid, android客户端传androidid
70+
"""
71+
self.uuid = uuid
72+
73+
def setIp(self, ip):
74+
"""
75+
:param ip: (Optional) 客户端ip
76+
"""
77+
self.ip = ip
78+
79+
def setUserAgent(self, userAgent):
80+
"""
81+
:param userAgent: (Optional) 客户端userAgent
82+
"""
83+
self.userAgent = userAgent
84+
85+
def setFingerPrint(self, fingerPrint):
86+
"""
87+
:param fingerPrint: (Optional) 指纹,客户端sdk获取
88+
"""
89+
self.fingerPrint = fingerPrint
90+
91+
def setClientType(self, clientType):
92+
"""
93+
:param clientType: (Optional) 客户端类型, android, ios
94+
"""
95+
self.clientType = clientType
96+
97+
def setClientVersion(self, clientVersion):
98+
"""
99+
:param clientVersion: (Optional) 客户端版本,用户端app版本,可选
100+
"""
101+
self.clientVersion = clientVersion
102+
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class VerifyTokenRequest(JDCloudRequest):
23+
"""
24+
验证verifyToken
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(VerifyTokenRequest, self).__init__(
29+
'/captcha:verifytoken', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class VerifyTokenParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.verifyToken = None
40+
self.sessionId = None
41+
self.appId = None
42+
self.sceneId = None
43+
self.ip = None
44+
self.userAgent = None
45+
self.fingerPrint = None
46+
self.clientType = None
47+
self.clientVersion = None
48+
49+
def setVerifyToken(self, verifyToken):
50+
"""
51+
:param verifyToken: (Optional) 提交后台校验的token,客户端sdk获取
52+
"""
53+
self.verifyToken = verifyToken
54+
55+
def setSessionId(self, sessionId):
56+
"""
57+
:param sessionId: (Optional) 验证码会话id,getsessionid返回
58+
"""
59+
self.sessionId = sessionId
60+
61+
def setAppId(self, appId):
62+
"""
63+
:param appId: (Optional) 应用id
64+
"""
65+
self.appId = appId
66+
67+
def setSceneId(self, sceneId):
68+
"""
69+
:param sceneId: (Optional) 场景id
70+
"""
71+
self.sceneId = sceneId
72+
73+
def setIp(self, ip):
74+
"""
75+
:param ip: (Optional) 客户端ip
76+
"""
77+
self.ip = ip
78+
79+
def setUserAgent(self, userAgent):
80+
"""
81+
:param userAgent: (Optional) 客户端userAgent
82+
"""
83+
self.userAgent = userAgent
84+
85+
def setFingerPrint(self, fingerPrint):
86+
"""
87+
:param fingerPrint: (Optional) 指纹,客户端sdk获取
88+
"""
89+
self.fingerPrint = fingerPrint
90+
91+
def setClientType(self, clientType):
92+
"""
93+
:param clientType: (Optional) 客户端类型, android, ios
94+
"""
95+
self.clientType = clientType
96+
97+
def setClientVersion(self, clientVersion):
98+
"""
99+
:param clientVersion: (Optional) 客户端版本,用户端app版本,可选
100+
"""
101+
self.clientVersion = clientVersion
102+

jdcloud_sdk/services/captcha/apis/__init__.py

Whitespace-only changes.
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+
from jdcloud_sdk.core.jdcloudclient import JDCloudClient
20+
from jdcloud_sdk.core.config import Config
21+
22+
23+
class CaptchaClient(JDCloudClient):
24+
25+
def __init__(self, credential, config=None, logger=None):
26+
if config is None:
27+
config = Config('captcha.jdcloud-api.com')
28+
29+
super(CaptchaClient, self).__init__(credential, config, 'captcha', '1.0.0', logger)

jdcloud_sdk/services/captcha/client/__init__.py

Whitespace-only changes.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 App(object):
21+
22+
def __init__(self, appName, appType, appOs, appId=None, androidPkgName=None, iosBundleId=None, description=None, sceneCount=None, createTime=None, updateTime=None):
23+
"""
24+
:param appId: (Optional) 应用id
25+
:param appName: 应用名称
26+
:param appType: 应用类型,可选值 app
27+
:param appOs: 应用系统,支持多选多选以逗号分隔, 选择appType是app时可选android,ios 其余为空
28+
:param androidPkgName: (Optional) android应用的package name(应用是android的时候androidPkgName必须)
29+
:param iosBundleId: (Optional) ios应用的bundle id(应用是ios的时候iosBundleId必须)
30+
:param description: (Optional) 应用描述
31+
:param sceneCount: (Optional) app下关联场景数
32+
:param createTime: (Optional) 应用创建时间
33+
:param updateTime: (Optional) 应用更新时间
34+
"""
35+
36+
self.appId = appId
37+
self.appName = appName
38+
self.appType = appType
39+
self.appOs = appOs
40+
self.androidPkgName = androidPkgName
41+
self.iosBundleId = iosBundleId
42+
self.description = description
43+
self.sceneCount = sceneCount
44+
self.createTime = createTime
45+
self.updateTime = updateTime
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 ApplicationInfo(object):
21+
22+
def __init__(self, valid=None):
23+
"""
24+
:param valid: (Optional) 是否可用, 0-不可用 1-可用
25+
"""
26+
27+
self.valid = valid
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 Captcha(object):
21+
22+
def __init__(self, name=None, tp=None):
23+
"""
24+
:param name: (Optional) 验证码名称
25+
:param tp: (Optional) tp值
26+
"""
27+
28+
self.name = name
29+
self.tp = tp

0 commit comments

Comments
 (0)