JTwitterStatuses::getUserTimeline
Method to retrieve the latest statuses from the specified user timeline.
Signature
public function getUserTimeline(mixed
$user,
[integer
$count = 20,
[boolean
$include_rts = null,
[boolean
$no_replies = null,
[integer
$since_id = 0,
[integer
$max_id = 0,
[boolean
$trim_user = null,
[boolean
$contributor = null]]]]]]] )
Parameters
-
$user
- Either an integer containing the user ID or a string containing the screen name.
-
$count
- Specifies the number of tweets to try and retrieve, up to a maximum of 200. Retweets are always included
-
$include_rts
- When set to true, the timeline will contain native retweets in addition to the standard stream of tweets.
-
$no_replies
- This parameter will prevent replies from appearing in the returned timeline. This parameter is only supported
-
$since_id
- Returns results with an ID greater than (that is, more recent than) the specified ID.
-
$max_id
- Returns results with an ID less than (that is, older than) the specified ID.
-
$trim_user
- When set to true, each tweet returned in a timeline will include a user object including only
-
$contributor
- This parameter enhances the contributors element of the status response to include the screen_name of the
Returns
- array
- The decoded JSON response
Errors/Exceptions
-
RuntimeException