Skip to main content
< ๋’ค๋กœ

๊ฐœ์š”

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

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

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

package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetEventsRequest;
import org.benzinga.BZClient.models.operations.GetEventsResponse;

public class Application {

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

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

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

        GetEventsResponse res = sdk.events().get()
                .request(req)
                .call();

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

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

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

์‘๋‹ต

GetEventsResponse

์˜ค๋ฅ˜

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