Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 1956604e
authored
2022-12-13 13:27:48 +0530
by
jay
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sms api changes
1 parent
21db1a8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
src/api/end-user/controllers/end-user.js
src/api/end-user/services/end-user.js
src/api/end-user/controllers/end-user.js
View file @
1956604
...
@@ -205,16 +205,16 @@ module.exports = factories.createCoreController(
...
@@ -205,16 +205,16 @@ module.exports = factories.createCoreController(
);
);
ctx
.
request
.
body
.
data
.
httpSMSRequestHeaders
=
JSON
.
stringify
(
ctx
.
request
.
body
.
data
.
httpSMSRequestHeaders
=
JSON
.
stringify
(
spretoOTP
.
sperto
Email
Response
.
headers
spretoOTP
.
sperto
SMS
Response
.
headers
);
);
ctx
.
request
.
body
.
data
.
httpSMSRequestMethod
=
ctx
.
request
.
body
.
data
.
httpSMSRequestMethod
=
spretoOTP
.
sperto
Email
Response
.
config
.
method
;
spretoOTP
.
sperto
SMS
Response
.
config
.
method
;
ctx
.
request
.
body
.
data
.
httpSMSRequestUrl
=
ctx
.
request
.
body
.
data
.
httpSMSRequestUrl
=
spretoOTP
.
sperto
Email
Response
.
config
.
url
;
spretoOTP
.
sperto
SMS
Response
.
config
.
url
;
ctx
.
request
.
body
.
data
.
httpsSMSRequestBody
=
ctx
.
request
.
body
.
data
.
httpsSMSRequestBody
=
spretoOTP
.
sperto
Email
Response
.
config
.
data
;
spretoOTP
.
sperto
SMS
Response
.
config
.
data
;
ctx
.
request
.
body
.
data
.
httpSMSResposneBody
=
JSON
.
stringify
(
ctx
.
request
.
body
.
data
.
httpSMSResposneBody
=
JSON
.
stringify
(
spretoOTP
.
sperto
Email
Response
.
data
spretoOTP
.
sperto
SMS
Response
.
data
);
);
ctx
.
request
.
body
.
data
.
thirdPartyApiError
=
false
;
ctx
.
request
.
body
.
data
.
thirdPartyApiError
=
false
;
...
...
src/api/end-user/services/end-user.js
View file @
1956604
...
@@ -120,3 +120,5 @@ module.exports = createCoreService(
...
@@ -120,3 +120,5 @@ module.exports = createCoreService(
// // }})
// // }})
// })
// })
// );
// );
// http://vas.themultimedia.in/domestic/sendsms/bulksms.php?username=OSAPI&password=os123456&type=TEXT&sender=HROTPs&entityId=1101407690000029629&templateId=1507166789848358346&mobile=${data.mobileNo}&message=Dear%20${data.fullName}%0AYour%20OTP%20for%20Hiranandani%20Exclusive%20website%20login%20is%20${data.emailToSend.oneTimePassword}%0AValid%20for%2010%20minute%20Please%20do%20not%20share%20this%20OTP.%0ARegards%2C%0AHiranandani%20Team.
\ No newline at end of file
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment