feat: add broadcasts->cancel() method
Merged
DI
2mo ago+24+24+01234567890123456789-1-1-0123456789
Summary
- Adds
Broadcast::cancel($id), callingPOST /broadcasts/:id/cancelvia the sharedPayload::cancel()helper (already used byEmail::cancel()).
Part of the broadcast cancel rollout: resend/resend-monorepo#8126, resend/resend-openapi#85, resend/resend-node#1059, resend/resend-docs#1722, resend/resend-go#144, resend/resend-java#122.
Test plan
-
vendor/bin/pestโ 183/183 passing, including the newcan cancel a broadcast resourcecase -
php -lon touched files โ clean
๐ค Generated with Claude Code
Summary by cubic
Add support to cancel a queued or scheduled broadcast via Broadcast::cancel($id) (POST /broadcasts/:id/cancel), mirroring Email::cancel(). Bumps SDK version to 1.8.0.
-
New Features
- Added
Broadcast::cancel($id)using the sharedPayload::cancel()helper; returns aBroadcastresource. - Added test and PHPDoc for
Broadcast::cancel().
- Added
-
Dependencies
- Bumped SDK version to
1.8.0.
- Bumped SDK version to