EasyBlogClientTwitter
extends EasyBlogTwitterOAuth
in package
Table of Contents
Properties
- $apiKey : mixed
- $apiSecret : mixed
- $app : mixed
- $callback : mixed
- $config : mixed
- $connecttimeout : mixed
- $consumer : mixed
- $decode_json : mixed
- $format : mixed
- $host : mixed
- $http_code : mixed
- $http_info : mixed
- $input : mixed
- $redirect : mixed
- $sha1_method : mixed
- $ssl_verifypeer : mixed
- $timeout : mixed
- $token : mixed
- $url : mixed
- $useragent : mixed
Methods
- __construct() : mixed
- construct EasyBlogTwitterOAuth object
- accessTokenURL() : mixed
- Set API URLS
- authenticateURL() : mixed
- authorizeURL() : mixed
- delete() : mixed
- DELETE wrapper for oAuthReqeust.
- formatMessage() : mixed
- Formats the message to be published on Twitter
- get() : mixed
- GET wrapper for oAuthRequest.
- getAccess() : mixed
- Exchanges the request token with the access token
- getAccessToken() : mixed
- Exchange request token and secret for an access token and secret, to sign API calls.
- getAuthorizeURL() : mixed
- Retrieves the authorization url for twitter
- getHeader() : mixed
- Get the header info to store.
- getLoginButton() : mixed
- Retrieves the loggin button for Facebook
- getRequestToken() : mixed
- Get a request_token from Twitter
- getRevokeButton() : mixed
- Retrieves the revoke access button
- getVerifier() : mixed
- Retrieves the verifier code
- getXAuthToken() : mixed
- One time exchange of username and password for access token and secret.
- http() : API
- Make an HTTP request
- lastAPICall() : mixed
- lastStatusCode() : mixed
- Debug helpers
- oAuthRequest() : mixed
- Format and sign an OAuth / API request
- post() : mixed
- POST wrapper for oAuthRequest.
- requestTokenURL() : mixed
- revoke() : mixed
- Revokes twitter access
- search() : mixed
- Search for tweets given the hash tags
- setAccess() : mixed
- setCallback() : mixed
- setRequestToken() : mixed
- Sets the request token
- share() : mixed
- Shares a new content on twitter
- upload() : mixed
- Uploads a media file
- uploadMedia() : mixed
- Uploads post cover to Twitter
Properties
$apiKey
public
mixed
$apiKey
= \null
$apiSecret
public
mixed
$apiSecret
= \null
$app
public
mixed
$app
= \null
$callback
public
mixed
$callback
= ''
$config
public
mixed
$config
= \null
$connecttimeout
public
mixed
$connecttimeout
= 30
$consumer
public
mixed
$consumer
= \null
$decode_json
public
mixed
$decode_json
= \TRUE
$format
public
mixed
$format
= 'json'
$host
public
mixed
$host
= "https://api.twitter.com/1.1/"
$http_code
public
mixed
$http_code
$http_info
public
mixed
$http_info
$input
public
mixed
$input
= \null
$redirect
public
mixed
$redirect
= \null
$sha1_method
public
mixed
$sha1_method
= \null
$ssl_verifypeer
public
mixed
$ssl_verifypeer
= \FALSE
$timeout
public
mixed
$timeout
= 30
$token
public
mixed
$token
= \null
$url
public
mixed
$url
$useragent
public
mixed
$useragent
= 'TwitterOAuth v0.2.0-beta2'
Methods
__construct()
construct EasyBlogTwitterOAuth object
public
__construct([mixed $options = array() ]) : mixed
Parameters
- $options : mixed = array()
accessTokenURL()
Set API URLS
public
accessTokenURL() : mixed
authenticateURL()
public
authenticateURL() : mixed
authorizeURL()
public
authorizeURL() : mixed
delete()
DELETE wrapper for oAuthReqeust.
public
delete(mixed $url[, mixed $parameters = array() ]) : mixed
Parameters
- $url : mixed
- $parameters : mixed = array()
formatMessage()
Formats the message to be published on Twitter
public
formatMessage(EasyBlogPost &$post, EasyBlogTableOAuth &$oauth) : mixed
Parameters
- $post : EasyBlogPost
- $oauth : EasyBlogTableOAuth
Tags
get()
GET wrapper for oAuthRequest.
public
get(mixed $url[, mixed $parameters = array() ]) : mixed
Parameters
- $url : mixed
- $parameters : mixed = array()
getAccess()
Exchanges the request token with the access token
public
getAccess() : mixed
Tags
getAccessToken()
Exchange request token and secret for an access token and secret, to sign API calls.
public
getAccessToken([mixed $oauth_verifier = FALSE ]) : mixed
Parameters
- $oauth_verifier : mixed = FALSE
Tags
getAuthorizeURL()
Retrieves the authorization url for twitter
public
getAuthorizeURL(mixed $token[, mixed $autoSignIn = false ]) : mixed
Parameters
- $token : mixed
- $autoSignIn : mixed = false
Tags
getHeader()
Get the header info to store.
public
getHeader(mixed $ch, mixed $header) : mixed
Parameters
- $ch : mixed
- $header : mixed
getLoginButton()
Retrieves the loggin button for Facebook
public
getLoginButton(mixed $return[, mixed $system = false ][, mixed $userId = false ]) : mixed
Parameters
- $return : mixed
- $system : mixed = false
- $userId : mixed = false
Tags
getRequestToken()
Get a request_token from Twitter
public
getRequestToken([mixed $oauth_callback = NULL ]) : mixed
Parameters
- $oauth_callback : mixed = NULL
getRevokeButton()
Retrieves the revoke access button
public
getRevokeButton(mixed $return[, mixed $system = false ][, mixed $userId = false ]) : mixed
Parameters
- $return : mixed
- $system : mixed = false
- $userId : mixed = false
Tags
getVerifier()
Retrieves the verifier code
public
getVerifier() : mixed
Tags
getXAuthToken()
One time exchange of username and password for access token and secret.
public
getXAuthToken(mixed $username, mixed $password) : mixed
Parameters
- $username : mixed
- $password : mixed
Tags
http()
Make an HTTP request
public
http(mixed $url, mixed $method[, mixed $postfields = NULL ]) : API
Parameters
- $url : mixed
- $method : mixed
- $postfields : mixed = NULL
Return values
API —results
lastAPICall()
public
lastAPICall() : mixed
lastStatusCode()
Debug helpers
public
lastStatusCode() : mixed
oAuthRequest()
Format and sign an OAuth / API request
public
oAuthRequest(mixed $url, mixed $method, mixed $parameters) : mixed
Parameters
- $url : mixed
- $method : mixed
- $parameters : mixed
Tags
post()
POST wrapper for oAuthRequest.
public
post(mixed $url[, mixed $parameters = array() ]) : mixed
Parameters
- $url : mixed
- $parameters : mixed = array()
requestTokenURL()
public
requestTokenURL() : mixed
revoke()
Revokes twitter access
public
revoke() : mixed
Tags
search()
Search for tweets given the hash tags
public
search(mixed $hashtags[, mixed $lastImport = null ]) : mixed
Parameters
- $hashtags : mixed
- $lastImport : mixed = null
Tags
setAccess()
public
setAccess(mixed $access) : mixed
Parameters
- $access : mixed
setCallback()
public
setCallback(mixed $url) : mixed
Parameters
- $url : mixed
setRequestToken()
Sets the request token
public
setRequestToken(mixed $token, mixed $secret) : mixed
Parameters
- $token : mixed
- $secret : mixed
Tags
share()
Shares a new content on twitter
public
share(EasyBlogPost &$post, EasyBlogTableOAuth &$oauth[, mixed $system = true ][, mixed $reposting = false ]) : mixed
Parameters
- $post : EasyBlogPost
- $oauth : EasyBlogTableOAuth
- $system : mixed = true
- $reposting : mixed = false
Tags
upload()
Uploads a media file
public
upload(mixed $url[, mixed $parameters = array() ]) : mixed
Parameters
- $url : mixed
- $parameters : mixed = array()
Tags
uploadMedia()
Uploads post cover to Twitter
public
uploadMedia(EasyBlogPost &$post) : mixed
Parameters
- $post : EasyBlogPost