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
dc6faef1
Commit
dc6faef1
authored
Jul 05, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rollback
parent
cc38f3c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/BackendBundle/Controller/EnvioSmsController.php
src/BackendBundle/Controller/EnvioSmsController.php
+6
-6
No files found.
src/BackendBundle/Controller/EnvioSmsController.php
View file @
dc6faef1
...
@@ -153,9 +153,9 @@ class EnvioSmsController extends FOSRestController {
...
@@ -153,9 +153,9 @@ class EnvioSmsController extends FOSRestController {
$messageId
=
$_POST
[
'messageid'
];
$messageId
=
$_POST
[
'messageid'
];
$cloud
=
new
\Aws\CloudWatchLogs\CloudWatchLogsClient
([
$cloud
=
new
\Aws\CloudWatchLogs\CloudWatchLogsClient
([
'region'
=>
'us-east-1'
,
'region'
=>
Utiles
::
getParametroConfiguracion
(
'region'
)
,
'version'
=>
'latest'
,
'version'
=>
Utiles
::
getParametroConfiguracion
(
'version'
)
,
'credentials'
=>
[
'key'
=>
$this
->
container
->
getParameter
(
'amazonkey'
),
'secret'
=>
$this
->
container
->
getParameter
(
'amazonsecret'
)
'credentials'
=>
[
'key'
=>
Utiles
::
getParametroConfiguracion
(
'amazonkey'
),
'secret'
=>
Utiles
::
getParametroConfiguracion
(
'amazonsecret'
)
]]);
]]);
$loggroup
=
$cloud
->
describeLogGroups
([
'logGroupNamePrefix'
=>
'sns'
,
'limit'
=>
10
]);
$loggroup
=
$cloud
->
describeLogGroups
([
'logGroupNamePrefix'
=>
'sns'
,
'limit'
=>
10
]);
...
@@ -167,9 +167,9 @@ class EnvioSmsController extends FOSRestController {
...
@@ -167,9 +167,9 @@ class EnvioSmsController extends FOSRestController {
$val
=
strVal
(
$messageId
);
$val
=
strVal
(
$messageId
);
$cloud2
=
new
\Aws\CloudWatchLogs\CloudWatchLogsClient
([
$cloud2
=
new
\Aws\CloudWatchLogs\CloudWatchLogsClient
([
'region'
=>
'us-east-1'
,
'region'
=>
Utiles
::
getParametroConfiguracion
(
'region'
)
,
'version'
=>
'latest'
,
'version'
=>
Utiles
::
getParametroConfiguracion
(
'version'
)
,
'credentials'
=>
[
'key'
=>
$this
->
container
->
getParameter
(
'amazonkey'
),
'secret'
=>
$this
->
container
->
getParameter
(
'amazonsecret'
)
'credentials'
=>
[
'key'
=>
Utiles
::
getParametroConfiguracion
(
'amazonkey'
),
'secret'
=>
Utiles
::
getParametroConfiguracion
(
'amazonsecret'
)
]]);
]]);
$result
=
$cloud2
->
filterLogEvents
([
$result
=
$cloud2
->
filterLogEvents
([
'filterPattern'
=>
'{ $.notification.messageId = '
.
$val
.
' }'
,
'filterPattern'
=>
'{ $.notification.messageId = '
.
$val
.
' }'
,
...
...
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