include/externalAPI/Twitter/ExtAPITwitter.php
\ExtAPITwitter
Package:
Parameters
Returns
External API based on OAuth
- Parent(s)
- \WebFeed < \ExternalAPIBase < \ExternalAPIPlugin
Constants
APP_STRING_ERROR_PREFIX
= 'ERR_EXTERNAL_API_'
inheritedInherited from:
\ExternalAPIBase::APP_STRING_ERROR_PREFIX\OAuthPluginBase::APP_STRING_ERROR_PREFIX
- Inherited_from
- \ExternalAPIBase::APP_STRING_ERROR_PREFIX
- Inherited_from
- \OAuthPluginBase::APP_STRING_ERROR_PREFIX
Properties
$_appStringErrorPrefix= 'self::APP_STRING_ERROR_PREFIX'
inheritedInherited from:
\ExternalAPIBase::$$_appStringErrorPrefix\OAuthPluginBase::$$_appStringErrorPrefix
Default value
self::APP_STRING_ERROR_PREFIX
Details- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$_appStringErrorPrefix
- Inherited_from
- \OAuthPluginBase::$$_appStringErrorPrefix
$account_name= ''
Details
- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$account_name
- Inherited_from
- \OAuthPluginBase::$$account_name
$account_password= ''
Details
- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$account_password
- Inherited_from
- \OAuthPluginBase::$$account_password
$oauthAccess= ''https://api.twitter.com/oauth/access_token''
Default value
'https://api.twitter.com/oauth/access_token'
Details- Type
- n/a
$oauthAuth= ''https://api.twitter.com/oauth/authorize''
Default value
'https://api.twitter.com/oauth/authorize'
Details- Type
- n/a
$oauthParams= 'array(
'signatureMethod' => 'HMAC-SHA1',
)'
Default value
array(
'signatureMethod' => 'HMAC-SHA1',
)
Details- Type
- n/a
$oauthReq= '"https://api.twitter.com/oauth/request_token"'
Default value
"https://api.twitter.com/oauth/request_token"
Details- Type
- n/a
$oauth_keys_initialized= 'false'
inheritedInherited from:
\OAuthPluginBase::$$oauth_keys_initialized
Default value
false
Details- Type
- n/a
- Inherited_from
- \OAuthPluginBase::$$oauth_keys_initialized
Methods
checkLogin(
\EAPM $eapmBean
=
null
)
:
void
Parameters
Details
Name | Type | Description |
---|---|---|
$eapmBean | \EAPM |
formatCallbackURL(
\$callback_url $callback_url
)
:
String
inherited
formatCallbackURL
Inherited from: \ExternalAPIBase::formatCallbackURL()\OAuthPluginBase::formatCallbackURL()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
Name | Type | Description |
---|---|---|
$callback_url | \$callback_url | String value of callback URL |
Type | Description |
---|---|
String | value of URL with applicable formatting |
getConnector(
)
:
\source | null
inherited
Get connector for this API
Inherited from: \ExternalAPIBase::getConnector()\OAuthPluginBase::getConnector()
Returns
Type | Description |
---|---|
\source | null |
getConnectorParam(
string $name
)
:
mixed
inherited
Get parameter from source
Inherited from: \ExternalAPIBase::getConnectorParam()\OAuthPluginBase::getConnectorParam()
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
mixed |
getErrorStringFromCode(
\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 |
getLatestUpdates(
$maxTime, $maxEntries
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$maxTime | ||
$maxEntries |
isMimeDetectionAvailable(
)
:
bool
inherited
Determine if mime detection extensions are available.
Inherited from: \ExternalAPIBase::isMimeDetectionAvailable()\OAuthPluginBase::isMimeDetectionAvailable()
Returns
Type | Description |
---|---|
bool |
makeRequest(
$requestMethod, $url, $urlParams
=
null, $postData
=
null
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$requestMethod | ||
$url | ||
$urlParams | ||
$postData |
postData(
$url, $postfields, $headers
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$url | ||
$postfields | ||
$headers |
supports(
$method
=
''
)
:
void
inherited
Does API support this method?
Inherited from: \ExternalAPIBase::supports()\OAuthPluginBase::supports()
Parameters
Details
Name | Type | Description |
---|---|---|
$method |