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...
Details OAUTH_BASE_URI = 'http://twitter.com/oauth'
OAuth Endpoint
DetailsZend_Http_CookieJar $_cookieJar = ''
Detailsstring $_dateFormat = 'D, d M Y H:i:s T'Date format for 'since' strings
DetailsZend_Http_Client $_localHttpClient = 'null'Local HTTP Client cloned from statically set client
Detailsstring $_methodType = ''Current method type (for method proxying)
Detailsarray $_methodTypes = 'array'Types of API methods
DetailsZend_Oauth_Consumer $_oauthConsumer = 'null'Zend_Oauth Consumer
Detailsarray $_options = 'array'Options passed to constructor
Detailsstring $_username = ''Username
Details__call(
string $method, array $params
)
:
mixedMethod overloading
Details__construct(
array $options
=
null, $consumer
=
null
)
:
voidConstructor
Details__get(
string $type
)
:
Zend_Service_TwitterProxy service methods
Details_get(
string $path, array $query
=
null
)
:
Zend_Http_ResponsePerforms an HTTP GET request to the $path.
Details_init(
)
:
voidInitialize HTTP authentication
Details_performPost(
mixed $method, mixed $data
=
null
)
:
Zend_Http_ResponsePerform 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.
Details_post(
string $path, mixed $data
=
null
)
:
Zend_Http_ResponsePerforms an HTTP POST request to $path.
Details_prepare(
string $path
)
:
voidCall a remote REST web service URI and return the Zend_Http_Response object
Details_setDate(
int|string $value
)
:
voidSet date header
Details_validInteger(
$int
)
:
integerProtected function to validate that the integer is valid or return a 0
Details_validateScreenName(
string $name
)
:
stringValidate a screen name using Twitter rules
DetailsaccountEndSession(
)
:
trueEnd current session
DetailsaccountRateLimitStatus(
)
:
Zend_Rest_Client_ResultReturns the number of api requests you have left per hour.
DetailsaccountVerifyCredentials(
)
:
Zend_Rest_Client_ResultVerify Account Credentials
DetailsblockBlocking(
integer $page
=
1, boolean $returnUserIds
=
false
)
:
Zend_Rest_Client_ResultReturns an array of user objects that the authenticating user is blocking
DetailsblockCreate(
integer|string $id
)
:
Zend_Rest_Client_ResultBlocks the user specified in the ID parameter as the authenticating user.
Destroys a friendship to the blocked user if it exists.
DetailsblockDestroy(
integer|string $id
)
:
Zend_Rest_Client_ResultUn-blocks the user specified in the ID parameter for the authenticating user
DetailsblockExists(
string|integer $id, boolean $returnResult
=
false
)
:
Boolean|Zend_Rest_Client_ResultReturns if the authenticating user is blocking a target user.
DetailsdirectMessageDestroy(
int $id
)
:
Zend_Rest_Client_ResultDestroy a direct message
DetailsdirectMessageMessages(
array $params
=
array
)
:
Zend_Rest_Client_ResultRetrieve 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
DetailsdirectMessageNew(
int|string $user, string $text
)
:
Zend_Rest_Client_ResultSend a direct message to a user
DetailsdirectMessageSent(
array $params
=
array
)
:
Zend_Rest_Client_ResultRetrieve 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
DetailsfavoriteCreate(
int $id
)
:
Zend_Rest_Client_ResultMark a status as a favorite
DetailsfavoriteDestroy(
int $id
)
:
Zend_Rest_Client_ResultRemove a favorite
DetailsfavoriteFavorites(
array $params
=
array
)
:
Zend_Rest_Client_ResultFetch 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
DetailsfriendshipCreate(
int|string $id
)
:
Zend_Rest_Client_ResultCreate friendship
DetailsfriendshipDestroy(
int|string $id
)
:
Zend_Rest_Client_ResultDestroy friendship
DetailsfriendshipExists(
int|string $id
)
:
Zend_Rest_Client_resultFriendship exists
DetailsgetLocalHttpClient(
)
:
Zend_Http_ClientGet the local HTTP client as distinct from the static HTTP client inherited from Zend_Rest_Client
DetailsgetUsername(
)
:
stringRetrieve username
DetailsisAuthorised(
)
:
boolChecks for an authorised state
DetailssetLocalHttpClient(
Zend_Http_Client $client
)
:
selfSet local HTTP client as distinct from the static HTTP client as inherited from Zend_Rest_Client.
DetailssetUsername(
string $value
)
:
Zend_Service_TwitterSet username
DetailsstatusDestroy(
int $id
)
:
Zend_Rest_Client_ResultDestroy a status message
DetailsstatusFriendsTimeline(
array $params
=
array
)
:
voidFriend 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
DetailsstatusPublicTimeline(
)
:
Zend_Rest_Client_ResultPublic Timeline status
DetailsstatusReplies(
$params
=
array
)
:
Zend_Rest_Client_ResultGet 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
DetailsstatusShow(
int $id
)
:
Zend_Rest_Client_ResultShow a single status
DetailsstatusUpdate(
string $status, $inReplyToStatusId
=
null
)
:
Zend_Rest_Client_ResultUpdate user's current status
DetailsstatusUserTimeline(
$params
=
array
)
:
Zend_Rest_Client_ResultUser 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
DetailsuserFollowers(
bool $lite
=
false
)
:
Zend_Rest_Client_ResultUser Followers
DetailsuserFriends(
$params
=
array
)
:
Zend_Rest_Client_ResultUser friends
DetailsuserShow(
int|string $id
)
:
Zend_Rest_Client_ResultShow extended information on a user
Details