prepareUrlExpander
Prepares the UrlExpanderIntent.
Parameters
implementationUrlExpanderIntentIntent interface for URL expansion and content retrieval operations.
expandUrlfunctionParameters
requestExpandUrlRequestRequest parameters for URL expansion.
urlstringrequestConnectionfunctionReturns
Promise<void>
Returns
Response from URL expansion operation. This is a Promise that resolves with the following object:
statusstringThe only valid value is "completed".
resultExpandUrlResultResult of completed URL expansion.
refUrlExpanderAssetRefReference to an asset with metadata.
typestringThe only valid value is "asset".
idstringnamestringiconUrlstringdescriptionstringstatusstringThe only valid value is "not_found".
getContentfunctionParameters
requestGetContentRequestRequest parameters for content retrieval.
refUrlExpanderAssetRefReference to an asset with metadata.
typestringThe only valid value is "asset".
idstringnamestringiconUrlstringdescriptionstringrequestConnectionfunctionReturns
Promise<void>
Returns
Response from content retrieval operation. This is a Promise that resolves with the following object:
Completed response from content retrieval operation.
statusstringThe only valid value is "completed".
resultassettypestringThe only valid value is "asset".
assetAssetUnion of all supported asset types.
Image asset result structure.
namestringurlstringtypestringThe only valid value is "image".
thumbnailUrlstringmimeTypestringAvailable values:
"image/heic""image/jpeg""image/png""image/svg+xml""image/tiff""image/webp"
parentRefAssetRefReference to an asset. Used as a unique identifier.
Video asset result structure.
namestringurlstringtypestringThe only valid value is "video".
thumbnailImageUrlstringmimeTypestringAvailable values:
"video/avi""video/x-msvideo""image/gif""video/x-m4v""video/x-matroska""video/quicktime""video/mp4""video/mpeg""video/webm"
parentRefAssetRefReference to an asset. Used as a unique identifier.
Audio asset result structure.
namestringurlstringtypestringThe only valid value is "audio".
mimeTypestringAvailable values:
"audio/mpeg""audio/mp4""audio/x-m4a""audio/mp3""audio/ogg""audio/wav""audio/x-wav""audio/x-pn-wav""audio/wave""audio/vnd.wave""audio/webm"
Document asset result structure.
namestringurlstringtypestringThe only valid value is "document".
mimeTypeDocumentMimeTypeSupported mimetype for document assets.
Available values:
"application/pdf""application/msword""application/vnd.openxmlformats-officedocument.wordprocessingml.document""text/plain""text/markdown"
parentRefAssetRefReference to an asset. Used as a unique identifier.
Sheet asset result structure.
namestringurlstringtypestringThe only valid value is "sheet".
mimeTypeSheetMimeTypeSupported mimetype for sheet assets.
Available values:
"text/csv""application/vnd.ms-excel""application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
parentRefAssetRefReference to an asset. Used as a unique identifier.
Generic asset result structure. A generic asset is any file that is not already covered by other asset types such as ImageAsset etc. It is an error to pass a mime type that is covered by another asset type.
namestringurlstringtypestringThe only valid value is "generic".
mimeTypestringError response from content retrieval operation.
statusstringThe only valid value is "app_error".
messagestringReturns
void