Returns if the authenticating user is blocking a target user.
string
blockExists
(array $options, [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Blocks the user specified in the ID parameter as the authenticating user.
string
createBlock
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: The ID or screen name of the user to block
-
string
$format: Return format
Favorites the status specified in the ID parameter as the authenticating user.
string
createFavorite
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: The ID of the status to favorite
-
string
$format: Return format
Befriends the user specified in the ID parameter as the authenticating user.
string
createFriendship
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Unblocks the user specified in the ID parameter as the authenticating user.
string
destroyBlock
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: The ID or screen name of the user to unblock
-
string
$format: Return format
Un-favorites the status specified in the ID parameter as the authenticating user.
string
destroyFavorite
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: The ID of the status to un-favorite
-
string
$format: Return format
Discontinues friendship with the user specified in the ID parameter as the authenticating user.
string
destroyFriendship
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: The ID or screen name of the user to unfriend
-
string
$format: Return format
Destroys the direct message specified in the required $id parameter.
string
destroyMessage
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: The ID of the direct message to destroy
-
string
$format: Return format
Destroys the status specified by the required ID parameter. The authenticating user must be the author of the specified status.
string
destroyStatus
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: ID of the status to destroy
-
string
$format: Return format
Ends the session of the authenticating user, returning a null cookie.
string
endSession
([string $format = 'xml'])
-
string
$format: Return format
Enables notifications for updates from the specified user to the authenticating user.
string
follow
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: The ID or screen name of the user to follow
-
string
$format: Return format
Tests if a friendship exists between two users.
string
friendshipExists
(integer|string $user_a, integer|string $user_b, [string $format = 'xml'])
-
integer|string
$user_a: The ID or screen name of the first user
-
integer|string
$user_b: The ID or screen name of the second user
-
string
$format: Return format
Returns an array of user objects that the authenticating user is blocking.
string
getBlocking
(array $options, [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns an array of numeric user ids the authenticating user is blocking.
string
getBlockingIDs
([string $format = 'xml'], array $options)
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format.
string
getFavorites
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns an array of numeric IDs for every user the specified user is following.
string
getFollowerIDs
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns the authenticating user's followers, each with current status inline.
string
getFollowers
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns an array of numeric IDs for every user the specified user is followed by.
string
getFriendIDs
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns the authenticating user's friends, each with current status inline.
string
getFriends
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns the 20 most recent statuses posted by the authenticating user and that user's friends.
string
getFriendsTimeline
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns the 20 most recent mentions (status containing @username) for the authenticating user.
string
getMentions
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns a list of the 20 most recent direct messages sent to the authenticating user.
string
getMessages
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns the 20 most recent statuses from non-protected users who have set a custom user icon.
string
getPublicTimeline
([string $format = 'xml'])
-
string
$format: Return format
Returns the 20 most recent @replies (status updates prefixed with @username) for the authenticating user.
string
getReplies
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns a list of the 20 most recent direct messages sent by the authenticating user.
string
getSentMessages
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns a single status, specified by the $id parameter.
string
getStatus
(string|integer $id, [string $format = 'xml'])
-
string|integer
$id: The numerical ID of the status to retrieve
-
string
$format: Return format
Returns the 20 most recent statuses posted from the authenticating user.
string
getUserTimeline
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns the URL of the last API call
string
lastApiCall
()
Returns the last HTTP status code
integer
lastStatusCode
()
Disables notifications for updates from the specified user to the authenticating user.
string
leave
(integer|string $id, [string $format = 'xml'])
-
integer|string
$id: The ID or screen name of the user to leave
-
string
$format: Return format
Sends a new direct message to the specified user from the authenticating user.
string
newMessage
(string $user, string $text, [string $format = 'xml'])
-
string
$user: The ID or screen name of a recipient
-
string
$text: The message to send
-
string
$format: Return format
Returns the remaining number of API requests available to the requesting user before the API limit is reached for the current hour.
string
rateLimitStatus
([boolean $authenticate = false], [string $format = 'xml'])
-
boolean
$authenticate: Authenticate before calling method
-
string
$format: Return format
Returns extended information of a given user.
string
showUser
([array $options = array()], [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Returns the string "ok" in the requested format with a 200 OK HTTP status code.
string
test
([string $format = 'xml'])
-
string
$format: Return format
Sets which device Twitter delivers updates to for the authenticating user.
string
updateDeliveryDevice
(string $device, [ $format = 'xml'])
-
string
$device: The delivery device used. Must be sms, im, or none
-
$format
Sets values that users are able to set under the "Account" tab of their settings page.
string
updateProfile
(array $options, [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com.
string
updateProfileColors
(array $options, [string $format = 'xml'])
-
array
$options: Options to pass to the method
-
string
$format: Return format
Updates the authenticated user's status.
string
updateStatus
(string $status, [string|integer $reply_to = null], [string $format = 'xml'])
-
string
$status: Text of the status, no URL encoding necessary
-
string|integer
$reply_to: ID of the status to reply to. Optional
-
string
$format: Return format
Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.
string
verifyCredentials
([string $format = 'xml'])
-
string
$format: Return format