Bitrix24\Bitrix24::getScope PHP Method

getScope() public method

get list of scope for current application from bitrix24 api
public getScope ( boolean $isFull = false ) : array
$isFull boolean
return array
    public function getScope($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';
        }
        $url = 'https://' . $domain . '/rest/scope.json?auth=' . $accessToken . $showAll;
        return $this->executeRequest($url);
    }