bin/authentication/authChangeOwnership.php
#!/usr/bin/env php
<?php
require_once __DIR__ . '/../../../../autoload.php';
require_once __DIR__ . '/../../../../detain/myadmin-opensrs-domains/src/openSRS_loader.php';
use opensrs\Request;
$callstring = json_encode(
[
'func' => 'authChangeOwnership', 'attributes' => []
]
);
try {
$request = new Request();
$osrsHandler = $request->process('json', $callstring);
print('In: ' . $callstring . "\n");
print('Out: ' . json_encode(json_decode($osrsHandler->resultFormatted), JSON_PRETTY_PRINT) . "\n");
} catch (\opensrs\Exception $e) {
var_dump($e->getMessage());
}