# OutOfBedResource

Canonical page: https://docs.ovok.com/java-sdk/reference/out-of-bed-resource

```java
public final class OutOfBedResource
```

Reads out-of-bed notifications. Get it from [`NotificationsResource.outOfBed()`](/java-sdk/reference/notifications-resource#outofbed).

## Methods [#methods]

### list [#list]

```java
public JsonNode list(
        Map<String, ?> query,
        RequestOptions options) throws IOException, InterruptedException
```

Lists out-of-bed notifications (`GET /v1/slim/notifications/oob`).

**Parameters:**

- `query`: query parameters; `null` values are skipped
- `options`: per-request options, such as the timeout

**Returns:** the response body

**Throws:**

- `IOException`: if the request cannot be sent or the response cannot be read
- `InterruptedException`: if the thread is interrupted while waiting for the response

### recent [#recent]

```java
public JsonNode recent(
        Map<String, ?> query,
        RequestOptions options) throws IOException, InterruptedException
```

Lists recent out-of-bed notifications (`GET /v1/slim/notifications/recent/oob`).

**Parameters:**

- `query`: query parameters; `null` values are skipped
- `options`: per-request options, such as the timeout

**Returns:** the response body

**Throws:**

- `IOException`: if the request cannot be sent or the response cannot be read
- `InterruptedException`: if the thread is interrupted while waiting for the response
