SWAPI - Star Wars

The Star Wars API

Go to site

Integrate the SWAPI - Star Wars API with the Trello API

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

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/`,
    })
  },
})

Connect Trello

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    trello: {
      type: "app",
      app: "trello",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.trello.com/1/members/me`,
    }, {
      token: {
        key: this.trello.$auth.oauth_access_token,
        secret: this.trello.$auth.oauth_refresh_token,
      },
      oauthSignerUri: this.trello.$auth.oauth_signer_uri,
    })
  },
})