Pipefy

Process Management, Workflow Management Software

Go to site

Integrate the Pipefy API with the SWAPI - Star Wars API

Setup the Pipefy API trigger to run a workflow which integrates with the SWAPI - Star Wars API. Pipedream's integration platform allows you to integrate Pipefy and SWAPI - Star Wars remarkably fast. Free for developers.

Connect Pipefy

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    pipefy: {
      type: "app",
      app: "pipefy",
    }
  },
  async run({steps, $}) {
    const data = {
      "query": `{ me { name } }`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.pipefy.com/graphql`,
      headers: {
        Authorization: `Bearer ${this.pipefy.$auth.token}`,
      },
      data,
    })
  },
})

Connect SWAPI - Star Wars

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    swapi: {
      type: "app",
      app: "swapi",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://swapi.dev/api/films/1/`,
    })
  },
})