> ## 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()

[\< رجوع](/ar/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   | */*         |
