Twitter Timeline

Timelines are collections of Tweets, ordered with the most recent first.

Figure 1a. Instantiate Timeline
$timeline = eden('twitter')->timeline('[TWITTER_KEY]', '[TWITTER_SECRET]', $_SESSION['access_token'], $_SESSION['access_secret']);
Figure 1b. Usage: Get other Users Timeline
$timeline->getUserTimelines('openovate');
Figure 1c. Usage: Get your Timeline
$timeline->getYourTimeLine();
Figure 1i. Timeline Methods
Method Arguments Returns Description
$timeline->getMentionTimeline(); none array Returns the 20 most recent mentions (status containing @username) for the authenticating user. The timeline returned is the equivalent
of the one seen when you view your mentions on twitter.com.
$timeline->getUserTimelines($id = NULL);
  1. string|integer|null
  2. - user_id or screen_name
array Returns a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.
$timeline->getYourTimeLine(); none array Returns a collection of the most recent Tweets and retweets posted by the authenticating user and the users they follow.
$timeline->setSinceId($sinceId); none Eden_Twitter_Timeline Returns results with an ID greater than (that is, more recent than) the specified ID.
$timeline->setCount($count);
  1. string
Eden_Twitter_Timeline Specifies the number of tweets to try and retrieve, up to a maximum of 200 per distinct request
$timeline->setMaxId($maxId);
  1. string
Eden_Twitter_Timeline Specifies the number of tweets to try and retrieve, up to a maximum of 200 per distinct request
$timeline->trimUser(); none Eden_Twitter_Timeline When set to either true, t or 1, each tweet returned in a timeline will include a user object including only the status authors numerical ID
$timeline->excludeReplies(); none Eden_Twitter_Timeline This parameter will prevent replies from appearing in the returned timeline
$timeline->setContributorDetails(); none Eden_Twitter_Timeline This parameter enhances the contributors element of the status response to include the screen_name of the contributor
$timeline->includeRts(); none Eden_Twitter_Timeline When set to false, the timeline will strip any native retweets

© 2012 Openovate Labs. All rights reserved.