|
@@ 1178-1189 (lines=12) @@
|
| 1175 |
|
* @param string [optional] $screenName Specfies the screen name of the user for whom to return results for. Helpful for disambiguating when a valid screen name is also a user ID. |
| 1176 |
|
* @param int [optional] $cursor Breaks the results into pages. This is recommended for users who are following many users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list. |
| 1177 |
|
*/ |
| 1178 |
|
public function statusesFriends($id = null, $userId = null, $screenName = null, $cursor = null) |
| 1179 |
|
{ |
| 1180 |
|
// build parameters |
| 1181 |
|
$parameters = array(); |
| 1182 |
|
if ($id != null) $parameters['id'] = (string)$id; |
| 1183 |
|
if ($userId != null) $parameters['user_id'] = (string)$userId; |
| 1184 |
|
if ($screenName != null) $parameters['screen_name'] = (string)$screenName; |
| 1185 |
|
if ($cursor != null) $parameters['cursor'] = (int)$cursor; |
| 1186 |
|
|
| 1187 |
|
// make the call |
| 1188 |
|
return (array)$this->doCall('statuses/friends.json', $parameters); |
| 1189 |
|
} |
| 1190 |
|
|
| 1191 |
|
/** |
| 1192 |
|
* Returns the authenticating user's followers, each with current status inline. They are ordered by the order in which they followed the user, 100 at a time. (Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out.) |
|
@@ 1201-1212 (lines=12) @@
|
| 1198 |
|
* @param string [optional] $screenName Specfies the screen name of the user for whom to return results for. Helpful for disambiguating when a valid screen name is also a user ID. |
| 1199 |
|
* @param int [optional] $cursor Breaks the results into pages. This is recommended for users who are following many users. Provide a value of -1 to begin paging. Provide values as returned to in the response body's next_cursor and previous_cursor attributes to page back and forth in the list. |
| 1200 |
|
*/ |
| 1201 |
|
public function statusesFollowers($id = null, $userId = null, $screenName = null, $cursor = null) |
| 1202 |
|
{ |
| 1203 |
|
// build parameters |
| 1204 |
|
$parameters = array(); |
| 1205 |
|
if ($id != null) $parameters['id'] = (string)$id; |
| 1206 |
|
if ($userId != null) $parameters['user_id'] = (string)$userId; |
| 1207 |
|
if ($screenName != null) $parameters['screen_name'] = (string)$screenName; |
| 1208 |
|
if ($cursor != null) $parameters['cursor'] = (int)$cursor; |
| 1209 |
|
|
| 1210 |
|
// make the call |
| 1211 |
|
return (array)$this->doCall('statuses/followers.json', $parameters); |
| 1212 |
|
} |
| 1213 |
|
|
| 1214 |
|
|
| 1215 |
|
// Trends resources |