Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
STATUS_MAX_CHARACTERS = '246'
246 is the current limit for a status message, 140 characters are displayed initially, with the remainder linked from the web UI or client. The limit is applied to a html encoded UTF-8 string (i.e. entities are counted in the limit which may appear unusual but is a security measure).
This should be reviewed in the future...
OAUTH_BASE_URI = 'http://twitter.com/oauth'
OAuth Endpoint
Zend_Http_CookieJar $_cookieJar = ''
string $_dateFormat = 'D, d M Y H:i:s T'
Date format for 'since' strings
Zend_Http_Client $_localHttpClient = 'null'
Local HTTP Client cloned from statically set client
string $_methodType = ''
Current method type (for method proxying)
array $_methodTypes = 'array'
Types of API methods
Zend_Oauth_Consumer $_oauthConsumer = 'null'
Zend_Oauth Consumer
array $_options = 'array'
Options passed to constructor
string $_username = ''
Username
__call(
string $method, array $params
)
:
mixed
Method overloading
__construct(
array $options
=
null, $consumer
=
null
)
:
void
Constructor
__get(
string $type
)
:
Zend_Service_Twitter
Proxy service methods
_get(
string $path, array $query
=
null
)
:
Zend_Http_Response
Performs an HTTP GET request to the $path.
_init(
)
:
void
Initialize HTTP authentication
_performPost(
mixed $method, mixed $data
=
null
)
:
Zend_Http_Response
Perform a POST or PUT
Performs a POST or PUT request. Any data provided is set in the HTTP client. String data is pushed in as raw POST data; array or object data is pushed in as POST parameters.
_post(
string $path, mixed $data
=
null
)
:
Zend_Http_Response
Performs an HTTP POST request to $path.
_prepare(
string $path
)
:
void
Call a remote REST web service URI and return the Zend_Http_Response object
_setDate(
int|string $value
)
:
void
Set date header
_validInteger(
$int
)
:
integer
Protected function to validate that the integer is valid or return a 0
_validateScreenName(
string $name
)
:
string
Validate a screen name using Twitter rules
accountEndSession(
)
:
true
End current session
accountRateLimitStatus(
)
:
Zend_Rest_Client_Result
Returns the number of api requests you have left per hour.
accountVerifyCredentials(
)
:
Zend_Rest_Client_Result
Verify Account Credentials
blockBlocking(
integer $page
=
1, boolean $returnUserIds
=
false
)
:
Zend_Rest_Client_Result
Returns an array of user objects that the authenticating user is blocking
blockCreate(
integer|string $id
)
:
Zend_Rest_Client_Result
Blocks the user specified in the ID parameter as the authenticating user.
Destroys a friendship to the blocked user if it exists.
blockDestroy(
integer|string $id
)
:
Zend_Rest_Client_Result
Un-blocks the user specified in the ID parameter for the authenticating user
blockExists(
string|integer $id, boolean $returnResult
=
false
)
:
Boolean|Zend_Rest_Client_Result
Returns if the authenticating user is blocking a target user.
directMessageDestroy(
int $id
)
:
Zend_Rest_Client_Result
Destroy a direct message
directMessageMessages(
array $params
=
array
)
:
Zend_Rest_Client_Result
Retrieve direct messages for the current user
$params may include one or more of the following keys - since_id: return statuses only greater than the one specified - page: return page X of results
directMessageNew(
int|string $user, string $text
)
:
Zend_Rest_Client_Result
Send a direct message to a user
directMessageSent(
array $params
=
array
)
:
Zend_Rest_Client_Result
Retrieve list of direct messages sent by current user
$params may include one or more of the following keys - since_id: return statuses only greater than the one specified - page: return page X of results
favoriteCreate(
int $id
)
:
Zend_Rest_Client_Result
Mark a status as a favorite
favoriteDestroy(
int $id
)
:
Zend_Rest_Client_Result
Remove a favorite
favoriteFavorites(
array $params
=
array
)
:
Zend_Rest_Client_Result
Fetch favorites
$params may contain one or more of the following: - 'id': Id of a user for whom to fetch favorites - 'page': Retrieve a different page of resuls
friendshipCreate(
int|string $id
)
:
Zend_Rest_Client_Result
Create friendship
friendshipDestroy(
int|string $id
)
:
Zend_Rest_Client_Result
Destroy friendship
friendshipExists(
int|string $id
)
:
Zend_Rest_Client_result
Friendship exists
getLocalHttpClient(
)
:
Zend_Http_Client
Get the local HTTP client as distinct from the static HTTP client inherited from Zend_Rest_Client
getUsername(
)
:
string
Retrieve username
isAuthorised(
)
:
bool
Checks for an authorised state
setLocalHttpClient(
Zend_Http_Client $client
)
:
self
Set local HTTP client as distinct from the static HTTP client as inherited from Zend_Rest_Client.
setUsername(
string $value
)
:
Zend_Service_Twitter
Set username
statusDestroy(
int $id
)
:
Zend_Rest_Client_Result
Destroy a status message
statusFriendsTimeline(
array $params
=
array
)
:
void
Friend Timeline Status
$params may include one or more of the following keys - id: ID of a friend whose timeline you wish to receive - count: how many statuses to return - since_id: return results only after the specific tweet - page: return page X of results
statusPublicTimeline(
)
:
Zend_Rest_Client_Result
Public Timeline status
statusReplies(
$params
=
array
)
:
Zend_Rest_Client_Result
Get status replies
$params may include one or more of the following keys - since_id: return results only after the specified tweet id - page: return page X of results
statusShow(
int $id
)
:
Zend_Rest_Client_Result
Show a single status
statusUpdate(
string $status, $inReplyToStatusId
=
null
)
:
Zend_Rest_Client_Result
Update user's current status
statusUserTimeline(
$params
=
array
)
:
Zend_Rest_Client_Result
User Timeline status
$params may include one or more of the following keys - id: ID of a friend whose timeline you wish to receive - since_id: return results only after the tweet id specified - page: return page X of results - count: how many statuses to return - max_id: returns only statuses with an ID less than or equal to the specified ID - user_id: specfies the ID of the user for whom to return the user_timeline - screen_name: specfies the screen name of the user for whom to return the user_timeline
userFollowers(
bool $lite
=
false
)
:
Zend_Rest_Client_Result
User Followers
userFriends(
$params
=
array
)
:
Zend_Rest_Client_Result
User friends
userShow(
int|string $id
)
:
Zend_Rest_Client_Result
Show extended information on a user