Commit 982846a9 authored by Kulya's avatar Kulya 😊

Begin adding Client to Billz 12

parent 909d8faa
...@@ -199,8 +199,17 @@ require_once (__DIR__.'/keys.php'); ...@@ -199,8 +199,17 @@ require_once (__DIR__.'/keys.php');
'method' => $method, 'method' => $method,
'params' => $params, 'params' => $params,
]; ];
$sendData = json_encode($arData); if($method=="client.create"){
$sendData = '{"jsonrpc":"2.0","method":"client.create","params":{"phone":"998931830000","firstName":"Ivan","lastName":"Petrov","gender":1,"birthDate":"1999-01-17"},"id":"1"}';
static::setLog( $sendData, 'billzTest' );
}
else {
$sendData = json_encode($arData);
static::setLog( $sendData, 'billzTest' );
}
$result["params"] = $sendData; $result["params"] = $sendData;
$result["url"] = $url; $result["url"] = $url;
// ob_start(); // ob_start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment