Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

# [Unreleased]
- Reports: Added new Reports API client covering synchronous records retrieval (`getRecords`), asynchronous report creation (`createReport`), report status polling (`getReport`), report cancellation (`cancelReport`), and report download (`downloadReport`)

# [9.10.2]
- HTTP: Fixed stale pooled connection reuse by adding connection TTL, idle/expired eviction and inactivity validation to reduce intermittent `Connection reset` errors when reusing long-lived `VonageClient` instances

Expand Down
13 changes: 13 additions & 0 deletions src/main/java/com/vonage/client/VonageClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.vonage.client.conversations.ConversationsClient;
import com.vonage.client.identityinsights.IdentityInsightsClient;
import com.vonage.client.conversion.ConversionClient;
import com.vonage.client.reports.ReportsClient;
import com.vonage.client.insight.InsightClient;
import com.vonage.client.messages.MessagesClient;
import com.vonage.client.numbers.NumbersClient;
Expand Down Expand Up @@ -85,6 +86,7 @@ public class VonageClient {
private final SimSwapClient simSwap;
private final NumberVerificationClient numberVerification;
private final IdentityInsightsClient identityInsights;
private final ReportsClient reports;

/**
* Constructor which uses the builder pattern for instantiation.
Expand Down Expand Up @@ -114,6 +116,7 @@ private VonageClient(Builder builder) {
simSwap = new SimSwapClient(httpWrapper);
numberVerification = new NumberVerificationClient(httpWrapper);
identityInsights = new IdentityInsightsClient(httpWrapper);
reports = new ReportsClient(httpWrapper);
}

/**
Expand Down Expand Up @@ -329,6 +332,16 @@ public IdentityInsightsClient getIdentityInsightsClient() {
return identityInsights;
}

/**
* Returns the Reports API client.
*
* @return The {@linkplain ReportsClient}.
* @since 9.9.0
*/
public ReportsClient getReportsClient() {
return reports;
}

/**
* Generate a JWT for the application the client has been configured with.
*
Expand Down
Loading
Loading