PHP 클래스 TijsVerkoyen\Twitter\Twitter

저자: Tijs Verkoyen ([email protected])
파일 보기 프로젝트 열기: tijsverkoyen/twitteroauth 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$consumerKey string The consumer key
$consumerSecret string The consumer secret
$curl resource A cURL instance
$oAuthToken string The oAuth-token
$oAuthTokenSecret string The oAuth-token-secret
$returnAsArray boolean The response should be cast as array or not
$timeOut integer The timeout
$userAgent string The user agent

공개 메소드들

메소드 설명
__construct ( string $consumerKey, string $consumerSecret ) Default constructor
__destruct ( ) Default destructor
accountRemoveProfileBanner ( ) : boolean Removes the uploaded profile banner for the authenticating user.
accountSettings ( ) : array Returns settings (including current trend, geo and sleep time information) for the authenticating user.
accountSettingsUpdate ( string[optional] $trendLocationWoeId = null, bool[optional] $sleepTimeEnabled = null, string[optional] $startSleepTime = null, string[optional] $endSleepTime = null, string[optional] $timeZone = null, string[optional] $lang = null ) : array Updates the authenticating user's settings.
accountUpdateDeliveryDevice ( string $device, bool[optional] $includeEntities = null ) : array Sets which device Twitter delivers updates to for the authenticating user. Sending none as the device parameter will disable SMS updates.
accountUpdateProfile ( string[optional] $name = null, string[optional] $url = null, string[optional] $location = null, string[optional] $description = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Sets values that users are able to set under the "Account" tab of their settings page. Only the parameters specified will be updated.
accountUpdateProfileBackgroundImage ( string $image, bool[optional] $tile = false, bool[optional] $includeEntities = null ) : array Updates the authenticating user's profile background image.
accountUpdateProfileBanner ( ) Not implemented yet
accountUpdateProfileColors ( string[optional] $profileBackgroundColor = null, string[optional] $profileTextColor = null, string[optional] $profileLinkColor = null, string[optional] $profileSidebarFillColor = null, string[optional] $profileSidebarBorderColor = null, bool[optional] $includeEntities = null ) : array Sets one or more hex values that control the color scheme of the authenticating user's profile page on twitter.com.
accountUpdateProfileImage ( string $image, bool[optional] $includeEntities = null ) : array Updates the authenticating user's profile image.
accountVerifyCredentials ( bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array 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. Use this method to test if supplied user credentials are valid.
applicationRateLimitStatus ( array $resources = null ) : string Returns the current rate limits for methods belonging to the specified resource families.
blocksCreate ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Blocks the specified user from following the authenticating user. In addition the blocked user will not show in the authenticating users mentions or timeline (unless retweeted by another user). If a follow or friend relationship exists it is destroyed.
blocksDestroy ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Un-blocks the user specified in the ID parameter for the authenticating user. Returns the un-blocked user in the requested format when successful. If relationships existed before the block was instated, they will not be restored.
blocksIds ( string[optional] $cursor = null, bool[optional] $stringifyIds = null ) : array Returns an array of numeric user ids the authenticating user is blocking.
blocksList ( int[optional] $cursor = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Not implemented yet
directMessages ( string[optional] $sinceId = null, string[optional] $maxId = null, int[optional] $count = null, int[optional] $page = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Returns the 20 most recent direct messages sent to the authenticating user. Includes detailed information about the sender and recipient user. You can request up to 200 direct messages per call, up to a maximum of 800 incoming DMs.
directMessagesDestroy ( string $id, bool[optional] $includeEntities = null ) : array Destroys the direct message specified in the required ID parameter. The authenticating user must be the recipient of the specified direct message.
directMessagesNew ( string[optional] $userId = null, string[optional] $screenName = null, string $text ) : array Sends a new direct message to the specified user from the authenticating user. Requires both the user and text parameters and must be a POST. Returns the sent message in the requested format if successful.
directMessagesSent ( string[optional] $sinceId = null, string[optional] $maxId = null, int[optional] $count = null, int[optional] $page = null, bool[optional] $includeEntities = null ) : array Returns the 20 most recent direct messages sent by the authenticating user. Includes detailed information about the sender and recipient user. You can request up to 200 direct messages per call, up to a maximum of 800 outgoing DMs.
directMessagesShow ( string $id ) : array
favoritesCreate ( string $id, bool[optional] $includeEntities = null ) : array Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful.
favoritesDestroy ( string $id, bool[optional] $includeEntities = null ) : array Un-favorites the status specified in the ID parameter as the authenticating user. Returns the un-favorited status in the requested format when successful.
favoritesList ( string[otpional] $userId = null, string[otpional] $screenName = null, int[optional] $count = 20, string[otpional] $sinceId = null, string[otpional] $maxId = null, bool[optional] $includeEntities = null ) : array Returns the 20 most recent Tweets favorited by the authenticating or specified user.
followersIds ( string[optional] $userId = null, string[optional] $screenName = null, string[optional] $cursor = null, bool[optional] $stringifyIds = true ) : array Returns a cursored collection of user IDs for every user following the specified user.
followersList ( string[optional] $userId = null, string[optional] $screenName = null, int[optional] $cursor = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Returns a cursored collection of user objects for users following the specified user.
friendsIds ( string[optional] $userId = null, string[optional] $screenName = null, string[optional] $cursor = null, bool[optional] $stringifyIds = null ) : array Returns a cursored collection of user IDs for every user the specified user is following (otherwise known as their "friends").
friendsList ( string[optional] $userId = null, string[optional] $screenName = null, int[optional] $cursor = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Returns a cursored collection of user objects for every user the specified user is following (otherwise known as their "friends").
friendshipsCreate ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $follow = false ) : array Allows the authenticating users to follow the user specified in the ID parameter.
friendshipsDestroy ( string[optional] $userId = null, string[optional] $screenName = null ) : array Allows the authenticating user to unfollow the user specified in the ID parameter.
friendshipsIncoming ( string[optional] $cursor = null, bool[optional] $stringifyIds = true ) : array Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.
friendshipsLookup ( mixed[optional] $userIds = null, mixed[optional] $screenNames = null ) : array Returns the relationships of the authenticating user to the comma-separated list of up to 100 screen_names or user_ids provided.
friendshipsOutgoing ( string[optional] $cursor = null, bool[optional] $stringifyIds = true ) : array Returns a collection of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
friendshipsShow ( string[optional] $sourceId = null, string[optional] $sourceScreenName = null, string[optional] $targetId = null, string[optional] $targetScreenName = null ) : array Returns detailed information about the relationship between two arbitrary users.
friendshipsUpdate ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $device = null, bool[optional] $retweets = null ) : array Allows one to enable or disable retweets and device notifications from the specified user.
geoId ( string $id ) : array Returns all the information about a known place.
geoPlace ( string $name, string $containedWithin, string $token, float $lat, float $long, array $attributes = null ) : array Creates a new place at the given latitude and longitude.
geoReverseGeoCode ( float $lat, float $long, string[optional] $accuracy = null, string[optional] $granularity = null, int[optional] $maxResults = null ) : array Given a latitude and a longitude, searches for up to 20 places that can be used as a place_id when updating a status.
geoSearch ( float[optional] $lat = null, float[optional] $long = null, string[optional] $query = null, string[optional] $ip = null, string[optional] $granularity = null, string[optional] $accuracy = null, int[optional] $maxResults = null, string[optional] $containedWithin = null, array $attributes = null ) : array Search for places that can be attached to a statuses/update. Given a latitude and a longitude pair, an IP address, or a name, this request will return a list of all the valid places that can be used as the place_id when updating a status.
geoSimilarPlaces ( float $lat, float $long, string $name, string[optional] $containedWithin = null, array $attributes = null ) : array Locates places near the given coordinates which are similar in name.
getTimeOut ( ) : integer Get the timeout
getUserAgent ( ) : string Get the useragent that will be used. Our version will be prepended to yours.
helpConfiguration ( ) : array Returns the current configuration used by Twitter including twitter.com slugs which are not usernames, maximum photo resolutions, and t.co URL lengths.
helpLanguages ( ) : array Returns the list of languages supported by Twitter along with their ISO 639-1 code. The ISO 639-1 code is the two letter value to use if you include lang with any of your requests.
helpPrivacy ( ) : array Returns Twitter's Privacy Policy
helpTos ( ) : array Returns the Twitter Terms of Service in the requested format. These are not the same as the Developer Rules of the Road.
listSubscriptions ( ) Not implemented yet
listsCreate ( ) Not implemented yet
listsDestroy ( ) Not implemented yet
listsList ( ) Not implemented yet
listsMembers ( ) Not implemented yet
listsMembersCreate ( ) Not implemented yet
listsMembersCreateAll ( ) Not implemented yet
listsMembersDestroy ( ) Not implemented yet
listsMembersDestroyAll ( ) Not implemented yet
listsMembersShow ( ) Not implemented yet
listsMemberships ( ) Not implemented yet
listsShow ( ) Not implemented yet
listsStatuses ( ) Not implemented yet
listsSubscribers ( ) Not implemented yet
listsSubscribersCreate ( ) Not implemented yet
listsSubscribersDestroy ( ) Not implemented yet
listsSubscribersShow ( ) Not implemented yet
listsUpdate ( ) Not implemented yet
oAuthAccessToken ( string $token, string $verifier ) : array Allows a Consumer application to exchange the OAuth Request Token for an OAuth Access Token.
oAuthAuthenticate ( string $token, bool[optional] $force = false, string[optional] $screen_name = false ) Allows a Consumer application to use an OAuth request_token to request user authorization.
oAuthAuthorize ( string $token ) Will redirect to the page to authorize the applicatione
oAuthRequestToken ( string[optional] $callbackURL = null ) : array Allows a Consumer application to obtain an OAuth Request Token to request user authorization.
reportSpam ( string[optional] $screenName = null, string[optional] $userId = null ) : array The user specified in the id is blocked by the authenticated user and reported as a spammer.
savedSearchesCreate ( string $query ) : array Create a new saved search for the authenticated user. A user may only have 25 saved searches.
savedSearchesDestroy ( string $id ) : array Destroys a saved search for the authenticating user. The authenticating user must be the owner of saved search id being destroyed.
savedSearchesList ( ) : array Returns the authenticated user's saved search queries.
savedSearchesShow ( string $id ) : array Retrieve the information for the saved search represented by the given id. The authenticating user must be the owner of saved search ID being requested.
searchTweets ( string $q, string[optional] $geocode = null, string[optional] $lang = null, string[optional] $locale = null, string[optional] $resultType = null, int[optional] $count = null, string[optional] $until = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $includeEntities = null ) : array Returns tweets that match a specified query.
setOAuthToken ( string $token ) Set the oAuth-token
setOAuthTokenSecret ( string $secret ) Set the oAuth-secret
setTimeOut ( integer $seconds ) Set the timeout
setUserAgent ( string $userAgent ) Get the useragent that will be used. Our version will be prepended to yours.
site ( ) Not implemented yet
statusesDestroy ( string $id, bool[optional] $trimUser = null ) : array Destroys the status specified by the required ID parameter. The authenticating user must be the author of the specified status. Returns the destroyed status if successful.
statusesFilter ( ) Not implemented yet
statusesFirehose ( ) Not implemented yet
statusesHomeTimeline ( int[optional] $count = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $excludeReplies = null, bool[optional] $contributorDetails = null, bool[optional] $includeEntities = null ) : array Returns the 20 most recent statuses, including retweets if they exist, posted by the authenticating user and the user's they follow. This is the same timeline seen by a user when they login to twitter.com.
statusesMentionsTimeline ( int[optional] $count = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $contributorDetails = null, bool[optional] $includeEntities = null ) : array Returns the 20 most recent mentions (tweets containing a users's @screen_name) for the authenticating user.
statusesOEmbed ( string[optional] $id = null, string[optional] $url = null, int[optional] $maxwidth = null, bool[optional] $hideMedia = null, bool[optional] $hideThread = null, bool[optional] $omitScript = null, string[optional] $align = null, string[optional] $related = null, string[optional] $lang = null ) : array
statusesRetweet ( string $id, bool[optional] $trimUser = null ) : array Retweets a tweet. Returns the original tweet with retweet details embedded.
statusesRetweets ( string $id, int[optional] $count = null, bool[optional] $trimUser = null ) : array Returns up to 100 of the first retweets of a given tweet.
statusesRetweetsOfMe ( int[optional] $count = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $includeEntities = null, bool[optional] $includeUserEntities = null ) : array Returns the most recent tweets authored by the authenticating user that have recently been retweeted by others. This timeline is a subset of the user's GET statuses/user_timeline.
statusesSample ( ) Not implemented yet
statusesShow ( string $id, bool[optional] $trimUser = null, bool[optional] $includeMyRetweet = null, bool[optional] $includeEntities = null ) : array Returns a single Tweet, specified by the id parameter. The Tweet's author will also be embedded within the tweet.
statusesUpdate ( string $status, string[optional] $inReplyToStatusId = null, float[optional] $lat = null, float[optional] $long = null, string[optional] $placeId = null, bool[optional] $displayCoordinates = null, bool[optional] $trimUser = null ) : array Updates the authenticating user's status. A status update with text identical to the authenticating user's text identical to the authenticating user's current status will be ignored to prevent duplicates.
statusesUpdateWithMedia ( ) Not implemented yet
statusesUserTimeline ( string[optional] $userId = null, string[optional] $screenName = null, string[optional] $sinceId = null, int[optional] $count = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $excludeReplies = null, bool[optional] $contributorDetails = null, bool[optional] $includeRts = null ) : array Returns a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.
trendsAvailable ( float[optional] $lat = null, float[optional] $long = null ) : array Returns the locations that Twitter has trending topic information for.
trendsClosest ( float[optional] $lat = null, float[optional] $long = null ) : array Returns the locations that Twitter has trending topic information for, closest to a specified location.
trendsPlace ( string $id, string[optional] $exclude = null ) : array Returns the top 10 trending topics for a specific WOEID, if trending information is available for it.
user ( ) Not implemented yet
usersContributees ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Returns a collection of users that the specified user can "contribute" to.
usersContributors ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array Returns a collection of users who can contribute to the specified account.
usersLookup ( mixed[optional] $userIds = null, mixed[optional] $screenNames = null, bool[optional] $includeEntities = null ) : array Returns fully-hydrated user objects for up to 100 users per request, as specified by comma-separated values passed to the user_id and/or screen_name parameters.
usersProfileBanner ( string[optional] $userId = null, string[optional] $screenName = null ) : array Returns a map of the available size variations of the specified user's profile banner. If the user has not uploaded a profile banner, a HTTP 404 will be served instead.
usersSearch ( string $q, int[optional] $page = null, int[optional] $count = null, bool[optional] $includeEntities = null ) : array Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API.
usersShow ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null ) : array Returns a variety of information about the user specified by the required user_id or screen_name parameter.
usersSuggestions ( string[optional] $lang = null ) : array Access to Twitter's suggested user list. This returns the list of suggested user categories. The category can be used in usersSuggestionsSlug to get the users in that category.
usersSuggestionsSlug ( string $slug, string[optional] $lang = null ) : array Access the users in a given category of the Twitter suggested user list.
usersSuggestionsSlugMembers ( string $slug ) : array Access the users in a given category of the Twitter suggested user list and return their most recent status if they are not a protected user.

보호된 메소드들

메소드 설명
buildQuery ( array $parameters ) : string Format the parameters as a querystring
calculateBaseString ( string $url, string $method, array $parameters ) : string All OAuth 1.0 requests use the same basic algorithm for creating a signature base string and a signature. The signature base string is composed of the HTTP method being used, followed by an ampersand ("&") and then the URL-encoded base URL being accessed, complete with path (but not query parameters), followed by an ampersand ("&"). Then, you take all query parameters and POST body parameters (when the POST body is of the URL-encoded type, otherwise the POST body is ignored), including the OAuth parameters necessary for negotiation with the request at hand, and sort them in lexicographical order by first parameter name and then parameter value (for duplicate parameters), all the while ensuring that both the key and the value for each parameter are URL encoded in isolation. Instead of using the equals ("=") sign to mark the key/value relationship, you use the URL-encoded form of "%3D". Each parameter is then joined by the URL-escaped ampersand sign, "%26".
calculateHeader ( array $parameters, string $url ) : string Build the Authorization header
doCall ( string $url, array $parameters = null, bool[optional] $authenticate = false, bool[optional] $method = 'GET', string[optional] $filePath = null, bool[optional] $expectJSON = true, bool[optional] $returnHeaders = false ) : string Make the call
doOAuthCall ( string $method, array $parameters = null ) : array Make an call to the oAuth
getConsumerKey ( ) : string Get the consumer key
getConsumerSecret ( ) : string Get the consumer secret
getOAuthToken ( ) : string Get the oAuth-token
getOAuthTokenSecret ( ) : string Get the oAuth-token-secret
hmacsha1 ( string $key, string $data ) : string Build the signature for the data
setConsumerKey ( string $key ) Set the consumer key
setConsumerSecret ( string $secret ) Set the consumer secret
setReturnAsArray ( boolean $value ) Set the response type
urlencode_rfc3986 ( mixed $value ) : string URL-encode method for internal use

메소드 상세

__construct() 공개 메소드

Default constructor
public __construct ( string $consumerKey, string $consumerSecret )
$consumerKey string The consumer key to use.
$consumerSecret string The consumer secret to use.

__destruct() 공개 메소드

Default destructor
public __destruct ( )

accountRemoveProfileBanner() 공개 메소드

Removes the uploaded profile banner for the authenticating user.

accountSettings() 공개 메소드

Returns settings (including current trend, geo and sleep time information) for the authenticating user.
public accountSettings ( ) : array
리턴 array

accountSettingsUpdate() 공개 메소드

Updates the authenticating user's settings.
public accountSettingsUpdate ( string[optional] $trendLocationWoeId = null, bool[optional] $sleepTimeEnabled = null, string[optional] $startSleepTime = null, string[optional] $endSleepTime = null, string[optional] $timeZone = null, string[optional] $lang = null ) : array
$trendLocationWoeId string[optional]
$sleepTimeEnabled bool[optional]
$startSleepTime string[optional]
$endSleepTime string[optional]
$timeZone string[optional]
$lang string[optional]
리턴 array

accountUpdateDeliveryDevice() 공개 메소드

Sets which device Twitter delivers updates to for the authenticating user. Sending none as the device parameter will disable SMS updates.
public accountUpdateDeliveryDevice ( string $device, bool[optional] $includeEntities = null ) : array
$device string Must be one of: sms, none.
$includeEntities bool[optional]
리턴 array

accountUpdateProfile() 공개 메소드

Sets values that users are able to set under the "Account" tab of their settings page. Only the parameters specified will be updated.
public accountUpdateProfile ( string[optional] $name = null, string[optional] $url = null, string[optional] $location = null, string[optional] $description = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$name string[optional]
$url string[optional]
$location string[optional]
$description string[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

accountUpdateProfileBackgroundImage() 공개 메소드

Updates the authenticating user's profile background image.
public accountUpdateProfileBackgroundImage ( string $image, bool[optional] $tile = false, bool[optional] $includeEntities = null ) : array
$image string The path to the background image for the profile. Must be a valid GIF, JPG, or PNG image of less than 800 kilobytes in size. Images with width larger than 2048 pixels will be forceably scaled down.
$tile bool[optional]
$includeEntities bool[optional]
리턴 array

accountUpdateProfileBanner() 공개 메소드

Not implemented yet

accountUpdateProfileColors() 공개 메소드

Each parameter's value must be a valid hexidecimal value, and may be either three or six characters (ex: #fff or #ffffff).
public accountUpdateProfileColors ( string[optional] $profileBackgroundColor = null, string[optional] $profileTextColor = null, string[optional] $profileLinkColor = null, string[optional] $profileSidebarFillColor = null, string[optional] $profileSidebarBorderColor = null, bool[optional] $includeEntities = null ) : array
$profileBackgroundColor string[optional]
$profileTextColor string[optional]
$profileLinkColor string[optional]
$profileSidebarFillColor string[optional]
$profileSidebarBorderColor string[optional]
$includeEntities bool[optional]
리턴 array

accountUpdateProfileImage() 공개 메소드

Updates the authenticating user's profile image.
public accountUpdateProfileImage ( string $image, bool[optional] $includeEntities = null ) : array
$image string The path to the avatar image for the profile. Must be a valid GIF, JPG, or PNG image of less than 700 kilobytes in size. Images with width larger than 500 pixels will be scaled down.
$includeEntities bool[optional]
리턴 array

accountVerifyCredentials() 공개 메소드

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. Use this method to test if supplied user credentials are valid.
public accountVerifyCredentials ( bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

applicationRateLimitStatus() 공개 메소드

Each 1.1 API resource belongs to a "resource family" which is indicated in its method documentation. You can typically determine a method's resource family from the first component of the path after the resource version. This method responds with a map of methods belonging to the families specified by the resources parameter, the current remaining uses for each of those resources within the current rate limiting window, and its expiration time in epoch time. It also includes a rate_limit_context field that indicates the current access token context. You may also issue requests to this method without any parameters to receive a map of all rate limited GET methods. If your application only uses a few of methods, please explicitly provide a resources parameter with the specified resource families you work with.
public applicationRateLimitStatus ( array $resources = null ) : string
$resources array A comma-separated list of resource families you want to know the current rate limit disposition for. For best performance, only specify the resource families pertinent to your application.
리턴 string

blocksCreate() 공개 메소드

Blocks the specified user from following the authenticating user. In addition the blocked user will not show in the authenticating users mentions or timeline (unless retweeted by another user). If a follow or friend relationship exists it is destroyed.
public blocksCreate ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$userId string[optional]
$screenName string[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

blocksDestroy() 공개 메소드

Un-blocks the user specified in the ID parameter for the authenticating user. Returns the un-blocked user in the requested format when successful. If relationships existed before the block was instated, they will not be restored.
public blocksDestroy ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$userId string[optional]
$screenName string[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

blocksIds() 공개 메소드

Returns an array of numeric user ids the authenticating user is blocking.
public blocksIds ( string[optional] $cursor = null, bool[optional] $stringifyIds = null ) : array
$cursor string[optional]
$stringifyIds bool[optional]
리턴 array

blocksList() 공개 메소드

Not implemented yet
public blocksList ( int[optional] $cursor = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$cursor int[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

buildQuery() 보호된 메소드

Format the parameters as a querystring
protected buildQuery ( array $parameters ) : string
$parameters array The parameters.
리턴 string

calculateBaseString() 보호된 메소드

All OAuth 1.0 requests use the same basic algorithm for creating a signature base string and a signature. The signature base string is composed of the HTTP method being used, followed by an ampersand ("&") and then the URL-encoded base URL being accessed, complete with path (but not query parameters), followed by an ampersand ("&"). Then, you take all query parameters and POST body parameters (when the POST body is of the URL-encoded type, otherwise the POST body is ignored), including the OAuth parameters necessary for negotiation with the request at hand, and sort them in lexicographical order by first parameter name and then parameter value (for duplicate parameters), all the while ensuring that both the key and the value for each parameter are URL encoded in isolation. Instead of using the equals ("=") sign to mark the key/value relationship, you use the URL-encoded form of "%3D". Each parameter is then joined by the URL-escaped ampersand sign, "%26".
protected calculateBaseString ( string $url, string $method, array $parameters ) : string
$url string The URL.
$method string The method to use.
$parameters array The parameters.
리턴 string

calculateHeader() 보호된 메소드

Build the Authorization header
protected calculateHeader ( array $parameters, string $url ) : string
$parameters array The parameters.
$url string The URL.
리턴 string

directMessages() 공개 메소드

Important: This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
public directMessages ( string[optional] $sinceId = null, string[optional] $maxId = null, int[optional] $count = null, int[optional] $page = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$sinceId string[optional]
$maxId string[optional]
$count int[optional]
$page int[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

directMessagesDestroy() 공개 메소드

Important: This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
public directMessagesDestroy ( string $id, bool[optional] $includeEntities = null ) : array
$id string The ID of the direct message to delete.
$includeEntities bool[optional]
리턴 array

directMessagesNew() 공개 메소드

Sends a new direct message to the specified user from the authenticating user. Requires both the user and text parameters and must be a POST. Returns the sent message in the requested format if successful.
public directMessagesNew ( string[optional] $userId = null, string[optional] $screenName = null, string $text ) : array
$userId string[optional]
$screenName string[optional]
$text string The text of your direct message. Be sure to URL encode as necessary, and keep the message under 140 characters.
리턴 array

directMessagesSent() 공개 메소드

Important: This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
public directMessagesSent ( string[optional] $sinceId = null, string[optional] $maxId = null, int[optional] $count = null, int[optional] $page = null, bool[optional] $includeEntities = null ) : array
$sinceId string[optional]
$maxId string[optional]
$count int[optional]
$page int[optional]
$includeEntities bool[optional]
리턴 array

directMessagesShow() 공개 메소드

public directMessagesShow ( string $id ) : array
$id string The ID of the direct message.
리턴 array

doCall() 보호된 메소드

Make the call
protected doCall ( string $url, array $parameters = null, bool[optional] $authenticate = false, bool[optional] $method = 'GET', string[optional] $filePath = null, bool[optional] $expectJSON = true, bool[optional] $returnHeaders = false ) : string
$url string The url to call.
$parameters array
$authenticate bool[optional]
$method bool[optional]
$filePath string[optional]
$expectJSON bool[optional]
$returnHeaders bool[optional]
리턴 string

doOAuthCall() 보호된 메소드

Make an call to the oAuth
protected doOAuthCall ( string $method, array $parameters = null ) : array
$method string The method.
$parameters array
리턴 array

favoritesCreate() 공개 메소드

This process invoked by this method is asynchronous. The immediately returned status may not indicate the resultant favorited status of the tweet. A 200 OK response from this method will indicate whether the intended action was successful or not.
public favoritesCreate ( string $id, bool[optional] $includeEntities = null ) : array
$id string The numerical ID of the desired status.
$includeEntities bool[optional]
리턴 array

favoritesDestroy() 공개 메소드

This process invoked by this method is asynchronous. The immediately returned status may not indicate the resultant favorited status of the tweet. A 200 OK response from this method will indicate whether the intended action was successful or not.
public favoritesDestroy ( string $id, bool[optional] $includeEntities = null ) : array
$id string The numerical ID of the desired status.
$includeEntities bool[optional]
리턴 array

favoritesList() 공개 메소드

Returns the 20 most recent Tweets favorited by the authenticating or specified user.
public favoritesList ( string[otpional] $userId = null, string[otpional] $screenName = null, int[optional] $count = 20, string[otpional] $sinceId = null, string[otpional] $maxId = null, bool[optional] $includeEntities = null ) : array
$userId string[otpional]
$screenName string[otpional]
$count int[optional]
$sinceId string[otpional]
$maxId string[otpional]
$includeEntities bool[optional]
리턴 array

followersIds() 공개 메소드

At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 5,000 user IDs and multiple "pages" of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information. This method is especially powerful when used in conjunction with GET users/lookup, a method that allows you to convert user IDs into full user objects in bulk.
public followersIds ( string[optional] $userId = null, string[optional] $screenName = null, string[optional] $cursor = null, bool[optional] $stringifyIds = true ) : array
$userId string[optional]
$screenName string[optional]
$cursor string[optional]
$stringifyIds bool[optional]
리턴 array

followersList() 공개 메소드

At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 20 users and multiple "pages" of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information.
public followersList ( string[optional] $userId = null, string[optional] $screenName = null, int[optional] $cursor = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$userId string[optional]
$screenName string[optional]
$cursor int[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

friendsIds() 공개 메소드

At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 5,000 user IDs and multiple "pages" of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information. This method is especially powerful when used in conjunction with GET users/lookup, a method that allows you to convert user IDs into full user objects in bulk.
public friendsIds ( string[optional] $userId = null, string[optional] $screenName = null, string[optional] $cursor = null, bool[optional] $stringifyIds = null ) : array
$userId string[optional]
$screenName string[optional]
$cursor string[optional]
$stringifyIds bool[optional]
리턴 array

friendsList() 공개 메소드

At this time, results are ordered with the most recent following first — however, this ordering is subject to unannounced change and eventual consistency issues. Results are given in groups of 20 users and multiple "pages" of results can be navigated through using the next_cursor value in subsequent requests. See Using cursors to navigate collections for more information.
public friendsList ( string[optional] $userId = null, string[optional] $screenName = null, int[optional] $cursor = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$userId string[optional]
$screenName string[optional]
$cursor int[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

friendshipsCreate() 공개 메소드

Returns the befriended user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. If you are already friends with the user a HTTP 403 may be returned, though for performance reasons you may get a 200 OK message even if the friendship already exists. Actions taken in this method are asynchronous and changes will be eventually consistent.
public friendshipsCreate ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $follow = false ) : array
$userId string[optional]
$screenName string[optional]
$follow bool[optional]
리턴 array

friendshipsDestroy() 공개 메소드

Returns the unfollowed user in the requested format when successful. Returns a string describing the failure condition when unsuccessful. Actions taken in this method are asynchronous and changes will be eventually consistent.
public friendshipsDestroy ( string[optional] $userId = null, string[optional] $screenName = null ) : array
$userId string[optional]
$screenName string[optional]
리턴 array

friendshipsIncoming() 공개 메소드

Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.
public friendshipsIncoming ( string[optional] $cursor = null, bool[optional] $stringifyIds = true ) : array
$cursor string[optional]
$stringifyIds bool[optional]
리턴 array

friendshipsLookup() 공개 메소드

Values for connections can be: following, following_requested, followed_by, none.
public friendshipsLookup ( mixed[optional] $userIds = null, mixed[optional] $screenNames = null ) : array
$userIds mixed[optional]
$screenNames mixed[optional]
리턴 array

friendshipsOutgoing() 공개 메소드

Returns a collection of numeric IDs for every protected user for whom the authenticating user has a pending follow request.
public friendshipsOutgoing ( string[optional] $cursor = null, bool[optional] $stringifyIds = true ) : array
$cursor string[optional]
$stringifyIds bool[optional]
리턴 array

friendshipsShow() 공개 메소드

Returns detailed information about the relationship between two arbitrary users.
public friendshipsShow ( string[optional] $sourceId = null, string[optional] $sourceScreenName = null, string[optional] $targetId = null, string[optional] $targetScreenName = null ) : array
$sourceId string[optional]
$sourceScreenName string[optional]
$targetId string[optional]
$targetScreenName string[optional]
리턴 array

friendshipsUpdate() 공개 메소드

Allows one to enable or disable retweets and device notifications from the specified user.
public friendshipsUpdate ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $device = null, bool[optional] $retweets = null ) : array
$userId string[optional]
$screenName string[optional]
$device bool[optional]
$retweets bool[optional]
리턴 array

geoId() 공개 메소드

Returns all the information about a known place.
public geoId ( string $id ) : array
$id string A place in the world. These IDs can be retrieved from geo/reverse_geocode.
리턴 array

geoPlace() 공개 메소드

Creates a new place at the given latitude and longitude.
public geoPlace ( string $name, string $containedWithin, string $token, float $lat, float $long, array $attributes = null ) : array
$name string The name a place is known as.
$containedWithin string The place_id within which the new place can be found. Try and be as close as possible with the containing place. For example, for a room in a building, set the contained_within as the building place_id.
$token string The token found in the response from geo/similar_places.
$lat float The latitude the place is located at. This parameter will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will also be ignored if there isn't a corresponding long parameter.
$long float The longitude the place is located at. The valid ranges for longitude is -180.0 to +180.0 (East is positive) inclusive. This parameter will be ignored if outside that range, if it is not a number, if geo_enabled is disabled, or if there not a corresponding lat parameter.
$attributes array
리턴 array

geoReverseGeoCode() 공개 메소드

This request is an informative call and will deliver generalized results about geography.
public geoReverseGeoCode ( float $lat, float $long, string[optional] $accuracy = null, string[optional] $granularity = null, int[optional] $maxResults = null ) : array
$lat float The latitude to search around. This parameter will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will also be ignored if there isn't a corresponding long parameter.
$long float The longitude to search around. The valid ranges for longitude is -180.0 to +180.0 (East is positive) inclusive. This parameter will be ignored if outside that range, if it is not a number, if geo_enabled is disabled, or if there not a corresponding lat parameter.
$accuracy string[optional]
$granularity string[optional]
$maxResults int[optional]
리턴 array

geoSearch() 공개 메소드

Conceptually, a query can be made from the user's location, retrieve a list of places, have the user validate the location he or she is at, and then send the ID of this location with a call to POST statuses/update. This is the recommended method to use find places that can be attached to statuses/update. Unlike GET geo/reverse_geocode which provides raw data access, this endpoint can potentially re-order places with regards to the user who is authenticated. This approach is also preferred for interactive place matching with the user.
public geoSearch ( float[optional] $lat = null, float[optional] $long = null, string[optional] $query = null, string[optional] $ip = null, string[optional] $granularity = null, string[optional] $accuracy = null, int[optional] $maxResults = null, string[optional] $containedWithin = null, array $attributes = null ) : array
$lat float[optional]
$long float[optional]
$query string[optional]
$ip string[optional]
$granularity string[optional]
$accuracy string[optional]
$maxResults int[optional]
$containedWithin string[optional]
$attributes array
리턴 array

geoSimilarPlaces() 공개 메소드

Conceptually you would use this method to get a list of known places to choose from first. Then, if the desired place doesn't exist, make a request to POST geo/place to create a new one. The token contained in the response is the token needed to be able to create a new place.
public geoSimilarPlaces ( float $lat, float $long, string $name, string[optional] $containedWithin = null, array $attributes = null ) : array
$lat float The latitude to search around. This parameter will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will also be ignored if there isn't a corresponding long parameter.
$long float The longitude to search around. The valid ranges for longitude is -180.0 to +180.0 (East is positive) inclusive. This parameter will be ignored if outside that range, if it is not a number, if geo_enabled is disabled, or if there not a corresponding lat parameter.
$name string The name a place is known as.
$containedWithin string[optional]
$attributes array
리턴 array

getConsumerKey() 보호된 메소드

Get the consumer key
protected getConsumerKey ( ) : string
리턴 string

getConsumerSecret() 보호된 메소드

Get the consumer secret
protected getConsumerSecret ( ) : string
리턴 string

getOAuthToken() 보호된 메소드

Get the oAuth-token
protected getOAuthToken ( ) : string
리턴 string

getOAuthTokenSecret() 보호된 메소드

Get the oAuth-token-secret
protected getOAuthTokenSecret ( ) : string
리턴 string

getTimeOut() 공개 메소드

Get the timeout
public getTimeOut ( ) : integer
리턴 integer

getUserAgent() 공개 메소드

It will look like: "PHP Twitter/ "
public getUserAgent ( ) : string
리턴 string

helpConfiguration() 공개 메소드

It is recommended applications request this endpoint when they are loaded, but no more than once a day.
public helpConfiguration ( ) : array
리턴 array

helpLanguages() 공개 메소드

Returns the list of languages supported by Twitter along with their ISO 639-1 code. The ISO 639-1 code is the two letter value to use if you include lang with any of your requests.
public helpLanguages ( ) : array
리턴 array

helpPrivacy() 공개 메소드

Returns Twitter's Privacy Policy
public helpPrivacy ( ) : array
리턴 array

helpTos() 공개 메소드

Returns the Twitter Terms of Service in the requested format. These are not the same as the Developer Rules of the Road.
public helpTos ( ) : array
리턴 array

hmacsha1() 보호된 메소드

Build the signature for the data
protected hmacsha1 ( string $key, string $data ) : string
$key string The key to use for signing.
$data string The data that has to be signed.
리턴 string

listSubscriptions() 공개 메소드

Not implemented yet
public listSubscriptions ( )

listsCreate() 공개 메소드

Not implemented yet
public listsCreate ( )

listsDestroy() 공개 메소드

Not implemented yet
public listsDestroy ( )

listsList() 공개 메소드

Not implemented yet
public listsList ( )

listsMembers() 공개 메소드

Not implemented yet
public listsMembers ( )

listsMembersCreate() 공개 메소드

Not implemented yet
public listsMembersCreate ( )

listsMembersCreateAll() 공개 메소드

Not implemented yet

listsMembersDestroy() 공개 메소드

Not implemented yet
public listsMembersDestroy ( )

listsMembersDestroyAll() 공개 메소드

Not implemented yet

listsMembersShow() 공개 메소드

Not implemented yet
public listsMembersShow ( )

listsMemberships() 공개 메소드

Not implemented yet
public listsMemberships ( )

listsShow() 공개 메소드

Not implemented yet
public listsShow ( )

listsStatuses() 공개 메소드

Not implemented yet
public listsStatuses ( )

listsSubscribers() 공개 메소드

Not implemented yet
public listsSubscribers ( )

listsSubscribersCreate() 공개 메소드

Not implemented yet

listsSubscribersDestroy() 공개 메소드

Not implemented yet

listsSubscribersShow() 공개 메소드

Not implemented yet

listsUpdate() 공개 메소드

Not implemented yet
public listsUpdate ( )

oAuthAccessToken() 공개 메소드

This method fulfills Secion 6.3 of the OAuth 1.0 authentication flow.
public oAuthAccessToken ( string $token, string $verifier ) : array
$token string The token to use.
$verifier string The verifier.
리턴 array

oAuthAuthenticate() 공개 메소드

This method is a replacement fulfills Secion 6.2 of the OAuth 1.0 authentication flow for applications using the Sign in with Twitter authentication flow. The method will use the currently logged in user as the account to for access authorization unless the force_login parameter is set to true
public oAuthAuthenticate ( string $token, bool[optional] $force = false, string[optional] $screen_name = false )
$token string The token.
$force bool[optional]
$screen_name string[optional]

oAuthAuthorize() 공개 메소드

Will redirect to the page to authorize the applicatione
public oAuthAuthorize ( string $token )
$token string The token.

oAuthRequestToken() 공개 메소드

This method fulfills Secion 6.1 of the OAuth 1.0 authentication flow.
public oAuthRequestToken ( string[optional] $callbackURL = null ) : array
$callbackURL string[optional]
리턴 array An array containg the token and the secret

reportSpam() 공개 메소드

The user specified in the id is blocked by the authenticated user and reported as a spammer.
public reportSpam ( string[optional] $screenName = null, string[optional] $userId = null ) : array
$screenName string[optional]
$userId string[optional]
리턴 array

savedSearchesCreate() 공개 메소드

Create a new saved search for the authenticated user. A user may only have 25 saved searches.
public savedSearchesCreate ( string $query ) : array
$query string The query of the search the user would like to save.
리턴 array

savedSearchesDestroy() 공개 메소드

Destroys a saved search for the authenticating user. The authenticating user must be the owner of saved search id being destroyed.
public savedSearchesDestroy ( string $id ) : array
$id string The ID of the saved search.
리턴 array

savedSearchesList() 공개 메소드

Returns the authenticated user's saved search queries.
public savedSearchesList ( ) : array
리턴 array

savedSearchesShow() 공개 메소드

Retrieve the information for the saved search represented by the given id. The authenticating user must be the owner of saved search ID being requested.
public savedSearchesShow ( string $id ) : array
$id string The ID of the saved search.
리턴 array

searchTweets() 공개 메소드

Returns tweets that match a specified query.
public searchTweets ( string $q, string[optional] $geocode = null, string[optional] $lang = null, string[optional] $locale = null, string[optional] $resultType = null, int[optional] $count = null, string[optional] $until = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $includeEntities = null ) : array
$q string A UTF-8, URL-encoded search query of 1,000 characters maximum, including operators. Queries may additionally be limited by complexity.
$geocode string[optional]
$lang string[optional]
$locale string[optional]
$resultType string[optional]
$count int[optional]
$until string[optional]
$sinceId string[optional]
$maxId string[optional]
$includeEntities bool[optional]
리턴 array

setConsumerKey() 보호된 메소드

Set the consumer key
protected setConsumerKey ( string $key )
$key string The consumer key to use.

setConsumerSecret() 보호된 메소드

Set the consumer secret
protected setConsumerSecret ( string $secret )
$secret string The consumer secret to use.

setOAuthToken() 공개 메소드

Set the oAuth-token
public setOAuthToken ( string $token )
$token string The token to use.

setOAuthTokenSecret() 공개 메소드

Set the oAuth-secret
public setOAuthTokenSecret ( string $secret )
$secret string The secret to use.

setReturnAsArray() 보호된 메소드

Set the response type
protected setReturnAsArray ( boolean $value )
$value boolean True for array and false for object

setTimeOut() 공개 메소드

Set the timeout
public setTimeOut ( integer $seconds )
$seconds integer The timeout in seconds.

setUserAgent() 공개 메소드

It will look like: "PHP Twitter/ "
public setUserAgent ( string $userAgent )
$userAgent string Your user-agent, it should look like /.

site() 공개 메소드

Not implemented yet
public site ( )

statusesDestroy() 공개 메소드

Destroys the status specified by the required ID parameter. The authenticating user must be the author of the specified status. Returns the destroyed status if successful.
public statusesDestroy ( string $id, bool[optional] $trimUser = null ) : array
$id string The numerical ID of the desired status.
$trimUser bool[optional]
리턴 array

statusesFilter() 공개 메소드

Not implemented yet
public statusesFilter ( )

statusesFirehose() 공개 메소드

Not implemented yet
public statusesFirehose ( )

statusesHomeTimeline() 공개 메소드

This method is identical to statusesFriendsTimeline, except that this method always includes retweets.
public statusesHomeTimeline ( int[optional] $count = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $excludeReplies = null, bool[optional] $contributorDetails = null, bool[optional] $includeEntities = null ) : array
$count int[optional]
$sinceId string[optional]
$maxId string[optional]
$trimUser bool[optional]
$excludeReplies bool[optional]
$contributorDetails bool[optional]
$includeEntities bool[optional]
리턴 array

statusesMentionsTimeline() 공개 메소드

The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com. This method can only return up to 800 tweets.
public statusesMentionsTimeline ( int[optional] $count = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $contributorDetails = null, bool[optional] $includeEntities = null ) : array
$count int[optional]
$sinceId string[optional]
$maxId string[optional]
$trimUser bool[optional]
$contributorDetails bool[optional]
$includeEntities bool[optional]
리턴 array

statusesOEmbed() 공개 메소드

public statusesOEmbed ( string[optional] $id = null, string[optional] $url = null, int[optional] $maxwidth = null, bool[optional] $hideMedia = null, bool[optional] $hideThread = null, bool[optional] $omitScript = null, string[optional] $align = null, string[optional] $related = null, string[optional] $lang = null ) : array
$id string[optional]
$url string[optional]
$maxwidth int[optional]
$hideMedia bool[optional]
$hideThread bool[optional]
$omitScript bool[optional]
$align string[optional]
$related string[optional]
$lang string[optional]
리턴 array

statusesRetweet() 공개 메소드

Retweets a tweet. Returns the original tweet with retweet details embedded.
public statusesRetweet ( string $id, bool[optional] $trimUser = null ) : array
$id string The numerical ID of the desired status.
$trimUser bool[optional]
리턴 array

statusesRetweets() 공개 메소드

Returns up to 100 of the first retweets of a given tweet.
public statusesRetweets ( string $id, int[optional] $count = null, bool[optional] $trimUser = null ) : array
$id string The numerical ID of the desired status.
$count int[optional]
$trimUser bool[optional]
리턴 array

statusesRetweetsOfMe() 공개 메소드

Returns the most recent tweets authored by the authenticating user that have recently been retweeted by others. This timeline is a subset of the user's GET statuses/user_timeline.
public statusesRetweetsOfMe ( int[optional] $count = null, string[optional] $sinceId = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $includeEntities = null, bool[optional] $includeUserEntities = null ) : array
$count int[optional]
$sinceId string[optional]
$maxId string[optional]
$trimUser bool[optional]
$includeEntities bool[optional]
$includeUserEntities bool[optional]
리턴 array

statusesSample() 공개 메소드

Not implemented yet
public statusesSample ( )

statusesShow() 공개 메소드

Returns a single Tweet, specified by the id parameter. The Tweet's author will also be embedded within the tweet.
public statusesShow ( string $id, bool[optional] $trimUser = null, bool[optional] $includeMyRetweet = null, bool[optional] $includeEntities = null ) : array
$id string The numerical ID of the desired Tweet.
$trimUser bool[optional]
$includeMyRetweet bool[optional]
$includeEntities bool[optional]
리턴 array

statusesUpdate() 공개 메소드

Updates the authenticating user's status. A status update with text identical to the authenticating user's text identical to the authenticating user's current status will be ignored to prevent duplicates.
public statusesUpdate ( string $status, string[optional] $inReplyToStatusId = null, float[optional] $lat = null, float[optional] $long = null, string[optional] $placeId = null, bool[optional] $displayCoordinates = null, bool[optional] $trimUser = null ) : array
$status string The text of your status update, typically up to 140 characters. URL encode as necessary. t.co link wrapping may effect character counts. There are some special commands in this field to be aware of. For instance, preceding a message with "D " or "M " and following it with a screen name can create a direct message to that user if the relationship allows for it.
$inReplyToStatusId string[optional]
$lat float[optional]
$long float[optional]
$placeId string[optional]
$displayCoordinates bool[optional]
$trimUser bool[optional]
리턴 array

statusesUpdateWithMedia() 공개 메소드

Not implemented yet

statusesUserTimeline() 공개 메소드

User timelines belonging to protected users may only be requested when the authenticated user either "owns" the timeline or is an approved follower of the owner. The timeline returned is the equivalent of the one seen when you view a user's profile on twitter.com. This method can only return up to 3,200 of a user's most recent Tweets. Native retweets of other statuses by the user is included in this total, regardless of whether include_rts is set to false when requesting this resource.
public statusesUserTimeline ( string[optional] $userId = null, string[optional] $screenName = null, string[optional] $sinceId = null, int[optional] $count = null, string[optional] $maxId = null, bool[optional] $trimUser = null, bool[optional] $excludeReplies = null, bool[optional] $contributorDetails = null, bool[optional] $includeRts = null ) : array
$userId string[optional]
$screenName string[optional]
$sinceId string[optional]
$count int[optional]
$maxId string[optional]
$trimUser bool[optional]
$excludeReplies bool[optional]
$contributorDetails bool[optional]
$includeRts bool[optional]
리턴 array

trendsAvailable() 공개 메소드

The response is an array of "locations" that encode the location's WOEID (a Yahoo! Where On Earth ID) and some other human-readable information such as a canonical name and country the location belongs in. The WOEID that is returned in the location object is to be used when querying for a specific trend.
public trendsAvailable ( float[optional] $lat = null, float[optional] $long = null ) : array
$lat float[optional]
$long float[optional]
리턴 array

trendsClosest() 공개 메소드

The response is an array of "locations" that encode the location's WOEID and some other human-readable information such as a canonical name and country the location belongs in.
public trendsClosest ( float[optional] $lat = null, float[optional] $long = null ) : array
$lat float[optional]
$long float[optional]
리턴 array

trendsPlace() 공개 메소드

The response is an array of "trend" objects that encode the name of the trending topic, the query parameter that can be used to search for the topic on Twitter Search, and the Twitter Search URL. This information is cached for 5 minutes. Requesting more frequently than that will not return any more data, and will count against your rate limit usage.
public trendsPlace ( string $id, string[optional] $exclude = null ) : array
$id string The Yahoo! Where On Earth ID of the location to return trending information for. Global information is available by using 1 as the WOEID.
$exclude string[optional]
리턴 array

urlencode_rfc3986() 보호된 정적인 메소드

URL-encode method for internal use
protected static urlencode_rfc3986 ( mixed $value ) : string
$value mixed The value to encode.
리턴 string

user() 공개 메소드

Not implemented yet
public user ( )

usersContributees() 공개 메소드

Returns a collection of users that the specified user can "contribute" to.
public usersContributees ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$userId string[optional]
$screenName string[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

usersContributors() 공개 메소드

Returns a collection of users who can contribute to the specified account.
public usersContributors ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null, bool[optional] $skipStatus = null ) : array
$userId string[optional]
$screenName string[optional]
$includeEntities bool[optional]
$skipStatus bool[optional]
리턴 array

usersLookup() 공개 메소드

Returns fully-hydrated user objects for up to 100 users per request, as specified by comma-separated values passed to the user_id and/or screen_name parameters.
public usersLookup ( mixed[optional] $userIds = null, mixed[optional] $screenNames = null, bool[optional] $includeEntities = null ) : array
$userIds mixed[optional]
$screenNames mixed[optional]
$includeEntities bool[optional]
리턴 array

usersProfileBanner() 공개 메소드

Returns a map of the available size variations of the specified user's profile banner. If the user has not uploaded a profile banner, a HTTP 404 will be served instead.
public usersProfileBanner ( string[optional] $userId = null, string[optional] $screenName = null ) : array
$userId string[optional]
$screenName string[optional]
리턴 array

usersSearch() 공개 메소드

Usage note: It is only possible to retrieve the first 1000 matches from this API.
public usersSearch ( string $q, int[optional] $page = null, int[optional] $count = null, bool[optional] $includeEntities = null ) : array
$q string The search query to run against people search.
$page int[optional]
$count int[optional]
$includeEntities bool[optional]
리턴 array

usersShow() 공개 메소드

The author's most recent Tweet will be returned inline when possible.
public usersShow ( string[optional] $userId = null, string[optional] $screenName = null, bool[optional] $includeEntities = null ) : array
$userId string[optional]
$screenName string[optional]
$includeEntities bool[optional]
리턴 array

usersSuggestions() 공개 메소드

Access to Twitter's suggested user list. This returns the list of suggested user categories. The category can be used in usersSuggestionsSlug to get the users in that category.
public usersSuggestions ( string[optional] $lang = null ) : array
$lang string[optional]
리턴 array

usersSuggestionsSlug() 공개 메소드

It is recommended that applications cache this data for no more than one hour.
public usersSuggestionsSlug ( string $slug, string[optional] $lang = null ) : array
$slug string The short name of list or a category.
$lang string[optional]
리턴 array

usersSuggestionsSlugMembers() 공개 메소드

Access the users in a given category of the Twitter suggested user list and return their most recent status if they are not a protected user.
public usersSuggestionsSlugMembers ( string $slug ) : array
$slug string The short name of list or a category
리턴 array

프로퍼티 상세

$consumerKey 보호되어 있는 프로퍼티

The consumer key
protected string $consumerKey
리턴 string

$consumerSecret 보호되어 있는 프로퍼티

The consumer secret
protected string $consumerSecret
리턴 string

$curl 보호되어 있는 프로퍼티

A cURL instance
protected resource $curl
리턴 resource

$oAuthToken 보호되어 있는 프로퍼티

The oAuth-token
protected string $oAuthToken
리턴 string

$oAuthTokenSecret 보호되어 있는 프로퍼티

The oAuth-token-secret
protected string $oAuthTokenSecret
리턴 string

$returnAsArray 보호되어 있는 프로퍼티

The response should be cast as array or not
protected bool $returnAsArray
리턴 boolean

$timeOut 보호되어 있는 프로퍼티

The timeout
protected int $timeOut
리턴 integer

$userAgent 보호되어 있는 프로퍼티

The user agent
protected string $userAgent
리턴 string