概要
利用可能な操作
- get - FDA を取得
取得
使用例
package hello.world;
import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetFdaRequest;
import org.benzinga.BZClient.models.operations.GetFdaResponse;
public class Application {
public static void main(String[] args) throws Exception {
Bzclient sdk = Bzclient.builder()
.apiKeyAuth("<YOUR_API_KEY_HERE>")
.build();
GetFdaRequest req = GetFdaRequest.builder()
.build();
GetFdaResponse res = sdk.fda().get()
.request(req)
.call();
if (res.modelsFDAJSON().isPresent()) {
// レスポンスを処理する
}
}
}
パラメーター
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
request | GetFdaRequest | :heavy_check_mark: | リクエストに使用するリクエストオブジェクト。 |
レスポンス
エラー
| エラー種別 | ステータスコード | Content-Type |
|---|---|---|
| models/errors/APIException | 4XX, 5XX | / |