-
publicTimeline()returns the 20 most recent statuses from non-protected users with a custom user icon. The public timeline is cached by Twitter for 60 seconds.Example 843. Retrieving public timeline
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->status->publicTimeline();
-
friendsTimeline()returns the 20 most recent statuses posted by the authenticating user and that user's friends.Example 844. Retrieving friends timeline
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->status->friendsTimeline();The
friendsTimeline()method accepts an array of optional parameters to modify the query.sincenarrows the returned results to just those statuses created after the specified date/time (up to 24 hours old).pagespecifies which page you want to return.
-
userTimeline()returns the 20 most recent statuses posted from the authenticating user.Example 845. Retrieving user timeline
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->status->userTimeline();The
userTimeline()method accepts an array of optional parameters to modify the query.idspecifies the ID or screen name of the user for whom to return the friends_timeline.sincenarrows the returned results to just those statuses created after the specified date/time (up to 24 hours old).pagespecifies which page you want to return.countspecifies the number of statuses to retrieve. May not be greater than 200.
-
show()returns a single status, specified by theidparameter below. The status' author will be returned inline.Example 846. Showing user status
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->status->show(1234);
-
update()updates the authenticating user's status. This method requires that you pass in the status update that you want to post to Twitter.Example 847. Updating user status
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->status->update('My Great Tweet');The
update()method accepts a second additional parameter.in_reply_to_status_idspecifies the ID of an existing status that the status to be posted is in reply to.
-
replies()returns the 20 most recent @replies (status updates prefixed with @username) for the authenticating user.Example 848. Showing user replies
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->status->replies();The
replies()method accepts an array of optional parameters to modify the query.sincenarrows the returned results to just those statuses created after the specified date/time (up to 24 hours old).pagespecifies which page you want to return.since_idreturns only statuses with an ID greater than (that is, more recent than) the specified ID.
-
destroy()destroys the status specified by the requiredidparameter.Example 849. Deleting user status
<?php
$twitter = new Zend_Service_Twitter(array(
'username' => 'johndoe',
'accessToken' => $token
));
$response = $twitter->status->destroy(12345);




