Imports
The ImportsClient class provides methods to import files from a connected account into the platform as assets and to review past imports. For the end-to-end workflow, see the Data connectors page.
Methods
Import files
Description: This method imports one or more files from the connected provider account into the platform as assets. Each newly imported file creates an asset in the processing status and is downloaded asynchronously. If you import a file that was already imported through this account, the platform returns the existing asset with its current status, which may be ready, without downloading the file again. The response returns one entry per requested file, in request order.
Function signature and example:
Parameters
The ImportFilesRequestItemsItem class contains the following property:
Return value
Returns an ImportResult object. The ImportResult class contains the following properties:
The ImportItem class contains the following properties:
The ImportItemError class contains the following properties:
API Reference
List imports
Description: This method returns a list of the imports for the specified connection. The platform returns the imports sorted by creation date, with the newest at the top of the list. Each import in the list is a summary that omits the items array. To see the status of each file, use the retrieve_import method.
Function signature and example:
Parameters
Return value
Returns a ListImportsResponse object. The ListImportsResponse class contains the following properties:
The Import class contains the following properties:
API Reference
Retrieve an import
Description: This method retrieves a single import, including the current status of each asset in the import.
Function signature and example:
Parameters
Return value
Returns an ImportDetail object. The ImportDetail class contains all the properties of the Import object (see List imports), plus the following: