개요
사용 가능한 작업
- get - 애널리스트 인사이트 V1 가져오기
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.GetAnalystInsightsV1Request;
import org.benzinga.BZClient.models.operations.GetAnalystInsightsV1Response;
public class Application {
public static void main(String[] args) throws ApiErrorResponse, Exception {
Bzclient sdk = Bzclient.builder()
.apiKeyAuth("<YOUR_API_KEY_HERE>")
.build();
GetAnalystInsightsV1Request req = GetAnalystInsightsV1Request.builder()
.build();
GetAnalystInsightsV1Response res = sdk.analystInsights().get()
.request(req)
.call();
if (res.modelsAnalystInsightsJSON().isPresent()) {
// 응답 처리
}
}
}
매개변수
| 매개변수 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
request | GetAnalystInsightsV1Request | :heavy_check_mark: | 요청에 사용할 요청 객체입니다. |
응답
오류
| 오류 유형 | 상태 코드 | 콘텐츠 유형 |
|---|---|---|
| models/errors/ApiErrorResponse | 400, 500 | application/json |
| models/errors/APIException | 4XX, 5XX | / |