• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/twitter.php
  • Класс: CTwitterInterface
  • Вызов: CTwitterInterface::SetOauthKeys
public function SetOauthKeys($socServUserId)
{
	$dbSocservUser = BitrixSocialservicesUserTable::getList([
		'filter' => ['=ID' => $socServUserId],
		'select' => ["OATOKEN", "OASECRET"]
	]);
	while($arOauth = $dbSocservUser->fetch())
	{
		$this->token = $arOauth["OATOKEN"];
		$this->tokenSecret = $arOauth["OASECRET"];
	}
	if(!$this->token || !$this->tokenSecret)
		return false;
	return true;
}