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

ใ‚จใƒฉใƒผ

ใ‚จใƒฉใƒผ็จฎๅˆฅใ‚นใƒ†ใƒผใ‚ฟใ‚นใ‚ณใƒผใƒ‰Content-Type
models/errors/APIException4XX, 5XX/