@ikonintegration/mod-preview-client
v0.5.6
Published
Shared module license API client
Downloads
5
Readme
module-preview-client
License module nodejs API client
Overall
How to Use
import SMPreview from '@ikonintegration/mod-preview-client';
const API = new SMPreview({
port: 9090, //isOptional
endpoint: SharedModules_PreviewEndpoint,
shouldLoadLambdaLayer: true
});
Headers
The following header must be specified in every request!
- Authorization
Available API methods
PrivateS3:
- API.privateS3.signedGetFile(URL)
- API.privateS3.signedPutFile(URL, data, type)
PreviewLamdaLayer:
- API.lambdaLayer.generateImagePreview(filepath, options)
- API.lambdaLayer.generatePDFPreview(filepath, options)
- API.lambdaLayer.generateOfficePreview(filepath, options)
PreviewS3 Signed URLS:
- API.previewS3.generatePreviewFromSignedURLs(from, to, type, options)