The credentials wrapper to allow for the creation and update of transfers. Typically LoginCredentials would be used
See SDKOptions for more details.
See the Explorer documentation on how to make calls to find the necessary input (portalId, files, serviceId, accountId) for Download generation.
import { MediaShuttleResourceFactory, Download, DownloadOptions } from '@signiant/media-shuttle-sdk'
createDownload (resourceFactory: MediaShuttleResourceFactory, portalId: string, files: RemoteFile[], serviceId: string, accountId: string): Promise<Download> {
const downloadOptions: DownloadOptions = {
portalId,
files,
serviceId,
accountId,
}
return resourceFactory.generateDownload(downloadOptions);
}
The Download transfer object.
The PlatformDownloadOptions to control how the Download will operate
See the Explorer documentation on how to make calls to find the necessary input (portalId, accountId and serviceId) for Upload generation.
import { MediaShuttleResourceFactory, Upload, PlatformTransferOptions } from '@signiant/media-shuttle-sdk'
createUpload (resourceFactory: MediaShuttleResourceFactory, portalId: string, serviceId: string, accountId: string): Promise<Upload> {
const uploadOptions: PlatformTransferOptions = {
portalId,
serviceId,
accountId,
}
return resourceFactory.generateUpload(uploadOptions);
}
The Upload transfer object.
The PlatformUploadOptions to control how the Upload will operate
Generated using TypeDoc
A factory class for generating resources to perform Media Shuttle actions.
Create a factory instance as follows:
Example