Skip to main content
< 戻る

概要

利用可能な操作

  • get - Newsquantified データを取得する

get

Newsquantified データを取得する

使用例

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()) {
            // レスポンスを処理する
        }
    }
}

パラメータ

パラメータ必須説明
requestGetNewsquantifiedDataRequest:heavy_check_mark:このリクエストで使用するリクエストオブジェクト。

レスポンス

GetNewsquantifiedDataResponse

エラー

エラータイプステータスコードコンテンツタイプ
models/errors/BzhttpResp404application/json
models/errors/APIException4XX, 5XX/