> ## Documentation Index
> Fetch the complete documentation index at: https://docs.benzinga.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 배당금

> dividends()

[\< 돌아가기](/ko/sdks/languages/java#dividends)

<div id="overview">
  ## 개요
</div>

<div id="available-operations">
  ### 사용 가능한 작업
</div>

* [getV22](#getv22) - 배당 데이터 V2.2 가져오기
* [get](#get) - 배당 데이터 V2 및 V2.1 가져오기

<div id="getv22">
  ## getV22
</div>

배당금 목록을 반환합니다.

<div id="example-usage">
  ### 사용 예시
</div>

```java theme={null}
package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetDividendsV22Request;
import org.benzinga.BZClient.models.operations.GetDividendsV22Response;

public class Application {

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

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

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

        GetDividendsV22Response res = sdk.dividends().getV22()
                .request(req)
                .call();

        if (res.modelsDividendJSON().isPresent()) {
            // 응답 처리
        }
    }
}
```

<div id="parameters">
  ### 파라미터
</div>

| 파라미터      | 타입                                                                          | 필수                   | 설명                |
| --------- | --------------------------------------------------------------------------- | -------------------- | ----------------- |
| `request` | [GetDividendsV22Request](../../models/operations/GetDividendsV22Request.md) | :heavy\_check\_mark: | 요청에 사용할 요청 객체입니다. |

<div id="response">
  ### 응답
</div>

**[GetDividendsV22Response](../../models/operations/GetDividendsV22Response.md)**

<div id="errors">
  ### 오류
</div>

| 오류 유형                      | 상태 코드    | 콘텐츠 유형 |
| -------------------------- | -------- | ------ |
| models/errors/APIException | 4XX, 5XX | */*    |

<div id="get">
  ## 가져오기
</div>

배당금 목록을 반환합니다.

<div id="example-usage">
  ### 사용 예시
</div>

```java theme={null}
package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetDividendsRequest;
import org.benzinga.BZClient.models.operations.GetDividendsResponse;

public class Application {

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

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

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

        GetDividendsResponse res = sdk.dividends().get()
                .request(req)
                .call();

        if (res.modelsDividendJSON().isPresent()) {
            // 응답 처리
        }
    }
}
```

### 매개변수

| 매개변수      | 타입                                                                    | 필수                   | 설명                |
| --------- | --------------------------------------------------------------------- | -------------------- | ----------------- |
| `request` | [GetDividendsRequest](../../models/operations/GetDividendsRequest.md) | :heavy\_check\_mark: | 요청에 사용할 요청 객체입니다. |

<div id="response">
  ### 응답
</div>

**[GetDividendsResponse](../../models/operations/GetDividendsResponse.md)**

<div id="errors">
  ### 오류
</div>

| 오류 유형                      | 상태 코드    | 콘텐츠 유형 |
| -------------------------- | -------- | ------ |
| models/errors/APIException | 4XX, 5XX | */*    |
