Bitrix24\Bitrix24::getAvailableMethods PHP Method

getAvailableMethods() public method

Get list of all methods available for current application
public getAvailableMethods ( array $applicationScope = [], boolean $isFull = false ) : array
$applicationScope array
$isFull boolean
return array
    public function getAvailableMethods(array $applicationScope = array(), $isFull = false)
    {
        $accessToken = $this->getAccessToken();
        $domain = $this->getDomain();
        if (null === $domain) {
            throw new Bitrix24Exception('domain not found, you must call setDomain method before');
        } elseif (null === $accessToken) {
            throw new Bitrix24Exception('application id not found, you must call setAccessToken method before');
        }
        $showAll = '';
        if (true === $isFull) {
            $showAll = '&full=true';
        }
        $scope = '';
        if (null === $applicationScope) {
            $scope = '&scope';
        } elseif (count(array_unique($applicationScope)) > 0) {
            $scope = '&scope=' . implode(',', array_map('urlencode', array_unique($applicationScope)));
        }
        $url = 'https://' . $domain . '/rest/methods.json?auth=' . $accessToken . $showAll . $scope;
        return $this->executeRequest($url);
    }