DocRaptor

The best and easiest HTML-to-PDF API

Integrate the DocRaptor API with the Gmail API

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

Send Email with the Gmail API

Send an email from your Google Workspace email account

 
Try it

Overview of DocRaptor

DocRaptor is an API that converts HTML to PDF or XLS(X). Using DocRaptor with Pipedream allows you to automate document generation within your custom workflows. With Pipedream's serverless platform, you can trigger document creation from a multitude of events, process the data, and integrate it with countless apps to create dynamic, on-demand documents. Whether you need to generate invoices, reports, or any other documents, you can set up a pipeline that does the heavy lifting for you.

Connect DocRaptor

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    docraptor: {
      type: "app",
      app: "docraptor",
    }
  },
  async run({steps, $}) {
    const data = {
      "type": `pdf`,
      "document_content": `<html><body>Hello World!</body></html>`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.docraptor.com/docs`,
      auth: {
        username: `${this.docraptor.$auth.api_key}`,
        password: ``,
      },
      data,
    })
  },
})

Overview of Gmail

By connecting your personal Gmail account to Pipedream, you'll be able to incorporate email into whatever you're building with any of the thousands of apps that are available on Pipedream.

Connect Gmail

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: {
    gmail: {
      type: "app",
      app: "gmail",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.googleapis.com/oauth2/v1/userinfo`,
      headers: {
        Authorization: `Bearer ${this.gmail.$auth.oauth_access_token}`,
      },
    })
  },
})