All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
batchquery | GET /v3/alipay/iservice/ccm/sw/tree/batchquery | 知识库-类目-批量查询 |
create | PUT /v3/alipay/iservice/ccm/sw/tree/create | 知识库-类目-创建 |
delete | DELETE /v3/alipay/iservice/ccm/sw/tree/delete | 知识库-类目-删除 |
get | GET /v3/alipay/iservice/ccm/sw/tree/get | 知识库-类目-获取 |
modify | PATCH /v3/alipay/iservice/ccm/sw/tree/modify | 知识库-类目-修改 |
publish | PUT /v3/alipay/iservice/ccm/sw/tree/publish | 知识库-类目-发布 |
AlipayIserviceCcmSwTreeBatchqueryResponseModel batchquery(ccsInstanceId)
知识库-类目-批量查询
知识库-类目-批量查询
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayIserviceCcmSwTreeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayIserviceCcmSwTreeApi apiInstance = new AlipayIserviceCcmSwTreeApi(defaultClient);
String ccsInstanceId = "ZPNASDK"; // String | 子部门ID,不传为默认部门
try {
AlipayIserviceCcmSwTreeBatchqueryResponseModel result = apiInstance.batchquery(ccsInstanceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwTreeApi#batchquery");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ccsInstanceId | String | 子部门ID,不传为默认部门 | [optional] |
AlipayIserviceCcmSwTreeBatchqueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayIserviceCcmSwTreeCreateResponseModel create(alipayIserviceCcmSwTreeCreateModel)
知识库-类目-创建
知识库-类目-创建
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayIserviceCcmSwTreeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayIserviceCcmSwTreeApi apiInstance = new AlipayIserviceCcmSwTreeApi(defaultClient);
AlipayIserviceCcmSwTreeCreateModel alipayIserviceCcmSwTreeCreateModel = new AlipayIserviceCcmSwTreeCreateModel(); // AlipayIserviceCcmSwTreeCreateModel |
try {
AlipayIserviceCcmSwTreeCreateResponseModel result = apiInstance.create(alipayIserviceCcmSwTreeCreateModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwTreeApi#create");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayIserviceCcmSwTreeCreateModel | AlipayIserviceCcmSwTreeCreateModel | [optional] |
AlipayIserviceCcmSwTreeCreateResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
Object delete()
知识库-类目-删除
知识库-类目-删除
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayIserviceCcmSwTreeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayIserviceCcmSwTreeApi apiInstance = new AlipayIserviceCcmSwTreeApi(defaultClient);
try {
Object result = apiInstance.delete();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwTreeApi#delete");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
Object
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayIserviceCcmSwTreeGetResponseModel get(ccsInstanceId, id)
知识库-类目-获取
知识库-类目-获取
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayIserviceCcmSwTreeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayIserviceCcmSwTreeApi apiInstance = new AlipayIserviceCcmSwTreeApi(defaultClient);
String ccsInstanceId = "ZPNASDK"; // String | 子部门ID,不传为默认部门
Integer id = 1; // Integer | 类目ID
try {
AlipayIserviceCcmSwTreeGetResponseModel result = apiInstance.get(ccsInstanceId, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwTreeApi#get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ccsInstanceId | String | 子部门ID,不传为默认部门 | [optional] |
id | Integer | 类目ID | [optional] |
AlipayIserviceCcmSwTreeGetResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
Object modify(alipayIserviceCcmSwTreeModifyModel)
知识库-类目-修改
知识库-类目-修改
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayIserviceCcmSwTreeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayIserviceCcmSwTreeApi apiInstance = new AlipayIserviceCcmSwTreeApi(defaultClient);
AlipayIserviceCcmSwTreeModifyModel alipayIserviceCcmSwTreeModifyModel = new AlipayIserviceCcmSwTreeModifyModel(); // AlipayIserviceCcmSwTreeModifyModel |
try {
Object result = apiInstance.modify(alipayIserviceCcmSwTreeModifyModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwTreeApi#modify");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayIserviceCcmSwTreeModifyModel | AlipayIserviceCcmSwTreeModifyModel | [optional] |
Object
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
Object publish(alipayIserviceCcmSwTreePublishModel)
知识库-类目-发布
知识库-类目-发布
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayIserviceCcmSwTreeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayIserviceCcmSwTreeApi apiInstance = new AlipayIserviceCcmSwTreeApi(defaultClient);
AlipayIserviceCcmSwTreePublishModel alipayIserviceCcmSwTreePublishModel = new AlipayIserviceCcmSwTreePublishModel(); // AlipayIserviceCcmSwTreePublishModel |
try {
Object result = apiInstance.publish(alipayIserviceCcmSwTreePublishModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwTreeApi#publish");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayIserviceCcmSwTreePublishModel | AlipayIserviceCcmSwTreePublishModel | [optional] |
Object
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |