Batch import from a third party
Download multiple assets from a third-party application by providing download URLs and target folders. You can also indicate asset metadata to save and specify retry mechanisms.
BatchImportFromThirdParty: function (_oOptions, _fCallbackSuccess, _fCallBackFail, _nParallelism)
+ _oOptions.Documents:
++ _oDocuments.DownloadUrl:
++ _oDocuments.FolderID:
++ _oDocuments.Headers:
++ _oDocuments.SingleValueMetadata:
++ _oDocuments.MultiValueMetadata:
++ _oDocuments.ExternalID:
++ _oDocuments.ExternalService:
++ _oDocuments.SaveToFileName:
+ _oDocuments.ForcedSubType:
+ _oOptions.DownloadRetries:
+ _oOptions.DownloadMinWaitBeforeRetry:
+ _oOptions.DownloadMaxWaitBeforeRetry:
+ _oOptions.ImportRetries:
+ _oOptions.ImportMinWaitBeforeRetry:
+ _oOptions.ImportMaxWaitBeforeRetry:
Request parameter
The Documents
object holds an array of objects representing each asset to import. Each object in the array uses the string and object attributes applicable to the Import from a third party utility. This parameter also uses the download and import retry attributes applicable to the Import from a third party utility.
In addition, you can use the following attribute:
Attribute | Type | Description | Default value | Required |
---|---|---|---|---|
Parallelism | number | The number of assets to import. | 5 | no |
Updated 13 days ago