Метод |
Описание |
|
__construct ( array $config, TTools\Provider\StorageProviderInterface $sp = null, TTools\Provider\RequestProviderInterface $rp = null ) |
|
|
destroy ( string $tweet_id ) : array | mixed |
Destroy a tweet |
|
get ( $path, array $params = [] ) : array |
Performs a GET request to the Twitter API |
|
getCredentials ( ) : array |
Get logged user profile |
|
getCurrentUser ( ) : User |
Gets the current logged user, if any. |
|
getFavorites ( integer $limit = 10 ) : array |
Gets current user favorites |
|
getLastReqInfo ( ) : array |
Gets information about the last request. |
|
getLoggedUser ( ) : User |
Returns a User object with ArrayAccess. Returns null if there's no logged user. |
|
getLoginUrl ( string $callbackUrl = null ) : string |
|
|
getMentions ( integer $limit = 10 ) : array |
Gets mentions for the current user |
|
getProfile ( array $params = null ) : array |
Gets a user profile. If you want to get another user's profile, you just need to provide an array with either
the 'user_id' or the 'screen_name' . |
|
getRemainingCalls ( ) : array |
Returns information about the API usage and how many calls you have left. |
|
getState ( ) : integer |
Returns current state |
|
getTimeline ( integer $limit = 10 ) : array |
Gets the home timeline for current authenticated user |
|
getTweet ( string $tweet_id ) : array |
Gets a specific Tweet |
|
getUser ( ) : User |
Retrieves the Twitter User. If there's no logged user yet, it will
check if the user is coming back from the Twitter Auth page and
retrieve its tokens. |
|
getUserTimeline ( null $user_id = null, null $screen_name = null, integer $limit = 10 ) : array |
Gets a user timeline (tweets posted by a user). Defaults to the current user timeline |
|
getUserTokens ( ) : array |
|
|
isLogged ( ) : integer |
|
|
linkify ( string $message ) : string |
Renders links, hash tags, and account mentions of a Tweet message as clickable links |
|
logout ( ) : mixed |
|
|
post ( $path, $params, boolean $multipart = false ) : array |
Performs a POST request to the Twitter API |
|
update ( string $message, string $in_reply_to = null, $media = [] ) : array |
Post a tweet |
|
updateWithMedia ( string $image, string $message, string $in_reply_to = null ) : array |
Post a tweet with an image embedded - to keep backwards compatibility |
|
uploadMedia ( string $image ) : array |
Uploads media to uploads.twitter.com to be embedded in tweets |
|