Support emails_to_identify and phone_numbers_to_identify in identify_users#70
Open
eligordon wants to merge 1 commit intojonallured:mainfrom
Open
Support emails_to_identify and phone_numbers_to_identify in identify_users#70eligordon wants to merge 1 commit intojonallured:mainfrom
eligordon wants to merge 1 commit intojonallured:mainfrom
Conversation
…users The Braze /users/identify endpoint accepts three identifier types: aliases_to_identify, emails_to_identify, and phone_numbers_to_identify. Previously only aliases_to_identify was supported. This adds support for the email and phone number identifier types, which are used to merge email-only or phone-number-only profiles into identified users. See: https://www.braze.com/docs/api/endpoints/user_data/post_user_identify/ Made-with: Cursor
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.
Summary
The Braze
/users/identifyendpoint accepts three identifier types:aliases_to_identify— identify by user aliasemails_to_identify— identify by email address (requiresprioritization)phone_numbers_to_identify— identify by phone number (requiresprioritization)Previously only
aliases_to_identifywas supported. This PR adds support for the email and phone number identifier types, which are used to merge email-only or phone-number-only user profiles into identified users with anexternal_id.Changes
lib/braze_ruby/rest/identify_users.rb— Accept all three identifier keyword arguments and only include non-empty arrays in the POST payloadspec/braze_ruby/rest/identify_users_spec.rb— Add specs for each identifier type, mixed types, and empty defaultsREADME.md— Document email and phone number identification examplesCHANGELOG.md— Add entry under UnreleasedUsage