oAuthGet($url); $twitter_user = json_decode($response); return $twitter_user; } function statuses_update($status, $in_reply_to_status_id = null) { $url = 'https://twitter.com/statuses/update.json'; $params = array('status' => $status, 'in_reply_to_status_id' => $in_reply_to_status_id); $response = $this->oAuthPost($url, $params); $status = json_decode($response); return $status; } function statuses_friends_timeline($since_id = null, $max_id = null, $cnt = null, $page = null) { $url = 'https://twitter.com/statuses/friends_timeline.json'; $params = array('since_id' => $since_id, 'max_id' => $max_id, 'count' => $cnt, 'page' => $page); $qry = http_build_query($params); if (!empty($qry)) { $url .= "?$qry"; } $response = $this->oAuthGet($url); $statuses = json_decode($response); return $statuses; } }