in lib.php [105:113]
protected function get_unified_apiclient($system = false, $userid = null) {
if ($this->unifiedconfigured === true) {
$token = $this->get_unified_token($system, $userid);
if (!empty($token)) {
return new \local_o365\rest\unified($token, $this->httpclient);
}
}
return false;
}