• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/office365.php
  • Класс: COffice365OAuthInterface
  • Вызов: COffice365OAuthInterface::GetAuthUrl
public function GetAuthUrl($redirect_uri, $state='')
{
	return static::AUTH_URL.
	"?client_id=".urlencode($this->appID).
	"&redirect_uri=".urlencode($redirect_uri).
	"&response_type=code".
	"&scope=".$this->getScopeEncode().
	"&prompt=select_account".
	($state <> ''? '&state='.urlencode($state):'');
}