Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-integrator
Commits
10ba077c
Verified
Commit
10ba077c
authored
1 month ago
by
dockx thibault
Browse files
Options
Download
Patches
Plain Diff
Feat(webservice) - adds exec methods
Allowing generic call to exec curl
parent
1a9cb56a
dev
1 merge request
!55
Resolve "[Integrator] - Rest library - update to allow easy trigger of archiving objects"
Pipeline
#32389
failed with stages
in 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/FusionDirectory/Rest/WebServiceCall.php
+17
-0
src/FusionDirectory/Rest/WebServiceCall.php
with
17 additions
and
0 deletions
+17
-0
src/FusionDirectory/Rest/WebServiceCall.php
+
17
−
0
View file @
10ba077c
...
@@ -198,5 +198,22 @@ class WebServiceCall
...
@@ -198,5 +198,22 @@ class WebServiceCall
curl_close
(
$this
->
ch
);
curl_close
(
$this
->
ch
);
return
$response
;
return
$response
;
}
}
/**
* @return array
* @throws Exception
*/
public
function
execute
():
array
{
$this
->
setCurlSettings
();
$response
=
curl_exec
(
$this
->
ch
);
$this
->
handleCurlError
(
$this
->
ch
);
$decoded
=
json_decode
(
$response
,
true
);
curl_close
(
$this
->
ch
);
return
$decoded
;
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets