with Riku.AI and Mollie?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
riku_ai: {
type: "app",
app: "riku_ai",
}
},
async run({steps, $}) {
const data = {
"Name": `YOUR NAME`,
"Secret": `${this.riku_ai.$auth.secret_key}`,
"Prompt ID": `YOUR PROMPT`,
"Input 1": `SaaS`,
"n": `1`,
}
return await axios($, {
method: "post",
url: `https://prompts.riku.ai/webhook/run`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
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}`,
},
})
},
})