Skip to content

Commit e31999f

Browse files
authored
Platform: Box source connector (#496)
1 parent ad9e693 commit e31999f

File tree

13 files changed

+131
-1
lines changed

13 files changed

+131
-1
lines changed

mint.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
"pages": [
193193
"platform/sources/overview",
194194
"platform/sources/azure-blob-storage",
195+
"platform/sources/box",
195196
"platform/sources/confluence",
196197
"platform/sources/couchbase",
197198
"platform/sources/databricks-volumes",
@@ -277,6 +278,7 @@
277278
"pages": [
278279
"platform-api/api/sources/overview",
279280
"platform-api/api/sources/azure-blob-storage",
281+
"platform-api/api/sources/box",
280282
"platform-api/api/sources/confluence",
281283
"platform-api/api/sources/couchbase",
282284
"platform-api/api/sources/databricks-volumes",

platform-api/api/sources/box.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Box
3+
---
4+
5+
Ingest your files into Unstructured from Box.
6+
7+
The requirements are as follows.
8+
9+
import BoxPrerequisites from '/snippets/general-shared-text/box.mdx';
10+
11+
<BoxPrerequisites />
12+
13+
To create or change an Box source connector, see the following examples.
14+
15+
import BoxSDK from '/snippets/source_connectors/box_sdk.mdx';
16+
import BoxAPIRESTCreate from '/snippets/source_connectors/box_rest_create.mdx';
17+
import BoxAPIRESTChange from '/snippets/source_connectors/box_rest_change.mdx';
18+
19+
<CodeGroup>
20+
<BoxSDK />
21+
<BoxAPIRESTCreate />
22+
<BoxAPIRESTChange />
23+
</CodeGroup>
24+
25+
Replace the preceding placeholders as follows:
26+
27+
import BoxAPIPlaceholders from '/snippets/general-shared-text/box-api-placeholders.mdx';
28+
29+
<BoxAPIPlaceholders />
30+
31+
To change a connector, replace `<connector-id>` with the source connector's unique ID.
32+
To get this ID, see [List source connectors](/platform/api/overview#list-source-connectors).

platform-api/api/sources/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ To create or update a source connector, you must also provide settings that are
1919
For the list of specific settings, see:
2020

2121
- [Azure](/platform/api/sources/azure-blob-storage) (`azure`)
22+
- [Box](/platform/api/sources/box) (`box`)
2223
- [Confluence](/platform/api/sources/confluence) (`confluence`)
2324
- [Couchbase](/platform/api/sources/couchbase) (`couchbase`)
2425
- [Databricks Volumes](/platform/api/sources/databricks-volumes) (`databricks_volumes`)

platform/connectors.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The Unstructured Platform supports connecting to the following source and destin
1212
## Sources
1313

1414
- [Azure](/platform/sources/azure-blob-storage)
15+
- [Box](/platform/sources/box)
1516
- [Confluence](/platform/sources/confluence)
1617
- [Couchbase](/platform/sources/couchbase)
1718
- [Databricks Volumes](/platform/sources/databricks-volumes)

platform/sources/box.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Box
3+
---
4+
5+
Ingest your files into Unstructured from Box.
6+
7+
The requirements are as follows.
8+
9+
import BoxPrerequisites from '/snippets/general-shared-text/box.mdx';
10+
11+
<BoxPrerequisites />
12+
13+
To create the source connector:
14+
15+
1. On the sidebar, click **Connectors**.
16+
2. Click **Sources**.
17+
3. Cick **New** or **Create Connector**.
18+
4. Give the connector some unique **Name**.
19+
5. In the **Provider** area, click **Box**.
20+
6. Click **Continue**.
21+
7. Follow the on-screen instructions to fill in the fields as described later on this page.
22+
8. Click **Save and Test**.
23+
24+
import BoxFields from '/snippets/general-shared-text/box-platform.mdx';
25+
26+
<BoxFields />

platform/sources/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ To create a source connector:
1919
7. Fill in the fields according to your connector type. To learn how, click your connector type in the following list:
2020

2121
- [Azure](/platform/sources/azure-blob-storage)
22+
- [Box](/platform/sources/box)
2223
- [Confluence](/platform/sources/confluence)
2324
- [Couchbase](/platform/sources/couchbase)
2425
- [Databricks Volumes](/platform/sources/databricks-volumes)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- `<name>` (_required_): A unique name for this connector.
2+
- `<remote-url>` (_required_): The URL to the target Box folder. This URL must take the format `box://<path/to/folder/in/account>`.
3+
- For `recursive`, set to `true` to recursively access files from subfolders within the taget Box folder. The default is `false` if not otherwise specified.
4+
- `<box-app-config>` (_required_): The contents of the private key configuration JSON file for the Box Custom App with access to the target Box folder. This file's contents must be provided as a single string.

snippets/general-shared-text/box-cli-api.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ The following environment variables:
1212

1313
- `BOX_APP_CONFIG` - The local path to the downloaded private key configuration JSON file for the Box Custom App,
1414
or a single-line string that contains the contents of this file, represented by `--box-app-config` (CLI) or `box_app_config` (Python).
15-
- `BOX_REMOTE_URL` - The remote URL to the target folder, represented by `--remote-url` (CLI) or `remote_url` (Python).
15+
- `BOX_REMOTE_URL` - The remote URL to the target folder, represented by `--remote-url` (CLI) or `remote_url` (Python).
16+
This URL must take the format `box://<path/to/folder/in/account>`.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Fill in the following fields:
2+
3+
- **Name** (_required_): A unique name for this connector.
4+
- **Data URL** (_required_): The URL to the target Box folder. This URL must take the format `box://<path/to/folder/in/account>`.
5+
- **Recursive**: Check this box to recursively access files from subfolders within the taget Box folder. This box is unchecked by default.
6+
- **Config** (_required_): The contents of the private key configuration JSON file for the Box Custom App with access to the target Box folder. This file's contents must be provided as a single string.

snippets/general-shared-text/box.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<iframe
2+
width="560"
3+
height="315"
4+
src="https://www.youtube.com/embed/Gkniu1sfz1o"
5+
title="YouTube video player"
6+
frameborder="0"
7+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
8+
allowfullscreen
9+
></iframe>
10+
111
1. Access to the [Developer Console](https://app.box.com/developers/console) from your [Box enterprise account](https://account.box.com/signup/enterprise-plan) or [Box developer account](https://account.box.com/signup/developer).
212

313
2. A Box Custom App in your Box account, set up to use **Server Authentication (with JWT)**. See [Setup with JWT](https://developer.box.com/guides/authentication/jwt/jwt-setup/).

0 commit comments

Comments
 (0)