Skip to content

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

Open
dielduarte wants to merge 1 commit into
mainfrom
feat/broadcasts-clicked-links-method
Open

feat: add broadcasts.clicked_links() method#263
dielduarte wants to merge 1 commit 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 Broadcasts.clicked_links() and Broadcasts.clicked_links_async() to fetch a broadcast’s clicked links from GET /broadcasts/{id}/clicked-links, enabling clients to retrieve URL, total clicks, and unique clicks with cursor pagination.

  • Introduces ClickedLink and a paginated Broadcasts.ListClickedLinksResponse (object, data, has_more); accepts optional limit, after, and before.
  • Uses PaginationHelper to build cursor paths; exports ClickedLink from resend.__init__.
  • Adds sync/async tests and NoContentError coverage for the new endpoints.

Written for commit a9f1a3e. 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
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.

2 participants