include/externalAPI/Twitter/ExtAPITwitter.php

Show: inherited
Table of Contents

\ExtAPITwitter

Package:

External API based on OAuth

Parent(s)
\WebFeed < \ExternalAPIBase < \ExternalAPIPlugin

Constants

Constant  APP_STRING_ERROR_PREFIX = 'ERR_EXTERNAL_API_'

Properties

Propertyprotected  $_appStringErrorPrefix= 'self::APP_STRING_ERROR_PREFIX'
Default valueself::APP_STRING_ERROR_PREFIXDetails
Type
n/a
Inherited_from
\ExternalAPIBase::$$_appStringErrorPrefix  
Inherited_from
\OAuthPluginBase::$$_appStringErrorPrefix  
Propertypublic  $account_name= ''
Details
Type
n/a
Inherited_from
\ExternalAPIBase::$$account_name  
Inherited_from
\OAuthPluginBase::$$account_name  
Propertypublic  $account_password= ''
Details
Type
n/a
Inherited_from
\ExternalAPIBase::$$account_password  
Inherited_from
\OAuthPluginBase::$$account_password  
Propertyprotected\EAPM  $authData= ''

Authorization data

Details
Type
\EAPM
Propertypublic  $authMethod= ''oauth''
Default value'oauth'Details
Type
n/a
Propertypublic  $connector= '"ext_rest_twitter"'
Default value"ext_rest_twitter"Details
Type
n/a
Propertypublic  $needsUrl= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $oauthAccess= ''https://api.twitter.com/oauth/access_token''
Default value'https://api.twitter.com/oauth/access_token'Details
Type
n/a
Propertyprotected  $oauthAuth= ''https://api.twitter.com/oauth/authorize''
Default value'https://api.twitter.com/oauth/authorize'Details
Type
n/a
Propertyprotected  $oauthParams= 'array( 'signatureMethod' => 'HMAC-SHA1', )'
Default valuearray( 'signatureMethod' => 'HMAC-SHA1', )Details
Type
n/a
Propertyprotected  $oauthReq= '"https://api.twitter.com/oauth/request_token"'
Default value"https://api.twitter.com/oauth/request_token"Details
Type
n/a
Propertyprotected  $oauth_keys_initialized= 'false'
Default valuefalseDetails
Type
n/a
Inherited_from
\OAuthPluginBase::$$oauth_keys_initialized  
Propertypublic  $requireAuth= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $supportedModules= 'array('SugarFeed')'
Default valuearray('SugarFeed')Details
Type
n/a
Propertypublic  $useAuth= 'true'
Default valuetrueDetails
Type
n/a

Methods

methodpublic__construct( ) : void
inherited

Inherited from: \OAuthPluginBase::__construct()
methodpubliccheckLogin( \EAPM $eapmBean = null ) : void
inherited

Check login

Inherited from: \OAuthPluginBase::checkLogin()
Parameters
Name Type Description
$eapmBean \EAPM
Details
See
\ExternalAPIBase::checkLogin()  
methodprotectedcheckOauthLogin( ) : void
inherited

Inherited from: \OAuthPluginBase::checkOauthLogin()
methodprotectedformatCallbackURL( \$callback_url $callback_url ) : String

This function takes a callback_url and checks the $_REQUEST variable to see if additional parameters should be appended to the callback_url value. The $_REQUEST variables that are being checked deal with handling the behavior of closing/hiding windows/tabs that are displayed when prompting for OAUTH validation

Parameters
Name Type Description
$callback_url \$callback_url

String value of callback URL

Returns
Type Description
String value of URL with applicable formatting
methodpublicgetConnector( ) : \source | null
inherited

Get connector for this API

Inherited from: \ExternalAPIBase::getConnector()\OAuthPluginBase::getConnector()
Returns
Type Description
\source | null
methodpublicgetConnectorParam( string $name ) : mixed
inherited

Get parameter from source

Inherited from: \ExternalAPIBase::getConnectorParam()\OAuthPluginBase::getConnectorParam()
Parameters
Name Type Description
$name string
Returns
Type Description
mixed
methodprotectedgetErrorStringFromCode( \unknown_type $error_numb ) : void
inherited

Allow API clients to provide translated language strings for a given error code

Inherited from: \ExternalAPIBase::getErrorStringFromCode()\OAuthPluginBase::getErrorStringFromCode()
Parameters
Name Type Description
$error_numb \unknown_type
methodpublicgetLatestUpdates(  $maxTime,  $maxEntries ) : void

Parameters
Name Type Description
$maxTime
$maxEntries
methodpublicgetOauth( ) : \SugarOauth
inherited

Get OAuth client

Inherited from: \OAuthPluginBase::getOauth()
Returns
Type Description
\SugarOauth
methodpublicgetOauthAccessURL( ) : void
inherited

Inherited from: \OAuthPluginBase::getOauthAccessURL()
methodpublicgetOauthAuthURL( ) : void
inherited

Inherited from: \OAuthPluginBase::getOauthAuthURL()
methodpublicgetOauthParams( ) : void
inherited

Inherited from: \OAuthPluginBase::getOauthParams()
methodpublicgetOauthRequestURL( ) : void
inherited

Inherited from: \OAuthPluginBase::getOauthRequestURL()
methodprotectedgetValue(  $value ) : void
Parameters
Name Type Description
$value
methodpublicisMimeDetectionAvailable( ) : bool
inherited

Determine if mime detection extensions are available.

Inherited from: \ExternalAPIBase::isMimeDetectionAvailable()\OAuthPluginBase::isMimeDetectionAvailable()
Returns
Type Description
bool
methodpublicloadEAPM( \EAPM $eapmBean ) : void
inherited

Load data from EAPM bean

Inherited from: \OAuthPluginBase::loadEAPM()
Parameters
Name Type Description
$eapmBean \EAPM
Details
See
\ExternalAPIBase::loadEAPM()  
methodpubliclogOff( ) : void
methodprotectedmakeRequest(  $requestMethod,  $url,  $urlParams = null,  $postData = null ) : void

Parameters
Name Type Description
$requestMethod
$url
$urlParams
$postData
methodpublicoauthLogin( ) : void
inherited

Inherited from: \OAuthPluginBase::oauthLogin()
methodprotectedpostData(  $url,  $postfields,  $headers ) : void
Parameters
Name Type Description
$url
$postfields
$headers
methodpublicquickCheckLogin( ) : void
inherited

Inherited from: \OAuthPluginBase::quickCheckLogin()
methodpublicsetupOauthKeys( ) : void
inherited

Setup oauth parameters from connector

Inherited from: \OAuthPluginBase::setupOauthKeys()
methodpublicsupports(  $method = '' ) : void
inherited

Does API support this method?

Inherited from: \ExternalAPIBase::supports()\OAuthPluginBase::supports()
Parameters
Name Type Description
$method
Details
See
\ExternalAPIPlugin::supports()  
Documentation was generated by DocBlox 0.18.1.