• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/twitter.php
  • Класс: CTwitterInterface
  • Вызов: CTwitterInterface::GetAllPagesNotAuth
private function GetAllPagesNotAuth($arResult)
{
	static $arTwits = array();
	if(!isset($arResult["next_page"]) || $arResult["page"] == 15 || intval($arResult["page"]) < 1)
		return $arTwits;
	$result = CHTTP::sGet(self::SEARCH_URL.$arResult["next_page"]);
	if(!defined("BX_UTF"))
		$result = CharsetConverter::ConvertCharset($result, "utf-8", LANG_CHARSET);
	$arResult = CUtil::JsObjectToPhp($result);
	$arTwits = array_merge($arTwits, $arResult["results"]);
	return self::GetAllPages($arResult);
}