Index: Twitter/Statuses.php
===================================================================
--- Twitter/Statuses.php (revision 976)
+++ Twitter/Statuses.php (working copy)
@@ -156,6 +156,39 @@
}
/**
+ * Get statuses/mentions
+ *
+ *
+ * @param array $params Parameters array
+ *
+ * @return object Instance of SimpleXMLElement of new status
+ * @throws Services_Twitter_Exception
+ * @see Services_Twitter_Common::sendRequest()
+ */
+ public function mentions(array $params = array())
+ {
+ $allowed = array('since_id', 'page');
+ $tmp = array();
+ foreach ($params as $key => $val) {
+ if (in_array($key, $allowed)) {
+ $tmp[$key] = $val;
+ }
+ }
+
+ $endPoint = '/statuses/mentions';
+
+ $res = $this->sendRequest($endPoint, $tmp);
+ if (!isset($res->status) ||
+ (is_array($res->status) && !count($res->status))) {
+ throw new Services_Twitter_Exception(
+ $this->user . " has no status updates"
+ );
+ }
+
+ return $res;
+ }
+
+ /**
* Returns up to 100 of the user's friends
*
* @param array $params Parameters array