@@ -8,7 +8,7 @@ def send()
88 properties = {
99 "$user_id" => $user_id,
1010 "$send_to" => $user_email,
11- "$verification_type" => "$email" ,
11+ "$verification_type" => "$email" ,
1212 "$brand_name" => "MyTopBrand" ,
1313 "$language" => "en" ,
1414 "$site_country" => "IN" ,
@@ -29,4 +29,37 @@ def send()
2929 return @@client . verification_send ( properties )
3030 end
3131
32+ def resend ( )
33+ properties = {
34+ "$user_id" => $user_id,
35+ "$send_to" => $user_email,
36+ "$verification_type" => "$email" ,
37+ "$brand_name" => "MyTopBrand" ,
38+ "$language" => "en" ,
39+ "$site_country" => "IN" ,
40+ "$event" => {
41+ "$session_id" => "SOME_SESSION_ID" ,
42+ "$verified_event" => "$login" ,
43+ "$verified_entity_id" => "SOME_SESSION_ID" ,
44+ "$reason" => "$automated_rule" ,
45+ "$ip" => "192.168.1.1" ,
46+ "$browser" => {
47+ "$user_agent" => "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" ,
48+ "$accept_language" => "en-US" ,
49+ "$content_language" => "en-GB"
50+ }
51+ }
52+ }
53+
54+ return @@client . verification_resend ( properties )
55+ end
56+
57+ def check ( )
58+ properties = {
59+ "$user_id" => $user_id,
60+ "$code" => "123456"
61+ }
62+
63+ return @@client . verification_check ( properties )
64+ end
3265end
0 commit comments