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

๊ฐœ์š”

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

  • get - ๊ฐ€์ด๋˜์Šค ๊ฐ€์ ธ์˜ค๊ธฐ

๊ฐ€์ ธ์˜ค๊ธฐ

๊ฐ€์ด๋˜์Šค ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

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

package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetGuidanceRequest;
import org.benzinga.BZClient.models.operations.GetGuidanceResponse;

public class Application {

    public static void main(String[] args) throws Exception {

        Bzclient sdk = Bzclient.builder()
                .apiKeyAuth("<YOUR_API_KEY_HERE>")
            .build();

        GetGuidanceRequest req = GetGuidanceRequest.builder()
                .build();

        GetGuidanceResponse res = sdk.guidance().get()
                .request(req)
                .call();

        if (res.modelsGuidanceJSON().isPresent()) {
            // ์‘๋‹ต ์ฒ˜๋ฆฌ
        }
    }
}

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

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

์‘๋‹ต

GetGuidanceResponse

์˜ค๋ฅ˜

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