概要
利用可能な操作
- get - Newsquantified データを取得する
get
使用例
package hello.world;
import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.errors.BzhttpResp;
import org.benzinga.BZClient.models.operations.GetNewsquantifiedDataRequest;
import org.benzinga.BZClient.models.operations.GetNewsquantifiedDataResponse;
public class Application {
public static void main(String[] args) throws BzhttpResp, Exception {
Bzclient sdk = Bzclient.builder()
.apiKeyAuth("<YOUR_API_KEY_HERE>")
.build();
GetNewsquantifiedDataRequest req = GetNewsquantifiedDataRequest.builder()
.build();
GetNewsquantifiedDataResponse res = sdk.newsquantified().get()
.request(req)
.call();
if (res.modelsNewsquantifieds().isPresent()) {
// レスポンスを処理する
}
}
}
パラメータ
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
request | GetNewsquantifiedDataRequest | :heavy_check_mark: | このリクエストで使用するリクエストオブジェクト。 |
レスポンス
エラー
| エラータイプ | ステータスコード | コンテンツタイプ |
|---|---|---|
| models/errors/BzhttpResp | 404 | application/json |
| models/errors/APIException | 4XX, 5XX | / |