protected function get_onedrive_apiclient()

in lib.php [122:130]


    protected function get_onedrive_apiclient($system = false, $userid = null) {
        if ($this->onedriveconfigured === true) {
            $token = $this->get_onedrive_token($system, $userid);
            if (!empty($token)) {
                return new \local_o365\rest\onedrive($token, $this->httpclient);
            }
        }
        return false;
    }