include/externalAPI/LotusLive/ExtAPILotusLive.php
\ExtAPILotusLive
External API based on OAuth
- Parent(s)
- \WebDocument < \ExternalAPIBase < \ExternalAPIPlugin
Constants
APP_STRING_ERROR_PREFIX
= 'ERR_EXTERNAL_API_'- Inherited_from
- \ExternalAPIBase::APP_STRING_ERROR_PREFIX
- Inherited_from
- \OAuthPluginBase::APP_STRING_ERROR_PREFIX
Properties

$_appStringErrorPrefix= 'self::APP_STRING_ERROR_PREFIX'
self::APP_STRING_ERROR_PREFIXDetails- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$_appStringErrorPrefix
- Inherited_from
- \OAuthPluginBase::$$_appStringErrorPrefix

$account_name= ''
- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$account_name
- Inherited_from
- \OAuthPluginBase::$$account_name

$account_password= ''
- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$account_password
- Inherited_from
- \OAuthPluginBase::$$account_password

\EAPM
$authData= ''
- Type
- \EAPM
- Inherited_from
- \ExternalAPIBase::$$authData
- Inherited_from
- \OAuthPluginBase::$$authData

$llMimeWhitelist= 'array(
'application/msword',
'application/pdf',
'application/postscript',
'application/vnd.ms-excel',
'application/vnd.ms-powerpoint',
'application/vnd.oasis.opendocument.formula',
'application/vnd.oasis.opendocument.graphics',
'application/vnd.oasis.opendocument.presentation',
'application/vnd.oasis.opendocument.presentation-template',
'application/vnd.oasis.opendocument.spreadsheet',
'application/vnd.oasis.opendocument.spreadsheet-template',
'application/vnd.oasis.opendocument.text',
'application/vnd.oasis.opendocument.text-master',
'application/vnd.oasis.opendocument.text-template',
'application/vnd.oasis.opendocument.text-web',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.ms-word.document.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'application/vnd.ms-word.template.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.ms-excel.sheet.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
'application/vnd.ms-excel.template.macroEnabled.12',
'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
'application/vnd.ms-excel.addin.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.presentationml.template',
'application/vnd.ms-powerpoint.template.macroEnabled.12',
'application/vnd.ms-powerpoint.addin.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.presentationml.slide',
'application/vnd.ms-powerpoint.slide.macroEnabled.12',
'application/vnd.ms-officetheme',
'application/onenote',
)'
array(
'application/msword',
'application/pdf',
'application/postscript',
'application/vnd.ms-excel',
'application/vnd.ms-powerpoint',
'application/vnd.oasis.opendocument.formula',
'application/vnd.oasis.opendocument.graphics',
'application/vnd.oasis.opendocument.presentation',
'application/vnd.oasis.opendocument.presentation-template',
'application/vnd.oasis.opendocument.spreadsheet',
'application/vnd.oasis.opendocument.spreadsheet-template',
'application/vnd.oasis.opendocument.text',
'application/vnd.oasis.opendocument.text-master',
'application/vnd.oasis.opendocument.text-template',
'application/vnd.oasis.opendocument.text-web',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.ms-word.document.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'application/vnd.ms-word.template.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.ms-excel.sheet.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
'application/vnd.ms-excel.template.macroEnabled.12',
'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
'application/vnd.ms-excel.addin.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.presentationml.template',
'application/vnd.ms-powerpoint.template.macroEnabled.12',
'application/vnd.ms-powerpoint.addin.macroEnabled.12',
'application/vnd.openxmlformats-officedocument.presentationml.slide',
'application/vnd.ms-powerpoint.slide.macroEnabled.12',
'application/vnd.ms-officetheme',
'application/onenote',
)Details- Type
- n/a

$oauthAccess= ''/manage/oauth/getAccessToken''
'/manage/oauth/getAccessToken'Details- Type
- n/a

$oauthAuth= ''/manage/oauth/authorizeToken''
'/manage/oauth/authorizeToken'Details- Type
- n/a

$oauthParams= 'array(
'signatureMethod' => 'PLAINTEXT',
)'
array(
'signatureMethod' => 'PLAINTEXT',
)Details- Type
- n/a

$oauthReq= '"/manage/oauth/getRequestToken"'
"/manage/oauth/getRequestToken"Details- Type
- n/a

$oauth_keys_initialized= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \OAuthPluginBase::$$oauth_keys_initialized

$requireAuth= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$requireAuth
- Inherited_from
- \OAuthPluginBase::$$requireAuth

$supportedModules= 'array('Meetings','Notes', 'Documents')'
array('Meetings','Notes', 'Documents')Details- Type
- n/a

$useAuth= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \ExternalAPIBase::$$useAuth
- Inherited_from
- \OAuthPluginBase::$$useAuth
Methods

checkLogin(
\EAPM $eapmBean
=
null
)
:
voidCheck login
| Name | Type | Description |
|---|---|---|
| $eapmBean | \EAPM |

downloadDoc(
$documentId, $documentFormat
)
:
void| Name | Type | Description |
|---|---|---|
| $documentId | ||
| $documentFormat |

formatCallbackURL(
\$callback_url $callback_url
)
:
StringformatCallbackURL
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 |

getClient(
)
:
\Zend_Http_ClientGet HTTP client for communication with Lotus
Creates and setup the http client object, including authorization data if needed
| Type | Description |
|---|---|
| \Zend_Http_Client |

getConnector(
)
:
\source | nullGet connector for this API
Inherited from: \ExternalAPIBase::getConnector()\OAuthPluginBase::getConnector()| Type | Description |
|---|---|
| \source | null |

getConnectorParam(
string $name
)
:
mixedGet parameter from source
Inherited from: \ExternalAPIBase::getConnectorParam()\OAuthPluginBase::getConnectorParam()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| mixed |

getErrorStringFromCode(
\$error $error
=
''
)
:
StringgetErrorStringFromCode
This method overrides the getErrorStringFromCode method from the ExternalAPIBase class and provides for custom error messages specific to the Lotus Live web service.
| Name | Type | Description |
|---|---|---|
| $error | \$error | Mixed variable of the error message, number or object returned from Lotus Live web service |
| Type | Description |
|---|---|
| String | Translated string label for the error message |

getMeetingDetails(
string $bean
)
:
voidGet detailed information about the meeting with key $meeting.
| Name | Type | Description |
|---|---|---|
| $bean | string | meeting- The Lotus meeting key. return: The XML response from the Lotus server. |

inviteAttendee(
$bean, array $attendee, $sendInvites
=
false
)
:
voidNOT SUPPORTED BY LOTUS Invite $attendee to the meeting with key $session.
| Name | Type | Description |
|---|---|---|
| $bean | ||
| $attendee | array |
|
| $sendInvites |

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

loadEAPM(
\EAPM $eapmBean
)
:
voidLoad data from EAPM bean
| Name | Type | Description |
|---|---|---|
| $eapmBean | \EAPM |

makeRequest(
$urlReq, \unknown_type $method
=
'GET', \unknown_type $json
=
true
)
:
voidMake request to a service
| Name | Type | Description |
|---|---|---|
| $urlReq | ||
| $method | \unknown_type | |
| $json | \unknown_type |

postData(
$url, $postfields, $headers
)
:
void
| Name | Type | Description |
|---|---|---|
| $url | ||
| $postfields | ||
| $headers |

searchDoc(
$keywords, $flushDocCache
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $keywords | ||
| $flushDocCache |

supports(
$method
=
''
)
:
voidDoes API support this method?
Inherited from: \ExternalAPIBase::supports()\OAuthPluginBase::supports()| Name | Type | Description |
|---|---|---|
| $method |

uninviteAttendee(
$bean, array $attendeeID
)
:
voidNOT SUPPORTED BY LOTUS Uninvite the attendee with ID $attendeeID from the meeting.
Note: attendee ID is returned as part of the response to inviteAtendee(). The attendee ID refers to a specific person and a specific meeting.
| Name | Type | Description |
|---|---|---|
| $bean | ||
| $attendeeID | array |
|

unscheduleMeeting(
$bean
)
:
voidDelete an existing Lotus meeting.
| Name | Type | Description |
|---|---|---|
| $bean |