• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/oauth/engine.php
  • Класс: BitrixRestOAuthEngine
  • Вызов: Engine::getClient
public function getClient()
{
	if(!$this->client)
	{
		$this->client = new Client(
			$this->getClientId(),
			$this->getClientSecret(),
			$this->getLicense()
		);
	}

	return $this->client;
}