with Mollie and QR API?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mollie: {
type: "app",
app: "mollie",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mollie.com/v2/payments`,
headers: {
Authorization: `Bearer ${this.mollie.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qr_api: {
type: "app",
app: "qr_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://qrapi.io/v2/qrcode/url`,
headers: {
"accept": `image/png`,
},
params: {
apikey: `${this.qr_api.$auth.api_key}`,
url: `https://pipedream.com`,
},
})
},
})