Skip to content

Latest commit

 

History

History
438 lines (345 loc) · 13.7 KB

AlipayIserviceCcmSwTreeApi.md

File metadata and controls

438 lines (345 loc) · 13.7 KB

AlipayIserviceCcmSwTreeApi

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 知识库-类目-发布

batchquery

AlipayIserviceCcmSwTreeBatchqueryResponseModel batchquery(ccsInstanceId)

知识库-类目-批量查询

知识库-类目-批量查询

Example

// 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();
    }
  }
}

Parameters

Name Type Description Notes
ccsInstanceId String 子部门ID,不传为默认部门 [optional]

Return type

AlipayIserviceCcmSwTreeBatchqueryResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

create

AlipayIserviceCcmSwTreeCreateResponseModel create(alipayIserviceCcmSwTreeCreateModel)

知识库-类目-创建

知识库-类目-创建

Example

// 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();
    }
  }
}

Parameters

Name Type Description Notes
alipayIserviceCcmSwTreeCreateModel AlipayIserviceCcmSwTreeCreateModel [optional]

Return type

AlipayIserviceCcmSwTreeCreateResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

delete

Object delete()

知识库-类目-删除

知识库-类目-删除

Example

// 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();
    }
  }
}

Parameters

This endpoint does not need any parameter.

Return type

Object

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

get

AlipayIserviceCcmSwTreeGetResponseModel get(ccsInstanceId, id)

知识库-类目-获取

知识库-类目-获取

Example

// 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();
    }
  }
}

Parameters

Name Type Description Notes
ccsInstanceId String 子部门ID,不传为默认部门 [optional]
id Integer 类目ID [optional]

Return type

AlipayIserviceCcmSwTreeGetResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

modify

Object modify(alipayIserviceCcmSwTreeModifyModel)

知识库-类目-修改

知识库-类目-修改

Example

// 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();
    }
  }
}

Parameters

Name Type Description Notes
alipayIserviceCcmSwTreeModifyModel AlipayIserviceCcmSwTreeModifyModel [optional]

Return type

Object

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

publish

Object publish(alipayIserviceCcmSwTreePublishModel)

知识库-类目-发布

知识库-类目-发布

Example

// 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();
    }
  }
}

Parameters

Name Type Description Notes
alipayIserviceCcmSwTreePublishModel AlipayIserviceCcmSwTreePublishModel [optional]

Return type

Object

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -