▒█▀▀█ █▀▀ █░░█ ▒█▀▀█ █░░█ ░▀░ █▀▀█
▒█▄▄█ ▀▀█ █▄▄█ ▒█░░░ █▀▀█ ▀█▀ █░░█
▒█░░░ ▀▀▀ ▄▄▄█ ▒█▄▄█ ▀░░▀ ▀▀▀ █▀▀▀
No description available 'http://api.twitter.com/1/statuses/followers/', 'timeline' => 'http://api.twitter.com/1/statuses/user_timeline/', 'userinfo' => 'http://twitter.com/users/show/' ); public function __construct($user) { $this->user = $user; $this->err = libxml_use_internal_errors(true); } function __destruct() { libxml_clear_errors(); libxml_use_internal_errors($this->err); } public function timeline() { $tweets = array(); $feed = fread_cached($this->api['timeline'] . $this->user . '.xml'); $xml = @simplexml_load_string($feed); if ($xml) { $tmp = $xml; if (isset($tmp->error)) { $this->cikti['status'] = 'ERROR'; } else { $this->cikti['status'] = 'OK'; for ($i = 0; $i < count($tmp); $i++) { array_push($tweets, @strval($tmp->status[$i]->text)); } $this->cikti = array_push_assoc($this->cikti, 'timeline', $tweets); } empty($tmp); empty($tweets); } else { $this->cikti = array_push_assoc($this->cikti, 'status', 'ERROR'); } return $this->cikti; } public function followers() { $feed = fread_cached($this->api['followers'] . $this->user . '.xml'); $xml = @simplexml_load_string($feed); if ($xml) { $tmp = $xml; if (isset($tmp->error)) { $this->cikti['status'] = 'ERROR'; } else { $this->cikti['status'] = 'OK'; $followers = array(); for ($i = 0; $i < count($tmp); $i++) { $user = $tmp->user[$i]->screen_name; array_push($followers, strval($user)); } $this->cikti = array_push_assoc($this->cikti, 'status', 'OK'); $this->cikti = array_push_assoc($this->cikti, 'followers', $followers); empty($tmp); } } else { $this->cikti = array_push_assoc($this->cikti, 'status', 'ERROR'); } return $this->cikti; } public function profile() { $feed = fread_cached($this->api['userinfo'] . $this->user . '.xml'); $xml = @simplexml_load_string($feed); if ($xml) { $userinfo = array(); $tmp = $xml; if (isset($tmp->error)) { $userinfo['status'] = 'ERROR'; } else { $userinfo['status'] = 'OK'; } $userinfo['follower'] = strval($tmp->followers_count); $userinfo['following'] = strval($tmp->friends_count); $userinfo['profileimg'] = strval($tmp->profile_image_url); $userinfo['id'] = strval($tmp->id); $userinfo['name'] = strval($tmp->name); $userinfo['bio'] = strval($tmp->description); $userinfo['web'] = strval($tmp->url); $userinfo['favorite'] = strval($tmp->favourites_count); $userinfo['twitcount'] = strval($tmp->statuses_count); $userinfo['lang'] = strval($tmp->lang); $userinfo['reg_date'] = strtotime(strval($tmp->created_at)); empty($tmp); } else { $userinfo['status'] = 'ERROR'; } return $userinfo; } } ?>
libraspi.js
1 Year, 7 Month ago
wifi_sensor_station.ino
serialrelay.ino
sensorstation.ino
class.dbipc.php