@@ -100,7 +100,7 @@ context = securenative.context_builder(ip = '127.0.0.1', client_token = 'SECURED
100100 headers = { ' user-agent' => ' Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405' })
101101
102102event_options = EventOptionsBuilder (event_type = EventTypes ::LOG_IN ,
103- user_id
= ' 1234' , user_traits
= UserTraits (
' Your Name' ,
' [email protected] ' ),
103+ user_id
= ' 1234' , user_traits
= UserTraits (
' Your Name' ,
' [email protected] ' , ' +1234567890 ' ),
104104 context = context, properties = {prop1 => ' CUSTOM_PARAM_VALUE' , prop2 => true , prop3 => 3 }).build
105105
106106securenative.track(event_options)
@@ -120,7 +120,7 @@ def track(request)
120120 context = SecureNative .context_builder.from_http_request(request).build
121121
122122 event_options = EventOptionsBuilder (event_type = EventTypes ::LOG_IN ,
123- user_id
= ' 1234' , user_traits
= UserTraits (
' Your Name' ,
' [email protected] ' ),
123+ user_id
= ' 1234' , user_traits
= UserTraits (
' Your Name' ,
' [email protected] ' , ' +1234567890 ' ),
124124 context = context, properties = {prop1 => ' CUSTOM_PARAM_VALUE' , prop2 => true , prop3 => 3 }).build
125125
126126 securenative.track(event_options)
@@ -143,7 +143,7 @@ def verify(request)
143143 context = SecureNative .context_builder.from_http_request(request).build
144144
145145 event_options = EventOptionsBuilder (event_type = EventTypes ::LOG_IN ,
146- user_id
= ' 1234' , user_traits
= UserTraits (
' Your Name' ,
' [email protected] ' ),
146+ user_id
= ' 1234' , user_traits
= UserTraits (
' Your Name' ,
' [email protected] ' , ' +1234567890 ' ),
147147 context = context, properties = {prop1 => ' CUSTOM_PARAM_VALUE' , prop2 => true , prop3 => 3 }).build
148148
149149 verify_result = securenative.verify(event_options)
0 commit comments