Rev 568 |
Go to most recent revision |
Blame |
Last modification |
View Log
| RSS feed
<?php
// This is an example script that shows how you can insert an OID
// (in this example "2.999.123") using an authenticated AJAX query ("RPC"-like)
"plugin" => "1.3.6.1.4.1.37476.2.5.2.4.1.0", // OID of plugin "publicPages/000_objects"
"action" => "Insert",
"parent" => "oid:2.999",
"id" => 123,
"ra_email" => "test@example.com",
"comment" => "",
"asn1ids" => "aaa,bbb,ccc",
"iris" => "",
"confidential" => 0,
"weid" => "",
"OIDPLUS_AUTH_JWT" => "<token>"
);
}
if (!$json) {
die("Invalid JSON data $res");
}
if (isset($json['error'])) {
die($json['error']."\n");
} else if ($json['status'] == 0/*OK*/) {
} else if ($json['status'] == 1/*RaNotExisting*/) {
} else if ($json['status'] == 2/*RaNotExistingNoInvitation*/) {
} else {
}
?>