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/`,
})
},
})
export default defineComponent({
props: {
http: {
type: "http_request",
default: {
method: "GET",
url: "http://api.open-notify.org/iss-now.json",
}
}
},
async run({steps, $}) {
return await this.http.execute()
},
})