PHP Class Thujohn\Twitter\Twitter

Inheritance: extends tmhOAut\tmhOAuth, use trait Thujohn\Twitter\Traits\AccountTrait, use trait Thujohn\Twitter\Traits\BlockTrait, use trait Thujohn\Twitter\Traits\DirectMessageTrait, use trait Thujohn\Twitter\Traits\FavoriteTrait, use trait Thujohn\Twitter\Traits\FriendshipTrait, use trait Thujohn\Twitter\Traits\GeoTrait, use trait Thujohn\Twitter\Traits\HelpTrait, use trait Thujohn\Twitter\Traits\ListTrait, use trait Thujohn\Twitter\Traits\MediaTrait, use trait Thujohn\Twitter\Traits\SearchTrait, use trait Thujohn\Twitter\Traits\StatusTrait, use trait Thujohn\Twitter\Traits\TrendTrait, use trait Thujohn\Twitter\Traits\UserTrait
Mostrar archivo Open project: thujohn/twitter Class Usage Examples

Public Methods

Method Description
__construct ( Illuminate\Config\Repository $config, Illuminate\Session\Store $session )
ago ( $timestamp )
get ( $name, $parameters = [], $multipart = false )
getAccessToken ( $oauth_verifier = null ) Get an access token for a logged in user
getAuthorizeURL ( $token, $sign_in_with_twitter = true, $force_login = false ) Get the authorize URL
getRequestToken ( String $oauth_callback = null ) Get a request_token from Twitter
linkAddTweetToFavorites ( $tweet )
linkReply ( $tweet )
linkRetweet ( $tweet )
linkTweet ( $tweet )
linkUser ( $user )
linkify ( $tweet )
logs ( )
post ( $name, $parameters = [], $multipart = false )
query ( $name, $requestMethod = 'GET', $parameters = [], $multipart = false )
reconfig ( Array $config ) : void Set new config values for the OAuth class like different tokens.

Private Methods

Method Description
jsonDecode ( $json, $assoc = false )
log ( $message )

Method Details

__construct() public method

public __construct ( Illuminate\Config\Repository $config, Illuminate\Session\Store $session )
$config Illuminate\Config\Repository
$session Illuminate\Session\Store

ago() public method

public ago ( $timestamp )

get() public method

public get ( $name, $parameters = [], $multipart = false )

getAccessToken() public method

Get an access token for a logged in user
public getAccessToken ( $oauth_verifier = null )

getAuthorizeURL() public method

Get the authorize URL
public getAuthorizeURL ( $token, $sign_in_with_twitter = true, $force_login = false )

getRequestToken() public method

Get a request_token from Twitter
public getRequestToken ( String $oauth_callback = null )
$oauth_callback String [Optional] The callback provided for Twitter's API. The user will be redirected there after authorizing your app on Twitter.

linkAddTweetToFavorites() public method

public linkAddTweetToFavorites ( $tweet )

linkReply() public method

public linkReply ( $tweet )

linkRetweet() public method

public linkRetweet ( $tweet )

linkTweet() public method

public linkTweet ( $tweet )

linkUser() public method

public linkUser ( $user )

linkify() public method

public linkify ( $tweet )

logs() public method

public logs ( )

post() public method

public post ( $name, $parameters = [], $multipart = false )

query() public method

public query ( $name, $requestMethod = 'GET', $parameters = [], $multipart = false )

reconfig() public method

Set new config values for the OAuth class like different tokens.
public reconfig ( Array $config ) : void
$config Array An array containing the values that should be overwritten.
return void