示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }