Skip to main content
< ๋’ค๋กœ ๊ฐ€๊ธฐ

๊ฐœ์š”

์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์ž‘์—…

  • get - FDA ๊ฐ€์ ธ์˜ค๊ธฐ

๊ฐ€์ ธ์˜ค๊ธฐ

FDA ์Šน์ธ, ์ž„์ƒ์‹œํ—˜ ๋ฐ PDUFA ์ผ์ •

์‚ฌ์šฉ ์˜ˆ์‹œ

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()) {
            // ์‘๋‹ต ์ฒ˜๋ฆฌ
        }
    }
}

๋งค๊ฐœ๋ณ€์ˆ˜

๋งค๊ฐœ๋ณ€์ˆ˜ํƒ€์ž…ํ•„์ˆ˜ ์—ฌ๋ถ€์„ค๋ช…
requestGetFdaRequest:heavy_check_mark:์š”์ฒญ์— ์‚ฌ์šฉํ•  ๊ฐ์ฒด์ž…๋‹ˆ๋‹ค.

์‘๋‹ต

GetFdaResponse

์˜ค๋ฅ˜

์˜ค๋ฅ˜ ์œ ํ˜•์ƒํƒœ ์ฝ”๋“œ์ฝ˜ํ…์ธ  ์œ ํ˜•
models/errors/APIException4XX, 5XX/