include/externalAPI/Base/ExternalAPIBase.php
\ExternalAPIBase
Package: SugarCRM
Parameters
Returns
Base implementation for external API
- Parent(s)
- \ExternalAPIPlugin
- Children
- \ExtAPIGoToMeeting
- \ExtAPIGoogle
- \ExtAPIWebEx
- \ExtAPIFacebook
- \OAuthPluginBase
- Api
Constants
Properties
$_appStringErrorPrefix= 'self::APP_STRING_ERROR_PREFIX'
Default value
self::APP_STRING_ERROR_PREFIX
Details- Type
- n/a
Methods
checkLogin(
\EAPM $eapmBean
=
null
)
:
void
Check login
Parameters
Details
Name | Type | Description |
---|---|---|
$eapmBean | \EAPM |
formatCallbackURL(
\$callback_url $callback_url
)
:
String
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 |
getConnectorParam(
string $name
)
:
mixed
Get parameter from source
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
mixed |
getErrorStringFromCode(
\unknown_type $error_numb
)
:
void
Allow API clients to provide translated language strings for a given error code
Parameters
Name | Type | Description |
---|---|---|
$error_numb | \unknown_type |
isMimeDetectionAvailable(
)
:
bool
Determine if mime detection extensions are available.
Returns
Type | Description |
---|---|
bool |
loadEAPM(
\EAPM $eapmBean
)
:
void
Load authorization data
Parameters
Details
Name | Type | Description |
---|---|---|
$eapmBean | \EAPM |
postData(
$url, $postfields, $headers
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$url | ||
$postfields | ||
$headers |