14 lines
No EOL
407 B
PHP
14 lines
No EOL
407 B
PHP
<?php
|
|
|
|
require 'ncc';
|
|
|
|
import('net.nosial.federationlib');
|
|
$federationlib = new \FederationLib\FederationLib();
|
|
|
|
$client = new \FederationLib\Objects\ClientRecord();
|
|
$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); |