32 lines
522 B
PHP
32 lines
522 B
PHP
<?php
|
|
|
|
require_once 'SASConnector.php';
|
|
|
|
$api = new SASConnector('172.16.12.108', 'admin', 'admin');
|
|
|
|
$api->login();
|
|
|
|
$res = $api->post('user/activate', [
|
|
"method" => "credit",
|
|
"pin" => "",
|
|
"user_id" => "2850",
|
|
"money_collected" => 1,
|
|
"comments" => null,
|
|
"user_price" => 55000,
|
|
"issue_invoice" => 0,
|
|
"activation_units" => 1
|
|
]);
|
|
|
|
print_r(json_decode($res));
|
|
|
|
|
|
|
|
//this is the expected response
|
|
//stdClass Object
|
|
//(
|
|
// [status] => 200
|
|
// [message] => rsp_success
|
|
//[invoice_id] =>
|
|
//)
|
|
|