> ## 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.

# الأحداث

> events()

[\< العودة](/ar/sdks/languages/java#events)

<div id="overview">
  ## نظرة عامة
</div>

<div id="available-operations">
  ### العمليات المتاحة
</div>

* [get](#get) - جلب الأحداث

<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.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()) {
            // معالجة الرد
        }
    }
}
```

<div id="parameters">
  ### المعاملات
</div>

| Parameter | Type                                                            | Required             | Description                         |
| --------- | --------------------------------------------------------------- | -------------------- | ----------------------------------- |
| `request` | [GetEventsRequest](../../models/operations/GetEventsRequest.md) | :heavy\_check\_mark: | كائن الطلب المستخدم في هذه العملية. |

<div id="response">
  ### الاستجابة
</div>

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

<div id="errors">
  ### الأخطاء
</div>

| نوع الخطأ                  | رمز الحالة | نوع المحتوى |
| -------------------------- | ---------- | ----------- |
| models/errors/APIException | 4XX, 5XX   | */*         |
