From 29685b02cefab6f13795226e78701a4b279ee736 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 5 Dec 2023 03:50:24 +0200 Subject: [PATCH] add kevaListNamespaces method --- src/Client.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/Client.php b/src/Client.php index 1969169..a20f203 100644 --- a/src/Client.php +++ b/src/Client.php @@ -270,4 +270,28 @@ class Client return null; } + + public function kevaListNamespaces(): ?array + { + $this->_id++; + + $this->_prepare( + '', + 'POST', + [ + 'method' => 'keva_list_namespaces', + 'params' => [], + 'id' => $this->_id + ] + ); + + $response = $this->_execute(); + + if (!empty($response['result']) && is_array($response['result'])) + { + return $response['result']; + } + + return null; + } }