MySQL

Open-source relational database

Go to site

Integrate the MySQL API with the Docusign API

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

Connect MySQL

module.exports = defineComponent({
  props: {
    mysql: {
      type: "app",
      app: "mysql",
    }
  },
  async run({steps, $}) {
    const mysql = require('mysql2/promise');
    
    const { host, port, username, password, database } = this.mysql.$auth
    
    const connection = await mysql.createConnection({
      host,
      port,
      user: username,
      password,
      database,
    });
    
    const [rows, fields] = await connection.execute('SELECT NOW()');
    console.log(rows)
  },
})

Connect Docusign

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    docusign: {
      type: "app",
      app: "docusign",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://account.docusign.com/oauth/userinfo`,
      headers: {
        Authorization: `Bearer ${this.docusign.$auth.oauth_access_token}`,
      },
    })
  },
})