Jotform

Online form builder for business

Go to site

Integrate the Jotform API with the Ongage API

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

Connect Jotform

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    jotform: {
      type: "app",
      app: "jotform",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.jotform.$auth.region}.jotform.com/user`,
      params: {
        apiKey: `${this.jotform.$auth.api_key}`,
      },
    })
  },
})

Connect Ongage

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ongage: {
      type: "app",
      app: "ongage",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.ongage.net/api/lists`,
      headers: {
        "x_username": `${this.ongage.$auth.x_username}`,
        "x_password": `${this.ongage.$auth.x_password}`,
        "x_account_code": `${this.ongage.$auth.x_account_code}`,
      },
    })
  },
})