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

# Eventos

> events()

[\< VOLVER](/es/sdks/languages/java#events)

<div id="overview">
  ## Descripción general
</div>

<div id="available-operations">
  ### Operaciones disponibles
</div>

* [get](#get) - Obtener eventos

<div id="get">
  ## get
</div>

Obtener eventos

<div id="example-usage">
  ### Ejemplo de uso
</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()) {
            // gestionar respuesta
        }
    }
}
```

<div id="parameters">
  ### Parámetros
</div>

| Parámetro | Tipo                                                            | Obligatorio          | Descripción                                           |
| --------- | --------------------------------------------------------------- | -------------------- | ----------------------------------------------------- |
| `request` | [GetEventsRequest](../../models/operations/GetEventsRequest.md) | :heavy\_check\_mark: | Objeto de solicitud que se utilizará en la solicitud. |

<div id="response">
  ### Respuesta
</div>

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

<div id="errors">
  ### Errores
</div>

| Tipo de error              | Código de estado | Tipo de contenido |
| -------------------------- | ---------------- | ----------------- |
| models/errors/APIException | 4XX, 5XX         | */*               |
