2023-06-04 14:23:51 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require 'ncc';
|
|
|
|
|
|
|
|
import('net.nosial.federationlib');
|
|
|
|
$federationlib = new \FederationLib\FederationLib();
|
|
|
|
|
2023-06-20 17:28:01 -04:00
|
|
|
$client = new \FederationLib\Objects\ClientRecord();
|
2023-06-04 14:23:51 -04:00
|
|
|
$client->setDescription('This is a test client generated by a test script.');
|
|
|
|
|
|
|
|
$uuid = $federationlib->getClientManager()->registerClient($client);
|
|
|
|
|
|
|
|
print(sprintf('Client UUID: %s', $uuid) . PHP_EOL);
|
|
|
|
exit(0);
|