Skip to main content
< 뒤로

개요

사용 가능한 작업

  • get - 정부 거래 보고서 가져오기

가져오기

정부 거래 보고서 가져오기

사용 예시

package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.errors.ApiErrorResponse;
import org.benzinga.BZClient.models.operations.GetGovernmentTradeReportsRequest;
import org.benzinga.BZClient.models.operations.GetGovernmentTradeReportsResponse;

public class Application {

    public static void main(String[] args) throws ApiErrorResponse, Exception {

        Bzclient sdk = Bzclient.builder()
                .apiKeyAuth("<YOUR_API_KEY_HERE>")
            .build();

        GetGovernmentTradeReportsRequest req = GetGovernmentTradeReportsRequest.builder()
                .build();

        GetGovernmentTradeReportsResponse res = sdk.governmentTradeReports().get()
                .request(req)
                .call();

        if (res.modelsGovernmentTradeJSON().isPresent()) {
            // 응답 처리
        }
    }
}

파라미터

파라미터타입필수 여부설명
requestGetGovernmentTradeReportsRequest:heavy_check_mark:요청에 사용할 요청 객체입니다.

응답

GetGovernmentTradeReportsResponse

오류

오류 유형상태 코드콘텐츠 유형
models/errors/ApiErrorResponse400, 500application/json
models/errors/APIException4XX, 5XX/