From e4a396ab2ba5c82838e73032f5a6c6c16f1c1d9a Mon Sep 17 00:00:00 2001 From: Smit Shah Date: Tue, 8 Oct 2024 18:22:45 +0530 Subject: [PATCH] url changes for apis --- blocks/applyloanform/loanformapiurls.js | 30 +++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/blocks/applyloanform/loanformapiurls.js b/blocks/applyloanform/loanformapiurls.js index 1ab131a5dc..c3e27ab640 100644 --- a/blocks/applyloanform/loanformapiurls.js +++ b/blocks/applyloanform/loanformapiurls.js @@ -1,10 +1,32 @@ -const accessTokenURL = "https://mobileapi.pchf.in/api/mobile/access-token"; -const generateOTPURL = "https://mobileapi.pchf.in/api/website/generate-otp"; +// V1 API URL +// const accessTokenURL = "https://mobileapi.pchf.in/api/mobile/access-token"; + +// V2 API URL +const accessTokenURL = "https://campaignapi.piramalfinance.com/api/account/access-token"; + +// V1 API URL +// const generateOTPURL= "https://mobileapi.pchf.in/api/website/generate-otp"; + +// V2 API URL +const generateOTPURL = "https://campaignapi.piramalfinance.com/api/website/generate-otp"; + +// V1 API URL +// const resendOTPUrl = "https://mobileapi.pchf.in/api/website/resend-otp"; + +// V2 API URL +const resendOTPUrl = "https://campaignapi.piramalfinance.com/api/website/resend-otp"; + +// V1 API URL +// const verifyOTPURL = "https://mobileapi.pchf.in/api/website/verify-otp"; + +// V2 API URL +const verifyOTPURL = "https://campaignapi.piramalfinance.com/api/website/verify-otp"; + +// V1 API URL const otpTokenURL = "https://apisit.piramal.com/oauth/v1/cc/accesstoken"; const smsURL = "https://apisit.piramal.com/communication/v2/karix/sms-query?ver=1.0&key=HbUcyrewWm27hdKRZyj2zA%3D%3D&encrypt=0&send=PIRCHF&dest=8007359739&text=Please%20use%20this%20one-time%20password%20for%20Piramal%20User%20Account%20Verification%3A%209106.%20DO%20NOT%20SHARE%20THIS%20WITH%20ANYONE%20and%20it%20is%20valid%20for%205%20minutes%20only"; const leadAPIURL = "https://mobileapi.pchf.in/api/website/insert-lead-data"; -const verifyOTPURL = "https://mobileapi.pchf.in/api/website/verify-otp"; -const resendOTPUrl = "https://mobileapi.pchf.in/api/website/resend-otp"; const getWhatAPIAuthURL = "https://piramal.allincall.in/campaign/external/get-auth-token/"; const getWhatAPIURL = "https://piramal.allincall.in/campaign/external/send-event-based-triggered-whatsapp-campaign/"; + export { accessTokenURL, generateOTPURL, otpTokenURL, smsURL, leadAPIURL, verifyOTPURL, resendOTPUrl, getWhatAPIAuthURL, getWhatAPIURL }; \ No newline at end of file