Box

Platform for secure content management, workflow, and collaboration

Integrate the Box API with the Python API

Setup the Box API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate Box and Python remarkably fast. Free for developers.

Run Python Code with Python API on New Event from Box API
Box + Python
 
Try it
Run Python Code with Python API on New File Event from Box API
Box + Python
 
Try it
Run Python Code with Python API on New Folder Event from Box API
Box + Python
 
Try it
New Event from the Box API

Emit new event when an event with subscribed event source triggered on a target. See the documentation

 
Try it
New File Event from the Box API

Emit new event when a new file uploaded on a target. See the documentation

 
Try it
New Folder Event from the Box API

Emit new event when a new folder created on a target. See the documentation

 
Try it
Download File with the Box API

Downloads a file from Box to your workflow's /tmp directory. See the documentation

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it
Search Content with the Box API

Searches for files, folders, web links, and shared files across the users content or across the entire enterprise. See the documentation.

 
Try it
Upload a File with the Box API

Uploads a small file to Box. See the documentation.

 
Try it
Upload File Version with the Box API

Update a file's content. See the documentation.

 
Try it

Overview of Box

The Box API offers a playground for enhancing content management and collaboration within your cloud storage. With Pipedream, you can orchestrate Box's functionality to automate document handling, streamline approval flows, sync files across apps, and trigger actions based on file events. Think of Pipedream as the glue that allows you to connect Box with your tech stack, triggering workflows with new file uploads, comments, or when sharing settings change, to enhance productivity and minimize manual labor.

Connect Box

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    box: {
      type: "app",
      app: "box",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.box.com/2.0/users/me`,
      headers: {
        Authorization: `Bearer ${this.box.$auth.oauth_access_token}`,
      },
    })
  },
})

Overview of Python

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python

1
2
3
4
5
def handler(pd: "pipedream"):
  # Reference data from previous steps
  print(pd.steps["trigger"]["context"]["id"])
  # Return data for use in future steps
  return {"foo": {"test":True}}