From cbe99547a813eff1d0db9fcad972b30d55ebfd9b Mon Sep 17 00:00:00 2001 From: Thomas Parys Date: Tue, 24 Mar 2020 18:31:46 +0100 Subject: [PATCH] [CloudAPI] "logoutprofile" Call Implementation - adding logoutprofile support --- fccloudapi.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/fccloudapi.php b/fccloudapi.php index f40c30e..cefd824 100644 --- a/fccloudapi.php +++ b/fccloudapi.php @@ -5061,6 +5061,20 @@ public function getfilelistforshare($path, $start = "", $limit = "", $sortby , $ } return NULL; } + + public function logoutProfile() + { + $this->startTimer(); + $url = $this->server_url . '/core/?op=logoutprofile'; + $postdata = ''; + $buffer = $this->doPOST($url, $postdata); + $this->xsrf_token = ''; + $collection = new Collection($buffer, 'command', CommandRecord::class); + $this->stopTimer(); + if ($collection->getNumberOfRecords() > 0) + return $collection->getRecords()[0]; + return NULL; + } } class CloudAdminAPI extends APICore @@ -7511,5 +7525,3 @@ public function getEffectivePolicyForUser($username) } } - -?> \ No newline at end of file