Box.com API
The Box.com component, allows you to talk with the Box.com.
It supports the following operations:
Folders
- Get folder information
- List items in a folder
Files
- Get file information
Versions
- Get version information (up to a maximum of 1000 versions)
- For each previous version output the version information along with the original file
Downloads
- Download file
Metadata
- Getting file and folder custom metadata
Collaborations
- Get collaboration information for a file or folder
The component uses the Box.com JWT auth mechanism. Please refer to the Box.com documentation for setting this up.
Make sure to enable Perform Actions as Users
. The ID of a user with sufficient privileges is needed and used for executing the API calls.
In addition, if you already know folders or files that belong to a certain user, you can access them using the Global Content Manager (GCM) scope. In this case, you can omit the Impersonation UserId.
Configuration
Root folders IDs to start the folder/file listing from.
Example: 162661600318, 162661443646
Recursion
Recursion enabledDetermines if the listing is executed recursively.
Authentication
Box.com configurationA Box.com JSON configuration.
Impersonation UserIdThe ID of the user to act upon. Required if not using the GCM scope.
Pagination settings
Page sizeAllows you to configure the page size for the actions that return multiple items.
Rate limit
Request limitThe max amount of requests during the interval.
IntervalThe interval in milliseconds in which the requests happen. Should be a multiple of 250.
Max concurrentThe maximum concurrent executions.
Connection stringA MongoDB connection string.
Example: mongodb://<username>:<password>@localhost:27017/<databaseName>
Here <databaseName>
is the database used to store binaries in the Content Store.
Whether or not to use TLS in case your mongoDB requires TLS.
Allow Invalid CertificatesChecking this will disable certificate validation. Warning: specifying this option in a production environment makes your application insecure and potentially vulnerable to expired certificates and to foreign processes posing as valid client instances.
Certificate Authority FileOne or more certificate authorities to trust when making a TLS connection. In order to access the local filesystem, the XILL4_WORKDIRS
environment variable must be set to the path of the directory to be accessed.
Example: .\ca.pem
Inputs | Outputs
Example:
- Mandatory fields:
id
the id of the object to fetchaction
the action to execute. Can begetFile
,downloadFile
,getFolder
,getFolderItems
orgetCollaborations
{
"id": "123456789",
// only applies when downloading a specific version:
"versionInfo": {
"id": "123456777",
}
}
recursive
Overrides the recursion setting. If not set the recursion setting is used. Can betrue
orfalse
.impersonationUserID
Overrides the Impersonation UserId setting. If not set the Impersonation UserId setting is used.
Example:
{
"id":"162661600318",
"action":"getFile"
}