include/externalAPI/Base/OAuthPluginBase.php
\OAuthPluginBase
Package: SugarCRM
Parameters
Returns
External API based on OAuth
- Parent(s)
- \ExternalAPIBase < \ExternalAPIPlugin
- Api
Constants

APP_STRING_ERROR_PREFIX
= 'ERR_EXTERNAL_API_'
inheritedInherited from:
\ExternalAPIBase::APP_STRING_ERROR_PREFIX
- Inherited_from
- \ExternalAPIBase::APP_STRING_ERROR_PREFIX
Properties


$_appStringErrorPrefix= 'self::APP_STRING_ERROR_PREFIX'
inheritedInherited from:
\ExternalAPIBase::$$_appStringErrorPrefix
Default value
self::APP_STRING_ERROR_PREFIX
Details- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$_appStringErrorPrefix


$account_name= ''
inheritedInherited from:
\ExternalAPIBase::$$account_name
Details
- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$account_name


$account_password= ''
inheritedInherited from:
\ExternalAPIBase::$$account_password
Details
- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$account_password


$requireAuth= 'true'
inheritedInherited from:
\ExternalAPIBase::$$requireAuth
Default value
true
Details- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$requireAuth


$useAuth= 'true'
inheritedInherited from:
\ExternalAPIBase::$$useAuth
Default value
true
Details- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$useAuth
Methods


checkLogin(
\EAPM $eapmBean
=
null
)
:
void
Check login
Parameters
Details
Name | Type | Description |
---|---|---|
$eapmBean | \EAPM |


formatCallbackURL(
\$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
Name | Type | Description |
---|---|---|
$callback_url | \$callback_url | String value of callback URL |
Type | Description |
---|---|
String | value of URL with applicable formatting |


getConnectorParam(
string $name
)
:
mixed
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()
Parameters
Name | Type | Description |
---|---|---|
$error_numb | \unknown_type |


getValue(
$value
)
:
void
inherited
Inherited from:
\ExternalAPIBase::getValue()
Parameters
Name | Type | Description |
---|---|---|
$value |


isMimeDetectionAvailable(
)
:
bool
inherited
Determine if mime detection extensions are available.
Inherited from: \ExternalAPIBase::isMimeDetectionAvailable()
Returns
Type | Description |
---|---|
bool |


loadEAPM(
\EAPM $eapmBean
)
:
void
Load data from EAPM bean
Parameters
Details
Name | Type | Description |
---|---|---|
$eapmBean | \EAPM |


postData(
$url, $postfields, $headers
)
:
void
inherited
Inherited from:
\ExternalAPIBase::postData()
Parameters
Name | Type | Description |
---|---|---|
$url | ||
$postfields | ||
$headers |