mirror of
https://github.com/kevachat/kevacoin-php.git
synced 2025-01-22 04:24:28 +00:00
add kevaFilter method
This commit is contained in:
parent
1266ce29bf
commit
adaa60ad07
@ -239,4 +239,35 @@ class Client
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function kevaFilter(
|
||||
string $namespace,
|
||||
?string $value = null
|
||||
): mixed
|
||||
{
|
||||
$this->_id++;
|
||||
|
||||
$this->_prepare(
|
||||
'',
|
||||
'POST',
|
||||
[
|
||||
'method' => 'keva_filter',
|
||||
'params' =>
|
||||
[
|
||||
$namespace,
|
||||
$value
|
||||
],
|
||||
'id' => $this->_id
|
||||
]
|
||||
);
|
||||
|
||||
$response = $this->_execute();
|
||||
|
||||
if (!empty($response['result']))
|
||||
{
|
||||
return $response['result'];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user