File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ WHATSAPP_STICKER_URL='WHATSAPP_STICKER_URL'
4747
4848# Identity Insights
4949INSIGHT_NUMBER='INSIGHT_NUMBER'
50- IDENTITY_INSIGHTS_PURPOSE='IDENTITY_INSIGHTS_PURPOSE '
50+ SIM_SWAP_PERIOD='SIM_SWAP_PERIOD '
5151IDENTITY_INSIGHTS_API_HOST='api-eu.vonage.com'
5252
5353# NI
Original file line number Diff line number Diff line change 1010VONAGE_APPLICATION_ID = os .environ .get ("VONAGE_APPLICATION_ID" )
1111VONAGE_PRIVATE_KEY = os .environ .get ("VONAGE_PRIVATE_KEY" )
1212INSIGHT_NUMBER = os .environ .get ("INSIGHT_NUMBER" )
13- IDENTITY_INSIGHTS_PURPOSE = os .environ .get ("IDENTITY_INSIGHTS_PURPOSE " )
13+ SIM_SWAP_PERIOD = os .environ .get ("SIM_SWAP_PERIOD " )
1414IDENTITY_INSIGHTS_API_HOST = os .environ .get ("IDENTITY_INSIGHTS_API_HOST" )
1515
1616from vonage import Auth , HttpClientOptions , Vonage
3131
3232request = IdentityInsightsRequest (
3333 phone_number = INSIGHT_NUMBER ,
34- purpose = IDENTITY_INSIGHTS_PURPOSE ,
35- insights = InsightsRequest (sim_swap = SimSwapInsight (period = 240 )),
34+ purpose = 'FraudPreventionAndDetection' ,
35+ insights = InsightsRequest (sim_swap = SimSwapInsight (period = SIM_SWAP_PERIOD )),
3636)
3737
3838response : IdentityInsightsResponse = client .identity_insights .requests (request )
You can’t perform that action at this time.
0 commit comments