Skip to content

feat: add broadcasts.clickedLinks() endpoint - #143

Merged
jayanratna merged 1 commit into
mainfrom
feat/broadcasts-clicked-links-method
Aug 25, 2026
Merged

feat: add broadcasts.clickedLinks() endpoint#143
jayanratna merged 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 GET /broadcasts/{id}/clicked-links and $client->broadcasts->clickedLinks->list() to fetch a broadcast’s clicked URLs with total and unique click counts. Previously the SDK had no way to retrieve link click stats for broadcasts; this enables paginated reporting without breaking existing behavior.

  • Introduces Resend\Broadcasts\ClickedLink resource and registers the 'broadcast-clicked-links' mapping in Service for collection hydration.
  • Adds Resend\Service\Broadcasts\ClickedLink::list(string $broadcastId, array $options = []) supporting limit, before, and after.
  • Populates Broadcast::$clickedLinks by constructing the service in Broadcast::__construct.
  • Returns Collection<Resend\Broadcasts\ClickedLink> where id is an opaque pagination cursor; do not treat it as an entity identifier.
  • Tests cover basic listing and pagination; no migrations or breaking changes.

Written for commit b945ef3. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 6 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread src/Service/Broadcast.php
@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
@jayanratna
jayanratna merged commit 71f3a1f into main Aug 25, 2026
8 checks passed
@jayanratna
jayanratna deleted the feat/broadcasts-clicked-links-method branch August 25, 2026 09:55
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