feat: add BroadcastClickedLinksAsync() method - #147
Conversation
klotty
left a comment
There was a problem hiding this comment.
No issues found across 5 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds the BroadcastClickedLinksAsync method to retrieve click statistics for a broadcast. The change includes the data model, client implementation, and unit tests, following established SDK patterns.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Dismissed because Cubic found issues in a newer review.
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds broadcast click tracking to the SDK and CLI. This introduces a breaking change to the IResend interface and new public API surface area that requires human architectural sign-off.
Re-trigger cubic
Adds
GET /broadcasts/{id}/clicked-links— paginated list of a broadcast's clicked links (url,clicks,unique_clicks).Spec: resend/resend-openapi#95
Reference implementation: resend/resend-node#1077
Summary by cubic
Adds
BroadcastClickedLinksAsync(),GET /broadcasts/{id}/clicked-links, and abroadcast clicked-linksCLI command to fetch a broadcast’s per-link click aggregates with cursor pagination. Previously, clients couldn’t retrieve per-link clicks; now they can readurl,clicks, andunique_clickswithout affecting delivery or tracking.BroadcastClickedLink; itsidis an opaque cursor for pagination, not a stable identifier.PaginatedQuery(limit,before,after); returnsPaginatedResult<BroadcastClickedLink>.resend broadcast clicked-links <broadcastId> [-l|--limit N] [-b|--before CURSOR] [-a|--after CURSOR] [--json]; escapes console markup in URLs for safe rendering.IResend, addBroadcastClickedLinksAsync()to your implementation.Written for commit bf84407. Summary will update on new commits.