Skip to content

feat: add broadcasts.clicked_links() method - #263

Merged
dielduarte merged 2 commits into
mainfrom
feat/broadcasts-clicked-links-method
Aug 24, 2026
Merged

feat: add broadcasts.clicked_links() method#263
dielduarte merged 2 commits into
mainfrom
feat/broadcasts-clicked-links-method

Conversation

@dielduarte

@dielduarte dielduarte commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

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 resend.Broadcasts.clicked_links() and clicked_links_async() to list a broadcast’s clicked links from GET /broadcasts/{id}/clicked-links, enabling retrieval of URL, total clicks, and unique clicks with cursor pagination.

  • Defines ClickedLink and Broadcasts.ListClickedLinksResponse (object, data, has_more) with optional limit, after, and before; exports ClickedLink from resend.__init__.
  • Uses PaginationHelper for cursorized paths; adds sync/async tests and NoContentError coverage.
  • Updates examples/broadcasts.py to demonstrate clicked_links usage.

Written for commit 79f56c4. Summary will update on new commits.

Review in cubic

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 sync and async methods to retrieve broadcast link click data, following existing pagination patterns and including comprehensive tests.

Re-trigger cubic

@dielduarte
dielduarte marked this pull request as ready for review August 22, 2026 01:44
@github-actions github-actions Bot added the linear-synced PR has been synced to Linear label Aug 22, 2026

@klotty klotty left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Auto-approved: Adds sync/async Broadcasts.clicked_links() with typed responses, pagination support, tests, and an example; the visible diff shows a bounded, additive SDK wrapper following existing patterns with no remaining product or operational tradeoff.

Re-trigger cubic

@dielduarte
dielduarte merged commit 87440ce into main Aug 24, 2026
20 checks passed
@dielduarte
dielduarte deleted the feat/broadcasts-clicked-links-method branch August 24, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear-synced PR has been synced to Linear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants