Skip to content

Commit ed45c85

Browse files
authored
Merge pull request #19 from codelathe/feature/adding_logoutprofile
[CloudAPI] "logoutprofile" Call Implementation
2 parents a19c4df + cbe9954 commit ed45c85

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

fccloudapi.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5061,6 +5061,20 @@ public function getfilelistforshare($path, $start = "", $limit = "", $sortby , $
50615061
}
50625062
return NULL;
50635063
}
5064+
5065+
public function logoutProfile()
5066+
{
5067+
$this->startTimer();
5068+
$url = $this->server_url . '/core/?op=logoutprofile';
5069+
$postdata = '';
5070+
$buffer = $this->doPOST($url, $postdata);
5071+
$this->xsrf_token = '';
5072+
$collection = new Collection($buffer, 'command', CommandRecord::class);
5073+
$this->stopTimer();
5074+
if ($collection->getNumberOfRecords() > 0)
5075+
return $collection->getRecords()[0];
5076+
return NULL;
5077+
}
50645078
}
50655079

50665080
class CloudAdminAPI extends APICore
@@ -7511,5 +7525,3 @@ public function getEffectivePolicyForUser($username)
75117525

75127526
}
75137527
}
7514-
7515-
?>

0 commit comments

Comments
 (0)