Skip to content

Commit

Permalink
Merge pull request #19 from codelathe/feature/adding_logoutprofile
Browse files Browse the repository at this point in the history
[CloudAPI] "logoutprofile" Call Implementation
  • Loading branch information
wwsh authored Mar 24, 2020
2 parents a19c4df + cbe9954 commit ed45c85
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions fccloudapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -7511,5 +7525,3 @@ public function getEffectivePolicyForUser($username)

}
}

?>

0 comments on commit ed45c85

Please sign in to comment.