tccli 3.0.990.1__py2.py3-none-any.whl → 3.0.992.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/car/v20220110/DestroySession.md +1 -1
- tccli/examples/cls/v20201016/CheckFunction.md +25 -0
- tccli/examples/ess/v20201111/DescribeBillUsageDetail.md +108 -0
- tccli/examples/essbasic/v20210526/ChannelCreatePreparedPersonalEsign.md +92 -0
- tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +94 -19
- tccli/examples/essbasic/v20210526/ChannelCreateSealPolicy.md +88 -0
- tccli/examples/essbasic/v20210526/ChannelDescribeEmployees.md +85 -45
- tccli/examples/essbasic/v20210526/DescribeBillUsageDetail.md +69 -0
- tccli/examples/essbasic/v20210526/SyncProxyOrganization.md +9 -9
- tccli/examples/mna/v20210119/GetNetMonitor.md +228 -0
- tccli/examples/ocr/v20181119/VatInvoiceVerifyNew.md +4 -0
- tccli/examples/tdmq/v20200217/DescribeRocketMQCluster.md +4 -4
- tccli/examples/teo/v20220901/BindSharedCNAME.md +48 -0
- tccli/examples/teo/v20220901/CreateSharedCNAME.md +4 -4
- tccli/examples/teo/v20220901/DeleteSharedCNAME.md +21 -0
- tccli/examples/waf/v20180125/DescribeCCRuleList.md +16 -2
- tccli/examples/waf/v20180125/DescribeModuleStatus.md +9 -1
- tccli/examples/waf/v20180125/ModifyModuleStatus.md +9 -1
- tccli/services/aiart/v20221229/api.json +2 -2
- tccli/services/car/v20220110/api.json +2 -2
- tccli/services/car/v20220110/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/cls/cls_client.py +53 -0
- tccli/services/cls/v20201016/api.json +72 -0
- tccli/services/cls/v20201016/examples.json +8 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +228 -3
- tccli/services/ess/v20201111/examples.json +20 -0
- tccli/services/essbasic/v20210526/api.json +38 -29
- tccli/services/essbasic/v20210526/examples.json +51 -15
- tccli/services/mna/mna_client.py +53 -0
- tccli/services/mna/v20210119/api.json +142 -0
- tccli/services/mna/v20210119/examples.json +8 -0
- tccli/services/ocr/v20181119/api.json +65 -25
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +107 -38
- tccli/services/tdmq/v20200217/examples.json +3 -3
- tccli/services/teo/teo_client.py +114 -8
- tccli/services/teo/v20220901/api.json +127 -4
- tccli/services/teo/v20220901/examples.json +26 -4
- tccli/services/waf/v20180125/api.json +194 -5
- tccli/services/waf/v20180125/examples.json +5 -5
- {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/METADATA +2 -2
- {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/RECORD +48 -42
- {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.990.1.dist-info → tccli-3.0.992.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.992.1'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
**Example 1: 校验数据加工函数语法**
|
2
|
+
|
3
|
+
校验数据加工函数的语法
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli cls CheckFunction --cli-unfold-argument \
|
9
|
+
--EtlContent fields_set() \
|
10
|
+
--DstResources.0.TopicId x56493046-XXXX-4194-81f6-c2e75569b031 \
|
11
|
+
--DstResources.0.Alias example \
|
12
|
+
--FuncType 1
|
13
|
+
```
|
14
|
+
|
15
|
+
Output:
|
16
|
+
```
|
17
|
+
{
|
18
|
+
"Response": {
|
19
|
+
"ErrorCode": 0,
|
20
|
+
"ErrorMsg": "",
|
21
|
+
"RequestId": "x56493046-XXXX-4194-81f6-c2e75569b031"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
```
|
25
|
+
|
@@ -0,0 +1,108 @@
|
|
1
|
+
**Example 1: 查询全部消耗途径**
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Input:
|
6
|
+
|
7
|
+
```
|
8
|
+
tccli ess DescribeBillUsageDetail --cli-unfold-argument \
|
9
|
+
--StartTime 20230902 \
|
10
|
+
--EndTime 20230930 \
|
11
|
+
--Offset 0 \
|
12
|
+
--Limit 50
|
13
|
+
```
|
14
|
+
|
15
|
+
Output:
|
16
|
+
```
|
17
|
+
{
|
18
|
+
"Response": {
|
19
|
+
"Details": [
|
20
|
+
{
|
21
|
+
"CostTime": 1695037514,
|
22
|
+
"CostType": 1,
|
23
|
+
"FlowId": "yDwJOU5e7ikveIUxMW0p2uJxxxxxxxxxx",
|
24
|
+
"FlowName": "腾讯电子签xxxxx合同",
|
25
|
+
"OperatorName": "张三;李斯",
|
26
|
+
"QuotaName": "签署报告(出证服务)",
|
27
|
+
"QuotaType": "CloudProve",
|
28
|
+
"Remark": "",
|
29
|
+
"Status": 4,
|
30
|
+
"UseCount": 1
|
31
|
+
}
|
32
|
+
],
|
33
|
+
"RequestId": "s16992572741898xxxx",
|
34
|
+
"Total": 1
|
35
|
+
}
|
36
|
+
}
|
37
|
+
```
|
38
|
+
|
39
|
+
**Example 2: 查询失败样例**
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
Input:
|
44
|
+
|
45
|
+
```
|
46
|
+
tccli ess DescribeBillUsageDetail --cli-unfold-argument \
|
47
|
+
--StartTime 20230902 \
|
48
|
+
--EndTime 20230930 \
|
49
|
+
--Offset 0 \
|
50
|
+
--Limit 1000
|
51
|
+
```
|
52
|
+
|
53
|
+
Output:
|
54
|
+
```
|
55
|
+
{
|
56
|
+
"Response": {
|
57
|
+
"Error": {
|
58
|
+
"Code": "InvalidParameter.Limit",
|
59
|
+
"Message": "分页参数不合法"
|
60
|
+
},
|
61
|
+
"RequestId": "s169935778xxxxxxx"
|
62
|
+
}
|
63
|
+
}
|
64
|
+
```
|
65
|
+
|
66
|
+
**Example 3: 查询渠道客户消耗**
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
Input:
|
71
|
+
|
72
|
+
```
|
73
|
+
tccli ess DescribeBillUsageDetail --cli-unfold-argument \
|
74
|
+
--StartTime abc \
|
75
|
+
--EndTime abc \
|
76
|
+
--Offset 0 \
|
77
|
+
--Limit 0 \
|
78
|
+
--QuotaType abc \
|
79
|
+
--Agent.AppId abc \
|
80
|
+
--Agent.ProxyAppId abc \
|
81
|
+
--Agent.ProxyOrganizationId abc \
|
82
|
+
--Agent.ProxyOperator abc
|
83
|
+
```
|
84
|
+
|
85
|
+
Output:
|
86
|
+
```
|
87
|
+
{
|
88
|
+
"Response": {
|
89
|
+
"Details": [
|
90
|
+
{
|
91
|
+
"CostTime": 1695037514,
|
92
|
+
"CostType": 1,
|
93
|
+
"FlowId": "yDwJOU5e7ikveIUxMW0p2uJxxxxxxxxxx",
|
94
|
+
"FlowName": "腾讯电子签xxxxx合同",
|
95
|
+
"OperatorName": "张三;李斯",
|
96
|
+
"QuotaName": "签署报告(出证服务)",
|
97
|
+
"QuotaType": "CloudProve",
|
98
|
+
"Remark": "",
|
99
|
+
"Status": 4,
|
100
|
+
"UseCount": 1
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"RequestId": "s16992572741898xxxx",
|
104
|
+
"Total": 1
|
105
|
+
}
|
106
|
+
}
|
107
|
+
```
|
108
|
+
|
@@ -39,3 +39,95 @@ Output:
|
|
39
39
|
}
|
40
40
|
```
|
41
41
|
|
42
|
+
**Example 2: 参数IdCardNumber不能为空**
|
43
|
+
|
44
|
+
参数IdCardNumber不能为空
|
45
|
+
|
46
|
+
Input:
|
47
|
+
|
48
|
+
```
|
49
|
+
tccli essbasic ChannelCreatePreparedPersonalEsign --cli-unfold-argument \
|
50
|
+
--Operator.OpenId abc \
|
51
|
+
--Operator.Channel abc \
|
52
|
+
--Operator.CustomUserId abc \
|
53
|
+
--Operator.ClientIp abc \
|
54
|
+
--Operator.ProxyIp abc \
|
55
|
+
--Agent.AppId abc \
|
56
|
+
--Agent.ProxyOrganizationOpenId abc \
|
57
|
+
--Agent.ProxyOperator.OpenId abc \
|
58
|
+
--Agent.ProxyOperator.Channel abc \
|
59
|
+
--Agent.ProxyOperator.CustomUserId abc \
|
60
|
+
--Agent.ProxyOperator.ClientIp abc \
|
61
|
+
--Agent.ProxyOperator.ProxyIp abc \
|
62
|
+
--Agent.ProxyAppId abc \
|
63
|
+
--Agent.ProxyOrganizationId abc \
|
64
|
+
--UserName abc \
|
65
|
+
--IdCardType abc \
|
66
|
+
--IdCardNumber \
|
67
|
+
--SealName abc \
|
68
|
+
--SealImage abc \
|
69
|
+
--SealImageCompress True \
|
70
|
+
--Mobile abc \
|
71
|
+
--EnableAutoSign True \
|
72
|
+
--LicenseType 0
|
73
|
+
```
|
74
|
+
|
75
|
+
Output:
|
76
|
+
```
|
77
|
+
{
|
78
|
+
"Response": {
|
79
|
+
"Error": {
|
80
|
+
"Code": "InvalidParameterValue",
|
81
|
+
"Message": "参数IdCardNumber不能为空"
|
82
|
+
},
|
83
|
+
"RequestId": "abc"
|
84
|
+
}
|
85
|
+
}
|
86
|
+
```
|
87
|
+
|
88
|
+
**Example 3: 参数UserName不能为空**
|
89
|
+
|
90
|
+
参数UserName不能为空
|
91
|
+
|
92
|
+
Input:
|
93
|
+
|
94
|
+
```
|
95
|
+
tccli essbasic ChannelCreatePreparedPersonalEsign --cli-unfold-argument \
|
96
|
+
--Operator.OpenId abc \
|
97
|
+
--Operator.Channel abc \
|
98
|
+
--Operator.CustomUserId abc \
|
99
|
+
--Operator.ClientIp abc \
|
100
|
+
--Operator.ProxyIp abc \
|
101
|
+
--Agent.AppId abc \
|
102
|
+
--Agent.ProxyOrganizationOpenId abc \
|
103
|
+
--Agent.ProxyOperator.OpenId abc \
|
104
|
+
--Agent.ProxyOperator.Channel abc \
|
105
|
+
--Agent.ProxyOperator.CustomUserId abc \
|
106
|
+
--Agent.ProxyOperator.ClientIp abc \
|
107
|
+
--Agent.ProxyOperator.ProxyIp abc \
|
108
|
+
--Agent.ProxyAppId abc \
|
109
|
+
--Agent.ProxyOrganizationId abc \
|
110
|
+
--UserName \
|
111
|
+
--IdCardType abc \
|
112
|
+
--IdCardNumber abc \
|
113
|
+
--SealName abc \
|
114
|
+
--SealImage abc \
|
115
|
+
--SealImageCompress True \
|
116
|
+
--Mobile abc \
|
117
|
+
--EnableAutoSign True \
|
118
|
+
--LicenseType 0
|
119
|
+
```
|
120
|
+
|
121
|
+
Output:
|
122
|
+
```
|
123
|
+
{
|
124
|
+
"Response": {
|
125
|
+
"Error": {
|
126
|
+
"Code": "InvalidParameterValue",
|
127
|
+
"Message": "参数UserName不能为空"
|
128
|
+
},
|
129
|
+
"RequestId": "xxxx111xxxx"
|
130
|
+
}
|
131
|
+
}
|
132
|
+
```
|
133
|
+
|
@@ -1,7 +1,15 @@
|
|
1
|
-
**Example 1:
|
1
|
+
**Example 1: 发起解除协议(使用本企业的签署人,替换用原流程中本企业的签署人)**
|
2
2
|
|
3
|
-
1.
|
3
|
+
1. 使用本企业的签署人
|
4
4
|
2. 包含了详细的解除内容
|
5
|
+
3. 替换原流程中本企业的签署人
|
6
|
+
4. 被替换的原流程中的签署人ApproverNumber=1(即第二个签署人,在原流程签署人列表中的第二位)
|
7
|
+
|
8
|
+
扩展信息:
|
9
|
+
针对ApproverNumber举个例子,
|
10
|
+
例如在原流程中共有三个签署人(a, b, c),
|
11
|
+
那么a是第一位(ApproverNumber=0),b是第二位(ApproverNumber=1),c是第三位(ApproverNumber=2),
|
12
|
+
注意这里的顺序不是签署顺序,仅仅是签署人列表中的自然顺序,签署人列表的获取可以参考DescribeFlowDetailInfo接口。
|
5
13
|
|
6
14
|
Input:
|
7
15
|
|
@@ -11,6 +19,11 @@ tccli essbasic ChannelCreateReleaseFlow --cli-unfold-argument \
|
|
11
19
|
--Agent.ProxyOperator.OpenId n9527 \
|
12
20
|
--Agent.AppId yDRSRUUgygj6rqi6UuO4zjEBDACwAjgT \
|
13
21
|
--NeedRelievedFlowId yDwFmUUckpst10i3UubBSat8PWOt2iQF \
|
22
|
+
--ReleasedApprovers.0.ApproverNumber 1 \
|
23
|
+
--ReleasedApprovers.0.Name 典子谦 \
|
24
|
+
--ReleasedApprovers.0.Mobile 13200000000 \
|
25
|
+
--ReleasedApprovers.0.ApproverType ORGANIZATION \
|
26
|
+
--ReleasedApprovers.0.OrganizationName 典子谦示例企业 \
|
14
27
|
--ReliveInfo.Reason 因为业务调整, 结束合作。 \
|
15
28
|
--ReliveInfo.RemainInForceItem 在业务结束前已产生的订单依旧有效。 \
|
16
29
|
--ReliveInfo.OriginalExpenseSettlement 甲方需付给乙方xxxx以作赔偿。 \
|
@@ -22,38 +35,63 @@ Output:
|
|
22
35
|
```
|
23
36
|
{
|
24
37
|
"Response": {
|
25
|
-
"FlowId": "yDwFdUUckps******
|
38
|
+
"FlowId": "yDwFdUUckps******xAhL7zuaIwkMth4",
|
26
39
|
"RequestId": "s1669**2203341"
|
27
40
|
}
|
28
41
|
}
|
29
42
|
```
|
30
43
|
|
31
|
-
**Example 2: 发起解除协议(
|
32
|
-
|
33
|
-
1. 使用本企业的签署人
|
34
|
-
2. 包含了详细的解除内容
|
35
|
-
3. 替换原流程中本企业的签署人
|
36
|
-
4. 被替换的原流程中的签署人ApproverNumber=1(即第二个签署人,在原流程签署人列表中的第二位)
|
44
|
+
**Example 2: 发起解除协议(替换原流程中本企业的参与人并指定签署人角色、签署控件)**
|
37
45
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
那么a是第一位(ApproverNumber=0),b是第二位(ApproverNumber=1),c是第三位(ApproverNumber=2),
|
42
|
-
注意这里的顺序不是签署顺序,仅仅是签署人列表中的自然顺序,签署人列表的获取可以参考DescribeFlowDetailInfo接口。
|
46
|
+
1. 更换原合同中本方企业的参与人
|
47
|
+
2. 给该企业参与人指定自定义的角色名称(通过设置ApproverSignRole)
|
48
|
+
3. 给该企业参与人指定签署控件类型为手写签名(通过设置ApproverSignComponentType)
|
43
49
|
|
44
50
|
Input:
|
45
51
|
|
46
52
|
```
|
47
53
|
tccli essbasic ChannelCreateReleaseFlow --cli-unfold-argument \
|
48
|
-
--Agent.ProxyOrganizationOpenId org_dianziqian \
|
49
|
-
--Agent.ProxyOperator.OpenId n9527 \
|
50
54
|
--Agent.AppId yDRSRUUgygj6rqi6UuO4zjEBDACwAjgT \
|
55
|
+
--Agent.ProxyOperator.OpenId n9527 \
|
56
|
+
--Agent.ProxyOrganizationOpenId org_dianziqian \
|
51
57
|
--NeedRelievedFlowId yDwFmUUckpst10i3UubBSat8PWOt2iQF \
|
52
58
|
--ReleasedApprovers.0.ApproverNumber 1 \
|
53
|
-
--ReleasedApprovers.0.
|
54
|
-
--ReleasedApprovers.0.
|
59
|
+
--ReleasedApprovers.0.ApproverSignComponentType SIGN_SIGNATURE \
|
60
|
+
--ReleasedApprovers.0.ApproverSignRole 自定义的签署方角色(供应商) \
|
55
61
|
--ReleasedApprovers.0.ApproverType ORGANIZATION \
|
62
|
+
--ReleasedApprovers.0.Mobile 13200000000 \
|
63
|
+
--ReleasedApprovers.0.Name 典子谦 \
|
56
64
|
--ReleasedApprovers.0.OrganizationName 典子谦示例企业 \
|
65
|
+
--ReliveInfo.OriginalExpenseSettlement 甲方需付给乙方xxxx以作赔偿。 \
|
66
|
+
--ReliveInfo.OriginalOtherSettlement 无 \
|
67
|
+
--ReliveInfo.OtherDeals 无 \
|
68
|
+
--ReliveInfo.Reason 因为业务调整, 结束合作。 \
|
69
|
+
--ReliveInfo.RemainInForceItem 在业务结束前已产生的订单依旧有效。
|
70
|
+
```
|
71
|
+
|
72
|
+
Output:
|
73
|
+
```
|
74
|
+
{
|
75
|
+
"Response": {
|
76
|
+
"FlowId": "yDwgkUU7y***********zWBfv",
|
77
|
+
"RequestId": "s168809**839"
|
78
|
+
}
|
79
|
+
}
|
80
|
+
```
|
81
|
+
|
82
|
+
**Example 3: 发起解除协议(默认情况,使用原流程的签署人)**
|
83
|
+
|
84
|
+
1. 使用原流程的签署人
|
85
|
+
2. 包含了详细的解除内容
|
86
|
+
|
87
|
+
Input:
|
88
|
+
|
89
|
+
```
|
90
|
+
tccli essbasic ChannelCreateReleaseFlow --cli-unfold-argument \
|
91
|
+
--Agent.ProxyOrganizationOpenId org_dianziqian \
|
92
|
+
--Agent.ProxyOperator.OpenId n9527 \
|
93
|
+
--Agent.AppId yDRSRUUgygj6rqi6UuO4zjEBDACwAjgT \
|
94
|
+
--NeedRelievedFlowId yDwFmUUckpst10i3UubBSat8PWOt2iQF \
|
57
95
|
--ReliveInfo.Reason 因为业务调整, 结束合作。 \
|
58
96
|
--ReliveInfo.RemainInForceItem 在业务结束前已产生的订单依旧有效。 \
|
59
97
|
--ReliveInfo.OriginalExpenseSettlement 甲方需付给乙方xxxx以作赔偿。 \
|
@@ -65,9 +103,46 @@ Output:
|
|
65
103
|
```
|
66
104
|
{
|
67
105
|
"Response": {
|
68
|
-
"FlowId": "yDwFdUUckps******
|
106
|
+
"FlowId": "yDwFdUUckps******xAhL7zuaIwkMth",
|
69
107
|
"RequestId": "s1669**2203341"
|
70
108
|
}
|
71
109
|
}
|
72
110
|
```
|
73
111
|
|
112
|
+
**Example 4: 错误示例-解除协议中更换原合同个人类型的参与人**
|
113
|
+
|
114
|
+
1. 解除某个包含个人类型签署人的合同
|
115
|
+
2. 更换其他个人类型签署人作为解除协议的参与人
|
116
|
+
|
117
|
+
Input:
|
118
|
+
|
119
|
+
```
|
120
|
+
tccli essbasic ChannelCreateReleaseFlow --cli-unfold-argument \
|
121
|
+
--Agent.AppId yDRSRUUgygj6rqi6UuO4zjEBDACwAjgT \
|
122
|
+
--Agent.ProxyOperator.OpenId n9527 \
|
123
|
+
--Agent.ProxyOrganizationOpenId org_dianziqian \
|
124
|
+
--NeedRelievedFlowId yDR1AUUgygjazuesUuO4zjESPW4PkfNi \
|
125
|
+
--ReleasedApprovers.0.ApproverNumber 2 \
|
126
|
+
--ReleasedApprovers.0.ApproverType PERSON \
|
127
|
+
--ReleasedApprovers.0.Mobile 15100000000 \
|
128
|
+
--ReleasedApprovers.0.Name 李四 \
|
129
|
+
--ReliveInfo.OriginalExpenseSettlement 甲方需付给乙方xxxx以作赔偿 \
|
130
|
+
--ReliveInfo.OriginalOtherSettlement 无 \
|
131
|
+
--ReliveInfo.OtherDeals 无 \
|
132
|
+
--ReliveInfo.Reason 因为业务调整, 结束合作。 \
|
133
|
+
--ReliveInfo.RemainInForceItem 在业务结束前已产生的订单依旧有效。
|
134
|
+
```
|
135
|
+
|
136
|
+
Output:
|
137
|
+
```
|
138
|
+
{
|
139
|
+
"Response": {
|
140
|
+
"Error": {
|
141
|
+
"Code": "FailedOperation",
|
142
|
+
"Message": "不能更换非企业签署人身份信息"
|
143
|
+
},
|
144
|
+
"RequestId": "s16939***23898"
|
145
|
+
}
|
146
|
+
}
|
147
|
+
```
|
148
|
+
|
@@ -25,3 +25,91 @@ Output:
|
|
25
25
|
}
|
26
26
|
```
|
27
27
|
|
28
|
+
**Example 2: 授权时,找不到对应的 UserId**
|
29
|
+
|
30
|
+
授权时,找不到对应的 UserId
|
31
|
+
|
32
|
+
Input:
|
33
|
+
|
34
|
+
```
|
35
|
+
tccli essbasic ChannelCreateSealPolicy --cli-unfold-argument \
|
36
|
+
--Agent.AppId abc \
|
37
|
+
--Agent.ProxyOrganizationOpenId abc \
|
38
|
+
--Agent.ProxyOperator.OpenId abc \
|
39
|
+
--Agent.ProxyOperator.Channel abc \
|
40
|
+
--Agent.ProxyOperator.CustomUserId abc \
|
41
|
+
--Agent.ProxyOperator.ClientIp abc \
|
42
|
+
--Agent.ProxyOperator.ProxyIp abc \
|
43
|
+
--Agent.ProxyAppId abc \
|
44
|
+
--Agent.ProxyOrganizationId abc \
|
45
|
+
--SealId abc \
|
46
|
+
--UserIds abc xxxid \
|
47
|
+
--Operator.OpenId abc \
|
48
|
+
--Operator.Channel abc \
|
49
|
+
--Operator.CustomUserId abc \
|
50
|
+
--Operator.ClientIp abc \
|
51
|
+
--Operator.ProxyIp abc \
|
52
|
+
--Organization.OrganizationId abc \
|
53
|
+
--Organization.Channel abc \
|
54
|
+
--Organization.OrganizationOpenId abc \
|
55
|
+
--Organization.ClientIp abc \
|
56
|
+
--Organization.ProxyIp abc
|
57
|
+
```
|
58
|
+
|
59
|
+
Output:
|
60
|
+
```
|
61
|
+
{
|
62
|
+
"Response": {
|
63
|
+
"Error": {
|
64
|
+
"Code": "InvalidParameter.ParamError",
|
65
|
+
"Message": "无效的授权用户Id"
|
66
|
+
},
|
67
|
+
"RequestId": "abc"
|
68
|
+
}
|
69
|
+
}
|
70
|
+
```
|
71
|
+
|
72
|
+
**Example 3: 授权时,缺少印章ID**
|
73
|
+
|
74
|
+
授权时,缺少印章ID
|
75
|
+
|
76
|
+
Input:
|
77
|
+
|
78
|
+
```
|
79
|
+
tccli essbasic ChannelCreateSealPolicy --cli-unfold-argument \
|
80
|
+
--Agent.AppId abc \
|
81
|
+
--Agent.ProxyOrganizationOpenId abc \
|
82
|
+
--Agent.ProxyOperator.OpenId abc \
|
83
|
+
--Agent.ProxyOperator.Channel abc \
|
84
|
+
--Agent.ProxyOperator.CustomUserId abc \
|
85
|
+
--Agent.ProxyOperator.ClientIp abc \
|
86
|
+
--Agent.ProxyOperator.ProxyIp abc \
|
87
|
+
--Agent.ProxyAppId abc \
|
88
|
+
--Agent.ProxyOrganizationId abc \
|
89
|
+
--SealId \
|
90
|
+
--UserIds abc \
|
91
|
+
--Operator.OpenId abc \
|
92
|
+
--Operator.Channel abc \
|
93
|
+
--Operator.CustomUserId abc \
|
94
|
+
--Operator.ClientIp abc \
|
95
|
+
--Operator.ProxyIp abc \
|
96
|
+
--Organization.OrganizationId abc \
|
97
|
+
--Organization.Channel abc \
|
98
|
+
--Organization.OrganizationOpenId abc \
|
99
|
+
--Organization.ClientIp abc \
|
100
|
+
--Organization.ProxyIp abc
|
101
|
+
```
|
102
|
+
|
103
|
+
Output:
|
104
|
+
```
|
105
|
+
{
|
106
|
+
"Response": {
|
107
|
+
"Error": {
|
108
|
+
"Code": "InvalidParameter.ParamError",
|
109
|
+
"Message": "缺失印章ID"
|
110
|
+
},
|
111
|
+
"RequestId": "abc"
|
112
|
+
}
|
113
|
+
}
|
114
|
+
```
|
115
|
+
|
@@ -1,21 +1,19 @@
|
|
1
|
-
**Example 1:
|
1
|
+
**Example 1: 查询已实名员工列表**
|
2
2
|
|
3
|
-
|
4
|
-
1. Filter参数Key设置为"Status";
|
5
|
-
2. Filter参数Values设置为"IsVerified",表示查询已实名员工;
|
6
|
-
3. 设置Limit和Offset参数,从首页开始,每页查询20条数据返回。
|
3
|
+
Filter参数Key设置为"Status",Values设置为"IsVerified"表示查询已实名员工
|
7
4
|
|
8
5
|
Input:
|
9
6
|
|
10
7
|
```
|
11
8
|
tccli essbasic ChannelDescribeEmployees --cli-unfold-argument \
|
9
|
+
--Agent.AppId yDwhxUUckp3gl8j5UuFX33LSNozpRsbi \
|
12
10
|
--Agent.ProxyOrganizationOpenId org_dianziqian \
|
13
11
|
--Agent.ProxyOperator.OpenId n9527 \
|
14
|
-
--Agent.
|
12
|
+
--Agent.ProxyAppId \
|
15
13
|
--Filters.0.Key Status \
|
16
14
|
--Filters.0.Values IsVerified \
|
17
|
-
--
|
18
|
-
--
|
15
|
+
--Offset 0 \
|
16
|
+
--Limit 20
|
19
17
|
```
|
20
18
|
|
21
19
|
Output:
|
@@ -24,74 +22,116 @@ Output:
|
|
24
22
|
"Response": {
|
25
23
|
"Employees": [
|
26
24
|
{
|
27
|
-
"
|
25
|
+
"UserId": "yDSLNUUckpossi8fUy98I4ESq4EmlpEd",
|
26
|
+
"DisplayName": "张三",
|
27
|
+
"Mobile": "18888888888",
|
28
|
+
"Email": "",
|
29
|
+
"OpenId": "n02468",
|
30
|
+
"Roles": [
|
31
|
+
{
|
32
|
+
"RoleId": "yDSLOUUckpojqpkmUEJmzYK68ctIyPFp",
|
33
|
+
"RoleName": "业务员"
|
34
|
+
}
|
35
|
+
],
|
28
36
|
"Department": {
|
29
|
-
"DepartmentId": "
|
30
|
-
"DepartmentName": "
|
37
|
+
"DepartmentId": "",
|
38
|
+
"DepartmentName": ""
|
31
39
|
},
|
32
|
-
"
|
40
|
+
"Verified": true,
|
41
|
+
"CreatedOn": 1699087891,
|
42
|
+
"VerifiedOn": 1699088080,
|
43
|
+
"QuiteJob": 0
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"UserId": "yDwi0UUckpohyi32UEdhBFEEbigdd0Dd",
|
47
|
+
"DisplayName": "李四",
|
48
|
+
"Mobile": "15100000000",
|
33
49
|
"Email": "",
|
34
|
-
"
|
35
|
-
"OpenId": "",
|
50
|
+
"OpenId": "n123456",
|
36
51
|
"Roles": [
|
37
52
|
{
|
38
|
-
"RoleId": "
|
39
|
-
"RoleName": "法人"
|
40
|
-
},
|
41
|
-
{
|
42
|
-
"RoleId": "4fcbf3624****df77e30ea6c63",
|
53
|
+
"RoleId": "69997f600a7c8e9accc71f4241a8a091",
|
43
54
|
"RoleName": "超级管理员"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"RoleId": "9b7dcf74ab****b57c9fecf8e9",
|
47
|
-
"RoleName": "业务员"
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"RoleId": "4dff1cea****6fc061010b",
|
51
|
-
"RoleName": "企业员工"
|
52
55
|
}
|
53
56
|
],
|
54
|
-
"
|
57
|
+
"Department": {
|
58
|
+
"DepartmentId": "",
|
59
|
+
"DepartmentName": ""
|
60
|
+
},
|
55
61
|
"Verified": true,
|
56
|
-
"
|
62
|
+
"CreatedOn": 1698814301,
|
63
|
+
"VerifiedOn": 1698814443,
|
57
64
|
"QuiteJob": 0
|
58
65
|
}
|
59
66
|
],
|
60
|
-
"Limit": 20,
|
61
67
|
"Offset": 0,
|
62
|
-
"
|
63
|
-
"TotalCount":
|
68
|
+
"Limit": 20,
|
69
|
+
"TotalCount": 2,
|
70
|
+
"RequestId": "e0461ce0-455c-410b-873b-f33de95f281f"
|
64
71
|
}
|
65
72
|
}
|
66
73
|
```
|
67
74
|
|
68
|
-
**Example 2:
|
75
|
+
**Example 2: 查询某几个员工列表**
|
69
76
|
|
70
|
-
|
71
|
-
1. 将Limit参数设置为21,超过最大值20。
|
77
|
+
Filter参数Key设置为"StaffOpenId",Values设置为员工的OpenId列表
|
72
78
|
|
73
79
|
Input:
|
74
80
|
|
75
81
|
```
|
76
82
|
tccli essbasic ChannelDescribeEmployees --cli-unfold-argument \
|
83
|
+
--Agent.AppId yDwhxUUckp3gl8j5UuFX33LSNozpRsbi \
|
77
84
|
--Agent.ProxyOrganizationOpenId org_dianziqian \
|
78
85
|
--Agent.ProxyOperator.OpenId n9527 \
|
79
|
-
--Agent.
|
80
|
-
--Filters.0.Key
|
81
|
-
--Filters.0.Values
|
82
|
-
--
|
83
|
-
--
|
86
|
+
--Agent.ProxyAppId \
|
87
|
+
--Filters.0.Key StaffOpenId \
|
88
|
+
--Filters.0.Values n02468 n123456 \
|
89
|
+
--Offset 0 \
|
90
|
+
--Limit 20
|
84
91
|
```
|
85
92
|
|
86
93
|
Output:
|
87
94
|
```
|
88
95
|
{
|
89
96
|
"Response": {
|
90
|
-
"
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
97
|
+
"Employees": [
|
98
|
+
{
|
99
|
+
"UserId": "",
|
100
|
+
"DisplayName": "张三",
|
101
|
+
"Mobile": "18888888888",
|
102
|
+
"Email": "",
|
103
|
+
"OpenId": "n02468",
|
104
|
+
"Roles": [],
|
105
|
+
"Department": {
|
106
|
+
"DepartmentId": "",
|
107
|
+
"DepartmentName": ""
|
108
|
+
},
|
109
|
+
"Verified": false,
|
110
|
+
"CreatedOn": 1699095474,
|
111
|
+
"VerifiedOn": 0,
|
112
|
+
"QuiteJob": 0
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"UserId": "",
|
116
|
+
"DisplayName": "李四",
|
117
|
+
"Mobile": "15100000000",
|
118
|
+
"Email": "",
|
119
|
+
"OpenId": "n123456",
|
120
|
+
"Roles": [],
|
121
|
+
"Department": {
|
122
|
+
"DepartmentId": "",
|
123
|
+
"DepartmentName": ""
|
124
|
+
},
|
125
|
+
"Verified": false,
|
126
|
+
"CreatedOn": 1699095486,
|
127
|
+
"VerifiedOn": 0,
|
128
|
+
"QuiteJob": 1
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"Offset": 0,
|
132
|
+
"Limit": 20,
|
133
|
+
"TotalCount": 2,
|
134
|
+
"RequestId": "4ab55898-527c-47d1-a2bd-79b81471b563"
|
95
135
|
}
|
96
136
|
}
|
97
137
|
```
|