Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smsManager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
smsManager
Commits
4ee4328f
Commit
4ee4328f
authored
Jun 17, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mejora realizada a la lectura de parametros del envio de sms
parent
848790b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/AppBundle/Model/Sms.php
src/AppBundle/Model/Sms.php
+4
-4
No files found.
src/AppBundle/Model/Sms.php
View file @
4ee4328f
...
...
@@ -65,11 +65,11 @@ class Sms extends BaseSms
$post
[
'to'
]
=
array
(
$movil
);
$post
[
'text'
]
=
$mensaje
;
$post
[
'from'
]
=
'McAfee'
;
$user
=
'GearLabs'
;
$password
=
'XCrk02@#'
;
$post
[
'from'
]
=
Utiles
::
getParametroConfiguracion
(
"from_sms"
)
;
$user
=
Utiles
::
getParametroConfiguracion
(
'usuario_sms'
)
;
$password
=
Utiles
::
getParametroConfiguracion
(
"pass_sms"
)
;
$ch
=
curl_init
();
curl_setopt
(
$ch
,
CURLOPT_URL
,
"https://sms.teltech.ai/Api/rest/message"
);
curl_setopt
(
$ch
,
CURLOPT_URL
,
Utiles
::
getParametroConfiguracion
(
"url_sms"
)
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
);
curl_setopt
(
$ch
,
CURLOPT_POST
,
1
);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
json_encode
(
$post
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment