All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
batchquery | GET /v3/alipay/iservice/ccm/sw/library/batchquery | 知识库-库-批量查询 |
create | PUT /v3/alipay/iservice/ccm/sw/library/create | 知识库-库-创建 |
delete | DELETE /v3/alipay/iservice/ccm/sw/library/delete | 知识库-库-删除 |
modify | PATCH /v3/alipay/iservice/ccm/sw/library/modify | 知识库-库-修改 |
AlipayIserviceCcmSwLibraryBatchqueryResponseModel 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.AlipayIserviceCcmSwLibraryApi;
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);
AlipayIserviceCcmSwLibraryApi apiInstance = new AlipayIserviceCcmSwLibraryApi(defaultClient);
String ccsInstanceId = "ZPNASDK"; // String | 子部门ID,不传为默认部门
try {
AlipayIserviceCcmSwLibraryBatchqueryResponseModel result = apiInstance.batchquery(ccsInstanceId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwLibraryApi#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] |
AlipayIserviceCcmSwLibraryBatchqueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayIserviceCcmSwLibraryCreateResponseModel create(alipayIserviceCcmSwLibraryCreateModel)
知识库-库-创建
知识库-库-创建
// 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.AlipayIserviceCcmSwLibraryApi;
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);
AlipayIserviceCcmSwLibraryApi apiInstance = new AlipayIserviceCcmSwLibraryApi(defaultClient);
AlipayIserviceCcmSwLibraryCreateModel alipayIserviceCcmSwLibraryCreateModel = new AlipayIserviceCcmSwLibraryCreateModel(); // AlipayIserviceCcmSwLibraryCreateModel |
try {
AlipayIserviceCcmSwLibraryCreateResponseModel result = apiInstance.create(alipayIserviceCcmSwLibraryCreateModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwLibraryApi#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 |
---|---|---|---|
alipayIserviceCcmSwLibraryCreateModel | AlipayIserviceCcmSwLibraryCreateModel | [optional] |
AlipayIserviceCcmSwLibraryCreateResponseModel
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.AlipayIserviceCcmSwLibraryApi;
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);
AlipayIserviceCcmSwLibraryApi apiInstance = new AlipayIserviceCcmSwLibraryApi(defaultClient);
try {
Object result = apiInstance.delete();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwLibraryApi#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 | 请求失败 | - |
Object modify(alipayIserviceCcmSwLibraryModifyModel)
知识库-库-修改
知识库-库-修改
// 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.AlipayIserviceCcmSwLibraryApi;
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);
AlipayIserviceCcmSwLibraryApi apiInstance = new AlipayIserviceCcmSwLibraryApi(defaultClient);
AlipayIserviceCcmSwLibraryModifyModel alipayIserviceCcmSwLibraryModifyModel = new AlipayIserviceCcmSwLibraryModifyModel(); // AlipayIserviceCcmSwLibraryModifyModel |
try {
Object result = apiInstance.modify(alipayIserviceCcmSwLibraryModifyModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayIserviceCcmSwLibraryApi#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 |
---|---|---|---|
alipayIserviceCcmSwLibraryModifyModel | AlipayIserviceCcmSwLibraryModifyModel | [optional] |
Object
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |