CheckApi

All URIs are relative to https://check.wanfangdata.com.cn/api

Method HTTP request Description
check POST /Check 检测

check

CheckResponse check(checkRequest)

检测

示例

import io.swagger.client.*;
import io.swagger.client.auth.*;
import cn.com.wanfangdata.check.client.model.*;
import cn.com.wanfangdata.check.client.api.CheckApi;

public class CheckApiExample {

    public static void main(String[] args) {
        ApiClient apiClient = new ApiClient();
        apiClient.setBasePath("https://check.wanfangdata.com.cn/api");
        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) apiClient.getAuthentication("apiKey");
        apiKey.setApiKey("通过认证接口获取的票据");

        CheckApi apiInstance = new CheckApi(apiClient);
        CheckRequest checkRequest = new CheckRequest(); // CheckRequest | 检测请求
        checkRequest.setFileName("fileName"); // String | 文件名
        checkRequest.setContent("content"); // String | 检测文本
        try {
            CheckResponse result = apiInstance.check(checkRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckApi#check");
            e.printStackTrace();
        }
    }
}

参数

Name Type Description Notes
checkRequest CheckRequest 检测请求

返回类型

CheckResponse

授权

apiKey

HTTP请求头

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

results matching ""

    No results matching ""