/** * Fetches Tweets of a user * * @return array */ public function fetchTweets() { $url = sprintf(self::statusurl, $this->getAccount()); $code = $this->http->fetch($url); $json = json_decode($code, true); return $json; }
/** * Fetches Profile of a user * * @return array */ public function fetchSensioProfile($profile) { $url = sprintf(self::PROFILEURL, $profile); $code = $this->http->fetch($url); $json = json_decode($code, true); return $json; }