PHP code example of faulkj / boclient
1. Go to this page and download the library: Download faulkj/boclient 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/ */
faulkj / boclient example snippets
$bo = new BOClient(
new WebClient("https://my.host.com"),
"username",
"password"
);
if($this->bo->authenticate()) {
$list = [];
if($lst = $bo->query("raylight/v1/universes", [
"qs" => "limit=$limit&offset=$offset"
])) {
$t = simplexml_load_string($lst);
foreach ($t->universe as $u) {
$uid = (int) $u->id;
echo $uid;
}
}
$bo->logoff();
}