Gumroad

E-commerce and audience-building software for creators

Go to site

Integrate the Gumroad API with the MySQL API

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

Connect Gumroad

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.gumroad.com/v2/user`,
  headers: {
    Authorization: `Bearer ${auths.gumroad.oauth_access_token}`,
  },
})

Connect MySQL

const mysql = require('mysql2/promise');

const { host, port, username, password, database } = auths.mysql

const connection = await mysql.createConnection({
  host,
  port,
  user: username,
  password,
  database,
});

const [rows, fields] = await connection.execute('SELECT NOW()');
console.log(rows)