Refactor Api transport to use Guzzle (and new variables syntax) (#10070)

* Allow new {{ $xxxx }} syntax

* Properly handle urlencode on variable values without braking the URL, and uses Blades

* Doc
Doc typo

* use Guzzle for HTTP requests

* Add Basic auth support

* Doc update

* clean

* Revert Blades, but keep the {{ $xxxx }} syntax

* Revert Blades, but keep the {{ $xxxx }} syntax

* Init Vars and comments

* Notifications

* api-options are not required

* Update notifications.rss
This commit is contained in:
PipoCanaja
2019-07-04 17:55:29 +02:00
committed by Neil Lathwood
parent fce185b55c
commit 55f67f42fe
4 changed files with 85 additions and 51 deletions

View File

@@ -65,7 +65,9 @@ foreach (dbFetchRows($query) as $transport) {
}
$val = $transport_config[$item['name']];
if ($item['type'] == 'password') {
$val = '<b>&bull;&bull;&bull;&bull;&bull;&bull;&bull;&bull;</b>';
}
// Match value to key name for select inputs
if ($item['type'] == 'select') {
$val = array_search($val, $item['options']);