add support for sending transactional in-app messages#129
Merged
avigoldman merged 1 commit intomainfrom Apr 28, 2026
Merged
Conversation
Add SendInAppRequest class and APIClient#send_in_app method for the POST /v1/send/in_app endpoint. Follows the same pattern as the existing inbox message support.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 72d20eb. Configure here.
| Base64.strict_encode64(data) | ||
| end | ||
| end | ||
| end |
There was a problem hiding this comment.
New request class is exact duplicate of existing class
Low Severity
SendInAppRequest is a line-for-line duplicate of SendInboxMessageRequest — identical REQUIRED_FIELDS, OPTIONAL_FIELDS, initialize, invalid_field?, and an unused encode method. If a bug is fixed in one class it could easily be missed in the other. A shared base class or module mixin would eliminate this duplication.
Reviewed by Cursor Bugbot for commit 72d20eb. Configure here.
hownowstephen
approved these changes
Apr 28, 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.


Adds
SendInAppRequestandAPIClient#send_in_appfor thePOST /v1/send/in_appendpoint. Follows the same pattern as the existing inbox message support.Note
Low Risk
Low risk: adds a new
send_in_apprequest type and API client method following existing send patterns, with no changes to existing endpoints or shared request/response handling.Overview
Adds support for transactional in-app sends by introducing
SendInAppRequestand wiringAPIClient#send_in_appto callPOST /v1/send/in_appwith the same success/400/other error handling used by other send endpoints.Updates the gem entrypoint (
lib/customerio.rb) to require the new request type and adds API client specs covering success, validation (400), and server error (5xx) cases forsend_in_app.Reviewed by Cursor Bugbot for commit 72d20eb. Bugbot is set up for automated code reviews on this repo. Configure here.