DocuPost

Mail letters and postcards online. We’ll print, stamp and send U.S. mail for you, from 95¢. Simple, pay-as-you-go pricing.

Integrate the DocuPost API with the Python API

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

Mail Letter with the DocuPost API

Sends a physical letter via USPS first class mail. 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
Mail Postcard with the DocuPost API

Dispatches a glossy, color 4x6 postcard via the US Postal Service. See the documentation

 
Try it

Overview of DocuPost

The DocuPost API enables automated mail handling, offering services like sending letters, postcards, and checks via a programmatic interface. Within Pipedream, you can harness this API to create dynamic, serverless workflows that trigger postal mail actions based on various events from a plethora of supported apps. Think of automating thank-you notes, payment disbursements, or direct mail marketing campaigns, all reacting in real-time to user behavior, payment events, or custom triggers.

Connect DocuPost

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    docupost: {
      type: "app",
      app: "docupost",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      method: "post",
      url: `https://app.docupost.com/api/1.1/wf/getbalance`,
      params: {
        api_token: `${this.docupost.$auth.api_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}}