• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/rest/client/tokenclient.php
  • Класс: BitrixSaleExchangeIntegrationRestClientTokenClient
  • Вызов: TokenClient::refreshAccessToken
protected function refreshAccessToken()
{
	$success = $this->token->refresh(new IntegrationOAuthBitrix24());
	if ($success)
	{
		$this->setAccessToken($this->token->getAccessToken());
		$this->setRefreshToken($this->token->getRefreshToken());
		$this->setEndPoint($this->token->getRestEndpoint());
	}

	return $success;
}