/** * Постинг сообщения в твиттер * @param $text * @return Twitter|null * @throws Exception */ public static function post($text) { $onOff = Config::getInstance()->getValue('oAuth', 'postToTwitter'); if (!$onOff) { throw new Exception('Missing oAuth/postToTwitter'); } $requestFields = ['status' => $text]; $twitter = new self(); $twitter->_performRequest($requestFields); return $twitter; }