PHP code example of userhub / sdk
1. Go to this page and download the library: Download userhub/sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
userhub / sdk example snippets
serHub\AdminApi;
$adminApi = new AdminApi('userhub_admin_123...');
$res = $adminApi->users->list(pageSize: 5);
foreach ($res->users as $user) {
echo $user->id.' '.$user->displayName.PHP_EOL;
}