Conversation
added 12 commits
January 15, 2026 11:05
DELETE operations: expect 200
UPDATE operations: expect 200
CREATE operations: expect 201
UPDATE calls must include message_template and sender_id (and other required fields if needed)
Status code reference:
201: Created (POST /campaigns)
200: OK (GET, PUT, DELETE, POST /campaigns/{id}/start, POST /campaigns/{id}/stop, POST /campaigns/query)
nijeesh-stream
approved these changes
Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Campaign Feature Support to Ruby SDK
Summary
This PR adds complete campaign feature support to the stream-chat-ruby SDK, matching the Python SDK implementation. All 7 backend campaign routes are now fully implemented and tested.
Backend Routes Implemented
POST /campaigns- Create campaignGET /campaigns/{id}- Get campaign by IDPUT /campaigns/{id}- Update campaignDELETE /campaigns/{id}- Delete campaignPOST /campaigns/{id}/start- Start campaign (with optional scheduling)POST /campaigns/{id}/stop- Stop campaignPOST /campaigns/query- Query campaigns with filters and sortingChanges
New Files
lib/stream-chat/campaign.rb- Campaign class following the Channel class patterncreate,get,update,delete,start,stopModified Files
lib/stream-chat/client.rbcampaign()factory methodnormalize_timestampTest Files
spec/campaign_spec.rb- Comprehensive RSpec tests covering:Features
client.campaign()for easy campaign instance creationscheduled_forandstop_atparametersCode Quality
Testing
All campaign tests pass successfully:
Example Usage
Using Campaign class
Using direct client methods
CLA
Description of the pull request