SWAPI - Star Wars

The Star Wars API

Go to site

Integrate the SWAPI - Star Wars API with the Data Stores API

Setup the SWAPI - Star Wars API trigger to run a workflow which integrates with the Data Stores API. Pipedream's integration platform allows you to integrate SWAPI - Star Wars and Data Stores 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 Data Stores

export default defineComponent({
  props: {
    myDataStore: {
      type: "data_store",
    },
  },
  async run({ steps, $ }) {
    await this.myDataStore.set("key_here","Any serializable JSON as the value")
    return await this.myDataStore.get("key_here")
  },
})