Jotform

Jotform enables you to create online forms, collect responses directly in your email, and create fillable PDF forms.

Integrate the Jotform API with the TinyPNG API

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

Compress Image with TinyPNG API on New Submission (Instant) from Jotform API
Jotform + TinyPNG
 
Try it
Convert Image with TinyPNG API on New Submission (Instant) from Jotform API
Jotform + TinyPNG
 
Try it
Resize Image with TinyPNG API on New Submission (Instant) from Jotform API
Jotform + TinyPNG
 
Try it
New Submission (Instant) from the Jotform API

Emit new event when a form is submitted

 
Try it
Compress Image with the TinyPNG API

Compress a WebP, JPEG, or PNG image using the TinyPNG API. See the documentation

 
Try it
Get Form Submissions with the Jotform API

Gets a list of form responses See the docs here

 
Try it
Convert Image with the TinyPNG API

Convert your images to your desired image type using TinyPNG. See the documentation

 
Try it
Get Monthly User Usage with the Jotform API

Gets number of form submissions received this month. Also, get number of SSL form submissions, payment form submissions and upload space used by user See the docs here

 
Try it
Resize Image with the TinyPNG API

Create resized versions of your uploaded image. See the documentation

 
Try it

Overview of Jotform

Jotform’s API is a powerhouse for automating form and survey data management. With Pipedream, harness this API to trigger workflows from new form submissions, manipulate and analyze your form data, and sync it across various platforms. Think streamlined data entry to CRMs, instant notifications for new leads or feedback, and timely data backups to cloud storage.

Connect Jotform

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
26
27
28
29
30
31
32
33
34
import { axios } from "@pipedream/platform"

export default defineComponent({
  props: {
    jotform: {
      type: "app",
      app: "jotform",
    }
  },
  methods: {
    _getBaseUrl() {
      let baseUrl = `https://${this.jotform.$auth.region}.jotform.com/`;
      const standardSubdomains = [
        "api",
        "eu-api",
        "hipaa-api",
      ];
      if (!standardSubdomains.includes(this.jotform.$auth.region)) {
        baseUrl += "API/";
      }
      return baseUrl;
    },
  },
  async run({steps, $}) {
    const baseUrl = this._getBaseUrl(); 
    return await axios($, {
      url: `${baseUrl}user`, 
      params: {
        apiKey: `${this.jotform.$auth.api_key}`,
      },
    })
  },
})

Overview of TinyPNG

The TinyPNG API lets you compress and optimize image files efficiently. With this API, you can shrink the size of PNG and JPEG files without a noticeable loss in quality, making it a crucial tool for improving website load times and saving bandwidth. On Pipedream, you can automate image optimization workflows, harnessing the power of TinyPNG to process batches of images, integrate with CMS platforms, trigger optimizations from various events, and more.

Connect TinyPNG

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
26
27
module.exports = defineComponent({
  props: {
    tinypng: {
      type: "app",
      app: "tinypng",
    }
  },
  async run({steps, $}) {
    const results = await require("@pipedream/platform").axios($, {
      method: "post",
      url: `https://api.tinify.com/shrink`,
      auth: {
        username: `api:${this.tinypng.$auth.api_key}`,
        password: ``,
      },
      data: {
        "source": {
          "url": "https://tinypng.com/images/panda-happy.png"
        }
      },
    })

    const retVal = results.output
    retVal.original_image_metadata = results.input 
    return retVal
  },
})